blob: e6f8cf5e8348736c7c1020e5a0090b4ecc5a2f4c [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
cristy3ed852e2009-09-05 21:47:34 +0000738WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000739WMF_DELEGATE_FALSE
740WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000741WEBP_LIBS
742WEBP_DELEGATE_FALSE
743WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000744TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000745TIFF_DELEGATE_FALSE
746TIFF_DELEGATE_TRUE
747CAIRO_DELEGATE_FALSE
748CAIRO_DELEGATE_TRUE
749RSVG_DELEGATE_FALSE
750RSVG_DELEGATE_TRUE
751CAIRO_SVG_LIBS
752CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000753RSVG_LIBS
754RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000755PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000756PNG_DELEGATE_FALSE
757PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000758PANGOFT2_DELEGATE_FALSE
759PANGOFT2_DELEGATE_TRUE
760PANGO_DELEGATE_FALSE
761PANGO_DELEGATE_TRUE
762PANGO_LIBS
763PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000764OPENEXR_DELEGATE_FALSE
765OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766OPENEXR_LIBS
767OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000768LZMA_DELEGATE_FALSE
769LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000770LZMA_LIBS
771LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000772LQR_DELEGATE_FALSE
773LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774LQR_LIBS
775LQR_CFLAGS
776LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777LCMS_DELEGATE_FALSE
778LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000779JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000780JP2_DELEGATE_FALSE
781JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783JPEG_DELEGATE_FALSE
784JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000785JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000786JBIG_DELEGATE_FALSE
787JBIG_DELEGATE_TRUE
788GVC_DELEGATE_FALSE
789GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790GVC_LIBS
791GVC_CFLAGS
792GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793GS_DELEGATE_FALSE
794GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796FREETYPE_DELEGATE_FALSE
797FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000798freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000799FONTCONFIG_DELEGATE_FALSE
800FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801FONTCONFIG_LIBS
802FONTCONFIG_CFLAGS
803FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804FPX_DELEGATE_FALSE
805FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807FFTW_DELEGATE_FALSE
808FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810DJVU_DELEGATE_FALSE
811DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813DPS_DELEGATE_FALSE
814DPS_DELEGATE_TRUE
815AUTOTRACE_DELEGATE_FALSE
816AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817AUTOTRACE_LIBS
818AUTOTRACE_CFLAGS
819LIB_DL
820ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821ZLIB_DELEGATE_FALSE
822ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823XEXT_LIBS
824X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825X11_DELEGATE_FALSE
826X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827X_EXTRA_LIBS
828X_LIBS
829X_PRE_LIBS
830X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000831XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000832BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833BZLIB_DELEGATE_FALSE
834BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835CCMALLOCDelegate
836UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837HasUMEM_FALSE
838HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839THREAD_LIBS
840GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841WITH_MAGICK_PLUS_PLUS_FALSE
842WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000844MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000845POW_LIB
846LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000847UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000848UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000849UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000850UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000851UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000852UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000853INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000854INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000855UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000856UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000857INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000858INT32_T
859UINT16_T
860INT16_T
861UINT8_T
862INT8_T
863LIBRARY_EXTRA_CPPFLAGS
864MODULE_EXTRA_CPPFLAGS
865LIBSTDCLDFLAGS
866PERL_MAKE_OPTIONS
867QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000868MAINT
869MAINTAINER_MODE_FALSE
870MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871MAGICK_HDRI
872DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000873WITH_LTDL_FALSE
874WITH_LTDL_TRUE
875WITH_MODULES_FALSE
876WITH_MODULES_TRUE
877WITH_SHARED_LIBS_FALSE
878WITH_SHARED_LIBS_TRUE
879LTDLOPEN
880LT_CONFIG_H
881CONVENIENCE_LTDL_FALSE
882CONVENIENCE_LTDL_TRUE
883INSTALL_LTDL_FALSE
884INSTALL_LTDL_TRUE
885ARGZ_H
886sys_symbol_underscore
887LIBADD_DL
888LT_DLPREOPEN
889LIBADD_DLD_LINK
890LIBADD_SHL_LOAD
891LIBADD_DLOPEN
892LT_DLLOADERS
893INCLTDL
894LTDLINCL
895LTDLDEPS
896LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000897LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000898CXXCPP
899OTOOL64
900OTOOL
901LIPO
902NMEDIT
903DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000904MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000905RANLIB
cristyda16f162011-02-19 23:52:17 +0000906ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000907AR
908NM
909ac_ct_DUMPBIN
910DUMPBIN
911LIBTOOL
912OBJDUMP
913DLLTOOL
914AS
cristy3ed852e2009-09-05 21:47:34 +0000915LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000916CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000917CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000918OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000919PTHREAD_CFLAGS
920PTHREAD_LIBS
921PTHREAD_CC
922ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000923SHAREARCH_DIR
924INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000925WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000926USING_CL_FALSE
927USING_CL_TRUE
928CYGWIN_BUILD_FALSE
929CYGWIN_BUILD_TRUE
930WIN32_NATIVE_BUILD_FALSE
931WIN32_NATIVE_BUILD_TRUE
932WINGDI32_DELEGATE_FALSE
933WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000934GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000935PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000936LN_S
cristy3ed852e2009-09-05 21:47:34 +0000937LD
cristy73bd4a52010-10-05 11:24:23 +0000938FGREP
939SED
940am__fastdepCXX_FALSE
941am__fastdepCXX_TRUE
942CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000943ac_ct_CXX
944CXXFLAGS
945CXX
cristya0b81c32010-01-22 02:54:33 +0000946EGREP
947GREP
948CPP
cristy73bd4a52010-10-05 11:24:23 +0000949am__fastdepCC_FALSE
950am__fastdepCC_TRUE
951CCDEPMODE
952AMDEPBACKSLASH
953AMDEP_FALSE
954AMDEP_TRUE
955am__quote
956am__include
957DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000958OBJEXT
959EXEEXT
960ac_ct_CC
961CPPFLAGS
962LDFLAGS
963CFLAGS
964CC
965DIRSEP
966MAGICK_FILTER_MODULE_PATH
967MAGICK_CONFIGURE_BUILD_PATH
968MAGICK_CONFIGURE_SRC_PATH
969MAGICK_CODER_MODULE_PATH
970MAN_DIR
971INFO_DIR
972PERSISTINCLUDE_DIR
973INCLUDE_DIR
974LIB_DIR
975LOCALSTATE_DIR
976SHAREDSTATE_DIR
977SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000978DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000979DATA_DIR
980LIBEXEC_DIR
981SBIN_DIR
982BIN_DIR
983EXEC_PREFIX_DIR
984PREFIX_DIR
985CONFIG_STATUS_DEPENDENCIES
986MAGICK_LIB_VERSION_NUMBER
987MAGICK_LIB_VERSION_TEXT
988MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000989AM_BACKSLASH
990AM_DEFAULT_VERBOSITY
991am__untar
992am__tar
993AMTAR
994am__leading_dot
995SET_MAKE
996AWK
997mkdir_p
998MKDIR_P
999INSTALL_STRIP_PROGRAM
1000STRIP
1001install_sh
1002MAKEINFO
1003AUTOHEADER
1004AUTOMAKE
1005AUTOCONF
1006ACLOCAL
1007VERSION
1008PACKAGE
1009CYGPATH_W
1010am__isrc
1011INSTALL_DATA
1012INSTALL_SCRIPT
1013INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001014PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001015PACKAGE_RELEASE_DATE
1016PACKAGE_LIB_VERSION_NUMBER
1017PACKAGE_LIB_VERSION
1018PACKAGE_CHANGE_DATE
1019PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001020PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001021MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001022MAGICK_LIBRARY_VERSION_INFO
1023MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001024MAGICK_LIBRARY_AGE
1025MAGICK_LIBRARY_REVISION
1026MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001027MAGICK_TARGET_OS
1028MAGICK_TARGET_VENDOR
1029MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001030target_os
1031target_vendor
1032target_cpu
1033target
1034host_os
1035host_vendor
1036host_cpu
1037host
1038build_os
1039build_vendor
1040build_cpu
1041build
1042CONFIGURE_ARGS
1043DISTCHECK_CONFIG_FLAGS
1044target_alias
1045host_alias
1046build_alias
1047LIBS
1048ECHO_T
1049ECHO_N
1050ECHO_C
1051DEFS
1052mandir
1053localedir
1054libdir
1055psdir
1056pdfdir
1057dvidir
1058htmldir
1059infodir
1060docdir
1061oldincludedir
1062includedir
1063localstatedir
1064sharedstatedir
1065sysconfdir
1066datadir
1067datarootdir
1068libexecdir
1069sbindir
1070bindir
1071program_transform_name
1072prefix
1073exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001074PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001075PACKAGE_BUGREPORT
1076PACKAGE_STRING
1077PACKAGE_VERSION
1078PACKAGE_TARNAME
1079PACKAGE_NAME
1080PATH_SEPARATOR
1081SHELL'
1082ac_subst_files=''
1083ac_user_opts='
1084enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001085enable_silent_rules
1086enable_dependency_tracking
1087with_gnu_ld
1088with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001089enable_bounds_checking
1090enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001091with_includearch_dir
1092with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001093with_threads
1094enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001095enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001096enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001097enable_shared
1098enable_static
1099with_pic
1100enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001101with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001102enable_libtool_lock
1103with_included_ltdl
1104with_ltdl_include
1105with_ltdl_lib
1106enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001107with_modules
1108enable_delegate_build
1109enable_deprecated
1110enable_installed
1111enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001112enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001113enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001114enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001115enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001116enable_ccmalloc
1117enable_efence
1118enable_prof
1119enable_gprof
1120enable_gcov
1121with_method_prefix
1122with_quantum_depth
1123with_cache
1124with_frozenpaths
1125with_magick_plus_plus
1126with_perl
1127with_perl_options
1128with_umem
1129with_libstdc
1130with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001131with_x
cristy3ed852e2009-09-05 21:47:34 +00001132with_zlib
1133with_autotrace
1134with_dps
1135with_djvu
cristy430a7312010-01-21 20:44:04 +00001136with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001137with_fftw
1138with_fpx
1139with_fontconfig
1140with_freetype
1141with_gslib
1142with_fontpath
1143with_gs_font_dir
1144with_gvc
1145with_jbig
1146with_jpeg
1147with_jp2
1148with_lcms
cristy71203402010-06-18 13:12:03 +00001149with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001150with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001151with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001152with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001153with_pango
cristy3ed852e2009-09-05 21:47:34 +00001154with_png
1155with_rsvg
1156with_tiff
cristyb1860752011-03-14 00:27:46 +00001157with_webp
cristy3ed852e2009-09-05 21:47:34 +00001158with_windows_font_dir
1159with_wmf
1160with_xml
1161'
1162 ac_precious_vars='build_alias
1163host_alias
1164target_alias
1165CC
1166CFLAGS
1167LDFLAGS
1168LIBS
1169CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001170CPP
cristy3ed852e2009-09-05 21:47:34 +00001171CXX
1172CXXFLAGS
1173CCC
cristy73bd4a52010-10-05 11:24:23 +00001174PKG_CONFIG
1175CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001176XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001177AUTOTRACE_CFLAGS
1178AUTOTRACE_LIBS
1179FONTCONFIG_CFLAGS
1180FONTCONFIG_LIBS
1181GVC_CFLAGS
1182GVC_LIBS
1183LQR_CFLAGS
1184LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001185LZMA_CFLAGS
1186LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001187OPENEXR_CFLAGS
1188OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001189PANGO_CFLAGS
1190PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001191RSVG_CFLAGS
1192RSVG_LIBS
1193CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001194CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001195
1196
1197# Initialize some variables set by options.
1198ac_init_help=
1199ac_init_version=false
1200ac_unrecognized_opts=
1201ac_unrecognized_sep=
1202# The variables have the same names as the options, with
1203# dashes changed to underlines.
1204cache_file=/dev/null
1205exec_prefix=NONE
1206no_create=
1207no_recursion=
1208prefix=NONE
1209program_prefix=NONE
1210program_suffix=NONE
1211program_transform_name=s,x,x,
1212silent=
1213site=
1214srcdir=
1215verbose=
1216x_includes=NONE
1217x_libraries=NONE
1218
1219# Installation directory options.
1220# These are left unexpanded so users can "make install exec_prefix=/foo"
1221# and all the variables that are supposed to be based on exec_prefix
1222# by default will actually change.
1223# Use braces instead of parens because sh, perl, etc. also accept them.
1224# (The list follows the same order as the GNU Coding Standards.)
1225bindir='${exec_prefix}/bin'
1226sbindir='${exec_prefix}/sbin'
1227libexecdir='${exec_prefix}/libexec'
1228datarootdir='${prefix}/share'
1229datadir='${datarootdir}'
1230sysconfdir='${prefix}/etc'
1231sharedstatedir='${prefix}/com'
1232localstatedir='${prefix}/var'
1233includedir='${prefix}/include'
1234oldincludedir='/usr/include'
1235docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1236infodir='${datarootdir}/info'
1237htmldir='${docdir}'
1238dvidir='${docdir}'
1239pdfdir='${docdir}'
1240psdir='${docdir}'
1241libdir='${exec_prefix}/lib'
1242localedir='${datarootdir}/locale'
1243mandir='${datarootdir}/man'
1244
1245ac_prev=
1246ac_dashdash=
1247for ac_option
1248do
1249 # If the previous option needs an argument, assign it.
1250 if test -n "$ac_prev"; then
1251 eval $ac_prev=\$ac_option
1252 ac_prev=
1253 continue
1254 fi
1255
1256 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001257 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1258 *=) ac_optarg= ;;
1259 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001260 esac
1261
1262 # Accept the important Cygnus configure options, so we can diagnose typos.
1263
1264 case $ac_dashdash$ac_option in
1265 --)
1266 ac_dashdash=yes ;;
1267
1268 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1269 ac_prev=bindir ;;
1270 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1271 bindir=$ac_optarg ;;
1272
1273 -build | --build | --buil | --bui | --bu)
1274 ac_prev=build_alias ;;
1275 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1276 build_alias=$ac_optarg ;;
1277
1278 -cache-file | --cache-file | --cache-fil | --cache-fi \
1279 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1280 ac_prev=cache_file ;;
1281 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1282 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1283 cache_file=$ac_optarg ;;
1284
1285 --config-cache | -C)
1286 cache_file=config.cache ;;
1287
1288 -datadir | --datadir | --datadi | --datad)
1289 ac_prev=datadir ;;
1290 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1291 datadir=$ac_optarg ;;
1292
1293 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1294 | --dataroo | --dataro | --datar)
1295 ac_prev=datarootdir ;;
1296 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1297 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1298 datarootdir=$ac_optarg ;;
1299
1300 -disable-* | --disable-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001304 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309"enable_$ac_useropt"
1310"*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval enable_$ac_useropt=no ;;
1315
1316 -docdir | --docdir | --docdi | --doc | --do)
1317 ac_prev=docdir ;;
1318 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1319 docdir=$ac_optarg ;;
1320
1321 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1322 ac_prev=dvidir ;;
1323 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1324 dvidir=$ac_optarg ;;
1325
1326 -enable-* | --enable-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001330 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335"enable_$ac_useropt"
1336"*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval enable_$ac_useropt=\$ac_optarg ;;
1341
1342 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1343 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1344 | --exec | --exe | --ex)
1345 ac_prev=exec_prefix ;;
1346 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1347 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1348 | --exec=* | --exe=* | --ex=*)
1349 exec_prefix=$ac_optarg ;;
1350
1351 -gas | --gas | --ga | --g)
1352 # Obsolete; use --with-gas.
1353 with_gas=yes ;;
1354
1355 -help | --help | --hel | --he | -h)
1356 ac_init_help=long ;;
1357 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1358 ac_init_help=recursive ;;
1359 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1360 ac_init_help=short ;;
1361
1362 -host | --host | --hos | --ho)
1363 ac_prev=host_alias ;;
1364 -host=* | --host=* | --hos=* | --ho=*)
1365 host_alias=$ac_optarg ;;
1366
1367 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1368 ac_prev=htmldir ;;
1369 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1370 | --ht=*)
1371 htmldir=$ac_optarg ;;
1372
1373 -includedir | --includedir | --includedi | --included | --include \
1374 | --includ | --inclu | --incl | --inc)
1375 ac_prev=includedir ;;
1376 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1377 | --includ=* | --inclu=* | --incl=* | --inc=*)
1378 includedir=$ac_optarg ;;
1379
1380 -infodir | --infodir | --infodi | --infod | --info | --inf)
1381 ac_prev=infodir ;;
1382 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1383 infodir=$ac_optarg ;;
1384
1385 -libdir | --libdir | --libdi | --libd)
1386 ac_prev=libdir ;;
1387 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1388 libdir=$ac_optarg ;;
1389
1390 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1391 | --libexe | --libex | --libe)
1392 ac_prev=libexecdir ;;
1393 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1394 | --libexe=* | --libex=* | --libe=*)
1395 libexecdir=$ac_optarg ;;
1396
1397 -localedir | --localedir | --localedi | --localed | --locale)
1398 ac_prev=localedir ;;
1399 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1400 localedir=$ac_optarg ;;
1401
1402 -localstatedir | --localstatedir | --localstatedi | --localstated \
1403 | --localstate | --localstat | --localsta | --localst | --locals)
1404 ac_prev=localstatedir ;;
1405 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1406 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1407 localstatedir=$ac_optarg ;;
1408
1409 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1410 ac_prev=mandir ;;
1411 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1412 mandir=$ac_optarg ;;
1413
1414 -nfp | --nfp | --nf)
1415 # Obsolete; use --without-fp.
1416 with_fp=no ;;
1417
1418 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1419 | --no-cr | --no-c | -n)
1420 no_create=yes ;;
1421
1422 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1423 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1424 no_recursion=yes ;;
1425
1426 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1427 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1428 | --oldin | --oldi | --old | --ol | --o)
1429 ac_prev=oldincludedir ;;
1430 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1431 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1432 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1433 oldincludedir=$ac_optarg ;;
1434
1435 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1436 ac_prev=prefix ;;
1437 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1438 prefix=$ac_optarg ;;
1439
1440 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1441 | --program-pre | --program-pr | --program-p)
1442 ac_prev=program_prefix ;;
1443 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1444 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1445 program_prefix=$ac_optarg ;;
1446
1447 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1448 | --program-suf | --program-su | --program-s)
1449 ac_prev=program_suffix ;;
1450 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1451 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1452 program_suffix=$ac_optarg ;;
1453
1454 -program-transform-name | --program-transform-name \
1455 | --program-transform-nam | --program-transform-na \
1456 | --program-transform-n | --program-transform- \
1457 | --program-transform | --program-transfor \
1458 | --program-transfo | --program-transf \
1459 | --program-trans | --program-tran \
1460 | --progr-tra | --program-tr | --program-t)
1461 ac_prev=program_transform_name ;;
1462 -program-transform-name=* | --program-transform-name=* \
1463 | --program-transform-nam=* | --program-transform-na=* \
1464 | --program-transform-n=* | --program-transform-=* \
1465 | --program-transform=* | --program-transfor=* \
1466 | --program-transfo=* | --program-transf=* \
1467 | --program-trans=* | --program-tran=* \
1468 | --progr-tra=* | --program-tr=* | --program-t=*)
1469 program_transform_name=$ac_optarg ;;
1470
1471 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1472 ac_prev=pdfdir ;;
1473 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1474 pdfdir=$ac_optarg ;;
1475
1476 -psdir | --psdir | --psdi | --psd | --ps)
1477 ac_prev=psdir ;;
1478 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1479 psdir=$ac_optarg ;;
1480
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1483 silent=yes ;;
1484
1485 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1486 ac_prev=sbindir ;;
1487 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1488 | --sbi=* | --sb=*)
1489 sbindir=$ac_optarg ;;
1490
1491 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1492 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1493 | --sharedst | --shareds | --shared | --share | --shar \
1494 | --sha | --sh)
1495 ac_prev=sharedstatedir ;;
1496 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1497 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1498 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1499 | --sha=* | --sh=*)
1500 sharedstatedir=$ac_optarg ;;
1501
1502 -site | --site | --sit)
1503 ac_prev=site ;;
1504 -site=* | --site=* | --sit=*)
1505 site=$ac_optarg ;;
1506
1507 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1508 ac_prev=srcdir ;;
1509 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1510 srcdir=$ac_optarg ;;
1511
1512 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1513 | --syscon | --sysco | --sysc | --sys | --sy)
1514 ac_prev=sysconfdir ;;
1515 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1516 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1517 sysconfdir=$ac_optarg ;;
1518
1519 -target | --target | --targe | --targ | --tar | --ta | --t)
1520 ac_prev=target_alias ;;
1521 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1522 target_alias=$ac_optarg ;;
1523
1524 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1525 verbose=yes ;;
1526
1527 -version | --version | --versio | --versi | --vers | -V)
1528 ac_init_version=: ;;
1529
1530 -with-* | --with-*)
1531 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1532 # Reject names that are not valid shell variable names.
1533 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001534 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001535 ac_useropt_orig=$ac_useropt
1536 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1537 case $ac_user_opts in
1538 *"
1539"with_$ac_useropt"
1540"*) ;;
1541 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1542 ac_unrecognized_sep=', ';;
1543 esac
1544 eval with_$ac_useropt=\$ac_optarg ;;
1545
1546 -without-* | --without-*)
1547 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1548 # Reject names that are not valid shell variable names.
1549 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001550 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001551 ac_useropt_orig=$ac_useropt
1552 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1553 case $ac_user_opts in
1554 *"
1555"with_$ac_useropt"
1556"*) ;;
1557 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1558 ac_unrecognized_sep=', ';;
1559 esac
1560 eval with_$ac_useropt=no ;;
1561
1562 --x)
1563 # Obsolete; use --with-x.
1564 with_x=yes ;;
1565
1566 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1567 | --x-incl | --x-inc | --x-in | --x-i)
1568 ac_prev=x_includes ;;
1569 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1570 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1571 x_includes=$ac_optarg ;;
1572
1573 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1574 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1575 ac_prev=x_libraries ;;
1576 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1577 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1578 x_libraries=$ac_optarg ;;
1579
cristy98dddb52010-11-04 00:30:15 +00001580 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1581Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001582 ;;
1583
1584 *=*)
1585 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1586 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001587 case $ac_envvar in #(
1588 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001590 esac
cristy3ed852e2009-09-05 21:47:34 +00001591 eval $ac_envvar=\$ac_optarg
1592 export $ac_envvar ;;
1593
1594 *)
1595 # FIXME: should be removed in autoconf 3.0.
1596 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1597 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1598 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001599 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001600 ;;
1601
1602 esac
1603done
1604
1605if test -n "$ac_prev"; then
1606 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001607 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001608fi
1609
1610if test -n "$ac_unrecognized_opts"; then
1611 case $enable_option_checking in
1612 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001613 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001614 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1615 esac
1616fi
1617
1618# Check all directory arguments for consistency.
1619for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1620 datadir sysconfdir sharedstatedir localstatedir includedir \
1621 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1622 libdir localedir mandir
1623do
1624 eval ac_val=\$$ac_var
1625 # Remove trailing slashes.
1626 case $ac_val in
1627 */ )
1628 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1629 eval $ac_var=\$ac_val;;
1630 esac
1631 # Be sure to have absolute directory names.
1632 case $ac_val in
1633 [\\/$]* | ?:[\\/]* ) continue;;
1634 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1635 esac
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001637done
1638
1639# There might be people who depend on the old broken behavior: `$host'
1640# used to hold the argument of --host etc.
1641# FIXME: To remove some day.
1642build=$build_alias
1643host=$host_alias
1644target=$target_alias
1645
1646# FIXME: To remove some day.
1647if test "x$host_alias" != x; then
1648 if test "x$build_alias" = x; then
1649 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001650 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1651 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001652 elif test "x$build_alias" != "x$host_alias"; then
1653 cross_compiling=yes
1654 fi
1655fi
1656
1657ac_tool_prefix=
1658test -n "$host_alias" && ac_tool_prefix=$host_alias-
1659
1660test "$silent" = yes && exec 6>/dev/null
1661
1662
1663ac_pwd=`pwd` && test -n "$ac_pwd" &&
1664ac_ls_di=`ls -di .` &&
1665ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001667test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001668 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001669
1670
1671# Find the source files, if location was not specified.
1672if test -z "$srcdir"; then
1673 ac_srcdir_defaulted=yes
1674 # Try the directory containing this script, then the parent directory.
1675 ac_confdir=`$as_dirname -- "$as_myself" ||
1676$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1677 X"$as_myself" : 'X\(//\)[^/]' \| \
1678 X"$as_myself" : 'X\(//\)$' \| \
1679 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1680$as_echo X"$as_myself" |
1681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1682 s//\1/
1683 q
1684 }
1685 /^X\(\/\/\)[^/].*/{
1686 s//\1/
1687 q
1688 }
1689 /^X\(\/\/\)$/{
1690 s//\1/
1691 q
1692 }
1693 /^X\(\/\).*/{
1694 s//\1/
1695 q
1696 }
1697 s/.*/./; q'`
1698 srcdir=$ac_confdir
1699 if test ! -r "$srcdir/$ac_unique_file"; then
1700 srcdir=..
1701 fi
1702else
1703 ac_srcdir_defaulted=no
1704fi
1705if test ! -r "$srcdir/$ac_unique_file"; then
1706 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001707 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001708fi
1709ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1710ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001711 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001712 pwd)`
1713# When building in place, set srcdir=.
1714if test "$ac_abs_confdir" = "$ac_pwd"; then
1715 srcdir=.
1716fi
1717# Remove unnecessary trailing slashes from srcdir.
1718# Double slashes in file names in object file debugging info
1719# mess up M-x gdb in Emacs.
1720case $srcdir in
1721*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1722esac
1723for ac_var in $ac_precious_vars; do
1724 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1725 eval ac_env_${ac_var}_value=\$${ac_var}
1726 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1727 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1728done
1729
1730#
1731# Report the --help message.
1732#
1733if test "$ac_init_help" = "long"; then
1734 # Omit some internal or obsolete options to make the list less imposing.
1735 # This message is too long to be a string in the A/UX 3.1 sh.
1736 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001737\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001738
1739Usage: $0 [OPTION]... [VAR=VALUE]...
1740
1741To assign environment variables (e.g., CC, CFLAGS...), specify them as
1742VAR=VALUE. See below for descriptions of some of the useful variables.
1743
1744Defaults for the options are specified in brackets.
1745
1746Configuration:
1747 -h, --help display this help and exit
1748 --help=short display options specific to this package
1749 --help=recursive display the short help of all the included packages
1750 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001751 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001752 --cache-file=FILE cache test results in FILE [disabled]
1753 -C, --config-cache alias for \`--cache-file=config.cache'
1754 -n, --no-create do not create output files
1755 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1756
1757Installation directories:
1758 --prefix=PREFIX install architecture-independent files in PREFIX
1759 [$ac_default_prefix]
1760 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1761 [PREFIX]
1762
1763By default, \`make install' will install all the files in
1764\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1765an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1766for instance \`--prefix=\$HOME'.
1767
1768For better control, use the options below.
1769
1770Fine tuning of the installation directories:
1771 --bindir=DIR user executables [EPREFIX/bin]
1772 --sbindir=DIR system admin executables [EPREFIX/sbin]
1773 --libexecdir=DIR program executables [EPREFIX/libexec]
1774 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1775 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1776 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1777 --libdir=DIR object code libraries [EPREFIX/lib]
1778 --includedir=DIR C header files [PREFIX/include]
1779 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1780 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1781 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1782 --infodir=DIR info documentation [DATAROOTDIR/info]
1783 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1784 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001785 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001786 --htmldir=DIR html documentation [DOCDIR]
1787 --dvidir=DIR dvi documentation [DOCDIR]
1788 --pdfdir=DIR pdf documentation [DOCDIR]
1789 --psdir=DIR ps documentation [DOCDIR]
1790_ACEOF
1791
1792 cat <<\_ACEOF
1793
cristy73bd4a52010-10-05 11:24:23 +00001794Program names:
1795 --program-prefix=PREFIX prepend PREFIX to installed program names
1796 --program-suffix=SUFFIX append SUFFIX to installed program names
1797 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1798
cristy3ed852e2009-09-05 21:47:34 +00001799X features:
1800 --x-includes=DIR X include files are in DIR
1801 --x-libraries=DIR X library files are in DIR
1802
1803System types:
1804 --build=BUILD configure for building on BUILD [guessed]
1805 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1806 --target=TARGET configure for building compilers for TARGET [HOST]
1807_ACEOF
1808fi
1809
1810if test -n "$ac_init_help"; then
1811 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001812 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001813 esac
1814 cat <<\_ACEOF
1815
1816Optional Features:
1817 --disable-option-checking ignore unrecognized --enable/--with options
1818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001820 --enable-silent-rules less verbose build output (undo: `make V=1')
1821 --disable-silent-rules verbose build output (undo: `make V=0')
1822 --disable-dependency-tracking speeds up one-time build
1823 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001824 --bounds-checking enable run-time bounds-checking
1825 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001826 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001827 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001828 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001829 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001830 --enable-shared[=PKGS] build shared libraries [default=yes]
1831 --enable-static[=PKGS] build static libraries [default=yes]
1832 --enable-fast-install[=PKGS]
1833 optimize for fast installation [default=yes]
1834 --disable-libtool-lock avoid locking (might break parallel builds)
1835 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001836 --enable-delegate-build look for delegate libraries in build directory
1837 --disable-deprecated exclude deprecated methods in MagickCore and
1838 MagickWand API's
1839 --disable-installed Formally install ImageMagick under PREFIX
1840 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001841 --enable-zero-configuration
1842 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001843 zero-configuration ImageMagick
1844 --enable-hdri accurately represent the wide range of intensity
1845 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001846 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001847 --enable-maintainer-mode enable make rules and dependencies not useful
1848 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001849 --enable-ccmalloc enable 'ccmalloc' memory debug support
1850 --enable-efence enable 'efence' memory debug support
1851 --enable-prof enable 'prof' profiling support
1852 --enable-gprof enable 'gprof' profiling support
1853 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001854 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001855
1856Optional Packages:
1857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001859 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1860 --with-dmalloc use dmalloc, as in
1861 http://www.dmalloc.com/dmalloc.tar.gz
cristy670aa3c2011-11-03 00:54:00 +00001862 --includearch-dir=DIR ARCH specific include directory
1863 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001864 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001865 --with-pic try to use only PIC/non-PIC objects [default=use
1866 both]
cristyda16f162011-02-19 23:52:17 +00001867 --with-sysroot=DIR Search for dependent libraries within DIR
1868 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001869 --with-included-ltdl use the GNU ltdl sources included here
1870 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1871 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001872 --with-modules enable building dynamically loadable modules
1873 --with-method-prefix=PREFIX
1874 prefix MagickCore API methods
1875 --with-quantum-depth=DEPTH
1876 number of bits in a pixel quantum (default 16)
1877 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1878 memory)
1879 --with-frozenpaths freeze delegate paths
1880 --without-magick-plus-plus
1881 disable build/install of Magick++
1882 --with-perl enable build/install of PerlMagick
1883 --with-perl-options=OPTIONS
1884 options to pass on command-line when generating
1885 PerlMagick's build file
1886 --with-umem enable umem memory allocation library support
1887 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1888 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001889 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001890 --without-zlib disable ZLIB support
1891 --with-autotrace enable autotrace support
1892 --without-dps disable Display Postscript support
1893 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001894 --with-dejavu-font-dir=DIR
1895 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-fftw disable FFTW support
1897 --without-fpx disable FlashPIX support
1898 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001899 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-gslib enable Ghostscript library support
1901 --with-fontpath=DIR prepend to default font search path
1902 --with-gs-font-dir=DIR Ghostscript font directory
1903 --without-gvc disable GVC support
1904 --without-jbig disable JBIG support
1905 --without-jpeg disable JPEG support
1906 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001907 --without-lcms disable lcms (v1.1X) support
1908 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001909 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001910 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001912 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-png disable PNG support
1914 --without-rsvg disable RSVG support
1915 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001916 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-windows-font-dir=DIR
1918 directory containing MS-Windows fonts
1919 --without-wmf disable WMF support
1920 --without-xml disable XML support
1921
1922Some influential environment variables:
1923 CC C compiler command
1924 CFLAGS C compiler flags
1925 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1926 nonstandard directory <lib dir>
1927 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001928 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001929 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001930 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001931 CXX C++ compiler command
1932 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001933 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001934 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001935 XMKMF Path to xmkmf, Makefile generator for X Window System
1936 AUTOTRACE_CFLAGS
1937 C compiler flags for AUTOTRACE, overriding pkg-config
1938 AUTOTRACE_LIBS
1939 linker flags for AUTOTRACE, overriding pkg-config
1940 FONTCONFIG_CFLAGS
1941 C compiler flags for FONTCONFIG, overriding pkg-config
1942 FONTCONFIG_LIBS
1943 linker flags for FONTCONFIG, overriding pkg-config
1944 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1945 GVC_LIBS linker flags for GVC, overriding pkg-config
1946 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1947 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001948 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1949 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001950 OPENEXR_CFLAGS
1951 C compiler flags for OPENEXR, overriding pkg-config
1952 OPENEXR_LIBS
1953 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001954 PANGO_CFLAGS
1955 C compiler flags for PANGO, overriding pkg-config
1956 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001957 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1958 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1959 CAIRO_SVG_CFLAGS
1960 C compiler flags for CAIRO_SVG, overriding pkg-config
1961 CAIRO_SVG_LIBS
1962 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001963
1964Use these variables to override the choices made by `configure' or to help
1965it to find libraries and programs with nonstandard names/locations.
1966
1967Report bugs to <http://www.imagemagick.org>.
1968_ACEOF
1969ac_status=$?
1970fi
1971
1972if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1977 continue
1978 ac_builddir=.
1979
1980case "$ac_dir" in
1981.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982*)
1983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1989 esac ;;
1990esac
1991ac_abs_top_builddir=$ac_pwd
1992ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993# for backward compatibility:
1994ac_top_builddir=$ac_top_build_prefix
1995
1996case $srcdir in
1997 .) # We are building in place.
1998 ac_srcdir=.
1999 ac_top_srcdir=$ac_top_builddir_sub
2000 ac_abs_top_srcdir=$ac_pwd ;;
2001 [\\/]* | ?:[\\/]* ) # Absolute name.
2002 ac_srcdir=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir=$srcdir
2004 ac_abs_top_srcdir=$srcdir ;;
2005 *) # Relative name.
2006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2009esac
2010ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2011
2012 cd "$ac_dir" || { ac_status=$?; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2015 echo &&
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2020 else
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2022 fi || ac_status=$?
2023 cd "$ac_pwd" || { ac_status=$?; break; }
2024 done
2025fi
2026
2027test -n "$ac_init_help" && exit $ac_status
2028if $ac_init_version; then
2029 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002030ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002031generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002032
cristy98dddb52010-11-04 00:30:15 +00002033Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002034This configure script is free software; the Free Software Foundation
2035gives unlimited permission to copy, distribute and modify it.
2036_ACEOF
2037 exit
2038fi
cristy8b350f62009-11-15 23:12:43 +00002039
2040## ------------------------ ##
2041## Autoconf initialization. ##
2042## ------------------------ ##
2043
2044# ac_fn_c_try_compile LINENO
2045# --------------------------
2046# Try to compile conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_c_try_compile ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext
2051 if { { ac_try="$ac_compile"
2052case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2070 ac_retval=0
2071else
2072 $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076fi
cristyda16f162011-02-19 23:52:17 +00002077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002078 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002079
2080} # ac_fn_c_try_compile
2081
cristy95646052009-11-28 23:05:30 +00002082# ac_fn_c_try_cpp LINENO
2083# ----------------------
2084# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085ac_fn_c_try_cpp ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094$as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2101 fi
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002103 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 }; then :
2107 ac_retval=0
2108else
2109 $as_echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 ac_retval=1
2113fi
cristyda16f162011-02-19 23:52:17 +00002114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002115 as_fn_set_status $ac_retval
2116
2117} # ac_fn_c_try_cpp
2118
cristy8b350f62009-11-15 23:12:43 +00002119# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120# -------------------------------------------------------
2121# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122# the include files in INCLUDES and setting the cache variable VAR
2123# accordingly.
2124ac_fn_c_check_header_mongrel ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002127 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002130if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002131 $as_echo_n "(cached) " >&6
2132fi
2133eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135$as_echo "$ac_res" >&6; }
2136else
2137 # Is the header compilable?
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139$as_echo_n "checking $2 usability... " >&6; }
2140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$4
2143#include <$2>
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_header_compiler=yes
2147else
2148 ac_header_compiler=no
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152$as_echo "$ac_header_compiler" >&6; }
2153
2154# Is the header present?
2155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156$as_echo_n "checking $2 presence... " >&6; }
2157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159#include <$2>
2160_ACEOF
2161if ac_fn_c_try_cpp "$LINENO"; then :
2162 ac_header_preproc=yes
2163else
2164 ac_header_preproc=no
2165fi
cristyda16f162011-02-19 23:52:17 +00002166rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168$as_echo "$ac_header_preproc" >&6; }
2169
2170# So? What about this header?
2171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 yes:no: )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ;;
2178 no:yes:* )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002189( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002190## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002191## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002192 ) | sed "s/^/$as_me: WARNING: /" >&2
2193 ;;
2194esac
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002197if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002198 $as_echo_n "(cached) " >&6
2199else
2200 eval "$3=\$ac_header_compiler"
2201fi
2202eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204$as_echo "$ac_res" >&6; }
2205fi
cristyda16f162011-02-19 23:52:17 +00002206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002207
2208} # ac_fn_c_check_header_mongrel
2209
2210# ac_fn_c_try_run LINENO
2211# ----------------------
2212# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2213# that executables *can* be run.
2214ac_fn_c_try_run ()
2215{
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 if { { ac_try="$ac_link"
2218case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221esac
2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223$as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_link") 2>&5
2225 ac_status=$?
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2228 { { case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_try") 2>&5
2235 ac_status=$?
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; }; }; then :
2238 ac_retval=0
2239else
2240 $as_echo "$as_me: program exited with status $ac_status" >&5
2241 $as_echo "$as_me: failed program was:" >&5
2242sed 's/^/| /' conftest.$ac_ext >&5
2243
2244 ac_retval=$ac_status
2245fi
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002248 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002249
2250} # ac_fn_c_try_run
2251
2252# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2253# -------------------------------------------------------
2254# Tests whether HEADER exists and can be compiled using the include files in
2255# INCLUDES, setting the cache variable VAR accordingly.
2256ac_fn_c_check_header_compile ()
2257{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002261if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002262 $as_echo_n "(cached) " >&6
2263else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h. */
2266$4
2267#include <$2>
2268_ACEOF
2269if ac_fn_c_try_compile "$LINENO"; then :
2270 eval "$3=yes"
2271else
2272 eval "$3=no"
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275fi
2276eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002280
2281} # ac_fn_c_check_header_compile
2282
cristya0b81c32010-01-22 02:54:33 +00002283# ac_fn_cxx_try_compile LINENO
2284# ----------------------------
2285# Try to compile conftest.$ac_ext, and return whether this succeeded.
2286ac_fn_cxx_try_compile ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext
2290 if { { ac_try="$ac_compile"
2291case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296$as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_compile") 2>conftest.err
2298 ac_status=$?
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2303 fi
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_cxx_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest.$ac_objext; then :
2309 ac_retval=0
2310else
2311 $as_echo "$as_me: failed program was:" >&5
2312sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 ac_retval=1
2315fi
cristyda16f162011-02-19 23:52:17 +00002316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002317 as_fn_set_status $ac_retval
2318
2319} # ac_fn_cxx_try_compile
2320
cristy8b350f62009-11-15 23:12:43 +00002321# ac_fn_c_try_link LINENO
2322# -----------------------
2323# Try to link conftest.$ac_ext, and return whether this succeeded.
2324ac_fn_c_try_link ()
2325{
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 rm -f conftest.$ac_objext conftest$ac_exeext
2328 if { { ac_try="$ac_link"
2329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
2333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334$as_echo "$ac_try_echo"; } >&5
2335 (eval "$ac_link") 2>conftest.err
2336 ac_status=$?
2337 if test -s conftest.err; then
2338 grep -v '^ *+' conftest.err >conftest.er1
2339 cat conftest.er1 >&5
2340 mv -f conftest.er1 conftest.err
2341 fi
2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343 test $ac_status = 0; } && {
2344 test -z "$ac_c_werror_flag" ||
2345 test ! -s conftest.err
2346 } && test -s conftest$ac_exeext && {
2347 test "$cross_compiling" = yes ||
2348 $as_test_x conftest$ac_exeext
2349 }; then :
2350 ac_retval=0
2351else
2352 $as_echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 ac_retval=1
2356fi
2357 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2358 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2359 # interfere with the next link command; also delete a directory that is
2360 # left behind by Apple's compiler. We do this before executing the actions.
2361 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002363 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002364
2365} # ac_fn_c_try_link
2366
cristy73bd4a52010-10-05 11:24:23 +00002367# ac_fn_c_check_func LINENO FUNC VAR
2368# ----------------------------------
2369# Tests whether FUNC exists, setting the cache variable VAR accordingly
2370ac_fn_c_check_func ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002375if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002376 $as_echo_n "(cached) " >&6
2377else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2382#define $2 innocuous_$2
2383
2384/* System header to define __stub macros and hopefully few prototypes,
2385 which can conflict with char $2 (); below.
2386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2387 <limits.h> exists even on freestanding compilers. */
2388
2389#ifdef __STDC__
2390# include <limits.h>
2391#else
2392# include <assert.h>
2393#endif
2394
2395#undef $2
2396
2397/* Override any GCC internal prototype to avoid an error.
2398 Use char because int might match the return type of a GCC
2399 builtin and then its argument prototype would still apply. */
2400#ifdef __cplusplus
2401extern "C"
2402#endif
2403char $2 ();
2404/* The GNU C library defines this for functions which it implements
2405 to always fail with ENOSYS. Some functions are actually named
2406 something starting with __ and the normal name is an alias. */
2407#if defined __stub_$2 || defined __stub___$2
2408choke me
2409#endif
2410
2411int
2412main ()
2413{
2414return $2 ();
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419if ac_fn_c_try_link "$LINENO"; then :
2420 eval "$3=yes"
2421else
2422 eval "$3=no"
2423fi
2424rm -f core conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426fi
2427eval ac_res=\$$3
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002431
2432} # ac_fn_c_check_func
2433
2434# ac_fn_cxx_try_cpp LINENO
2435# ------------------------
2436# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437ac_fn_cxx_try_cpp ()
2438{
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 if { { ac_try="$ac_cpp conftest.$ac_ext"
2441case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446$as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448 ac_status=$?
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2453 fi
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002455 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002456 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2457 test ! -s conftest.err
2458 }; then :
2459 ac_retval=0
2460else
2461 $as_echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 ac_retval=1
2465fi
cristyda16f162011-02-19 23:52:17 +00002466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002467 as_fn_set_status $ac_retval
2468
2469} # ac_fn_cxx_try_cpp
2470
2471# ac_fn_cxx_try_link LINENO
2472# -------------------------
2473# Try to link conftest.$ac_ext, and return whether this succeeded.
2474ac_fn_cxx_try_link ()
2475{
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 rm -f conftest.$ac_objext conftest$ac_exeext
2478 if { { ac_try="$ac_link"
2479case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482esac
2483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484$as_echo "$ac_try_echo"; } >&5
2485 (eval "$ac_link") 2>conftest.err
2486 ac_status=$?
2487 if test -s conftest.err; then
2488 grep -v '^ *+' conftest.err >conftest.er1
2489 cat conftest.er1 >&5
2490 mv -f conftest.er1 conftest.err
2491 fi
2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493 test $ac_status = 0; } && {
2494 test -z "$ac_cxx_werror_flag" ||
2495 test ! -s conftest.err
2496 } && test -s conftest$ac_exeext && {
2497 test "$cross_compiling" = yes ||
2498 $as_test_x conftest$ac_exeext
2499 }; then :
2500 ac_retval=0
2501else
2502 $as_echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_retval=1
2506fi
2507 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2508 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2509 # interfere with the next link command; also delete a directory that is
2510 # left behind by Apple's compiler. We do this before executing the actions.
2511 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002513 as_fn_set_status $ac_retval
2514
2515} # ac_fn_cxx_try_link
2516
cristy98dddb52010-11-04 00:30:15 +00002517# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2518# ---------------------------------------------
2519# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2520# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002521ac_fn_c_check_decl ()
2522{
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002524 as_decl_name=`echo $2|sed 's/ *(.*//'`
2525 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2527$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002528if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002529 $as_echo_n "(cached) " >&6
2530else
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h. */
2533$4
2534int
2535main ()
2536{
cristy98dddb52010-11-04 00:30:15 +00002537#ifndef $as_decl_name
2538#ifdef __cplusplus
2539 (void) $as_decl_use;
2540#else
2541 (void) $as_decl_name;
2542#endif
cristy73bd4a52010-10-05 11:24:23 +00002543#endif
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549if ac_fn_c_try_compile "$LINENO"; then :
2550 eval "$3=yes"
2551else
2552 eval "$3=no"
2553fi
2554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555fi
2556eval ac_res=\$$3
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002560
2561} # ac_fn_c_check_decl
2562
cristy8b350f62009-11-15 23:12:43 +00002563# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2564# -------------------------------------------
2565# Tests whether TYPE exists after having included INCLUDES, setting cache
2566# variable VAR accordingly.
2567ac_fn_c_check_type ()
2568{
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002572if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002573 $as_echo_n "(cached) " >&6
2574else
2575 eval "$3=no"
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h. */
2578$4
2579int
2580main ()
2581{
2582if (sizeof ($2))
2583 return 0;
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h. */
2591$4
2592int
2593main ()
2594{
2595if (sizeof (($2)))
2596 return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602
2603else
2604 eval "$3=yes"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002614
2615} # ac_fn_c_check_type
2616
cristy92703d82010-04-26 00:18:18 +00002617# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2618# ----------------------------------------------------
2619# Tries to find if the field MEMBER exists in type AGGR, after including
2620# INCLUDES, setting cache variable VAR accordingly.
2621ac_fn_c_check_member ()
2622{
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2625$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002626if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002627 $as_echo_n "(cached) " >&6
2628else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h. */
2631$5
2632int
2633main ()
2634{
2635static $2 ac_aggr;
2636if (ac_aggr.$3)
2637return 0;
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642if ac_fn_c_try_compile "$LINENO"; then :
2643 eval "$4=yes"
2644else
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h. */
2647$5
2648int
2649main ()
2650{
2651static $2 ac_aggr;
2652if (sizeof ac_aggr.$3)
2653return 0;
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659 eval "$4=yes"
2660else
2661 eval "$4=no"
2662fi
2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666fi
2667eval ac_res=\$$4
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002671
2672} # ac_fn_c_check_member
2673
cristy501c8042011-05-26 17:46:28 +00002674# ac_fn_c_find_intX_t LINENO BITS VAR
2675# -----------------------------------
2676# Finds a signed integer type with width BITS, setting cache variable VAR
2677# accordingly.
2678ac_fn_c_find_intX_t ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2682$as_echo_n "checking for int$2_t... " >&6; }
2683if eval \${$3+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685else
2686 eval "$3=no"
2687 # Order is important - never check a type that is potentially smaller
2688 # than half of the expected target width.
2689 for ac_type in int$2_t 'int' 'long int' \
2690 'long long int' 'short int' 'signed char'; do
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692/* end confdefs.h. */
2693$ac_includes_default
2694 enum { N = $2 / 2 - 1 };
2695int
2696main ()
2697{
2698static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2699test_array [0] = 0
2700
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705if ac_fn_c_try_compile "$LINENO"; then :
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707/* end confdefs.h. */
2708$ac_includes_default
2709 enum { N = $2 / 2 - 1 };
2710int
2711main ()
2712{
2713static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2714 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2715test_array [0] = 0
2716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721if ac_fn_c_try_compile "$LINENO"; then :
2722
2723else
2724 case $ac_type in #(
2725 int$2_t) :
2726 eval "$3=yes" ;; #(
2727 *) :
2728 eval "$3=\$ac_type" ;;
2729esac
2730fi
2731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732fi
2733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 if eval test \"x\$"$3"\" = x"no"; then :
2735
2736else
2737 break
2738fi
2739 done
2740fi
2741eval ac_res=\$$3
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743$as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745
2746} # ac_fn_c_find_intX_t
2747
2748# ac_fn_c_find_uintX_t LINENO BITS VAR
2749# ------------------------------------
2750# Finds an unsigned integer type with width BITS, setting cache variable VAR
2751# accordingly.
2752ac_fn_c_find_uintX_t ()
2753{
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2756$as_echo_n "checking for uint$2_t... " >&6; }
2757if eval \${$3+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759else
2760 eval "$3=no"
2761 # Order is important - never check a type that is potentially smaller
2762 # than half of the expected target width.
2763 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2764 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766/* end confdefs.h. */
2767$ac_includes_default
2768int
2769main ()
2770{
2771static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2772test_array [0] = 0
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778if ac_fn_c_try_compile "$LINENO"; then :
2779 case $ac_type in #(
2780 uint$2_t) :
2781 eval "$3=yes" ;; #(
2782 *) :
2783 eval "$3=\$ac_type" ;;
2784esac
2785fi
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 if eval test \"x\$"$3"\" = x"no"; then :
2788
2789else
2790 break
2791fi
2792 done
2793fi
2794eval ac_res=\$$3
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796$as_echo "$ac_res" >&6; }
2797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2798
2799} # ac_fn_c_find_uintX_t
2800
cristy8b350f62009-11-15 23:12:43 +00002801# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2802# --------------------------------------------
2803# Tries to find the compile-time value of EXPR in a program that includes
2804# INCLUDES, setting VAR accordingly. Returns whether the value could be
2805# computed
2806ac_fn_c_compute_int ()
2807{
2808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2809 if test "$cross_compiling" = yes; then
2810 # Depending upon the size, compute the lo and hi bounds.
2811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812/* end confdefs.h. */
2813$4
2814int
2815main ()
2816{
2817static int test_array [1 - 2 * !(($2) >= 0)];
2818test_array [0] = 0
2819
2820 ;
2821 return 0;
2822}
2823_ACEOF
2824if ac_fn_c_try_compile "$LINENO"; then :
2825 ac_lo=0 ac_mid=0
2826 while :; do
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h. */
2829$4
2830int
2831main ()
2832{
2833static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2834test_array [0] = 0
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840if ac_fn_c_try_compile "$LINENO"; then :
2841 ac_hi=$ac_mid; break
2842else
2843 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2844 if test $ac_lo -le $ac_mid; then
2845 ac_lo= ac_hi=
2846 break
2847 fi
2848 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2849fi
2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 done
2852else
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855$4
2856int
2857main ()
2858{
2859static int test_array [1 - 2 * !(($2) < 0)];
2860test_array [0] = 0
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866if ac_fn_c_try_compile "$LINENO"; then :
2867 ac_hi=-1 ac_mid=-1
2868 while :; do
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870/* end confdefs.h. */
2871$4
2872int
2873main ()
2874{
2875static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2876test_array [0] = 0
2877
2878 ;
2879 return 0;
2880}
2881_ACEOF
2882if ac_fn_c_try_compile "$LINENO"; then :
2883 ac_lo=$ac_mid; break
2884else
2885 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2886 if test $ac_mid -le $ac_hi; then
2887 ac_lo= ac_hi=
2888 break
2889 fi
2890 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2891fi
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 done
2894else
2895 ac_lo= ac_hi=
2896fi
2897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900# Binary search between lo and hi bounds.
2901while test "x$ac_lo" != "x$ac_hi"; do
2902 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905$4
2906int
2907main ()
2908{
2909static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2910test_array [0] = 0
2911
2912 ;
2913 return 0;
2914}
2915_ACEOF
2916if ac_fn_c_try_compile "$LINENO"; then :
2917 ac_hi=$ac_mid
2918else
2919 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922done
2923case $ac_lo in #((
2924?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2925'') ac_retval=1 ;;
2926esac
2927 else
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h. */
2930$4
2931static long int longval () { return $2; }
2932static unsigned long int ulongval () { return $2; }
2933#include <stdio.h>
2934#include <stdlib.h>
2935int
2936main ()
2937{
2938
2939 FILE *f = fopen ("conftest.val", "w");
2940 if (! f)
2941 return 1;
2942 if (($2) < 0)
2943 {
2944 long int i = longval ();
2945 if (i != ($2))
2946 return 1;
2947 fprintf (f, "%ld", i);
2948 }
2949 else
2950 {
2951 unsigned long int i = ulongval ();
2952 if (i != ($2))
2953 return 1;
2954 fprintf (f, "%lu", i);
2955 }
2956 /* Do not output a trailing newline, as this causes \r\n confusion
2957 on some platforms. */
2958 return ferror (f) || fclose (f) != 0;
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_run "$LINENO"; then :
2965 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2966else
2967 ac_retval=1
2968fi
2969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2970 conftest.$ac_objext conftest.beam conftest.$ac_ext
2971rm -f conftest.val
2972
2973 fi
cristyda16f162011-02-19 23:52:17 +00002974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002975 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002976
2977} # ac_fn_c_compute_int
2978
2979# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2980# ---------------------------------------------------------
2981# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2982# the include files in INCLUDES and setting the cache variable VAR
2983# accordingly.
2984ac_fn_cxx_check_header_mongrel ()
2985{
2986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002987 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2989$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002990if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002991 $as_echo_n "(cached) " >&6
2992fi
2993eval ac_res=\$$3
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2995$as_echo "$ac_res" >&6; }
2996else
2997 # Is the header compilable?
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2999$as_echo_n "checking $2 usability... " >&6; }
3000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h. */
3002$4
3003#include <$2>
3004_ACEOF
3005if ac_fn_cxx_try_compile "$LINENO"; then :
3006 ac_header_compiler=yes
3007else
3008 ac_header_compiler=no
3009fi
3010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3012$as_echo "$ac_header_compiler" >&6; }
3013
3014# Is the header present?
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3016$as_echo_n "checking $2 presence... " >&6; }
3017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h. */
3019#include <$2>
3020_ACEOF
3021if ac_fn_cxx_try_cpp "$LINENO"; then :
3022 ac_header_preproc=yes
3023else
3024 ac_header_preproc=no
3025fi
cristyda16f162011-02-19 23:52:17 +00003026rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3028$as_echo "$ac_header_preproc" >&6; }
3029
3030# So? What about this header?
3031case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3032 yes:no: )
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3034$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3036$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3037 ;;
3038 no:yes:* )
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3040$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3042$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3044$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3046$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3048$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003049( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003050## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003051## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003052 ) | sed "s/^/$as_me: WARNING: /" >&2
3053 ;;
3054esac
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3056$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003057if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003058 $as_echo_n "(cached) " >&6
3059else
3060 eval "$3=\$ac_header_compiler"
3061fi
3062eval ac_res=\$$3
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3064$as_echo "$ac_res" >&6; }
3065fi
cristyda16f162011-02-19 23:52:17 +00003066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003067
3068} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003069cat >config.log <<_ACEOF
3070This file contains any messages produced by compilers while
3071running configure, to aid debugging if configure makes a mistake.
3072
cristy29eb34e2011-10-16 00:46:08 +00003073It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003074generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003075
3076 $ $0 $@
3077
3078_ACEOF
3079exec 5>>config.log
3080{
3081cat <<_ASUNAME
3082## --------- ##
3083## Platform. ##
3084## --------- ##
3085
3086hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3087uname -m = `(uname -m) 2>/dev/null || echo unknown`
3088uname -r = `(uname -r) 2>/dev/null || echo unknown`
3089uname -s = `(uname -s) 2>/dev/null || echo unknown`
3090uname -v = `(uname -v) 2>/dev/null || echo unknown`
3091
3092/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3093/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3094
3095/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3096/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3097/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3098/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3099/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3100/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3101/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3102
3103_ASUNAME
3104
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003110 $as_echo "PATH: $as_dir"
3111 done
cristy3ed852e2009-09-05 21:47:34 +00003112IFS=$as_save_IFS
3113
3114} >&5
3115
3116cat >&5 <<_ACEOF
3117
3118
3119## ----------- ##
3120## Core tests. ##
3121## ----------- ##
3122
3123_ACEOF
3124
3125
3126# Keep a trace of the command line.
3127# Strip out --no-create and --no-recursion so they do not pile up.
3128# Strip out --silent because we don't want to record it for future runs.
3129# Also quote any args containing shell meta-characters.
3130# Make two passes to allow for proper duplicate-argument suppression.
3131ac_configure_args=
3132ac_configure_args0=
3133ac_configure_args1=
3134ac_must_keep_next=false
3135for ac_pass in 1 2
3136do
3137 for ac_arg
3138 do
3139 case $ac_arg in
3140 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3142 | -silent | --silent | --silen | --sile | --sil)
3143 continue ;;
3144 *\'*)
3145 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3146 esac
3147 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003148 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003149 2)
cristy8b350f62009-11-15 23:12:43 +00003150 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003151 if test $ac_must_keep_next = true; then
3152 ac_must_keep_next=false # Got value, back to normal.
3153 else
3154 case $ac_arg in
3155 *=* | --config-cache | -C | -disable-* | --disable-* \
3156 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3157 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3158 | -with-* | --with-* | -without-* | --without-* | --x)
3159 case "$ac_configure_args0 " in
3160 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3161 esac
3162 ;;
3163 -* ) ac_must_keep_next=true ;;
3164 esac
3165 fi
cristy8b350f62009-11-15 23:12:43 +00003166 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003167 ;;
3168 esac
3169 done
3170done
cristy8b350f62009-11-15 23:12:43 +00003171{ ac_configure_args0=; unset ac_configure_args0;}
3172{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003173
3174# When interrupted or exit'd, cleanup temporary files, and complete
3175# config.log. We remove comments because anyway the quotes in there
3176# would cause problems or look ugly.
3177# WARNING: Use '\'' to represent an apostrophe within the trap.
3178# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3179trap 'exit_status=$?
3180 # Save into config.log some information that might help in debugging.
3181 {
3182 echo
3183
cristy98dddb52010-11-04 00:30:15 +00003184 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003185## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003186## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003187 echo
3188 # The following way of writing the cache mishandles newlines in values,
3189(
3190 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3191 eval ac_val=\$$ac_var
3192 case $ac_val in #(
3193 *${as_nl}*)
3194 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003195 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003196$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3197 esac
3198 case $ac_var in #(
3199 _ | IFS | as_nl) ;; #(
3200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003201 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003202 esac ;;
3203 esac
3204 done
3205 (set) 2>&1 |
3206 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3207 *${as_nl}ac_space=\ *)
3208 sed -n \
3209 "s/'\''/'\''\\\\'\'''\''/g;
3210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3211 ;; #(
3212 *)
3213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3214 ;;
3215 esac |
3216 sort
3217)
3218 echo
3219
cristy98dddb52010-11-04 00:30:15 +00003220 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003221## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003222## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003223 echo
3224 for ac_var in $ac_subst_vars
3225 do
3226 eval ac_val=\$$ac_var
3227 case $ac_val in
3228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3229 esac
3230 $as_echo "$ac_var='\''$ac_val'\''"
3231 done | sort
3232 echo
3233
3234 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003235 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003236## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003237## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003238 echo
3239 for ac_var in $ac_subst_files
3240 do
3241 eval ac_val=\$$ac_var
3242 case $ac_val in
3243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3244 esac
3245 $as_echo "$ac_var='\''$ac_val'\''"
3246 done | sort
3247 echo
3248 fi
3249
3250 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003251 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003252## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003253## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003254 echo
3255 cat confdefs.h
3256 echo
3257 fi
3258 test "$ac_signal" != 0 &&
3259 $as_echo "$as_me: caught signal $ac_signal"
3260 $as_echo "$as_me: exit $exit_status"
3261 } >&5
3262 rm -f core *.core core.conftest.* &&
3263 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3264 exit $exit_status
3265' 0
3266for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003267 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003268done
3269ac_signal=0
3270
3271# confdefs.h avoids OS command line length limits that DEFS can exceed.
3272rm -f -r conftest* confdefs.h
3273
cristy8b350f62009-11-15 23:12:43 +00003274$as_echo "/* confdefs.h */" > confdefs.h
3275
cristy3ed852e2009-09-05 21:47:34 +00003276# Predefined preprocessor variables.
3277
3278cat >>confdefs.h <<_ACEOF
3279#define PACKAGE_NAME "$PACKAGE_NAME"
3280_ACEOF
3281
cristy3ed852e2009-09-05 21:47:34 +00003282cat >>confdefs.h <<_ACEOF
3283#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3284_ACEOF
3285
cristy3ed852e2009-09-05 21:47:34 +00003286cat >>confdefs.h <<_ACEOF
3287#define PACKAGE_VERSION "$PACKAGE_VERSION"
3288_ACEOF
3289
cristy3ed852e2009-09-05 21:47:34 +00003290cat >>confdefs.h <<_ACEOF
3291#define PACKAGE_STRING "$PACKAGE_STRING"
3292_ACEOF
3293
cristy3ed852e2009-09-05 21:47:34 +00003294cat >>confdefs.h <<_ACEOF
3295#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3296_ACEOF
3297
cristy8b350f62009-11-15 23:12:43 +00003298cat >>confdefs.h <<_ACEOF
3299#define PACKAGE_URL "$PACKAGE_URL"
3300_ACEOF
3301
cristy3ed852e2009-09-05 21:47:34 +00003302
3303# Let the site file select an alternate cache file if it wants to.
3304# Prefer an explicitly selected file to automatically selected ones.
3305ac_site_file1=NONE
3306ac_site_file2=NONE
3307if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003308 # We do not want a PATH search for config.site.
3309 case $CONFIG_SITE in #((
3310 -*) ac_site_file1=./$CONFIG_SITE;;
3311 */*) ac_site_file1=$CONFIG_SITE;;
3312 *) ac_site_file1=./$CONFIG_SITE;;
3313 esac
cristy3ed852e2009-09-05 21:47:34 +00003314elif test "x$prefix" != xNONE; then
3315 ac_site_file1=$prefix/share/config.site
3316 ac_site_file2=$prefix/etc/config.site
3317else
3318 ac_site_file1=$ac_default_prefix/share/config.site
3319 ac_site_file2=$ac_default_prefix/etc/config.site
3320fi
3321for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3322do
3323 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003324 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003326$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3327 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003328 . "$ac_site_file" \
3329 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331as_fn_error $? "failed to load site script $ac_site_file
3332See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003333 fi
3334done
3335
3336if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003337 # Some versions of bash will fail to source /dev/null (special files
3338 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3339 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003340 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003341$as_echo "$as_me: loading cache $cache_file" >&6;}
3342 case $cache_file in
3343 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3344 *) . "./$cache_file";;
3345 esac
3346 fi
3347else
cristy8b350f62009-11-15 23:12:43 +00003348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003349$as_echo "$as_me: creating cache $cache_file" >&6;}
3350 >$cache_file
3351fi
3352
cristycd4c5312009-11-22 01:19:08 +00003353as_fn_append ac_header_list " stdlib.h"
3354as_fn_append ac_header_list " unistd.h"
3355as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003356# Check that the precious variables saved in the cache have kept the same
3357# value.
3358ac_cache_corrupted=false
3359for ac_var in $ac_precious_vars; do
3360 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3361 eval ac_new_set=\$ac_env_${ac_var}_set
3362 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3363 eval ac_new_val=\$ac_env_${ac_var}_value
3364 case $ac_old_set,$ac_new_set in
3365 set,)
cristy8b350f62009-11-15 23:12:43 +00003366 { $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 +00003367$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3368 ac_cache_corrupted=: ;;
3369 ,set)
cristy8b350f62009-11-15 23:12:43 +00003370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3372 ac_cache_corrupted=: ;;
3373 ,);;
3374 *)
3375 if test "x$ac_old_val" != "x$ac_new_val"; then
3376 # differences in whitespace do not lead to failure.
3377 ac_old_val_w=`echo x $ac_old_val`
3378 ac_new_val_w=`echo x $ac_new_val`
3379 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003381$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3382 ac_cache_corrupted=:
3383 else
cristy8b350f62009-11-15 23:12:43 +00003384 { $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 +00003385$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3386 eval $ac_var=\$ac_old_val
3387 fi
cristy8b350f62009-11-15 23:12:43 +00003388 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003389$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003390 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003391$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3392 fi;;
3393 esac
3394 # Pass precious variables to config.status.
3395 if test "$ac_new_set" = set; then
3396 case $ac_new_val in
3397 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3398 *) ac_arg=$ac_var=$ac_new_val ;;
3399 esac
3400 case " $ac_configure_args " in
3401 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003402 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003403 esac
3404 fi
3405done
3406if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003411 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003412fi
cristy8b350f62009-11-15 23:12:43 +00003413## -------------------- ##
3414## Main body of script. ##
3415## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003416
3417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423
3424
3425ac_aux_dir=
3426for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003427 if test -f "$ac_dir/install-sh"; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f "$ac_dir/install.sh"; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f "$ac_dir/shtool"; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
cristy3ed852e2009-09-05 21:47:34 +00003440done
3441if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003443fi
3444
3445# These three variables are undocumented and unsupported,
3446# and are intended to be withdrawn in a future Autoconf release.
3447# They can cause serious problems if a builder's source tree is in a directory
3448# whose full name contains unusual characters.
3449ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3450ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3451ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3452
3453
3454
3455
3456ac_config_headers="$ac_config_headers config/config.h"
3457
cristy24fc1fe2010-10-23 21:13:01 +00003458
cristy4c08aed2011-07-01 19:47:50 +00003459ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003460
cristy4c08aed2011-07-01 19:47:50 +00003461ac_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 +00003462
3463
3464#
3465# Save initial user-tunable values
3466#
3467USER_LIBS=$LIBS
3468for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3469 eval isset=\${$var+set}
3470 if test "$isset" = 'set'; then
3471 eval val=$`echo $var`
3472 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3473 fi
3474done
3475
3476
3477CONFIGURE_ARGS="$0 ${ac_configure_args}"
3478
3479
3480# Source file containing package/library versioning information.
3481. ${srcdir}/version.sh
3482
cristy15a88782010-01-31 23:24:49 +00003483echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003484# Make sure we can run config.sub.
3485$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003486 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003487
cristy8b350f62009-11-15 23:12:43 +00003488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003489$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003490if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003491 $as_echo_n "(cached) " >&6
3492else
3493 ac_build_alias=$build_alias
3494test "x$ac_build_alias" = x &&
3495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3496test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003497 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003498ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003500
3501fi
cristy8b350f62009-11-15 23:12:43 +00003502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003503$as_echo "$ac_cv_build" >&6; }
3504case $ac_cv_build in
3505*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003506*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003507esac
3508build=$ac_cv_build
3509ac_save_IFS=$IFS; IFS='-'
3510set x $ac_cv_build
3511shift
3512build_cpu=$1
3513build_vendor=$2
3514shift; shift
3515# Remember, the first character of IFS is used to create $*,
3516# except with old shells:
3517build_os=$*
3518IFS=$ac_save_IFS
3519case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3520
3521
cristy8b350f62009-11-15 23:12:43 +00003522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003523$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003524if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003525 $as_echo_n "(cached) " >&6
3526else
3527 if test "x$host_alias" = x; then
3528 ac_cv_host=$ac_cv_build
3529else
3530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003532fi
3533
3534fi
cristy8b350f62009-11-15 23:12:43 +00003535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536$as_echo "$ac_cv_host" >&6; }
3537case $ac_cv_host in
3538*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003539*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003540esac
3541host=$ac_cv_host
3542ac_save_IFS=$IFS; IFS='-'
3543set x $ac_cv_host
3544shift
3545host_cpu=$1
3546host_vendor=$2
3547shift; shift
3548# Remember, the first character of IFS is used to create $*,
3549# except with old shells:
3550host_os=$*
3551IFS=$ac_save_IFS
3552case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3553
3554
cristy8b350f62009-11-15 23:12:43 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003556$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003557if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003558 $as_echo_n "(cached) " >&6
3559else
3560 if test "x$target_alias" = x; then
3561 ac_cv_target=$ac_cv_host
3562else
3563 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003565fi
3566
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$ac_cv_target" >&6; }
3570case $ac_cv_target in
3571*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003572*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003573esac
3574target=$ac_cv_target
3575ac_save_IFS=$IFS; IFS='-'
3576set x $ac_cv_target
3577shift
3578target_cpu=$1
3579target_vendor=$2
3580shift; shift
3581# Remember, the first character of IFS is used to create $*,
3582# except with old shells:
3583target_os=$*
3584IFS=$ac_save_IFS
3585case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3586
3587
3588# The aliases save the names the user supplied, while $host etc.
3589# will get canonicalized.
3590test -n "$target_alias" &&
3591 test "$program_prefix$program_suffix$program_transform_name" = \
3592 NONENONEs,x,x, &&
3593 program_prefix=${target_alias}-
3594
cristy837d6dc2010-02-27 01:16:57 +00003595
3596
3597
cristy19615b82011-04-13 20:02:01 +00003598MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003599
3600
cristy19615b82011-04-13 20:02:01 +00003601MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003602
3603
cristy19615b82011-04-13 20:02:01 +00003604MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003605
3606
cristy3ed852e2009-09-05 21:47:34 +00003607# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003608MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3609
3610MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3611
cristy2542fc62011-12-06 17:50:25 +00003612MAGICK_SVN_REVISION=6118
cristyd694ca32011-03-27 21:42:54 +00003613
3614
cristy3ed852e2009-09-05 21:47:34 +00003615
3616
3617# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3619$as_echo_n "checking whether build environment is sane... " >&6; }
3620# Just in case
3621sleep 1
3622echo timestamp > conftest.file
3623# Reject unsafe characters in $srcdir or the absolute working directory
3624# name. Accept space and tab only in the latter.
3625am_lf='
3626'
3627case `pwd` in
3628 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003630esac
3631case $srcdir in
3632 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003633 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003634esac
cristy3ed852e2009-09-05 21:47:34 +00003635
cristy73bd4a52010-10-05 11:24:23 +00003636# Do `set' in a subshell so we don't clobber the current shell's
3637# arguments. Must try -L first in case configure is actually a
3638# symlink; some systems play weird games with the mod time of symlinks
3639# (eg FreeBSD returns the mod time of the symlink's containing
3640# directory).
3641if (
3642 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3643 if test "$*" = "X"; then
3644 # -L didn't work.
3645 set X `ls -t "$srcdir/configure" conftest.file`
3646 fi
3647 rm -f conftest.file
3648 if test "$*" != "X $srcdir/configure conftest.file" \
3649 && test "$*" != "X conftest.file $srcdir/configure"; then
3650
3651 # If neither matched, then we have a broken ls. This can happen
3652 # if, for instance, CONFIG_SHELL is bash and it inherits a
3653 # broken ls alias from the environment. This has actually
3654 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003655 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003656alias in your environment" "$LINENO" 5
3657 fi
3658
3659 test "$2" = conftest.file
3660 )
3661then
3662 # Ok.
3663 :
3664else
cristy98dddb52010-11-04 00:30:15 +00003665 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003666Check your system clock" "$LINENO" 5
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669$as_echo "yes" >&6; }
3670
3671am__api_version='1.11'
3672
3673# Find a good install program. We prefer a C program (faster),
3674# so one script is as good as another. But avoid the broken or
3675# incompatible versions:
3676# SysV /etc/install, /usr/sbin/install
3677# SunOS /usr/etc/install
3678# IRIX /sbin/install
3679# AIX /bin/install
3680# AmigaOS /C/install, which installs bootblocks on floppy discs
3681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3684# OS/2's system install, which has a completely different semantic
3685# ./install, which can be erroneously created by make from ./install.sh.
3686# Reject install programs that cannot install multiple files.
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3688$as_echo_n "checking for a BSD-compatible install... " >&6; }
3689if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003690if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003691 $as_echo_n "(cached) " >&6
3692else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 # Account for people who put trailing slashes in PATH elements.
3699case $as_dir/ in #((
3700 ./ | .// | /[cC]/* | \
3701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3702 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3703 /usr/ucb/* ) ;;
3704 *)
3705 # OSF1 and SCO ODT 3.0 have their own names for install.
3706 # Don't use installbsd from OSF since it installs stuff as root
3707 # by default.
3708 for ac_prog in ginstall scoinst install; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3711 if test $ac_prog = install &&
3712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713 # AIX install. It has an incompatible calling convention.
3714 :
3715 elif test $ac_prog = install &&
3716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3717 # program-specific install script used by HP pwplus--don't use.
3718 :
3719 else
3720 rm -rf conftest.one conftest.two conftest.dir
3721 echo one > conftest.one
3722 echo two > conftest.two
3723 mkdir conftest.dir
3724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3725 test -s conftest.one && test -s conftest.two &&
3726 test -s conftest.dir/conftest.one &&
3727 test -s conftest.dir/conftest.two
3728 then
3729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3730 break 3
3731 fi
3732 fi
3733 fi
3734 done
3735 done
3736 ;;
3737esac
3738
3739 done
3740IFS=$as_save_IFS
3741
3742rm -rf conftest.one conftest.two conftest.dir
3743
3744fi
3745 if test "${ac_cv_path_install+set}" = set; then
3746 INSTALL=$ac_cv_path_install
3747 else
3748 # As a last resort, use the slow shell script. Don't cache a
3749 # value for INSTALL within a source directory, because that will
3750 # break other packages using the cache if that directory is
3751 # removed, or if the value is a relative name.
3752 INSTALL=$ac_install_sh
3753 fi
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3756$as_echo "$INSTALL" >&6; }
3757
3758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3759# It thinks the first close brace ends the variable substitution.
3760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3761
3762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3763
3764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3765
3766test "$program_prefix" != NONE &&
3767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3768# Use a double $ so make ignores it.
3769test "$program_suffix" != NONE &&
3770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3771# Double any \ or $.
3772# By default was `s,x,x', remove it if useless.
3773ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3774program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3775
3776# expand $ac_aux_dir to an absolute path
3777am_aux_dir=`cd $ac_aux_dir && pwd`
3778
3779if test x"${MISSING+set}" != xset; then
3780 case $am_aux_dir in
3781 *\ * | *\ *)
3782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3783 *)
3784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3785 esac
3786fi
3787# Use eval to expand $SHELL
3788if eval "$MISSING --run true"; then
3789 am_missing_run="$MISSING --run "
3790else
3791 am_missing_run=
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3793$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3794fi
3795
3796if test x"${install_sh}" != xset; then
3797 case $am_aux_dir in
3798 *\ * | *\ *)
3799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3800 *)
3801 install_sh="\${SHELL} $am_aux_dir/install-sh"
3802 esac
3803fi
3804
3805# Installed binaries are usually stripped using `strip' when the user
3806# run `make install-strip'. However `strip' might not be the right
3807# tool to use in cross-compilation environments, therefore Automake
3808# will honor the `STRIP' environment variable to overrule this program.
3809if test "$cross_compiling" != no; then
3810 if test -n "$ac_tool_prefix"; then
3811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3812set dummy ${ac_tool_prefix}strip; ac_word=$2
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003815if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003816 $as_echo_n "(cached) " >&6
3817else
3818 if test -n "$STRIP"; then
3819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3820else
3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832done
3833 done
3834IFS=$as_save_IFS
3835
3836fi
3837fi
3838STRIP=$ac_cv_prog_STRIP
3839if test -n "$STRIP"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3841$as_echo "$STRIP" >&6; }
3842else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844$as_echo "no" >&6; }
3845fi
3846
3847
3848fi
3849if test -z "$ac_cv_prog_STRIP"; then
3850 ac_ct_STRIP=$STRIP
3851 # Extract the first word of "strip", so it can be a program name with args.
3852set dummy strip; ac_word=$2
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003855if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003856 $as_echo_n "(cached) " >&6
3857else
3858 if test -n "$ac_ct_STRIP"; then
3859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_prog_ac_ct_STRIP="strip"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873 done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3879if test -n "$ac_ct_STRIP"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3881$as_echo "$ac_ct_STRIP" >&6; }
3882else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887 if test "x$ac_ct_STRIP" = x; then
3888 STRIP=":"
3889 else
3890 case $cross_compiling:$ac_tool_warned in
3891yes:)
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894ac_tool_warned=yes ;;
3895esac
3896 STRIP=$ac_ct_STRIP
3897 fi
3898else
3899 STRIP="$ac_cv_prog_STRIP"
3900fi
3901
3902fi
3903INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3904
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3906$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3907if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003908 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003909 $as_echo_n "(cached) " >&6
3910else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in mkdir gmkdir; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3919 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3920 'mkdir (GNU coreutils) '* | \
3921 'mkdir (coreutils) '* | \
3922 'mkdir (fileutils) '4.1*)
3923 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3924 break 3;;
3925 esac
3926 done
3927 done
3928 done
3929IFS=$as_save_IFS
3930
3931fi
3932
3933 test -d ./--version && rmdir ./--version
3934 if test "${ac_cv_path_mkdir+set}" = set; then
3935 MKDIR_P="$ac_cv_path_mkdir -p"
3936 else
3937 # As a last resort, use the slow shell script. Don't cache a
3938 # value for MKDIR_P within a source directory, because that will
3939 # break other packages using the cache if that directory is
3940 # removed, or if the value is a relative name.
3941 MKDIR_P="$ac_install_sh -d"
3942 fi
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3945$as_echo "$MKDIR_P" >&6; }
3946
3947mkdir_p="$MKDIR_P"
3948case $mkdir_p in
3949 [\\/$]* | ?:[\\/]*) ;;
3950 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3951esac
3952
3953for ac_prog in gawk mawk nawk awk
3954do
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956set dummy $ac_prog; ac_word=$2
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003959if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003960 $as_echo_n "(cached) " >&6
3961else
3962 if test -n "$AWK"; then
3963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3964else
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_AWK="$ac_prog"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976done
3977 done
3978IFS=$as_save_IFS
3979
3980fi
3981fi
3982AWK=$ac_cv_prog_AWK
3983if test -n "$AWK"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3985$as_echo "$AWK" >&6; }
3986else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988$as_echo "no" >&6; }
3989fi
3990
3991
3992 test -n "$AWK" && break
3993done
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3996$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3997set x ${MAKE-make}
3998ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003999if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004000 $as_echo_n "(cached) " >&6
4001else
4002 cat >conftest.make <<\_ACEOF
4003SHELL = /bin/sh
4004all:
4005 @echo '@@@%%%=$(MAKE)=@@@%%%'
4006_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004007# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004008case `${MAKE-make} -f conftest.make 2>/dev/null` in
4009 *@@@%%%=?*=@@@%%%*)
4010 eval ac_cv_prog_make_${ac_make}_set=yes;;
4011 *)
4012 eval ac_cv_prog_make_${ac_make}_set=no;;
4013esac
4014rm -f conftest.make
4015fi
4016if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4018$as_echo "yes" >&6; }
4019 SET_MAKE=
4020else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
4023 SET_MAKE="MAKE=${MAKE-make}"
4024fi
4025
4026rm -rf .tst 2>/dev/null
4027mkdir .tst 2>/dev/null
4028if test -d .tst; then
4029 am__leading_dot=.
4030else
4031 am__leading_dot=_
4032fi
4033rmdir .tst 2>/dev/null
4034
cristya448bd22011-10-14 12:38:13 +00004035# Check whether --enable-silent-rules was given.
4036if test "${enable_silent_rules+set}" = set; then :
4037 enableval=$enable_silent_rules;
4038fi
4039
4040case $enable_silent_rules in
4041yes) AM_DEFAULT_VERBOSITY=0;;
4042no) AM_DEFAULT_VERBOSITY=1;;
4043*) AM_DEFAULT_VERBOSITY=1;;
4044esac
4045AM_BACKSLASH='\'
4046
cristy73bd4a52010-10-05 11:24:23 +00004047if test "`cd $srcdir && pwd`" != "`pwd`"; then
4048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4049 # is not polluted with repeated "-I."
4050 am__isrc=' -I$(srcdir)'
4051 # test to see if srcdir already configured
4052 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004053 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004054 fi
4055fi
4056
4057# test whether we have cygpath
4058if test -z "$CYGPATH_W"; then
4059 if (cygpath --version) >/dev/null 2>/dev/null; then
4060 CYGPATH_W='cygpath -w'
4061 else
4062 CYGPATH_W=echo
4063 fi
4064fi
4065
4066
4067# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004068 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004069 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004070
4071
cristya448bd22011-10-14 12:38:13 +00004072cat >>confdefs.h <<_ACEOF
4073#define PACKAGE "$PACKAGE"
4074_ACEOF
4075
4076
4077cat >>confdefs.h <<_ACEOF
4078#define VERSION "$VERSION"
4079_ACEOF
4080
cristy73bd4a52010-10-05 11:24:23 +00004081# Some tools Automake needs.
4082
4083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4084
4085
4086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4087
4088
4089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4090
4091
4092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4093
4094
4095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4096
4097# We need awk for the "check" target. The system "awk" is bad on
4098# some platforms.
4099# Always define AMTAR for backward compatibility.
4100
4101AMTAR=${AMTAR-"${am_missing_run}tar"}
4102
4103am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4104
4105
4106
4107
4108
cristy3ed852e2009-09-05 21:47:34 +00004109
4110# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004111# Check whether --enable-silent-rules was given.
4112if test "${enable_silent_rules+set}" = set; then :
4113 enableval=$enable_silent_rules;
4114fi
4115
4116case $enable_silent_rules in
4117yes) AM_DEFAULT_VERBOSITY=0;;
4118no) AM_DEFAULT_VERBOSITY=1;;
4119*) AM_DEFAULT_VERBOSITY=0;;
4120esac
4121AM_BACKSLASH='\'
4122
cristy3ed852e2009-09-05 21:47:34 +00004123
4124MAGICK_LIB_VERSION="0x"
4125if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4126 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4127fi
4128MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4129if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4130 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4131fi
4132MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4133if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4134 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4135fi
4136MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4137
4138
4139# Definition used to define MagickLibVersionText in version.h
4140MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4141
4142
4143# Definition used to define MagickLibVersionNumber in version.h
4144MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4145
4146
4147# Regenerate config.status if ChangeLog or version.sh is updated.
4148CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4149
4150
4151PERLMAINCC=$CC
4152
4153MAGICK_CFLAGS=''
4154MAGICK_CPPFLAGS=$CPPFLAGS_USER
4155MAGICK_PCFLAGS=$CPPFLAGS_USER
4156MAGICK_LDFLAGS=''
4157MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004158MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004159
4160#
4161# Evaluate shell variable equivalents to Makefile directory variables
4162#
4163if test "x$prefix" = xNONE; then
4164 prefix=$ac_default_prefix
4165fi
4166# Let make expand exec_prefix.
4167if test "x$exec_prefix" = xNONE; then
4168 exec_prefix='${prefix}'
4169fi
4170
4171#
4172eval "eval PREFIX_DIR=${prefix}"
4173
4174eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4175
4176eval "eval BIN_DIR=$bindir"
4177
4178eval "eval SBIN_DIR=$sbindir"
4179
4180eval "eval LIBEXEC_DIR=$libexecdir"
4181
4182eval "eval DATA_DIR=$datadir"
4183
cristyd55889c2011-03-27 00:50:24 +00004184eval "eval DOC_DIR=$docdir"
4185
cristy3ed852e2009-09-05 21:47:34 +00004186eval "eval SYSCONF_DIR=$sysconfdir"
4187
4188eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4189
4190eval "eval LOCALSTATE_DIR=$localstatedir"
4191
4192eval "eval LIB_DIR=$libdir"
4193
4194eval "eval INCLUDE_DIR=$includedir"
4195
4196eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4197
4198eval "eval INFO_DIR=$infodir"
4199
4200eval "eval MAN_DIR=$mandir"
4201
4202
4203# Get full paths to source and build directories
4204srcdirfull="`cd $srcdir && pwd`"
4205builddir="`pwd`"
4206
4207#
4208# Compute variables useful for running uninstalled software.
4209#
4210MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4211MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4212MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4213MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4214DIRSEP=':'
4215case "${build_os}" in
4216 mingw* )
4217 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4218 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4219 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4220 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4221 DIRSEP=';'
4222 ;;
4223esac
4224case "${host_os}" in
4225 mingw* )
4226 DIRSEP=';'
4227 ;;
4228esac
4229
4230
4231
4232
4233
4234
cristya0b81c32010-01-22 02:54:33 +00004235
4236#
4237# Enable OS features.
4238#
cristy73bd4a52010-10-05 11:24:23 +00004239DEPDIR="${am__leading_dot}deps"
4240
4241ac_config_commands="$ac_config_commands depfiles"
4242
4243
4244am_make=${MAKE-make}
4245cat > confinc << 'END'
4246am__doit:
4247 @echo this is the am__doit target
4248.PHONY: am__doit
4249END
4250# If we don't find an include directive, just comment out the code.
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4252$as_echo_n "checking for style of include used by $am_make... " >&6; }
4253am__include="#"
4254am__quote=
4255_am_result=none
4256# First try GNU make style include.
4257echo "include confinc" > confmf
4258# Ignore all kinds of additional output from `make'.
4259case `$am_make -s -f confmf 2> /dev/null` in #(
4260*the\ am__doit\ target*)
4261 am__include=include
4262 am__quote=
4263 _am_result=GNU
4264 ;;
4265esac
4266# Now try BSD make style include.
4267if test "$am__include" = "#"; then
4268 echo '.include "confinc"' > confmf
4269 case `$am_make -s -f confmf 2> /dev/null` in #(
4270 *the\ am__doit\ target*)
4271 am__include=.include
4272 am__quote="\""
4273 _am_result=BSD
4274 ;;
4275 esac
4276fi
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4280$as_echo "$_am_result" >&6; }
4281rm -f confinc confmf
4282
4283# Check whether --enable-dependency-tracking was given.
4284if test "${enable_dependency_tracking+set}" = set; then :
4285 enableval=$enable_dependency_tracking;
4286fi
4287
4288if test "x$enable_dependency_tracking" != xno; then
4289 am_depcomp="$ac_aux_dir/depcomp"
4290 AMDEPBACKSLASH='\'
4291fi
4292 if test "x$enable_dependency_tracking" != xno; then
4293 AMDEP_TRUE=
4294 AMDEP_FALSE='#'
4295else
4296 AMDEP_TRUE='#'
4297 AMDEP_FALSE=
4298fi
4299
4300
cristy3ed852e2009-09-05 21:47:34 +00004301ac_ext=c
4302ac_cpp='$CPP $CPPFLAGS'
4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306if test -n "$ac_tool_prefix"; then
4307 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4308set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004311if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$CC"; then
4315 ac_cv_prog_CC="$CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004326 break 2
4327 fi
4328done
cristy8b350f62009-11-15 23:12:43 +00004329 done
cristy3ed852e2009-09-05 21:47:34 +00004330IFS=$as_save_IFS
4331
4332fi
4333fi
4334CC=$ac_cv_prog_CC
4335if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo "$CC" >&6; }
4338else
cristy8b350f62009-11-15 23:12:43 +00004339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340$as_echo "no" >&6; }
4341fi
4342
4343
4344fi
4345if test -z "$ac_cv_prog_CC"; then
4346 ac_ct_CC=$CC
4347 # Extract the first word of "gcc", so it can be a program name with args.
4348set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004351if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004352 $as_echo_n "(cached) " >&6
4353else
4354 if test -n "$ac_ct_CC"; then
4355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366 break 2
4367 fi
4368done
cristy8b350f62009-11-15 23:12:43 +00004369 done
cristy3ed852e2009-09-05 21:47:34 +00004370IFS=$as_save_IFS
4371
4372fi
4373fi
4374ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo "$ac_ct_CC" >&6; }
4378else
cristy8b350f62009-11-15 23:12:43 +00004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380$as_echo "no" >&6; }
4381fi
4382
4383 if test "x$ac_ct_CC" = x; then
4384 CC=""
4385 else
4386 case $cross_compiling:$ac_tool_warned in
4387yes:)
cristy8b350f62009-11-15 23:12:43 +00004388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4390ac_tool_warned=yes ;;
4391esac
4392 CC=$ac_ct_CC
4393 fi
4394else
4395 CC="$ac_cv_prog_CC"
4396fi
4397
4398if test -z "$CC"; then
4399 if test -n "$ac_tool_prefix"; then
4400 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4401set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004404if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004405 $as_echo_n "(cached) " >&6
4406else
4407 if test -n "$CC"; then
4408 ac_cv_prog_CC="$CC" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419 break 2
4420 fi
4421done
cristy8b350f62009-11-15 23:12:43 +00004422 done
cristy3ed852e2009-09-05 21:47:34 +00004423IFS=$as_save_IFS
4424
4425fi
4426fi
4427CC=$ac_cv_prog_CC
4428if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004430$as_echo "$CC" >&6; }
4431else
cristy8b350f62009-11-15 23:12:43 +00004432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433$as_echo "no" >&6; }
4434fi
4435
4436
4437 fi
4438fi
4439if test -z "$CC"; then
4440 # Extract the first word of "cc", so it can be a program name with args.
4441set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004444if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004445 $as_echo_n "(cached) " >&6
4446else
4447 if test -n "$CC"; then
4448 ac_cv_prog_CC="$CC" # Let the user override the test.
4449else
4450 ac_prog_rejected=no
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4459 ac_prog_rejected=yes
4460 continue
4461 fi
4462 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464 break 2
4465 fi
4466done
cristy8b350f62009-11-15 23:12:43 +00004467 done
cristy3ed852e2009-09-05 21:47:34 +00004468IFS=$as_save_IFS
4469
4470if test $ac_prog_rejected = yes; then
4471 # We found a bogon in the path, so make sure we never use it.
4472 set dummy $ac_cv_prog_CC
4473 shift
4474 if test $# != 0; then
4475 # We chose a different compiler from the bogus one.
4476 # However, it has the same basename, so the bogon will be chosen
4477 # first if we set CC to just the basename; use the full file name.
4478 shift
4479 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4480 fi
4481fi
4482fi
4483fi
4484CC=$ac_cv_prog_CC
4485if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004487$as_echo "$CC" >&6; }
4488else
cristy8b350f62009-11-15 23:12:43 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004490$as_echo "no" >&6; }
4491fi
4492
4493
4494fi
4495if test -z "$CC"; then
4496 if test -n "$ac_tool_prefix"; then
4497 for ac_prog in cl.exe
4498 do
4499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004503if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004504 $as_echo_n "(cached) " >&6
4505else
4506 if test -n "$CC"; then
4507 ac_cv_prog_CC="$CC" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518 break 2
4519 fi
4520done
cristy8b350f62009-11-15 23:12:43 +00004521 done
cristy3ed852e2009-09-05 21:47:34 +00004522IFS=$as_save_IFS
4523
4524fi
4525fi
4526CC=$ac_cv_prog_CC
4527if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "$CC" >&6; }
4530else
cristy8b350f62009-11-15 23:12:43 +00004531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "no" >&6; }
4533fi
4534
4535
4536 test -n "$CC" && break
4537 done
4538fi
4539if test -z "$CC"; then
4540 ac_ct_CC=$CC
4541 for ac_prog in cl.exe
4542do
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004547if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004548 $as_echo_n "(cached) " >&6
4549else
4550 if test -n "$ac_ct_CC"; then
4551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562 break 2
4563 fi
4564done
cristy8b350f62009-11-15 23:12:43 +00004565 done
cristy3ed852e2009-09-05 21:47:34 +00004566IFS=$as_save_IFS
4567
4568fi
4569fi
4570ac_ct_CC=$ac_cv_prog_ac_ct_CC
4571if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573$as_echo "$ac_ct_CC" >&6; }
4574else
cristy8b350f62009-11-15 23:12:43 +00004575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576$as_echo "no" >&6; }
4577fi
4578
4579
4580 test -n "$ac_ct_CC" && break
4581done
4582
4583 if test "x$ac_ct_CC" = x; then
4584 CC=""
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587yes:)
cristy8b350f62009-11-15 23:12:43 +00004588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590ac_tool_warned=yes ;;
4591esac
4592 CC=$ac_ct_CC
4593 fi
4594fi
4595
4596fi
4597
4598
cristy8b350f62009-11-15 23:12:43 +00004599test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004601as_fn_error $? "no acceptable C compiler found in \$PATH
4602See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004603
4604# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004605$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004606set X $ac_compile
4607ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004608for ac_option in --version -v -V -qversion; do
4609 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
cristy8b350f62009-11-15 23:12:43 +00004614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004617 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004618 if test -s conftest.err; then
4619 sed '10a\
4620... rest of stderr output deleted ...
4621 10q' conftest.err >conftest.er1
4622 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004623 fi
cristycd4c5312009-11-22 01:19:08 +00004624 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }
4627done
cristy3ed852e2009-09-05 21:47:34 +00004628
cristy8b350f62009-11-15 23:12:43 +00004629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004630/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004631
cristy3ed852e2009-09-05 21:47:34 +00004632int
4633main ()
4634{
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
4640ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004641ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004642# Try to create an executable without -o first, disregard a.out.
4643# It will help us diagnose broken compilers, and finding out an intuition
4644# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4646$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004647ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4648
4649# The possible output files:
4650ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4651
4652ac_rmfiles=
4653for ac_file in $ac_files
4654do
4655 case $ac_file in
4656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4658 esac
4659done
4660rm -f $ac_rmfiles
4661
cristy8b350f62009-11-15 23:12:43 +00004662if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004663case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666esac
cristy8b350f62009-11-15 23:12:43 +00004667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004669 (eval "$ac_link_default") 2>&5
4670 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004673 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4674# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4675# in a Makefile. We should not override ac_cv_exeext if it was cached,
4676# so that the user can short-circuit this test for compilers unknown to
4677# Autoconf.
4678for ac_file in $ac_files ''
4679do
4680 test -f "$ac_file" || continue
4681 case $ac_file in
4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4683 ;;
4684 [ab].out )
4685 # We found the default executable, but exeext='' is most
4686 # certainly right.
4687 break;;
4688 *.* )
cristy8b350f62009-11-15 23:12:43 +00004689 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004690 then :; else
4691 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4692 fi
4693 # We set ac_cv_exeext here because the later test for it is not
4694 # safe: cross compilers may not add the suffix if given an `-o'
4695 # argument, so we may need to know it at that point already.
4696 # Even if this section looks crufty: it has the advantage of
4697 # actually working.
4698 break;;
4699 * )
4700 break;;
4701 esac
4702done
4703test "$ac_cv_exeext" = no && ac_cv_exeext=
4704
4705else
4706 ac_file=''
4707fi
cristy8b350f62009-11-15 23:12:43 +00004708if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712sed 's/^/| /' conftest.$ac_ext >&5
4713
cristy8b350f62009-11-15 23:12:43 +00004714{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004716as_fn_error 77 "C compiler cannot create executables
4717See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4720$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004721fi
cristycd4c5312009-11-22 01:19:08 +00004722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4723$as_echo_n "checking for C compiler default output file name... " >&6; }
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4725$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004726ac_exeext=$ac_cv_exeext
4727
cristycd4c5312009-11-22 01:19:08 +00004728rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004729ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004731$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004732if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004733case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736esac
cristy8b350f62009-11-15 23:12:43 +00004737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004739 (eval "$ac_link") 2>&5
4740 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4744# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4745# work properly (i.e., refer to `conftest.exe'), while it won't with
4746# `rm'.
4747for ac_file in conftest.exe conftest conftest.*; do
4748 test -f "$ac_file" || continue
4749 case $ac_file in
4750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4752 break;;
4753 * ) break;;
4754 esac
4755done
4756else
cristy8b350f62009-11-15 23:12:43 +00004757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004759as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4760See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004761fi
cristycd4c5312009-11-22 01:19:08 +00004762rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764$as_echo "$ac_cv_exeext" >&6; }
4765
4766rm -f conftest.$ac_ext
4767EXEEXT=$ac_cv_exeext
4768ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
4771#include <stdio.h>
4772int
4773main ()
4774{
4775FILE *f = fopen ("conftest.out", "w");
4776 return ferror (f) || fclose (f) != 0;
4777
4778 ;
4779 return 0;
4780}
4781_ACEOF
4782ac_clean_files="$ac_clean_files conftest.out"
4783# Check that the compiler produces executables we can run. If not, either
4784# the compiler is broken, or we cross compile.
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4786$as_echo_n "checking whether we are cross compiling... " >&6; }
4787if test "$cross_compiling" != yes; then
4788 { { ac_try="$ac_link"
4789case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792esac
4793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794$as_echo "$ac_try_echo"; } >&5
4795 (eval "$ac_link") 2>&5
4796 ac_status=$?
4797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }
4799 if { ac_try='./conftest$ac_cv_exeext'
4800 { { case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803esac
4804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4805$as_echo "$ac_try_echo"; } >&5
4806 (eval "$ac_try") 2>&5
4807 ac_status=$?
4808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809 test $ac_status = 0; }; }; then
4810 cross_compiling=no
4811 else
4812 if test "$cross_compiling" = maybe; then
4813 cross_compiling=yes
4814 else
4815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004817as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004818If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004819See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004820 fi
4821 fi
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4824$as_echo "$cross_compiling" >&6; }
4825
4826rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4827ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004829$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004830if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004831 $as_echo_n "(cached) " >&6
4832else
cristy8b350f62009-11-15 23:12:43 +00004833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004834/* end confdefs.h. */
4835
4836int
4837main ()
4838{
4839
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004845if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004846case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849esac
cristy8b350f62009-11-15 23:12:43 +00004850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004852 (eval "$ac_compile") 2>&5
4853 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4855 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004856 for ac_file in conftest.o conftest.obj conftest.*; do
4857 test -f "$ac_file" || continue;
4858 case $ac_file in
4859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4861 break;;
4862 esac
4863done
4864else
4865 $as_echo "$as_me: failed program was:" >&5
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
cristy8b350f62009-11-15 23:12:43 +00004868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004870as_fn_error $? "cannot compute suffix of object files: cannot compile
4871See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004872fi
cristy3ed852e2009-09-05 21:47:34 +00004873rm -f conftest.$ac_cv_objext conftest.$ac_ext
4874fi
cristy8b350f62009-11-15 23:12:43 +00004875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004876$as_echo "$ac_cv_objext" >&6; }
4877OBJEXT=$ac_cv_objext
4878ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004880$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004881if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004882 $as_echo_n "(cached) " >&6
4883else
cristy8b350f62009-11-15 23:12:43 +00004884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004885/* end confdefs.h. */
4886
4887int
4888main ()
4889{
4890#ifndef __GNUC__
4891 choke me
4892#endif
4893
4894 ;
4895 return 0;
4896}
4897_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004898if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004899 ac_compiler_gnu=yes
4900else
cristy8b350f62009-11-15 23:12:43 +00004901 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004902fi
cristy3ed852e2009-09-05 21:47:34 +00004903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904ac_cv_c_compiler_gnu=$ac_compiler_gnu
4905
4906fi
cristy8b350f62009-11-15 23:12:43 +00004907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4909if test $ac_compiler_gnu = yes; then
4910 GCC=yes
4911else
4912 GCC=
4913fi
4914ac_test_CFLAGS=${CFLAGS+set}
4915ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004917$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004918if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004919 $as_echo_n "(cached) " >&6
4920else
4921 ac_save_c_werror_flag=$ac_c_werror_flag
4922 ac_c_werror_flag=yes
4923 ac_cv_prog_cc_g=no
4924 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004926/* end confdefs.h. */
4927
4928int
4929main ()
4930{
4931
4932 ;
4933 return 0;
4934}
4935_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004936if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004937 ac_cv_prog_cc_g=yes
4938else
cristy8b350f62009-11-15 23:12:43 +00004939 CFLAGS=""
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004941/* end confdefs.h. */
4942
4943int
4944main ()
4945{
4946
4947 ;
4948 return 0;
4949}
4950_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004951if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004952
cristy8b350f62009-11-15 23:12:43 +00004953else
4954 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004955 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004957/* end confdefs.h. */
4958
4959int
4960main ()
4961{
4962
4963 ;
4964 return 0;
4965}
4966_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004967if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004968 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004969fi
cristy3ed852e2009-09-05 21:47:34 +00004970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971fi
cristy3ed852e2009-09-05 21:47:34 +00004972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
cristy3ed852e2009-09-05 21:47:34 +00004974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 ac_c_werror_flag=$ac_save_c_werror_flag
4976fi
cristy8b350f62009-11-15 23:12:43 +00004977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004978$as_echo "$ac_cv_prog_cc_g" >&6; }
4979if test "$ac_test_CFLAGS" = set; then
4980 CFLAGS=$ac_save_CFLAGS
4981elif test $ac_cv_prog_cc_g = yes; then
4982 if test "$GCC" = yes; then
4983 CFLAGS="-g -O2"
4984 else
4985 CFLAGS="-g"
4986 fi
4987else
4988 if test "$GCC" = yes; then
4989 CFLAGS="-O2"
4990 else
4991 CFLAGS=
4992 fi
4993fi
cristy8b350f62009-11-15 23:12:43 +00004994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004995$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004996if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004997 $as_echo_n "(cached) " >&6
4998else
4999 ac_cv_prog_cc_c89=no
5000ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005002/* end confdefs.h. */
5003#include <stdarg.h>
5004#include <stdio.h>
5005#include <sys/types.h>
5006#include <sys/stat.h>
5007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5008struct buf { int x; };
5009FILE * (*rcsopen) (struct buf *, struct stat *, int);
5010static char *e (p, i)
5011 char **p;
5012 int i;
5013{
5014 return p[i];
5015}
5016static char *f (char * (*g) (char **, int), char **p, ...)
5017{
5018 char *s;
5019 va_list v;
5020 va_start (v,p);
5021 s = g (p, va_arg (v,int));
5022 va_end (v);
5023 return s;
5024}
5025
5026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5027 function prototypes and stuff, but not '\xHH' hex character constants.
5028 These don't provoke an error unfortunately, instead are silently treated
5029 as 'x'. The following induces an error, until -std is added to get
5030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5031 array size at least. It's necessary to write '\x00'==0 to get something
5032 that's true only with -std. */
5033int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5034
5035/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5036 inside strings and character constants. */
5037#define FOO(x) 'x'
5038int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5039
5040int test (int i, double x);
5041struct s1 {int (*f) (int a);};
5042struct s2 {int (*f) (double a);};
5043int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5044int argc;
5045char **argv;
5046int
5047main ()
5048{
5049return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5050 ;
5051 return 0;
5052}
5053_ACEOF
5054for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5056do
5057 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005058 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005059 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005060fi
cristy3ed852e2009-09-05 21:47:34 +00005061rm -f core conftest.err conftest.$ac_objext
5062 test "x$ac_cv_prog_cc_c89" != "xno" && break
5063done
5064rm -f conftest.$ac_ext
5065CC=$ac_save_CC
5066
5067fi
5068# AC_CACHE_VAL
5069case "x$ac_cv_prog_cc_c89" in
5070 x)
cristy8b350f62009-11-15 23:12:43 +00005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005072$as_echo "none needed" >&6; } ;;
5073 xno)
cristy8b350f62009-11-15 23:12:43 +00005074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo "unsupported" >&6; } ;;
5076 *)
5077 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005079$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5080esac
cristy8b350f62009-11-15 23:12:43 +00005081if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005082
cristy8b350f62009-11-15 23:12:43 +00005083fi
cristy3ed852e2009-09-05 21:47:34 +00005084
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005090
cristy73bd4a52010-10-05 11:24:23 +00005091depcc="$CC" am_compiler_list=
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5094$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005095if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005096 $as_echo_n "(cached) " >&6
5097else
5098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5099 # We make a subdir and do the tests there. Otherwise we can end up
5100 # making bogus files that we don't know about and never remove. For
5101 # instance it was reported that on HP-UX the gcc test will end up
5102 # making a dummy file named `D' -- because `-MD' means `put the output
5103 # in D'.
5104 mkdir conftest.dir
5105 # Copy depcomp to subdir because otherwise we won't find it if we're
5106 # using a relative directory.
5107 cp "$am_depcomp" conftest.dir
5108 cd conftest.dir
5109 # We will build objects and dependencies in a subdirectory because
5110 # it helps to detect inapplicable dependency modes. For instance
5111 # both Tru64's cc and ICC support -MD to output dependencies as a
5112 # side effect of compilation, but ICC will put the dependencies in
5113 # the current directory while Tru64 will put them in the object
5114 # directory.
5115 mkdir sub
5116
5117 am_cv_CC_dependencies_compiler_type=none
5118 if test "$am_compiler_list" = ""; then
5119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5120 fi
5121 am__universal=false
5122 case " $depcc " in #(
5123 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5124 esac
5125
5126 for depmode in $am_compiler_list; do
5127 # Setup a source with many dependencies, because some compilers
5128 # like to wrap large dependency lists on column 80 (with \), and
5129 # we should not choose a depcomp mode which is confused by this.
5130 #
5131 # We need to recreate these files for each test, as the compiler may
5132 # overwrite some of them when testing with obscure command lines.
5133 # This happens at least with the AIX C compiler.
5134 : > sub/conftest.c
5135 for i in 1 2 3 4 5 6; do
5136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5138 # Solaris 8's {/usr,}/bin/sh.
5139 touch sub/conftst$i.h
5140 done
5141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5142
5143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5144 # mode. It turns out that the SunPro C++ compiler does not properly
5145 # handle `-M -o', and we need to detect this. Also, some Intel
5146 # versions had trouble with output in subdirs
5147 am__obj=sub/conftest.${OBJEXT-o}
5148 am__minus_obj="-o $am__obj"
5149 case $depmode in
5150 gcc)
5151 # This depmode causes a compiler race in universal mode.
5152 test "$am__universal" = false || continue
5153 ;;
5154 nosideeffect)
5155 # after this tag, mechanisms are not by side-effect, so they'll
5156 # only be used when explicitly requested
5157 if test "x$enable_dependency_tracking" = xyes; then
5158 continue
5159 else
5160 break
5161 fi
5162 ;;
5163 msvisualcpp | msvcmsys)
5164 # This compiler won't grok `-c -o', but also, the minuso test has
5165 # not run yet. These depmodes are late enough in the game, and
5166 # so weak that their functioning should not be impacted.
5167 am__obj=conftest.${OBJEXT-o}
5168 am__minus_obj=
5169 ;;
5170 none) break ;;
5171 esac
5172 if depmode=$depmode \
5173 source=sub/conftest.c object=$am__obj \
5174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5175 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5176 >/dev/null 2>conftest.err &&
5177 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5179 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5181 # icc doesn't choke on unknown options, it will just issue warnings
5182 # or remarks (even with -Werror). So we grep stderr for any message
5183 # that says an option was ignored or not supported.
5184 # When given -MP, icc 7.0 and 7.1 complain thusly:
5185 # icc: Command line warning: ignoring option '-M'; no argument required
5186 # The diagnosis changed in icc 8.0:
5187 # icc: Command line remark: option '-MP' not supported
5188 if (grep 'ignoring option' conftest.err ||
5189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5190 am_cv_CC_dependencies_compiler_type=$depmode
5191 break
5192 fi
5193 fi
5194 done
5195
5196 cd ..
5197 rm -rf conftest.dir
5198else
5199 am_cv_CC_dependencies_compiler_type=none
5200fi
5201
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5204$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5205CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5206
5207 if
5208 test "x$enable_dependency_tracking" != xno \
5209 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5210 am__fastdepCC_TRUE=
5211 am__fastdepCC_FALSE='#'
5212else
5213 am__fastdepCC_TRUE='#'
5214 am__fastdepCC_FALSE=
5215fi
5216
5217
cristy3ed852e2009-09-05 21:47:34 +00005218
cristya0b81c32010-01-22 02:54:33 +00005219ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5225$as_echo_n "checking how to run the C preprocessor... " >&6; }
5226# On Suns, sometimes $CPP names a directory.
5227if test -n "$CPP" && test -d "$CPP"; then
5228 CPP=
5229fi
5230if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005231 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005232 $as_echo_n "(cached) " >&6
5233else
5234 # Double quotes because CPP needs to be expanded
5235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5236 do
5237 ac_preproc_ok=false
5238for ac_c_preproc_warn_flag in '' yes
5239do
5240 # Use a header file that comes with gcc, so configuring glibc
5241 # with a fresh cross-compiler works.
5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5243 # <limits.h> exists even on freestanding compilers.
5244 # On the NeXT, cc -E runs the code through the compiler's parser,
5245 # not just through cpp. "Syntax error" is here to catch this case.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h. */
5248#ifdef __STDC__
5249# include <limits.h>
5250#else
5251# include <assert.h>
5252#endif
5253 Syntax error
5254_ACEOF
5255if ac_fn_c_try_cpp "$LINENO"; then :
5256
5257else
5258 # Broken: fails on valid input.
5259continue
5260fi
cristyda16f162011-02-19 23:52:17 +00005261rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005262
5263 # OK, works on sane cases. Now check whether nonexistent headers
5264 # can be detected and how.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h. */
5267#include <ac_nonexistent.h>
5268_ACEOF
5269if ac_fn_c_try_cpp "$LINENO"; then :
5270 # Broken: success on invalid input.
5271continue
5272else
5273 # Passes both tests.
5274ac_preproc_ok=:
5275break
5276fi
cristyda16f162011-02-19 23:52:17 +00005277rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005278
5279done
5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005281rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005282if $ac_preproc_ok; then :
5283 break
5284fi
5285
5286 done
5287 ac_cv_prog_CPP=$CPP
5288
5289fi
5290 CPP=$ac_cv_prog_CPP
5291else
5292 ac_cv_prog_CPP=$CPP
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5295$as_echo "$CPP" >&6; }
5296ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299 # Use a header file that comes with gcc, so configuring glibc
5300 # with a fresh cross-compiler works.
5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302 # <limits.h> exists even on freestanding compilers.
5303 # On the NeXT, cc -E runs the code through the compiler's parser,
5304 # not just through cpp. "Syntax error" is here to catch this case.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312 Syntax error
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315
5316else
5317 # Broken: fails on valid input.
5318continue
5319fi
cristyda16f162011-02-19 23:52:17 +00005320rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005321
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h. */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_c_try_cpp "$LINENO"; then :
5329 # Broken: success on invalid input.
5330continue
5331else
5332 # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
cristyda16f162011-02-19 23:52:17 +00005336rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005340rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005341if $ac_preproc_ok; then :
5342
5343else
5344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005346as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5347See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005348fi
5349
5350ac_ext=c
5351ac_cpp='$CPP $CPPFLAGS'
5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5358$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005359if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005360 $as_echo_n "(cached) " >&6
5361else
5362 if test -z "$GREP"; then
5363 ac_path_GREP_found=false
5364 # Loop through the user's path and test for each of PROGNAME-LIST
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_prog in grep ggrep; do
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5373 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5374# Check for GNU ac_path_GREP and select it if it is found.
5375 # Check for GNU $ac_path_GREP
5376case `"$ac_path_GREP" --version 2>&1` in
5377*GNU*)
5378 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5379*)
5380 ac_count=0
5381 $as_echo_n 0123456789 >"conftest.in"
5382 while :
5383 do
5384 cat "conftest.in" "conftest.in" >"conftest.tmp"
5385 mv "conftest.tmp" "conftest.in"
5386 cp "conftest.in" "conftest.nl"
5387 $as_echo 'GREP' >> "conftest.nl"
5388 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5390 as_fn_arith $ac_count + 1 && ac_count=$as_val
5391 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5392 # Best one so far, save it but keep looking for a better one
5393 ac_cv_path_GREP="$ac_path_GREP"
5394 ac_path_GREP_max=$ac_count
5395 fi
5396 # 10*(2^10) chars as input seems more than enough
5397 test $ac_count -gt 10 && break
5398 done
5399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5400esac
5401
5402 $ac_path_GREP_found && break 3
5403 done
5404 done
5405 done
5406IFS=$as_save_IFS
5407 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005408 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005409 fi
5410else
5411 ac_cv_path_GREP=$GREP
5412fi
5413
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5416$as_echo "$ac_cv_path_GREP" >&6; }
5417 GREP="$ac_cv_path_GREP"
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5421$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005422if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005423 $as_echo_n "(cached) " >&6
5424else
5425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5426 then ac_cv_path_EGREP="$GREP -E"
5427 else
5428 if test -z "$EGREP"; then
5429 ac_path_EGREP_found=false
5430 # Loop through the user's path and test for each of PROGNAME-LIST
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_prog in egrep; do
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5439 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5440# Check for GNU ac_path_EGREP and select it if it is found.
5441 # Check for GNU $ac_path_EGREP
5442case `"$ac_path_EGREP" --version 2>&1` in
5443*GNU*)
5444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5445*)
5446 ac_count=0
5447 $as_echo_n 0123456789 >"conftest.in"
5448 while :
5449 do
5450 cat "conftest.in" "conftest.in" >"conftest.tmp"
5451 mv "conftest.tmp" "conftest.in"
5452 cp "conftest.in" "conftest.nl"
5453 $as_echo 'EGREP' >> "conftest.nl"
5454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456 as_fn_arith $ac_count + 1 && ac_count=$as_val
5457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5458 # Best one so far, save it but keep looking for a better one
5459 ac_cv_path_EGREP="$ac_path_EGREP"
5460 ac_path_EGREP_max=$ac_count
5461 fi
5462 # 10*(2^10) chars as input seems more than enough
5463 test $ac_count -gt 10 && break
5464 done
5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466esac
5467
5468 $ac_path_EGREP_found && break 3
5469 done
5470 done
5471 done
5472IFS=$as_save_IFS
5473 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005474 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005475 fi
5476else
5477 ac_cv_path_EGREP=$EGREP
5478fi
5479
5480 fi
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5483$as_echo "$ac_cv_path_EGREP" >&6; }
5484 EGREP="$ac_cv_path_EGREP"
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5488$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005489if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005490 $as_echo_n "(cached) " >&6
5491else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h. */
5494#include <stdlib.h>
5495#include <stdarg.h>
5496#include <string.h>
5497#include <float.h>
5498
5499int
5500main ()
5501{
5502
5503 ;
5504 return 0;
5505}
5506_ACEOF
5507if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_header_stdc=yes
5509else
5510 ac_cv_header_stdc=no
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513
5514if test $ac_cv_header_stdc = yes; then
5515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518#include <string.h>
5519
5520_ACEOF
5521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 $EGREP "memchr" >/dev/null 2>&1; then :
5523
5524else
5525 ac_cv_header_stdc=no
5526fi
5527rm -f conftest*
5528
5529fi
5530
5531if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h. */
5535#include <stdlib.h>
5536
5537_ACEOF
5538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev/null 2>&1; then :
5540
5541else
5542 ac_cv_header_stdc=no
5543fi
5544rm -f conftest*
5545
5546fi
5547
5548if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then :
5551 :
5552else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h. */
5555#include <ctype.h>
5556#include <stdlib.h>
5557#if ((' ' & 0x0FF) == 0x020)
5558# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5559# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5560#else
5561# define ISLOWER(c) \
5562 (('a' <= (c) && (c) <= 'i') \
5563 || ('j' <= (c) && (c) <= 'r') \
5564 || ('s' <= (c) && (c) <= 'z'))
5565# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5566#endif
5567
5568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5569int
5570main ()
5571{
5572 int i;
5573 for (i = 0; i < 256; i++)
5574 if (XOR (islower (i), ISLOWER (i))
5575 || toupper (i) != TOUPPER (i))
5576 return 2;
5577 return 0;
5578}
5579_ACEOF
5580if ac_fn_c_try_run "$LINENO"; then :
5581
5582else
5583 ac_cv_header_stdc=no
5584fi
5585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5586 conftest.$ac_objext conftest.beam conftest.$ac_ext
5587fi
5588
5589fi
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5592$as_echo "$ac_cv_header_stdc" >&6; }
5593if test $ac_cv_header_stdc = yes; then
5594
5595$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5596
5597fi
5598
5599# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5600for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5601 inttypes.h stdint.h unistd.h
5602do :
5603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5604ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5605"
cristy98dddb52010-11-04 00:30:15 +00005606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005607 cat >>confdefs.h <<_ACEOF
5608#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609_ACEOF
5610
5611fi
5612
5613done
5614
5615
5616
5617 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 +00005618if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005619 MINIX=yes
5620else
5621 MINIX=
5622fi
5623
5624
5625 if test "$MINIX" = yes; then
5626
5627$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5628
5629
5630$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5631
5632
5633$as_echo "#define _MINIX 1" >>confdefs.h
5634
5635 fi
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5639$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005640if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005641 $as_echo_n "(cached) " >&6
5642else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645
5646# define __EXTENSIONS__ 1
5647 $ac_includes_default
5648int
5649main ()
5650{
5651
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"; then :
5657 ac_cv_safe_to_define___extensions__=yes
5658else
5659 ac_cv_safe_to_define___extensions__=no
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5664$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5665 test $ac_cv_safe_to_define___extensions__ = yes &&
5666 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5667
5668 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5669
5670 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5671
5672 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5673
5674 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5675
5676
5677
5678# Check for programs
5679ac_ext=c
5680ac_cpp='$CPP $CPPFLAGS'
5681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}gcc; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005689if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$CC"; then
5693 ac_cv_prog_CC="$CC" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712CC=$ac_cv_prog_CC
5713if test -n "$CC"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5715$as_echo "$CC" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722fi
5723if test -z "$ac_cv_prog_CC"; then
5724 ac_ct_CC=$CC
5725 # Extract the first word of "gcc", so it can be a program name with args.
5726set dummy gcc; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005729if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005730 $as_echo_n "(cached) " >&6
5731else
5732 if test -n "$ac_ct_CC"; then
5733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_ac_ct_CC="gcc"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746done
5747 done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752ac_ct_CC=$ac_cv_prog_ac_ct_CC
5753if test -n "$ac_ct_CC"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5755$as_echo "$ac_ct_CC" >&6; }
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761 if test "x$ac_ct_CC" = x; then
5762 CC=""
5763 else
5764 case $cross_compiling:$ac_tool_warned in
5765yes:)
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770 CC=$ac_ct_CC
5771 fi
5772else
5773 CC="$ac_cv_prog_CC"
5774fi
5775
5776if test -z "$CC"; then
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5779set dummy ${ac_tool_prefix}cc; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005782if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005783 $as_echo_n "(cached) " >&6
5784else
5785 if test -n "$CC"; then
5786 ac_cv_prog_CC="$CC" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795 ac_cv_prog_CC="${ac_tool_prefix}cc"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800 done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805CC=$ac_cv_prog_CC
5806if test -n "$CC"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5808$as_echo "$CC" >&6; }
5809else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814
5815 fi
5816fi
5817if test -z "$CC"; then
5818 # Extract the first word of "cc", so it can be a program name with args.
5819set dummy cc; ac_word=$2
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005822if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005823 $as_echo_n "(cached) " >&6
5824else
5825 if test -n "$CC"; then
5826 ac_cv_prog_CC="$CC" # Let the user override the test.
5827else
5828 ac_prog_rejected=no
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5837 ac_prog_rejected=yes
5838 continue
5839 fi
5840 ac_cv_prog_CC="cc"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845 done
5846IFS=$as_save_IFS
5847
5848if test $ac_prog_rejected = yes; then
5849 # We found a bogon in the path, so make sure we never use it.
5850 set dummy $ac_cv_prog_CC
5851 shift
5852 if test $# != 0; then
5853 # We chose a different compiler from the bogus one.
5854 # However, it has the same basename, so the bogon will be chosen
5855 # first if we set CC to just the basename; use the full file name.
5856 shift
5857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5858 fi
5859fi
5860fi
5861fi
5862CC=$ac_cv_prog_CC
5863if test -n "$CC"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5865$as_echo "$CC" >&6; }
5866else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871
5872fi
5873if test -z "$CC"; then
5874 if test -n "$ac_tool_prefix"; then
5875 for ac_prog in cl.exe
5876 do
5877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005881if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$CC"; then
5885 ac_cv_prog_CC="$CC" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899 done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904CC=$ac_cv_prog_CC
5905if test -n "$CC"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5907$as_echo "$CC" >&6; }
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913
5914 test -n "$CC" && break
5915 done
5916fi
5917if test -z "$CC"; then
5918 ac_ct_CC=$CC
5919 for ac_prog in cl.exe
5920do
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922set dummy $ac_prog; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005925if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005926 $as_echo_n "(cached) " >&6
5927else
5928 if test -n "$ac_ct_CC"; then
5929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_ac_ct_CC="$ac_prog"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942done
5943 done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948ac_ct_CC=$ac_cv_prog_ac_ct_CC
5949if test -n "$ac_ct_CC"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5951$as_echo "$ac_ct_CC" >&6; }
5952else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957
5958 test -n "$ac_ct_CC" && break
5959done
5960
5961 if test "x$ac_ct_CC" = x; then
5962 CC=""
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965yes:)
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968ac_tool_warned=yes ;;
5969esac
5970 CC=$ac_ct_CC
5971 fi
5972fi
5973
5974fi
5975
5976
5977test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005979as_fn_error $? "no acceptable C compiler found in \$PATH
5980See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005981
5982# Provide some information about the compiler.
5983$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5984set X $ac_compile
5985ac_compiler=$2
5986for ac_option in --version -v -V -qversion; do
5987 { { ac_try="$ac_compiler $ac_option >&5"
5988case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991esac
5992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5993$as_echo "$ac_try_echo"; } >&5
5994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5995 ac_status=$?
5996 if test -s conftest.err; then
5997 sed '10a\
5998... rest of stderr output deleted ...
5999 10q' conftest.err >conftest.er1
6000 cat conftest.er1 >&5
6001 fi
6002 rm -f conftest.er1 conftest.err
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; }
6005done
6006
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6008$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006009if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006010 $as_echo_n "(cached) " >&6
6011else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h. */
6014
6015int
6016main ()
6017{
6018#ifndef __GNUC__
6019 choke me
6020#endif
6021
6022 ;
6023 return 0;
6024}
6025_ACEOF
6026if ac_fn_c_try_compile "$LINENO"; then :
6027 ac_compiler_gnu=yes
6028else
6029 ac_compiler_gnu=no
6030fi
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032ac_cv_c_compiler_gnu=$ac_compiler_gnu
6033
6034fi
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6036$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6037if test $ac_compiler_gnu = yes; then
6038 GCC=yes
6039else
6040 GCC=
6041fi
6042ac_test_CFLAGS=${CFLAGS+set}
6043ac_save_CFLAGS=$CFLAGS
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6045$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006046if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006047 $as_echo_n "(cached) " >&6
6048else
6049 ac_save_c_werror_flag=$ac_c_werror_flag
6050 ac_c_werror_flag=yes
6051 ac_cv_prog_cc_g=no
6052 CFLAGS="-g"
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h. */
6055
6056int
6057main ()
6058{
6059
6060 ;
6061 return 0;
6062}
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065 ac_cv_prog_cc_g=yes
6066else
6067 CFLAGS=""
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h. */
6070
6071int
6072main ()
6073{
6074
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079if ac_fn_c_try_compile "$LINENO"; then :
6080
6081else
6082 ac_c_werror_flag=$ac_save_c_werror_flag
6083 CFLAGS="-g"
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h. */
6086
6087int
6088main ()
6089{
6090
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096 ac_cv_prog_cc_g=yes
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_c_werror_flag=$ac_save_c_werror_flag
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6106$as_echo "$ac_cv_prog_cc_g" >&6; }
6107if test "$ac_test_CFLAGS" = set; then
6108 CFLAGS=$ac_save_CFLAGS
6109elif test $ac_cv_prog_cc_g = yes; then
6110 if test "$GCC" = yes; then
6111 CFLAGS="-g -O2"
6112 else
6113 CFLAGS="-g"
6114 fi
6115else
6116 if test "$GCC" = yes; then
6117 CFLAGS="-O2"
6118 else
6119 CFLAGS=
6120 fi
6121fi
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6123$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006124if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006125 $as_echo_n "(cached) " >&6
6126else
6127 ac_cv_prog_cc_c89=no
6128ac_save_CC=$CC
6129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h. */
6131#include <stdarg.h>
6132#include <stdio.h>
6133#include <sys/types.h>
6134#include <sys/stat.h>
6135/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6136struct buf { int x; };
6137FILE * (*rcsopen) (struct buf *, struct stat *, int);
6138static char *e (p, i)
6139 char **p;
6140 int i;
6141{
6142 return p[i];
6143}
6144static char *f (char * (*g) (char **, int), char **p, ...)
6145{
6146 char *s;
6147 va_list v;
6148 va_start (v,p);
6149 s = g (p, va_arg (v,int));
6150 va_end (v);
6151 return s;
6152}
6153
6154/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6155 function prototypes and stuff, but not '\xHH' hex character constants.
6156 These don't provoke an error unfortunately, instead are silently treated
6157 as 'x'. The following induces an error, until -std is added to get
6158 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6159 array size at least. It's necessary to write '\x00'==0 to get something
6160 that's true only with -std. */
6161int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6162
6163/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6164 inside strings and character constants. */
6165#define FOO(x) 'x'
6166int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6167
6168int test (int i, double x);
6169struct s1 {int (*f) (int a);};
6170struct s2 {int (*f) (double a);};
6171int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6172int argc;
6173char **argv;
6174int
6175main ()
6176{
6177return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6178 ;
6179 return 0;
6180}
6181_ACEOF
6182for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6183 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6184do
6185 CC="$ac_save_CC $ac_arg"
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 ac_cv_prog_cc_c89=$ac_arg
6188fi
6189rm -f core conftest.err conftest.$ac_objext
6190 test "x$ac_cv_prog_cc_c89" != "xno" && break
6191done
6192rm -f conftest.$ac_ext
6193CC=$ac_save_CC
6194
6195fi
6196# AC_CACHE_VAL
6197case "x$ac_cv_prog_cc_c89" in
6198 x)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6200$as_echo "none needed" >&6; } ;;
6201 xno)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6203$as_echo "unsupported" >&6; } ;;
6204 *)
6205 CC="$CC $ac_cv_prog_cc_c89"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6207$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6208esac
6209if test "x$ac_cv_prog_cc_c89" != xno; then :
6210
6211fi
6212
6213ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
cristy73bd4a52010-10-05 11:24:23 +00006219depcc="$CC" am_compiler_list=
6220
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6222$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006223if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006224 $as_echo_n "(cached) " >&6
6225else
6226 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6227 # We make a subdir and do the tests there. Otherwise we can end up
6228 # making bogus files that we don't know about and never remove. For
6229 # instance it was reported that on HP-UX the gcc test will end up
6230 # making a dummy file named `D' -- because `-MD' means `put the output
6231 # in D'.
6232 mkdir conftest.dir
6233 # Copy depcomp to subdir because otherwise we won't find it if we're
6234 # using a relative directory.
6235 cp "$am_depcomp" conftest.dir
6236 cd conftest.dir
6237 # We will build objects and dependencies in a subdirectory because
6238 # it helps to detect inapplicable dependency modes. For instance
6239 # both Tru64's cc and ICC support -MD to output dependencies as a
6240 # side effect of compilation, but ICC will put the dependencies in
6241 # the current directory while Tru64 will put them in the object
6242 # directory.
6243 mkdir sub
6244
6245 am_cv_CC_dependencies_compiler_type=none
6246 if test "$am_compiler_list" = ""; then
6247 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6248 fi
6249 am__universal=false
6250 case " $depcc " in #(
6251 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6252 esac
6253
6254 for depmode in $am_compiler_list; do
6255 # Setup a source with many dependencies, because some compilers
6256 # like to wrap large dependency lists on column 80 (with \), and
6257 # we should not choose a depcomp mode which is confused by this.
6258 #
6259 # We need to recreate these files for each test, as the compiler may
6260 # overwrite some of them when testing with obscure command lines.
6261 # This happens at least with the AIX C compiler.
6262 : > sub/conftest.c
6263 for i in 1 2 3 4 5 6; do
6264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6266 # Solaris 8's {/usr,}/bin/sh.
6267 touch sub/conftst$i.h
6268 done
6269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6270
6271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6272 # mode. It turns out that the SunPro C++ compiler does not properly
6273 # handle `-M -o', and we need to detect this. Also, some Intel
6274 # versions had trouble with output in subdirs
6275 am__obj=sub/conftest.${OBJEXT-o}
6276 am__minus_obj="-o $am__obj"
6277 case $depmode in
6278 gcc)
6279 # This depmode causes a compiler race in universal mode.
6280 test "$am__universal" = false || continue
6281 ;;
6282 nosideeffect)
6283 # after this tag, mechanisms are not by side-effect, so they'll
6284 # only be used when explicitly requested
6285 if test "x$enable_dependency_tracking" = xyes; then
6286 continue
6287 else
6288 break
6289 fi
6290 ;;
6291 msvisualcpp | msvcmsys)
6292 # This compiler won't grok `-c -o', but also, the minuso test has
6293 # not run yet. These depmodes are late enough in the game, and
6294 # so weak that their functioning should not be impacted.
6295 am__obj=conftest.${OBJEXT-o}
6296 am__minus_obj=
6297 ;;
6298 none) break ;;
6299 esac
6300 if depmode=$depmode \
6301 source=sub/conftest.c object=$am__obj \
6302 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6303 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6304 >/dev/null 2>conftest.err &&
6305 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6306 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6307 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6308 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6309 # icc doesn't choke on unknown options, it will just issue warnings
6310 # or remarks (even with -Werror). So we grep stderr for any message
6311 # that says an option was ignored or not supported.
6312 # When given -MP, icc 7.0 and 7.1 complain thusly:
6313 # icc: Command line warning: ignoring option '-M'; no argument required
6314 # The diagnosis changed in icc 8.0:
6315 # icc: Command line remark: option '-MP' not supported
6316 if (grep 'ignoring option' conftest.err ||
6317 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6318 am_cv_CC_dependencies_compiler_type=$depmode
6319 break
6320 fi
6321 fi
6322 done
6323
6324 cd ..
6325 rm -rf conftest.dir
6326else
6327 am_cv_CC_dependencies_compiler_type=none
6328fi
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6332$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6333CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6334
6335 if
6336 test "x$enable_dependency_tracking" != xno \
6337 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6338 am__fastdepCC_TRUE=
6339 am__fastdepCC_FALSE='#'
6340else
6341 am__fastdepCC_TRUE='#'
6342 am__fastdepCC_FALSE=
6343fi
6344
6345
cristy95646052009-11-28 23:05:30 +00006346ac_ext=cpp
6347ac_cpp='$CXXCPP $CPPFLAGS'
6348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6351if test -z "$CXX"; then
6352 if test -n "$CCC"; then
6353 CXX=$CCC
6354 else
6355 if test -n "$ac_tool_prefix"; then
6356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6357 do
6358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006362if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006363 $as_echo_n "(cached) " >&6
6364else
6365 if test -n "$CXX"; then
6366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380 done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385CXX=$ac_cv_prog_CXX
6386if test -n "$CXX"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6388$as_echo "$CXX" >&6; }
6389else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391$as_echo "no" >&6; }
6392fi
6393
6394
6395 test -n "$CXX" && break
6396 done
6397fi
6398if test -z "$CXX"; then
6399 ac_ct_CXX=$CXX
6400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6401do
6402 # Extract the first word of "$ac_prog", so it can be a program name with args.
6403set dummy $ac_prog; ac_word=$2
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006406if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006407 $as_echo_n "(cached) " >&6
6408else
6409 if test -n "$ac_ct_CXX"; then
6410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_ac_ct_CXX="$ac_prog"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423done
6424 done
6425IFS=$as_save_IFS
6426
6427fi
6428fi
6429ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6430if test -n "$ac_ct_CXX"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6432$as_echo "$ac_ct_CXX" >&6; }
6433else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }
6436fi
6437
6438
6439 test -n "$ac_ct_CXX" && break
6440done
6441
6442 if test "x$ac_ct_CXX" = x; then
6443 CXX="g++"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446yes:)
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449ac_tool_warned=yes ;;
6450esac
6451 CXX=$ac_ct_CXX
6452 fi
6453fi
6454
6455 fi
6456fi
6457# Provide some information about the compiler.
6458$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6459set X $ac_compile
6460ac_compiler=$2
6461for ac_option in --version -v -V -qversion; do
6462 { { ac_try="$ac_compiler $ac_option >&5"
6463case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466esac
6467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6468$as_echo "$ac_try_echo"; } >&5
6469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6470 ac_status=$?
6471 if test -s conftest.err; then
6472 sed '10a\
6473... rest of stderr output deleted ...
6474 10q' conftest.err >conftest.er1
6475 cat conftest.er1 >&5
6476 fi
6477 rm -f conftest.er1 conftest.err
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }
6480done
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6483$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006484if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006485 $as_echo_n "(cached) " >&6
6486else
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h. */
6489
6490int
6491main ()
6492{
6493#ifndef __GNUC__
6494 choke me
6495#endif
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
6501if ac_fn_cxx_try_compile "$LINENO"; then :
6502 ac_compiler_gnu=yes
6503else
6504 ac_compiler_gnu=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6508
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6511$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6512if test $ac_compiler_gnu = yes; then
6513 GXX=yes
6514else
6515 GXX=
6516fi
6517ac_test_CXXFLAGS=${CXXFLAGS+set}
6518ac_save_CXXFLAGS=$CXXFLAGS
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6520$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006521if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006522 $as_echo_n "(cached) " >&6
6523else
6524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6525 ac_cxx_werror_flag=yes
6526 ac_cv_prog_cxx_g=no
6527 CXXFLAGS="-g"
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h. */
6530
6531int
6532main ()
6533{
6534
6535 ;
6536 return 0;
6537}
6538_ACEOF
6539if ac_fn_cxx_try_compile "$LINENO"; then :
6540 ac_cv_prog_cxx_g=yes
6541else
6542 CXXFLAGS=""
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h. */
6545
6546int
6547main ()
6548{
6549
6550 ;
6551 return 0;
6552}
6553_ACEOF
6554if ac_fn_cxx_try_compile "$LINENO"; then :
6555
6556else
6557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558 CXXFLAGS="-g"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h. */
6561
6562int
6563main ()
6564{
6565
6566 ;
6567 return 0;
6568}
6569_ACEOF
6570if ac_fn_cxx_try_compile "$LINENO"; then :
6571 ac_cv_prog_cxx_g=yes
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6579fi
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6581$as_echo "$ac_cv_prog_cxx_g" >&6; }
6582if test "$ac_test_CXXFLAGS" = set; then
6583 CXXFLAGS=$ac_save_CXXFLAGS
6584elif test $ac_cv_prog_cxx_g = yes; then
6585 if test "$GXX" = yes; then
6586 CXXFLAGS="-g -O2"
6587 else
6588 CXXFLAGS="-g"
6589 fi
6590else
6591 if test "$GXX" = yes; then
6592 CXXFLAGS="-O2"
6593 else
6594 CXXFLAGS=
6595 fi
6596fi
6597ac_ext=c
6598ac_cpp='$CPP $CPPFLAGS'
6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602
cristy73bd4a52010-10-05 11:24:23 +00006603depcc="$CXX" am_compiler_list=
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6606$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006607if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006608 $as_echo_n "(cached) " >&6
6609else
6610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6611 # We make a subdir and do the tests there. Otherwise we can end up
6612 # making bogus files that we don't know about and never remove. For
6613 # instance it was reported that on HP-UX the gcc test will end up
6614 # making a dummy file named `D' -- because `-MD' means `put the output
6615 # in D'.
6616 mkdir conftest.dir
6617 # Copy depcomp to subdir because otherwise we won't find it if we're
6618 # using a relative directory.
6619 cp "$am_depcomp" conftest.dir
6620 cd conftest.dir
6621 # We will build objects and dependencies in a subdirectory because
6622 # it helps to detect inapplicable dependency modes. For instance
6623 # both Tru64's cc and ICC support -MD to output dependencies as a
6624 # side effect of compilation, but ICC will put the dependencies in
6625 # the current directory while Tru64 will put them in the object
6626 # directory.
6627 mkdir sub
6628
6629 am_cv_CXX_dependencies_compiler_type=none
6630 if test "$am_compiler_list" = ""; then
6631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6632 fi
6633 am__universal=false
6634 case " $depcc " in #(
6635 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6636 esac
6637
6638 for depmode in $am_compiler_list; do
6639 # Setup a source with many dependencies, because some compilers
6640 # like to wrap large dependency lists on column 80 (with \), and
6641 # we should not choose a depcomp mode which is confused by this.
6642 #
6643 # We need to recreate these files for each test, as the compiler may
6644 # overwrite some of them when testing with obscure command lines.
6645 # This happens at least with the AIX C compiler.
6646 : > sub/conftest.c
6647 for i in 1 2 3 4 5 6; do
6648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6649 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6650 # Solaris 8's {/usr,}/bin/sh.
6651 touch sub/conftst$i.h
6652 done
6653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6654
6655 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6656 # mode. It turns out that the SunPro C++ compiler does not properly
6657 # handle `-M -o', and we need to detect this. Also, some Intel
6658 # versions had trouble with output in subdirs
6659 am__obj=sub/conftest.${OBJEXT-o}
6660 am__minus_obj="-o $am__obj"
6661 case $depmode in
6662 gcc)
6663 # This depmode causes a compiler race in universal mode.
6664 test "$am__universal" = false || continue
6665 ;;
6666 nosideeffect)
6667 # after this tag, mechanisms are not by side-effect, so they'll
6668 # only be used when explicitly requested
6669 if test "x$enable_dependency_tracking" = xyes; then
6670 continue
6671 else
6672 break
6673 fi
6674 ;;
6675 msvisualcpp | msvcmsys)
6676 # This compiler won't grok `-c -o', but also, the minuso test has
6677 # not run yet. These depmodes are late enough in the game, and
6678 # so weak that their functioning should not be impacted.
6679 am__obj=conftest.${OBJEXT-o}
6680 am__minus_obj=
6681 ;;
6682 none) break ;;
6683 esac
6684 if depmode=$depmode \
6685 source=sub/conftest.c object=$am__obj \
6686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6688 >/dev/null 2>conftest.err &&
6689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6693 # icc doesn't choke on unknown options, it will just issue warnings
6694 # or remarks (even with -Werror). So we grep stderr for any message
6695 # that says an option was ignored or not supported.
6696 # When given -MP, icc 7.0 and 7.1 complain thusly:
6697 # icc: Command line warning: ignoring option '-M'; no argument required
6698 # The diagnosis changed in icc 8.0:
6699 # icc: Command line remark: option '-MP' not supported
6700 if (grep 'ignoring option' conftest.err ||
6701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6702 am_cv_CXX_dependencies_compiler_type=$depmode
6703 break
6704 fi
6705 fi
6706 done
6707
6708 cd ..
6709 rm -rf conftest.dir
6710else
6711 am_cv_CXX_dependencies_compiler_type=none
6712fi
6713
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6716$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6717CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6718
6719 if
6720 test "x$enable_dependency_tracking" != xno \
6721 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6722 am__fastdepCXX_TRUE=
6723 am__fastdepCXX_FALSE='#'
6724else
6725 am__fastdepCXX_TRUE='#'
6726 am__fastdepCXX_FALSE=
6727fi
6728
6729
cristy8b350f62009-11-15 23:12:43 +00006730 case $ac_cv_prog_cc_stdc in #(
6731 no) :
6732 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6733 *) :
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006735$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006736if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006737 $as_echo_n "(cached) " >&6
6738else
6739 ac_cv_prog_cc_c99=no
6740ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006742/* end confdefs.h. */
6743#include <stdarg.h>
6744#include <stdbool.h>
6745#include <stdlib.h>
6746#include <wchar.h>
6747#include <stdio.h>
6748
6749// Check varargs macros. These examples are taken from C99 6.10.3.5.
6750#define debug(...) fprintf (stderr, __VA_ARGS__)
6751#define showlist(...) puts (#__VA_ARGS__)
6752#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6753static void
6754test_varargs_macros (void)
6755{
6756 int x = 1234;
6757 int y = 5678;
6758 debug ("Flag");
6759 debug ("X = %d\n", x);
6760 showlist (The first, second, and third items.);
6761 report (x>y, "x is %d but y is %d", x, y);
6762}
6763
6764// Check long long types.
6765#define BIG64 18446744073709551615ull
6766#define BIG32 4294967295ul
6767#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6768#if !BIG_OK
6769 your preprocessor is broken;
6770#endif
6771#if BIG_OK
6772#else
6773 your preprocessor is broken;
6774#endif
6775static long long int bignum = -9223372036854775807LL;
6776static unsigned long long int ubignum = BIG64;
6777
6778struct incomplete_array
6779{
6780 int datasize;
6781 double data[];
6782};
6783
6784struct named_init {
6785 int number;
6786 const wchar_t *name;
6787 double average;
6788};
6789
6790typedef const char *ccp;
6791
6792static inline int
6793test_restrict (ccp restrict text)
6794{
6795 // See if C++-style comments work.
6796 // Iterate through items via the restricted pointer.
6797 // Also check for declarations in for loops.
6798 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6799 continue;
6800 return 0;
6801}
6802
6803// Check varargs and va_copy.
6804static void
6805test_varargs (const char *format, ...)
6806{
6807 va_list args;
6808 va_start (args, format);
6809 va_list args_copy;
6810 va_copy (args_copy, args);
6811
6812 const char *str;
6813 int number;
6814 float fnumber;
6815
6816 while (*format)
6817 {
6818 switch (*format++)
6819 {
6820 case 's': // string
6821 str = va_arg (args_copy, const char *);
6822 break;
6823 case 'd': // int
6824 number = va_arg (args_copy, int);
6825 break;
6826 case 'f': // float
6827 fnumber = va_arg (args_copy, double);
6828 break;
6829 default:
6830 break;
6831 }
6832 }
6833 va_end (args_copy);
6834 va_end (args);
6835}
6836
6837int
6838main ()
6839{
6840
6841 // Check bool.
6842 _Bool success = false;
6843
6844 // Check restrict.
6845 if (test_restrict ("String literal") == 0)
6846 success = true;
6847 char *restrict newvar = "Another string";
6848
6849 // Check varargs.
6850 test_varargs ("s, d' f .", "string", 65, 34.234);
6851 test_varargs_macros ();
6852
6853 // Check flexible array members.
6854 struct incomplete_array *ia =
6855 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6856 ia->datasize = 10;
6857 for (int i = 0; i < ia->datasize; ++i)
6858 ia->data[i] = i * 1.234;
6859
6860 // Check named initializers.
6861 struct named_init ni = {
6862 .number = 34,
6863 .name = L"Test wide string",
6864 .average = 543.34343,
6865 };
6866
6867 ni.number = 58;
6868
6869 int dynamic_array[ni.number];
6870 dynamic_array[ni.number - 1] = 543;
6871
6872 // work around unused variable warnings
6873 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6874 || dynamic_array[ni.number - 1] != 543);
6875
6876 ;
6877 return 0;
6878}
6879_ACEOF
6880for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6881do
6882 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006883 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006884 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006885fi
cristy3ed852e2009-09-05 21:47:34 +00006886rm -f core conftest.err conftest.$ac_objext
6887 test "x$ac_cv_prog_cc_c99" != "xno" && break
6888done
6889rm -f conftest.$ac_ext
6890CC=$ac_save_CC
6891
6892fi
6893# AC_CACHE_VAL
6894case "x$ac_cv_prog_cc_c99" in
6895 x)
cristy8b350f62009-11-15 23:12:43 +00006896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006897$as_echo "none needed" >&6; } ;;
6898 xno)
cristy8b350f62009-11-15 23:12:43 +00006899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006900$as_echo "unsupported" >&6; } ;;
6901 *)
6902 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006904$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6905esac
cristy8b350f62009-11-15 23:12:43 +00006906if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006907 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6908else
cristy8b350f62009-11-15 23:12:43 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006910$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006911if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006912 $as_echo_n "(cached) " >&6
6913else
6914 ac_cv_prog_cc_c89=no
6915ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006917/* end confdefs.h. */
6918#include <stdarg.h>
6919#include <stdio.h>
6920#include <sys/types.h>
6921#include <sys/stat.h>
6922/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6923struct buf { int x; };
6924FILE * (*rcsopen) (struct buf *, struct stat *, int);
6925static char *e (p, i)
6926 char **p;
6927 int i;
6928{
6929 return p[i];
6930}
6931static char *f (char * (*g) (char **, int), char **p, ...)
6932{
6933 char *s;
6934 va_list v;
6935 va_start (v,p);
6936 s = g (p, va_arg (v,int));
6937 va_end (v);
6938 return s;
6939}
6940
6941/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6942 function prototypes and stuff, but not '\xHH' hex character constants.
6943 These don't provoke an error unfortunately, instead are silently treated
6944 as 'x'. The following induces an error, until -std is added to get
6945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6946 array size at least. It's necessary to write '\x00'==0 to get something
6947 that's true only with -std. */
6948int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6949
6950/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6951 inside strings and character constants. */
6952#define FOO(x) 'x'
6953int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6954
6955int test (int i, double x);
6956struct s1 {int (*f) (int a);};
6957struct s2 {int (*f) (double a);};
6958int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6959int argc;
6960char **argv;
6961int
6962main ()
6963{
6964return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6965 ;
6966 return 0;
6967}
6968_ACEOF
6969for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6971do
6972 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006973 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006974 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006975fi
cristy3ed852e2009-09-05 21:47:34 +00006976rm -f core conftest.err conftest.$ac_objext
6977 test "x$ac_cv_prog_cc_c89" != "xno" && break
6978done
6979rm -f conftest.$ac_ext
6980CC=$ac_save_CC
6981
6982fi
6983# AC_CACHE_VAL
6984case "x$ac_cv_prog_cc_c89" in
6985 x)
cristy8b350f62009-11-15 23:12:43 +00006986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006987$as_echo "none needed" >&6; } ;;
6988 xno)
cristy8b350f62009-11-15 23:12:43 +00006989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006990$as_echo "unsupported" >&6; } ;;
6991 *)
6992 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006994$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6995esac
cristy8b350f62009-11-15 23:12:43 +00006996if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006997 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6998else
6999 ac_cv_prog_cc_stdc=no
7000fi
7001
cristy3ed852e2009-09-05 21:47:34 +00007002fi
cristy3ed852e2009-09-05 21:47:34 +00007003 ;;
7004esac
cristy8b350f62009-11-15 23:12:43 +00007005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007006$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007007 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007008 $as_echo_n "(cached) " >&6
7009fi
7010
cristy8b350f62009-11-15 23:12:43 +00007011 case $ac_cv_prog_cc_stdc in #(
7012 no) :
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7014$as_echo "unsupported" >&6; } ;; #(
7015 '') :
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7017$as_echo "none needed" >&6; } ;; #(
7018 *) :
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007020$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7021esac
7022
cristy3ed852e2009-09-05 21:47:34 +00007023ac_ext=c
7024ac_cpp='$CPP $CPPFLAGS'
7025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007029$as_echo_n "checking how to run the C preprocessor... " >&6; }
7030# On Suns, sometimes $CPP names a directory.
7031if test -n "$CPP" && test -d "$CPP"; then
7032 CPP=
7033fi
7034if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007035 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007036 $as_echo_n "(cached) " >&6
7037else
7038 # Double quotes because CPP needs to be expanded
7039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7040 do
7041 ac_preproc_ok=false
7042for ac_c_preproc_warn_flag in '' yes
7043do
7044 # Use a header file that comes with gcc, so configuring glibc
7045 # with a fresh cross-compiler works.
7046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 # <limits.h> exists even on freestanding compilers.
7048 # On the NeXT, cc -E runs the code through the compiler's parser,
7049 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007051/* end confdefs.h. */
7052#ifdef __STDC__
7053# include <limits.h>
7054#else
7055# include <assert.h>
7056#endif
7057 Syntax error
7058_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007059if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007060
cristy8b350f62009-11-15 23:12:43 +00007061else
cristy3ed852e2009-09-05 21:47:34 +00007062 # Broken: fails on valid input.
7063continue
7064fi
cristyda16f162011-02-19 23:52:17 +00007065rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007066
7067 # OK, works on sane cases. Now check whether nonexistent headers
7068 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007070/* end confdefs.h. */
7071#include <ac_nonexistent.h>
7072_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007073if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007074 # Broken: success on invalid input.
7075continue
7076else
cristy3ed852e2009-09-05 21:47:34 +00007077 # Passes both tests.
7078ac_preproc_ok=:
7079break
7080fi
cristyda16f162011-02-19 23:52:17 +00007081rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007082
7083done
7084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007085rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007086if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007087 break
7088fi
7089
7090 done
7091 ac_cv_prog_CPP=$CPP
7092
7093fi
7094 CPP=$ac_cv_prog_CPP
7095else
7096 ac_cv_prog_CPP=$CPP
7097fi
cristy8b350f62009-11-15 23:12:43 +00007098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo "$CPP" >&6; }
7100ac_preproc_ok=false
7101for ac_c_preproc_warn_flag in '' yes
7102do
7103 # Use a header file that comes with gcc, so configuring glibc
7104 # with a fresh cross-compiler works.
7105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7106 # <limits.h> exists even on freestanding compilers.
7107 # On the NeXT, cc -E runs the code through the compiler's parser,
7108 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007110/* end confdefs.h. */
7111#ifdef __STDC__
7112# include <limits.h>
7113#else
7114# include <assert.h>
7115#endif
7116 Syntax error
7117_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007118if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007119
cristy8b350f62009-11-15 23:12:43 +00007120else
cristy3ed852e2009-09-05 21:47:34 +00007121 # Broken: fails on valid input.
7122continue
7123fi
cristyda16f162011-02-19 23:52:17 +00007124rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007125
7126 # OK, works on sane cases. Now check whether nonexistent headers
7127 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007129/* end confdefs.h. */
7130#include <ac_nonexistent.h>
7131_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007132if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007133 # Broken: success on invalid input.
7134continue
7135else
cristy3ed852e2009-09-05 21:47:34 +00007136 # Passes both tests.
7137ac_preproc_ok=:
7138break
7139fi
cristyda16f162011-02-19 23:52:17 +00007140rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007141
7142done
7143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007144rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007145if $ac_preproc_ok; then :
7146
cristy3ed852e2009-09-05 21:47:34 +00007147else
cristy8b350f62009-11-15 23:12:43 +00007148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007150as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7151See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007152fi
7153
7154ac_ext=c
7155ac_cpp='$CPP $CPPFLAGS'
7156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159
cristy73bd4a52010-10-05 11:24:23 +00007160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7161$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007162if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007163 $as_echo_n "(cached) " >&6
7164else
7165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7166 for ac_i in 1 2 3 4 5 6 7; do
7167 ac_script="$ac_script$as_nl$ac_script"
7168 done
7169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7170 { ac_script=; unset ac_script;}
7171 if test -z "$SED"; then
7172 ac_path_SED_found=false
7173 # Loop through the user's path and test for each of PROGNAME-LIST
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_prog in sed gsed; do
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7182 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7183# Check for GNU ac_path_SED and select it if it is found.
7184 # Check for GNU $ac_path_SED
7185case `"$ac_path_SED" --version 2>&1` in
7186*GNU*)
7187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7188*)
7189 ac_count=0
7190 $as_echo_n 0123456789 >"conftest.in"
7191 while :
7192 do
7193 cat "conftest.in" "conftest.in" >"conftest.tmp"
7194 mv "conftest.tmp" "conftest.in"
7195 cp "conftest.in" "conftest.nl"
7196 $as_echo '' >> "conftest.nl"
7197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7199 as_fn_arith $ac_count + 1 && ac_count=$as_val
7200 if test $ac_count -gt ${ac_path_SED_max-0}; then
7201 # Best one so far, save it but keep looking for a better one
7202 ac_cv_path_SED="$ac_path_SED"
7203 ac_path_SED_max=$ac_count
7204 fi
7205 # 10*(2^10) chars as input seems more than enough
7206 test $ac_count -gt 10 && break
7207 done
7208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7209esac
7210
7211 $ac_path_SED_found && break 3
7212 done
7213 done
7214 done
7215IFS=$as_save_IFS
7216 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007217 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007218 fi
7219else
7220 ac_cv_path_SED=$SED
7221fi
7222
7223fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7225$as_echo "$ac_cv_path_SED" >&6; }
7226 SED="$ac_cv_path_SED"
7227 rm -f conftest.sed
7228
7229test -z "$SED" && SED=sed
7230Xsed="$SED -e 1s/^X//"
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7243$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007244if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007245 $as_echo_n "(cached) " >&6
7246else
7247 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7248 then ac_cv_path_FGREP="$GREP -F"
7249 else
7250 if test -z "$FGREP"; then
7251 ac_path_FGREP_found=false
7252 # Loop through the user's path and test for each of PROGNAME-LIST
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_prog in fgrep; do
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7261 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7262# Check for GNU ac_path_FGREP and select it if it is found.
7263 # Check for GNU $ac_path_FGREP
7264case `"$ac_path_FGREP" --version 2>&1` in
7265*GNU*)
7266 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7267*)
7268 ac_count=0
7269 $as_echo_n 0123456789 >"conftest.in"
7270 while :
7271 do
7272 cat "conftest.in" "conftest.in" >"conftest.tmp"
7273 mv "conftest.tmp" "conftest.in"
7274 cp "conftest.in" "conftest.nl"
7275 $as_echo 'FGREP' >> "conftest.nl"
7276 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7278 as_fn_arith $ac_count + 1 && ac_count=$as_val
7279 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7280 # Best one so far, save it but keep looking for a better one
7281 ac_cv_path_FGREP="$ac_path_FGREP"
7282 ac_path_FGREP_max=$ac_count
7283 fi
7284 # 10*(2^10) chars as input seems more than enough
7285 test $ac_count -gt 10 && break
7286 done
7287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7288esac
7289
7290 $ac_path_FGREP_found && break 3
7291 done
7292 done
7293 done
7294IFS=$as_save_IFS
7295 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007296 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007297 fi
7298else
7299 ac_cv_path_FGREP=$FGREP
7300fi
7301
7302 fi
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7305$as_echo "$ac_cv_path_FGREP" >&6; }
7306 FGREP="$ac_cv_path_FGREP"
7307
7308
7309test -z "$GREP" && GREP=grep
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
cristy0c60a692010-11-04 01:09:47 +00007327ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7328ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7330
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7332$as_echo_n "checking how to print strings... " >&6; }
7333# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007334if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007335 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7336 ECHO='print -r --'
7337elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7338 ECHO='printf %s\n'
7339else
7340 # Use this function as a fallback that always works.
7341 func_fallback_echo ()
7342 {
7343 eval 'cat <<_LTECHO_EOF
7344$1
7345_LTECHO_EOF'
7346 }
7347 ECHO='func_fallback_echo'
7348fi
7349
7350# func_echo_all arg...
7351# Invoke $ECHO with all args, space-separated.
7352func_echo_all ()
7353{
7354 $ECHO ""
7355}
7356
7357case "$ECHO" in
7358 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7359$as_echo "printf" >&6; } ;;
7360 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7361$as_echo "print -r" >&6; } ;;
7362 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7363$as_echo "cat" >&6; } ;;
7364esac
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
cristy73bd4a52010-10-05 11:24:23 +00007379
7380
7381# Check whether --with-gnu-ld was given.
7382if test "${with_gnu_ld+set}" = set; then :
7383 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7384else
7385 with_gnu_ld=no
7386fi
7387
7388ac_prog=ld
7389if test "$GCC" = yes; then
7390 # Check if gcc -print-prog-name=ld gives a path.
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7392$as_echo_n "checking for ld used by $CC... " >&6; }
7393 case $host in
7394 *-*-mingw*)
7395 # gcc leaves a trailing carriage return which upsets mingw
7396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7397 *)
7398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7399 esac
7400 case $ac_prog in
7401 # Accept absolute paths.
7402 [\\/]* | ?:[\\/]*)
7403 re_direlt='/[^/][^/]*/\.\./'
7404 # Canonicalize the pathname of ld
7405 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7406 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7407 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7408 done
7409 test -z "$LD" && LD="$ac_prog"
7410 ;;
7411 "")
7412 # If it fails, then pretend we aren't using GCC.
7413 ac_prog=ld
7414 ;;
7415 *)
7416 # If it is relative, then search for the first ld in PATH.
7417 with_gnu_ld=unknown
7418 ;;
7419 esac
7420elif test "$with_gnu_ld" = yes; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7422$as_echo_n "checking for GNU ld... " >&6; }
7423else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7425$as_echo_n "checking for non-GNU ld... " >&6; }
7426fi
cristyda16f162011-02-19 23:52:17 +00007427if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007428 $as_echo_n "(cached) " >&6
7429else
7430 if test -z "$LD"; then
7431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7432 for ac_dir in $PATH; do
7433 IFS="$lt_save_ifs"
7434 test -z "$ac_dir" && ac_dir=.
7435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7436 lt_cv_path_LD="$ac_dir/$ac_prog"
7437 # Check to see if the program is GNU ld. I'd rather use --version,
7438 # but apparently some variants of GNU ld only accept -v.
7439 # Break only if it was the GNU/non-GNU ld that we prefer.
7440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7441 *GNU* | *'with BFD'*)
7442 test "$with_gnu_ld" != no && break
7443 ;;
7444 *)
7445 test "$with_gnu_ld" != yes && break
7446 ;;
7447 esac
7448 fi
7449 done
7450 IFS="$lt_save_ifs"
7451else
7452 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7453fi
7454fi
7455
7456LD="$lt_cv_path_LD"
7457if test -n "$LD"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7459$as_echo "$LD" >&6; }
7460else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
cristy98dddb52010-11-04 00:30:15 +00007464test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7466$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007467if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007468 $as_echo_n "(cached) " >&6
7469else
7470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7471case `$LD -v 2>&1 </dev/null` in
7472*GNU* | *'with BFD'*)
7473 lt_cv_prog_gnu_ld=yes
7474 ;;
7475*)
7476 lt_cv_prog_gnu_ld=no
7477 ;;
7478esac
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7481$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7482with_gnu_ld=$lt_cv_prog_gnu_ld
7483
7484
7485
7486
7487
7488
7489
7490
7491
cristy3ed852e2009-09-05 21:47:34 +00007492
cristy837d6dc2010-02-27 01:16:57 +00007493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7494$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007495if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007496 $as_echo_n "(cached) " >&6
7497else
7498 ac_cv_prog_cc_c99=no
7499ac_save_CC=$CC
7500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501/* end confdefs.h. */
7502#include <stdarg.h>
7503#include <stdbool.h>
7504#include <stdlib.h>
7505#include <wchar.h>
7506#include <stdio.h>
7507
7508// Check varargs macros. These examples are taken from C99 6.10.3.5.
7509#define debug(...) fprintf (stderr, __VA_ARGS__)
7510#define showlist(...) puts (#__VA_ARGS__)
7511#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7512static void
7513test_varargs_macros (void)
7514{
7515 int x = 1234;
7516 int y = 5678;
7517 debug ("Flag");
7518 debug ("X = %d\n", x);
7519 showlist (The first, second, and third items.);
7520 report (x>y, "x is %d but y is %d", x, y);
7521}
7522
7523// Check long long types.
7524#define BIG64 18446744073709551615ull
7525#define BIG32 4294967295ul
7526#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7527#if !BIG_OK
7528 your preprocessor is broken;
7529#endif
7530#if BIG_OK
7531#else
7532 your preprocessor is broken;
7533#endif
7534static long long int bignum = -9223372036854775807LL;
7535static unsigned long long int ubignum = BIG64;
7536
7537struct incomplete_array
7538{
7539 int datasize;
7540 double data[];
7541};
7542
7543struct named_init {
7544 int number;
7545 const wchar_t *name;
7546 double average;
7547};
7548
7549typedef const char *ccp;
7550
7551static inline int
7552test_restrict (ccp restrict text)
7553{
7554 // See if C++-style comments work.
7555 // Iterate through items via the restricted pointer.
7556 // Also check for declarations in for loops.
7557 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7558 continue;
7559 return 0;
7560}
7561
7562// Check varargs and va_copy.
7563static void
7564test_varargs (const char *format, ...)
7565{
7566 va_list args;
7567 va_start (args, format);
7568 va_list args_copy;
7569 va_copy (args_copy, args);
7570
7571 const char *str;
7572 int number;
7573 float fnumber;
7574
7575 while (*format)
7576 {
7577 switch (*format++)
7578 {
7579 case 's': // string
7580 str = va_arg (args_copy, const char *);
7581 break;
7582 case 'd': // int
7583 number = va_arg (args_copy, int);
7584 break;
7585 case 'f': // float
7586 fnumber = va_arg (args_copy, double);
7587 break;
7588 default:
7589 break;
7590 }
7591 }
7592 va_end (args_copy);
7593 va_end (args);
7594}
7595
7596int
7597main ()
7598{
7599
7600 // Check bool.
7601 _Bool success = false;
7602
7603 // Check restrict.
7604 if (test_restrict ("String literal") == 0)
7605 success = true;
7606 char *restrict newvar = "Another string";
7607
7608 // Check varargs.
7609 test_varargs ("s, d' f .", "string", 65, 34.234);
7610 test_varargs_macros ();
7611
7612 // Check flexible array members.
7613 struct incomplete_array *ia =
7614 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7615 ia->datasize = 10;
7616 for (int i = 0; i < ia->datasize; ++i)
7617 ia->data[i] = i * 1.234;
7618
7619 // Check named initializers.
7620 struct named_init ni = {
7621 .number = 34,
7622 .name = L"Test wide string",
7623 .average = 543.34343,
7624 };
7625
7626 ni.number = 58;
7627
7628 int dynamic_array[ni.number];
7629 dynamic_array[ni.number - 1] = 543;
7630
7631 // work around unused variable warnings
7632 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7633 || dynamic_array[ni.number - 1] != 543);
7634
7635 ;
7636 return 0;
7637}
7638_ACEOF
7639for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7640do
7641 CC="$ac_save_CC $ac_arg"
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 ac_cv_prog_cc_c99=$ac_arg
7644fi
7645rm -f core conftest.err conftest.$ac_objext
7646 test "x$ac_cv_prog_cc_c99" != "xno" && break
7647done
7648rm -f conftest.$ac_ext
7649CC=$ac_save_CC
7650
7651fi
7652# AC_CACHE_VAL
7653case "x$ac_cv_prog_cc_c99" in
7654 x)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7656$as_echo "none needed" >&6; } ;;
7657 xno)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7659$as_echo "unsupported" >&6; } ;;
7660 *)
7661 CC="$CC $ac_cv_prog_cc_c99"
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7663$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7664esac
7665if test "x$ac_cv_prog_cc_c99" != xno; then :
7666
7667fi
7668
7669
cristy73bd4a52010-10-05 11:24:23 +00007670if test "x$CC" != xcc; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7672$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7673else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7675$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7676fi
7677set dummy $CC; ac_cc=`$as_echo "$2" |
7678 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007679if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007680 $as_echo_n "(cached) " >&6
7681else
cristy73bd4a52010-10-05 11:24:23 +00007682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h. */
7684
7685int
7686main ()
7687{
7688
7689 ;
7690 return 0;
7691}
7692_ACEOF
7693# Make sure it works both with $CC and with simple cc.
7694# We do the test twice because some compilers refuse to overwrite an
7695# existing .o file with -o, though they will create one.
7696ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7697rm -f conftest2.*
7698if { { case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701esac
7702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7703$as_echo "$ac_try_echo"; } >&5
7704 (eval "$ac_try") 2>&5
7705 ac_status=$?
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; } &&
7708 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711esac
7712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7713$as_echo "$ac_try_echo"; } >&5
7714 (eval "$ac_try") 2>&5
7715 ac_status=$?
7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717 test $ac_status = 0; };
7718then
7719 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7720 if test "x$CC" != xcc; then
7721 # Test first that cc exists at all.
7722 if { ac_try='cc -c conftest.$ac_ext >&5'
7723 { { case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
7727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7728$as_echo "$ac_try_echo"; } >&5
7729 (eval "$ac_try") 2>&5
7730 ac_status=$?
7731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732 test $ac_status = 0; }; }; then
7733 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7734 rm -f conftest2.*
7735 if { { case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738esac
7739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7740$as_echo "$ac_try_echo"; } >&5
7741 (eval "$ac_try") 2>&5
7742 ac_status=$?
7743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744 test $ac_status = 0; } &&
7745 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7748esac
7749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7750$as_echo "$ac_try_echo"; } >&5
7751 (eval "$ac_try") 2>&5
7752 ac_status=$?
7753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7754 test $ac_status = 0; };
7755 then
7756 # cc works too.
7757 :
7758 else
7759 # cc exists but doesn't like -o.
7760 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7761 fi
7762 fi
7763 fi
7764else
7765 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7766fi
7767rm -f core conftest*
7768
7769fi
7770if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7772$as_echo "yes" >&6; }
7773else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776
7777$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7778
7779fi
7780
7781# FIXME: we rely on the cache variable name because
7782# there is no other way.
7783set dummy $CC
7784am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7785eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7786if test "$am_t" != yes; then
7787 # Losing compiler, so override with the script.
7788 # FIXME: It is wrong to rewrite CC.
7789 # But if we don't then we get into trouble of one sort or another.
7790 # A longer-term fix would be to have automake use am__CC in this case,
7791 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7792 CC="$am_aux_dir/compile $CC"
7793fi
7794
7795
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7797$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007798if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007799 $as_echo_n "(cached) " >&6
7800else
7801 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808 ac_save_CFLAGS="$CFLAGS"
7809for 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" #
7810do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h. */
7813
7814int
7815main ()
7816{
cristy24fc1fe2010-10-23 21:13:01 +00007817
cristy73bd4a52010-10-05 11:24:23 +00007818 ;
7819 return 0;
7820}
7821_ACEOF
7822if ac_fn_c_try_compile "$LINENO"; then :
7823 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826done
7827 CFLAGS="$ac_save_CFLAGS"
7828 ac_ext=c
7829ac_cpp='$CPP $CPPFLAGS'
7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834
7835fi
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7837$as_echo "$ac_cv_cflags_warn_all" >&6; }
7838case ".$ac_cv_cflags_warn_all" in
7839 .ok|.ok,*) ;;
7840 .|.no|.no,*)
7841 ;;
7842 *)
7843 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7844 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7845 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; }
7849 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7850 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; }
7854 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7855 fi
7856 ;;
nicolas6237c462010-10-05 06:11:49 +00007857esac
cristy3ed852e2009-09-05 21:47:34 +00007858
cristya0b81c32010-01-22 02:54:33 +00007859
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7861$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7862set x ${MAKE-make}
7863ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007864if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007865 $as_echo_n "(cached) " >&6
7866else
7867 cat >conftest.make <<\_ACEOF
7868SHELL = /bin/sh
7869all:
7870 @echo '@@@%%%=$(MAKE)=@@@%%%'
7871_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007872# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007873case `${MAKE-make} -f conftest.make 2>/dev/null` in
7874 *@@@%%%=?*=@@@%%%*)
7875 eval ac_cv_prog_make_${ac_make}_set=yes;;
7876 *)
7877 eval ac_cv_prog_make_${ac_make}_set=no;;
7878esac
7879rm -f conftest.make
7880fi
7881if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884 SET_MAKE=
7885else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888 SET_MAKE="MAKE=${MAKE-make}"
7889fi
7890
cristy8b350f62009-11-15 23:12:43 +00007891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007892$as_echo_n "checking whether ln -s works... " >&6; }
7893LN_S=$as_ln_s
7894if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007896$as_echo "yes" >&6; }
7897else
cristy8b350f62009-11-15 23:12:43 +00007898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007899$as_echo "no, using $LN_S" >&6; }
7900fi
7901
cristy73bd4a52010-10-05 11:24:23 +00007902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7903$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7904
7905# Check whether --with-dmalloc was given.
7906if test "${with_dmalloc+set}" = set; then :
7907 withval=$with_dmalloc; if test "$withval" = yes; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909$as_echo "yes" >&6; }
7910
7911$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7912
7913 LIBS="$LIBS -ldmalloc"
7914 LDFLAGS="$LDFLAGS -g"
7915else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }
7918fi
7919else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7927$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007928if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007929 $as_echo_n "(cached) " >&6
7930else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h. */
7933#include <stdlib.h>
7934 static void foo(void) __attribute__ ((unused));
7935 static void
7936 foo(void) {
7937 exit(1);
7938 }
7939
7940int
7941main ()
7942{
7943
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949 ax_cv___attribute__=yes
7950else
7951 ax_cv___attribute__=no
7952
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7958$as_echo "$ax_cv___attribute__" >&6; }
7959 if test "$ax_cv___attribute__" = "yes"; then
7960
7961$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7962
7963 fi
7964
7965
7966
7967if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7970set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007973if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007974 $as_echo_n "(cached) " >&6
7975else
7976 case $PKG_CONFIG in
7977 [\\/]* | ?:[\\/]*)
7978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7979 ;;
7980 *)
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992done
7993 done
7994IFS=$as_save_IFS
7995
7996 ;;
7997esac
7998fi
7999PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8000if test -n "$PKG_CONFIG"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8002$as_echo "$PKG_CONFIG" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009fi
8010if test -z "$ac_cv_path_PKG_CONFIG"; then
8011 ac_pt_PKG_CONFIG=$PKG_CONFIG
8012 # Extract the first word of "pkg-config", so it can be a program name with args.
8013set dummy pkg-config; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008016if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008017 $as_echo_n "(cached) " >&6
8018else
8019 case $ac_pt_PKG_CONFIG in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8022 ;;
8023 *)
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035done
8036 done
8037IFS=$as_save_IFS
8038
8039 ;;
8040esac
8041fi
8042ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8043if test -n "$ac_pt_PKG_CONFIG"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8045$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8046else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051 if test "x$ac_pt_PKG_CONFIG" = x; then
8052 PKG_CONFIG=""
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
8060 PKG_CONFIG=$ac_pt_PKG_CONFIG
8061 fi
8062else
8063 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8064fi
8065
8066fi
8067if test -n "$PKG_CONFIG"; then
8068 _pkg_min_version=0.9.0
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8070$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8071 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8073$as_echo "yes" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076$as_echo "no" >&6; }
8077 PKG_CONFIG=""
8078 fi
8079
8080fi
cristy3ed852e2009-09-05 21:47:34 +00008081
8082#
cristy3ed852e2009-09-05 21:47:34 +00008083# Enable run-time checking.
8084#
8085# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008086if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008087 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8088else
8089 enable_bounds_checking='no'
8090fi
8091
8092
8093if test "$enable_bounds_checking" = yes; then
8094
cristy8b350f62009-11-15 23:12:43 +00008095$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008096
8097fi
8098
8099#
8100# Tests for Windows
8101#
8102
8103
cristy73bd4a52010-10-05 11:24:23 +00008104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8105$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008106if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008107 $as_echo_n "(cached) " >&6
8108else
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h. */
8111
8112int
8113main ()
8114{
8115#ifndef _MSC_VER
8116 choke me
8117#endif
8118
8119 ;
8120 return 0;
8121}
8122_ACEOF
8123if ac_fn_c_try_compile "$LINENO"; then :
8124 ax_compiler_ms=yes
8125else
8126 ax_compiler_ms=no
8127fi
8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129ax_cv_c_compiler_ms=$ax_compiler_ms
8130
8131fi
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8133$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008134
8135GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008136native_win32_build='no'
8137cygwin_build='no'
8138case "${host_os}" in
8139 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008140 cygwin_build='yes'
8141 GDI32_LIBS='-lgdi32'
8142 ;;
8143 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008144 native_win32_build='yes'
8145 GDI32_LIBS='-lgdi32'
8146 ;;
8147esac
8148if test "${GDI32_LIBS}x" != 'x'; then
8149
cristy8b350f62009-11-15 23:12:43 +00008150$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008151
8152fi
8153
cristy73bd4a52010-10-05 11:24:23 +00008154 if test "${GDI32_LIBS}x" != 'x' ; then
8155 WINGDI32_DELEGATE_TRUE=
8156 WINGDI32_DELEGATE_FALSE='#'
8157else
8158 WINGDI32_DELEGATE_TRUE='#'
8159 WINGDI32_DELEGATE_FALSE=
8160fi
8161
8162 if test "${native_win32_build}" = 'yes' ; then
8163 WIN32_NATIVE_BUILD_TRUE=
8164 WIN32_NATIVE_BUILD_FALSE='#'
8165else
8166 WIN32_NATIVE_BUILD_TRUE='#'
8167 WIN32_NATIVE_BUILD_FALSE=
8168fi
8169
8170 if test "${cygwin_build}" = 'yes' ; then
8171 CYGWIN_BUILD_TRUE=
8172 CYGWIN_BUILD_FALSE='#'
8173else
8174 CYGWIN_BUILD_TRUE='#'
8175 CYGWIN_BUILD_FALSE=
8176fi
8177
8178 if test "x${CC}" = 'xcl.exe' ; then
8179 USING_CL_TRUE=
8180 USING_CL_FALSE='#'
8181else
8182 USING_CL_TRUE='#'
8183 USING_CL_FALSE=
8184fi
8185
cristy3ed852e2009-09-05 21:47:34 +00008186
8187WinPathScript="${srcdirfull}/winpath.sh"
8188
8189
8190#
8191# Compiler flags tweaks
8192#
8193if test "${GCC}" != "yes"; then
8194 case "${host}" in
8195 *-*-hpux* )
8196 # aCC: HP ANSI C++ B3910B A.03.34
8197 CFLAGS="${CFLAGS} -Wp,-H30000"
8198 if test -n "${CXXFLAGS}"; then
8199 CXXFLAGS='-AA'
8200 else
8201 CXXFLAGS="${CXXFLAGS} -AA"
8202 fi
8203 ;;
8204 *-dec-osf5.* )
8205 # Compaq alphaev68-dec-osf5.1 compiler
8206 if test -n "${CXXFLAGS}"; then
8207 CXXFLAGS='-std strict_ansi -noimplicit_include'
8208 else
8209 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8210 fi
8211 esac
8212fi
8213
8214# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008216$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008217if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008218 $as_echo_n "(cached) " >&6
8219else
8220
8221im_cv_ld_lazyload='none'
8222case "${host}" in
8223 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8224 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8225 im_cv_ld_lazyload='-Wl,-zlazyload'
8226 fi
8227 ;;
8228esac
8229
8230fi
cristy8b350f62009-11-15 23:12:43 +00008231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008232$as_echo "$im_cv_ld_lazyload" >&6; }
8233if test "${im_cv_ld_lazyload}" != 'none' ; then
8234 if test -z "${LDFLAGS}" ; then
8235 LDFLAGS="${im_cv_ld_lazyload}"
8236 else
8237 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8238 fi
8239fi
8240
8241case "$host" in
8242*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008243 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008244if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008245 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8246else
8247 build_osxuniversal=no
8248fi
8249
8250
8251 if test "${build_osxuniversal}" != no ; then
8252 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008253 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008254Please re-run configure with these options:
8255 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008256 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008257 fi
8258 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8259 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8260 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8261 fi
8262 ;;
8263esac
8264
cristy0151ae12011-10-28 16:32:29 +00008265#
8266# ARCH specific include directory
8267#
8268
cristy670aa3c2011-11-03 00:54:00 +00008269# Check whether --with-includearch-dir was given.
8270if test "${with_includearch_dir+set}" = set; then :
8271 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008272else
cristy670aa3c2011-11-03 00:54:00 +00008273 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008274fi
8275
8276
cristy670aa3c2011-11-03 00:54:00 +00008277eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008278
cristy0151ae12011-10-28 16:32:29 +00008279
8280#
8281# ARCH specific configuration directory
8282#
8283
cristy670aa3c2011-11-03 00:54:00 +00008284# Check whether --with-sharearch-dir was given.
8285if test "${with_sharearch_dir+set}" = set; then :
8286 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008287else
cristy408ebcd2011-11-14 01:36:57 +00008288 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008289fi
8290
8291
cristy670aa3c2011-11-03 00:54:00 +00008292eval "eval SHAREARCH_DIR=$sharearch_dir"
8293SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008294
cristy0151ae12011-10-28 16:32:29 +00008295
8296#
cristy3ed852e2009-09-05 21:47:34 +00008297# Enable support for threads
8298
8299# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008300if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008301 withval=$with_threads; with_threads=$withval
8302else
8303 with_threads='yes'
8304fi
8305
8306
8307have_threads=no
8308if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008309
8310
cristy73bd4a52010-10-05 11:24:23 +00008311ac_ext=c
8312ac_cpp='$CPP $CPPFLAGS'
8313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316
8317ax_pthread_ok=no
8318
8319# We used to check for pthread.h first, but this fails if pthread.h
8320# requires special compiler flags (e.g. on True64 or Sequent).
8321# It gets checked for in the link test anyway.
8322
8323# First of all, check if the user has set any of the PTHREAD_LIBS,
8324# etcetera environment variables, and if threads linking works using
8325# them:
8326if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8327 save_CFLAGS="$CFLAGS"
8328 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8329 save_LIBS="$LIBS"
8330 LIBS="$PTHREAD_LIBS $LIBS"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8332$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h. */
8335
8336/* Override any GCC internal prototype to avoid an error.
8337 Use char because int might match the return type of a GCC
8338 builtin and then its argument prototype would still apply. */
8339#ifdef __cplusplus
8340extern "C"
8341#endif
8342char pthread_join ();
8343int
8344main ()
8345{
8346return pthread_join ();
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351if ac_fn_c_try_link "$LINENO"; then :
8352 ax_pthread_ok=yes
8353fi
8354rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8357$as_echo "$ax_pthread_ok" >&6; }
8358 if test x"$ax_pthread_ok" = xno; then
8359 PTHREAD_LIBS=""
8360 PTHREAD_CFLAGS=""
8361 fi
8362 LIBS="$save_LIBS"
8363 CFLAGS="$save_CFLAGS"
8364fi
8365
8366# We must check for the threads library under a number of different
8367# names; the ordering is very important because some systems
8368# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8369# libraries is broken (non-POSIX).
8370
8371# Create a list of thread flags to try. Items starting with a "-" are
8372# C compiler flags, and other items are library names, except for "none"
8373# which indicates that we try without any flags at all, and "pthread-config"
8374# which is a program returning the flags for the Pth emulation library.
8375
8376ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8377
8378# The ordering *is* (sometimes) important. Some notes on the
8379# individual items follow:
8380
8381# pthreads: AIX (must check this before -lpthread)
8382# none: in case threads are in libc; should be tried before -Kthread and
8383# other compiler flags to prevent continual compiler warnings
8384# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8385# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8386# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8387# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8388# -pthreads: Solaris/gcc
8389# -mthreads: Mingw32/gcc, Lynx/gcc
8390# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8391# doesn't hurt to check since this sometimes defines pthreads too;
8392# also defines -D_REENTRANT)
8393# ... -mt is also the pthreads flag for HP/aCC
8394# pthread: Linux, etcetera
8395# --thread-safe: KAI C++
8396# pthread-config: use pthread-config program (for GNU Pth library)
8397
8398case "${host_cpu}-${host_os}" in
8399 *solaris*)
8400
8401 # On Solaris (at least, for some versions), libc contains stubbed
8402 # (non-functional) versions of the pthreads routines, so link-based
8403 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8404 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8405 # a function called by this macro, so we could check for that, but
8406 # who knows whether they'll stub that too in a future libc.) So,
8407 # we'll just look for -pthreads and -lpthread first:
8408
8409 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8410 ;;
8411
cristya316db12011-10-24 00:49:45 +00008412 *-darwin*)
8413 ax_pthread_flags="-pthread $ax_pthread_flags"
8414 ;;
cristy73bd4a52010-10-05 11:24:23 +00008415esac
8416
8417if test x"$ax_pthread_ok" = xno; then
8418for flag in $ax_pthread_flags; do
8419
8420 case $flag in
8421 none)
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8423$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8424 ;;
8425
8426 -*)
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8428$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8429 PTHREAD_CFLAGS="$flag"
8430 ;;
8431
cristya316db12011-10-24 00:49:45 +00008432 pthread-config)
8433 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008434set dummy pthread-config; ac_word=$2
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008437if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008438 $as_echo_n "(cached) " >&6
8439else
8440 if test -n "$ax_pthread_config"; then
8441 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8442else
8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_prog_ax_pthread_config="yes"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8453 fi
8454done
8455 done
8456IFS=$as_save_IFS
8457
8458 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8459fi
8460fi
8461ax_pthread_config=$ac_cv_prog_ax_pthread_config
8462if test -n "$ax_pthread_config"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8464$as_echo "$ax_pthread_config" >&6; }
8465else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
8468fi
8469
8470
cristya316db12011-10-24 00:49:45 +00008471 if test x"$ax_pthread_config" = xno; then continue; fi
8472 PTHREAD_CFLAGS="`pthread-config --cflags`"
8473 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8474 ;;
cristy73bd4a52010-10-05 11:24:23 +00008475
8476 *)
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8478$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8479 PTHREAD_LIBS="-l$flag"
8480 ;;
8481 esac
8482
8483 save_LIBS="$LIBS"
8484 save_CFLAGS="$CFLAGS"
8485 LIBS="$PTHREAD_LIBS $LIBS"
8486 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8487
8488 # Check for various functions. We must include pthread.h,
8489 # since some functions may be macros. (On the Sequent, we
8490 # need a special flag -Kthread to make this header compile.)
8491 # We check for pthread_join because it is in -lpthread on IRIX
8492 # while pthread_create is in libc. We check for pthread_attr_init
8493 # due to DEC craziness with -lpthreads. We check for
8494 # pthread_cleanup_push because it is one of the few pthread
8495 # functions on Solaris that doesn't have a non-functional libc stub.
8496 # We try pthread_create on general principles.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h. */
8499#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008500 static void routine(void *a) { a = 0; }
8501 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008502int
8503main ()
8504{
8505pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008506 pthread_create(&th, 0, start_routine, 0);
8507 pthread_join(th, 0);
8508 pthread_attr_init(&attr);
8509 pthread_cleanup_push(routine, 0);
8510 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008511 ;
8512 return 0;
8513}
8514_ACEOF
8515if ac_fn_c_try_link "$LINENO"; then :
8516 ax_pthread_ok=yes
8517fi
8518rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520
8521 LIBS="$save_LIBS"
8522 CFLAGS="$save_CFLAGS"
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8525$as_echo "$ax_pthread_ok" >&6; }
8526 if test "x$ax_pthread_ok" = xyes; then
8527 break;
8528 fi
8529
8530 PTHREAD_LIBS=""
8531 PTHREAD_CFLAGS=""
8532done
8533fi
8534
8535# Various other checks:
8536if test "x$ax_pthread_ok" = xyes; then
8537 save_LIBS="$LIBS"
8538 LIBS="$PTHREAD_LIBS $LIBS"
8539 save_CFLAGS="$CFLAGS"
8540 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8541
8542 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008544$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008545 attr_name=unknown
8546 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008548/* end confdefs.h. */
8549#include <pthread.h>
8550int
8551main ()
8552{
cristya316db12011-10-24 00:49:45 +00008553int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008554 ;
8555 return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"; then :
8559 attr_name=$attr; break
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008563 done
cristy73bd4a52010-10-05 11:24:23 +00008564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8565$as_echo "$attr_name" >&6; }
8566 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8567
8568cat >>confdefs.h <<_ACEOF
8569#define PTHREAD_CREATE_JOINABLE $attr_name
8570_ACEOF
8571
8572 fi
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8575$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8576 flag=no
8577 case "${host_cpu}-${host_os}" in
8578 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8579 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8580 esac
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8582$as_echo "${flag}" >&6; }
8583 if test "x$flag" != xno; then
8584 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8585 fi
8586
cristya316db12011-10-24 00:49:45 +00008587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8588$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8589if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h. */
8595
8596 #include <pthread.h>
8597int
8598main ()
8599{
8600int i = PTHREAD_PRIO_INHERIT;
8601 ;
8602 return 0;
8603}
8604_ACEOF
8605if ac_fn_c_try_link "$LINENO"; then :
8606 ax_cv_PTHREAD_PRIO_INHERIT=yes
8607else
8608 ax_cv_PTHREAD_PRIO_INHERIT=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612
8613fi
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8615$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8616 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8617
8618$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8619
8620fi
8621
cristy73bd4a52010-10-05 11:24:23 +00008622 LIBS="$save_LIBS"
8623 CFLAGS="$save_CFLAGS"
8624
8625 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008626 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008627 for ac_prog in xlc_r cc_r
8628do
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630set dummy $ac_prog; ac_word=$2
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008633if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008634 $as_echo_n "(cached) " >&6
8635else
8636 if test -n "$PTHREAD_CC"; then
8637 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646 ac_cv_prog_PTHREAD_CC="$ac_prog"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651 done
8652IFS=$as_save_IFS
8653
8654fi
8655fi
8656PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8657if test -n "$PTHREAD_CC"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8659$as_echo "$PTHREAD_CC" >&6; }
8660else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662$as_echo "no" >&6; }
8663fi
8664
8665
8666 test -n "$PTHREAD_CC" && break
8667done
8668test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8669
8670 else
8671 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008672 fi
cristy73bd4a52010-10-05 11:24:23 +00008673else
8674 PTHREAD_CC="$CC"
8675fi
8676
8677
8678
8679
8680
8681# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8682if test x"$ax_pthread_ok" = xyes; then
8683
8684$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8685
8686 :
8687else
8688 ax_pthread_ok=no
8689
8690fi
8691ac_ext=c
8692ac_cpp='$CPP $CPPFLAGS'
8693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697
cristy7acf8fb2010-09-23 19:58:53 +00008698 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008699 have_threads=yes
8700 DEF_THREAD="$PTHREAD_CFLAGS"
8701 CFLAGS="$CFLAGS $DEF_THREAD"
8702 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8703 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008704 { $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 +00008705$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8706 CC="$PTHREAD_CC"
8707 fi
cristy55bf91c2010-09-24 00:29:41 +00008708
8709$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8710
cristy3ed852e2009-09-05 21:47:34 +00008711 fi
8712fi
8713
8714# Enable support for OpenMP
8715if test "$have_threads" != 'yes'; then
8716 ac_cv_prog_c_openmp=unsupported
8717fi
8718
8719 OPENMP_CFLAGS=
8720 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008721if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008722 enableval=$enable_openmp;
8723fi
8724
8725 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008727$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008728if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008729 $as_echo_n "(cached) " >&6
8730else
cristy8b350f62009-11-15 23:12:43 +00008731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008733
8734#ifndef _OPENMP
8735 choke me
8736#endif
8737#include <omp.h>
8738int main () { return omp_get_num_threads (); }
8739
8740_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008742 ac_cv_prog_c_openmp='none needed'
8743else
cristy8b350f62009-11-15 23:12:43 +00008744 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008745 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8746 ac_save_CFLAGS=$CFLAGS
8747 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008750
8751#ifndef _OPENMP
8752 choke me
8753#endif
8754#include <omp.h>
8755int main () { return omp_get_num_threads (); }
8756
8757_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008759 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008760fi
cristy8b350f62009-11-15 23:12:43 +00008761rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008763 CFLAGS=$ac_save_CFLAGS
8764 if test "$ac_cv_prog_c_openmp" != unsupported; then
8765 break
8766 fi
8767 done
8768fi
cristy8b350f62009-11-15 23:12:43 +00008769rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008771fi
cristy8b350f62009-11-15 23:12:43 +00008772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008773$as_echo "$ac_cv_prog_c_openmp" >&6; }
8774 case $ac_cv_prog_c_openmp in #(
8775 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008776 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008777 *)
cristy8b350f62009-11-15 23:12:43 +00008778 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008779 esac
8780 fi
8781
8782
8783CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8784MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8785
cristy391f1ce2010-09-09 17:23:28 +00008786if test "$enable_openmp" != no; then
8787 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8788 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8789 fi
8790fi
cristy3ed852e2009-09-05 21:47:34 +00008791
cristy736173a2009-09-20 21:18:22 +00008792# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008793
8794
cristy73bd4a52010-10-05 11:24:23 +00008795ac_ext=c
8796ac_cpp='$CPP $CPPFLAGS'
8797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799ac_compiler_gnu=$ac_cv_c_compiler_gnu
8800
8801ax_pthread_ok=no
8802
8803# We used to check for pthread.h first, but this fails if pthread.h
8804# requires special compiler flags (e.g. on True64 or Sequent).
8805# It gets checked for in the link test anyway.
8806
8807# First of all, check if the user has set any of the PTHREAD_LIBS,
8808# etcetera environment variables, and if threads linking works using
8809# them:
8810if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8811 save_CFLAGS="$CFLAGS"
8812 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8813 save_LIBS="$LIBS"
8814 LIBS="$PTHREAD_LIBS $LIBS"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8816$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h. */
8819
8820/* Override any GCC internal prototype to avoid an error.
8821 Use char because int might match the return type of a GCC
8822 builtin and then its argument prototype would still apply. */
8823#ifdef __cplusplus
8824extern "C"
8825#endif
8826char pthread_join ();
8827int
8828main ()
8829{
8830return pthread_join ();
8831 ;
8832 return 0;
8833}
8834_ACEOF
8835if ac_fn_c_try_link "$LINENO"; then :
8836 ax_pthread_ok=yes
8837fi
8838rm -f core conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8841$as_echo "$ax_pthread_ok" >&6; }
8842 if test x"$ax_pthread_ok" = xno; then
8843 PTHREAD_LIBS=""
8844 PTHREAD_CFLAGS=""
8845 fi
8846 LIBS="$save_LIBS"
8847 CFLAGS="$save_CFLAGS"
8848fi
8849
8850# We must check for the threads library under a number of different
8851# names; the ordering is very important because some systems
8852# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8853# libraries is broken (non-POSIX).
8854
8855# Create a list of thread flags to try. Items starting with a "-" are
8856# C compiler flags, and other items are library names, except for "none"
8857# which indicates that we try without any flags at all, and "pthread-config"
8858# which is a program returning the flags for the Pth emulation library.
8859
8860ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8861
8862# The ordering *is* (sometimes) important. Some notes on the
8863# individual items follow:
8864
8865# pthreads: AIX (must check this before -lpthread)
8866# none: in case threads are in libc; should be tried before -Kthread and
8867# other compiler flags to prevent continual compiler warnings
8868# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8869# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8870# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8871# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8872# -pthreads: Solaris/gcc
8873# -mthreads: Mingw32/gcc, Lynx/gcc
8874# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8875# doesn't hurt to check since this sometimes defines pthreads too;
8876# also defines -D_REENTRANT)
8877# ... -mt is also the pthreads flag for HP/aCC
8878# pthread: Linux, etcetera
8879# --thread-safe: KAI C++
8880# pthread-config: use pthread-config program (for GNU Pth library)
8881
8882case "${host_cpu}-${host_os}" in
8883 *solaris*)
8884
8885 # On Solaris (at least, for some versions), libc contains stubbed
8886 # (non-functional) versions of the pthreads routines, so link-based
8887 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8888 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8889 # a function called by this macro, so we could check for that, but
8890 # who knows whether they'll stub that too in a future libc.) So,
8891 # we'll just look for -pthreads and -lpthread first:
8892
8893 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8894 ;;
8895
cristya316db12011-10-24 00:49:45 +00008896 *-darwin*)
8897 ax_pthread_flags="-pthread $ax_pthread_flags"
8898 ;;
cristy73bd4a52010-10-05 11:24:23 +00008899esac
8900
8901if test x"$ax_pthread_ok" = xno; then
8902for flag in $ax_pthread_flags; do
8903
8904 case $flag in
8905 none)
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8907$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8908 ;;
8909
8910 -*)
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8912$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8913 PTHREAD_CFLAGS="$flag"
8914 ;;
8915
cristya316db12011-10-24 00:49:45 +00008916 pthread-config)
8917 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008918set dummy pthread-config; ac_word=$2
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008921if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008922 $as_echo_n "(cached) " >&6
8923else
8924 if test -n "$ax_pthread_config"; then
8925 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8926else
8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928for as_dir in $PATH
8929do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_ax_pthread_config="yes"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938done
8939 done
8940IFS=$as_save_IFS
8941
8942 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8943fi
8944fi
8945ax_pthread_config=$ac_cv_prog_ax_pthread_config
8946if test -n "$ax_pthread_config"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8948$as_echo "$ax_pthread_config" >&6; }
8949else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953
8954
cristya316db12011-10-24 00:49:45 +00008955 if test x"$ax_pthread_config" = xno; then continue; fi
8956 PTHREAD_CFLAGS="`pthread-config --cflags`"
8957 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8958 ;;
cristy73bd4a52010-10-05 11:24:23 +00008959
8960 *)
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8962$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8963 PTHREAD_LIBS="-l$flag"
8964 ;;
8965 esac
8966
8967 save_LIBS="$LIBS"
8968 save_CFLAGS="$CFLAGS"
8969 LIBS="$PTHREAD_LIBS $LIBS"
8970 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8971
8972 # Check for various functions. We must include pthread.h,
8973 # since some functions may be macros. (On the Sequent, we
8974 # need a special flag -Kthread to make this header compile.)
8975 # We check for pthread_join because it is in -lpthread on IRIX
8976 # while pthread_create is in libc. We check for pthread_attr_init
8977 # due to DEC craziness with -lpthreads. We check for
8978 # pthread_cleanup_push because it is one of the few pthread
8979 # functions on Solaris that doesn't have a non-functional libc stub.
8980 # We try pthread_create on general principles.
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982/* end confdefs.h. */
8983#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008984 static void routine(void *a) { a = 0; }
8985 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008986int
8987main ()
8988{
8989pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008990 pthread_create(&th, 0, start_routine, 0);
8991 pthread_join(th, 0);
8992 pthread_attr_init(&attr);
8993 pthread_cleanup_push(routine, 0);
8994 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008995 ;
8996 return 0;
8997}
8998_ACEOF
8999if ac_fn_c_try_link "$LINENO"; then :
9000 ax_pthread_ok=yes
9001fi
9002rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004
9005 LIBS="$save_LIBS"
9006 CFLAGS="$save_CFLAGS"
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9009$as_echo "$ax_pthread_ok" >&6; }
9010 if test "x$ax_pthread_ok" = xyes; then
9011 break;
9012 fi
9013
9014 PTHREAD_LIBS=""
9015 PTHREAD_CFLAGS=""
9016done
9017fi
9018
9019# Various other checks:
9020if test "x$ax_pthread_ok" = xyes; then
9021 save_LIBS="$LIBS"
9022 LIBS="$PTHREAD_LIBS $LIBS"
9023 save_CFLAGS="$CFLAGS"
9024 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9025
9026 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009028$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009029 attr_name=unknown
9030 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009032/* end confdefs.h. */
9033#include <pthread.h>
9034int
9035main ()
9036{
cristya316db12011-10-24 00:49:45 +00009037int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009038 ;
9039 return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_link "$LINENO"; then :
9043 attr_name=$attr; break
9044fi
9045rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009047 done
cristy73bd4a52010-10-05 11:24:23 +00009048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9049$as_echo "$attr_name" >&6; }
9050 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9051
9052cat >>confdefs.h <<_ACEOF
9053#define PTHREAD_CREATE_JOINABLE $attr_name
9054_ACEOF
9055
9056 fi
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9059$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9060 flag=no
9061 case "${host_cpu}-${host_os}" in
9062 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9063 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9064 esac
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9066$as_echo "${flag}" >&6; }
9067 if test "x$flag" != xno; then
9068 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9069 fi
9070
cristya316db12011-10-24 00:49:45 +00009071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9072$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9073if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075else
9076
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h. */
9079
9080 #include <pthread.h>
9081int
9082main ()
9083{
9084int i = PTHREAD_PRIO_INHERIT;
9085 ;
9086 return 0;
9087}
9088_ACEOF
9089if ac_fn_c_try_link "$LINENO"; then :
9090 ax_cv_PTHREAD_PRIO_INHERIT=yes
9091else
9092 ax_cv_PTHREAD_PRIO_INHERIT=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9099$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9100 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9101
9102$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9103
9104fi
9105
cristy73bd4a52010-10-05 11:24:23 +00009106 LIBS="$save_LIBS"
9107 CFLAGS="$save_CFLAGS"
9108
9109 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009110 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009111 for ac_prog in xlc_r cc_r
9112do
9113 # Extract the first word of "$ac_prog", so it can be a program name with args.
9114set dummy $ac_prog; ac_word=$2
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009117if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009118 $as_echo_n "(cached) " >&6
9119else
9120 if test -n "$PTHREAD_CC"; then
9121 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9122else
9123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124for as_dir in $PATH
9125do
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_prog_PTHREAD_CC="$ac_prog"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9133 fi
9134done
9135 done
9136IFS=$as_save_IFS
9137
9138fi
9139fi
9140PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9141if test -n "$PTHREAD_CC"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9143$as_echo "$PTHREAD_CC" >&6; }
9144else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
9147fi
9148
9149
9150 test -n "$PTHREAD_CC" && break
9151done
9152test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9153
9154 else
9155 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009156 fi
cristy73bd4a52010-10-05 11:24:23 +00009157else
9158 PTHREAD_CC="$CC"
9159fi
9160
9161
9162
9163
9164
9165# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9166if test x"$ax_pthread_ok" = xyes; then
9167
9168$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9169
9170 :
9171else
9172 ax_pthread_ok=no
9173
9174fi
9175ac_ext=c
9176ac_cpp='$CPP $CPPFLAGS'
9177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180
9181
9182
9183# Check whether --enable-opencl was given.
9184if test "${enable_opencl+set}" = set; then :
9185 enableval=$enable_opencl; disable_opencl=$enableval
9186else
9187 disable_opencl='yes'
9188fi
9189
9190
9191if test "$disable_opencl" = 'yes'; then
9192 ac_ext=c
9193ac_cpp='$CPP $CPPFLAGS'
9194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9196ac_compiler_gnu=$ac_cv_c_compiler_gnu
9197
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9199$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009200if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009201 $as_echo_n "(cached) " >&6
9202else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h. */
9205
9206int
9207main ()
9208{
9209#ifndef _MSC_VER
9210 choke me
9211#endif
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_compile "$LINENO"; then :
9218 ax_compiler_ms=yes
9219else
9220 ax_compiler_ms=no
9221fi
9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223ax_cv_c_compiler_ms=$ax_compiler_ms
9224
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9227$as_echo "$ax_cv_c_compiler_ms" >&6; }
9228 if test X$ax_compiler_ms = Xno; then :
9229 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9230fi
9231
9232 ax_save_CPPFLAGS=$CPPFLAGS
9233 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9234 for ac_header in CL/cl.h OpenCL/cl.h
9235do :
9236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9237ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009239 cat >>confdefs.h <<_ACEOF
9240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9241_ACEOF
9242
9243fi
9244
9245done
9246
9247 CPPFLAGS=$ax_save_CPPFLAGS
9248
9249 for ac_header in windows.h
9250do :
9251 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009252if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009253 cat >>confdefs.h <<_ACEOF
9254#define HAVE_WINDOWS_H 1
9255_ACEOF
9256
9257fi
9258
9259done
9260
9261
9262
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9265$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009266if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009267 $as_echo_n "(cached) " >&6
9268else
9269 ax_cv_check_cl_libcl=no
9270 case $host_cpu in
9271 x86_64) ax_check_cl_libdir=lib64 ;;
9272 *) ax_check_cl_libdir=lib ;;
9273 esac
9274 ax_save_CPPFLAGS=$CPPFLAGS
9275 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9276 ax_save_LIBS=$LIBS
9277 LIBS=""
9278 ax_check_libs="-lOpenCL -lCL -lclparser"
9279 for ax_lib in $ax_check_libs; do
9280 if test X$ax_compiler_ms = Xyes; then :
9281 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9282else
9283 ax_try_lib=$ax_lib
9284fi
9285 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h. */
9288
9289 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9290 # include <windows.h>
9291 # endif
9292 # ifdef HAVE_CL_CL_H
9293 # include <CL/cl.h>
9294 # elif defined(HAVE_OPENCL_CL_H)
9295 # include <OpenCL/cl.h>
9296 # else
9297 # error no CL.h
9298 # endif
9299int
9300main ()
9301{
9302clCreateContextFromType(0,0,0,0,0)
9303 ;
9304 return 0;
9305}
9306_ACEOF
9307if ac_fn_c_try_link "$LINENO"; then :
9308 ax_cv_check_cl_libcl=$ax_try_lib; break
9309else
9310 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"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h. */
9313
9314 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9315 # include <windows.h>
9316 # endif
9317 # ifdef HAVE_CL_CL_H
9318 # include <CL/cl.h>
9319 # elif defined(HAVE_OPENCL_CL_H)
9320 # include <OpenCL/cl.h>
9321 # else
9322 # error no CL.h
9323 # endif
9324int
9325main ()
9326{
9327clCreateContextFromType(0,0,0,0,0)
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332if ac_fn_c_try_link "$LINENO"; then :
9333 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9334else
cristy78c5a0c2010-12-04 20:00:59 +00009335 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 +00009336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h. */
9338
9339 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9340 # include <windows.h>
9341 # endif
9342 # ifdef HAVE_CL_CL_H
9343 # include <CL/cl.h>
9344 # elif defined(HAVE_OPENCL_CL_H)
9345 # include <OpenCL/cl.h>
9346 # else
9347 # error no CL.h
9348 # endif
9349int
9350main ()
9351{
9352clCreateContextFromType(0,0,0,0,0)
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357if ac_fn_c_try_link "$LINENO"; then :
9358 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362fi
9363rm -f core conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365fi
9366rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9368 done
9369
9370 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009371 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h. */
9374
9375 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9376 # include <windows.h>
9377 # endif
9378 # ifdef HAVE_CL_CL_H
9379 # include <CL/cl.h>
9380 # elif defined(HAVE_OPENCL_CL_H)
9381 # include <OpenCL/cl.h>
9382 # else
9383 # error no CL.h
9384 # endif
9385int
9386main ()
9387{
9388clCreateContextFromType(0,0,0,0,0)
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 ax_cv_check_cl_libcl=$LIBS
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398fi
9399
9400 LIBS=$ax_save_LIBS
9401 CPPFLAGS=$ax_save_CPPFLAGS
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9404$as_echo "$ax_cv_check_cl_libcl" >&6; }
9405
9406 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9407 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9408else
9409 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9410$as_echo "#define _OPENCL 1" >>confdefs.h
9411
9412fi
9413 ac_ext=c
9414ac_cpp='$CPP $CPPFLAGS'
9415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417ac_compiler_gnu=$ac_cv_c_compiler_gnu
9418
9419fi
9420
9421
9422
9423
cristyc7083c12009-10-14 03:16:55 +00009424CFLAGS="$CL_CFLAGS $CFLAGS"
9425LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009426
cristy391f1ce2010-09-09 17:23:28 +00009427if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009428 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009429 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9430 fi
cristyfd9dcd42010-08-08 18:07:02 +00009431fi
cristy2e8b51d2009-10-17 18:26:15 +00009432
cristy3ed852e2009-09-05 21:47:34 +00009433########
9434#
9435# Check for large file support
9436#
9437########
9438# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009439if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009440 enableval=$enable_largefile;
9441fi
9442
9443if test "$enable_largefile" != no; then
9444
cristy8b350f62009-11-15 23:12:43 +00009445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009446$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009447if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009448 $as_echo_n "(cached) " >&6
9449else
9450 ac_cv_sys_largefile_CC=no
9451 if test "$GCC" != yes; then
9452 ac_save_CC=$CC
9453 while :; do
9454 # IRIX 6.2 and later do not support large files by default,
9455 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009457/* end confdefs.h. */
9458#include <sys/types.h>
9459 /* Check that off_t can represent 2**63 - 1 correctly.
9460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9461 since some C++ compilers masquerading as C compilers
9462 incorrectly reject 9223372036854775807. */
9463#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9465 && LARGE_OFF_T % 2147483647 == 1)
9466 ? 1 : -1];
9467int
9468main ()
9469{
9470
9471 ;
9472 return 0;
9473}
9474_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009475 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009476 break
cristy3ed852e2009-09-05 21:47:34 +00009477fi
cristy3ed852e2009-09-05 21:47:34 +00009478rm -f core conftest.err conftest.$ac_objext
9479 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009480 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009481 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009482fi
cristy3ed852e2009-09-05 21:47:34 +00009483rm -f core conftest.err conftest.$ac_objext
9484 break
9485 done
9486 CC=$ac_save_CC
9487 rm -f conftest.$ac_ext
9488 fi
9489fi
cristy8b350f62009-11-15 23:12:43 +00009490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009491$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9492 if test "$ac_cv_sys_largefile_CC" != no; then
9493 CC=$CC$ac_cv_sys_largefile_CC
9494 fi
9495
cristy8b350f62009-11-15 23:12:43 +00009496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009497$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009498if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009499 $as_echo_n "(cached) " >&6
9500else
9501 while :; do
cristy8b350f62009-11-15 23:12:43 +00009502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009503/* end confdefs.h. */
9504#include <sys/types.h>
9505 /* Check that off_t can represent 2**63 - 1 correctly.
9506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9507 since some C++ compilers masquerading as C compilers
9508 incorrectly reject 9223372036854775807. */
9509#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9511 && LARGE_OFF_T % 2147483647 == 1)
9512 ? 1 : -1];
9513int
9514main ()
9515{
9516
9517 ;
9518 return 0;
9519}
9520_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009521if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009522 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009523fi
cristy3ed852e2009-09-05 21:47:34 +00009524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009526/* end confdefs.h. */
9527#define _FILE_OFFSET_BITS 64
9528#include <sys/types.h>
9529 /* Check that off_t can represent 2**63 - 1 correctly.
9530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9531 since some C++ compilers masquerading as C compilers
9532 incorrectly reject 9223372036854775807. */
9533#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9535 && LARGE_OFF_T % 2147483647 == 1)
9536 ? 1 : -1];
9537int
9538main ()
9539{
9540
9541 ;
9542 return 0;
9543}
9544_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009545if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009546 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009547fi
cristy3ed852e2009-09-05 21:47:34 +00009548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 ac_cv_sys_file_offset_bits=unknown
9550 break
9551done
9552fi
cristy8b350f62009-11-15 23:12:43 +00009553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009554$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9555case $ac_cv_sys_file_offset_bits in #(
9556 no | unknown) ;;
9557 *)
9558cat >>confdefs.h <<_ACEOF
9559#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9560_ACEOF
9561;;
9562esac
9563rm -rf conftest*
9564 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009566$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009567if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009568 $as_echo_n "(cached) " >&6
9569else
9570 while :; do
cristy8b350f62009-11-15 23:12:43 +00009571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009572/* end confdefs.h. */
9573#include <sys/types.h>
9574 /* Check that off_t can represent 2**63 - 1 correctly.
9575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9576 since some C++ compilers masquerading as C compilers
9577 incorrectly reject 9223372036854775807. */
9578#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9580 && LARGE_OFF_T % 2147483647 == 1)
9581 ? 1 : -1];
9582int
9583main ()
9584{
9585
9586 ;
9587 return 0;
9588}
9589_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009590if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009591 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009592fi
cristy3ed852e2009-09-05 21:47:34 +00009593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009595/* end confdefs.h. */
9596#define _LARGE_FILES 1
9597#include <sys/types.h>
9598 /* Check that off_t can represent 2**63 - 1 correctly.
9599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9600 since some C++ compilers masquerading as C compilers
9601 incorrectly reject 9223372036854775807. */
9602#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9604 && LARGE_OFF_T % 2147483647 == 1)
9605 ? 1 : -1];
9606int
9607main ()
9608{
9609
9610 ;
9611 return 0;
9612}
9613_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009614if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009615 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009616fi
cristy3ed852e2009-09-05 21:47:34 +00009617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 ac_cv_sys_large_files=unknown
9619 break
9620done
9621fi
cristy8b350f62009-11-15 23:12:43 +00009622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009623$as_echo "$ac_cv_sys_large_files" >&6; }
9624case $ac_cv_sys_large_files in #(
9625 no | unknown) ;;
9626 *)
9627cat >>confdefs.h <<_ACEOF
9628#define _LARGE_FILES $ac_cv_sys_large_files
9629_ACEOF
9630;;
9631esac
9632rm -rf conftest*
9633 fi
9634fi
9635
cristy8b350f62009-11-15 23:12:43 +00009636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009637$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009638if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009639 $as_echo_n "(cached) " >&6
9640else
9641 while :; do
cristy8b350f62009-11-15 23:12:43 +00009642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009643/* end confdefs.h. */
9644#include <sys/types.h> /* for off_t */
9645 #include <stdio.h>
9646int
9647main ()
9648{
9649int (*fp) (FILE *, off_t, int) = fseeko;
9650 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9651 ;
9652 return 0;
9653}
9654_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009656 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009657fi
cristy8b350f62009-11-15 23:12:43 +00009658rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009661/* end confdefs.h. */
9662#define _LARGEFILE_SOURCE 1
9663#include <sys/types.h> /* for off_t */
9664 #include <stdio.h>
9665int
9666main ()
9667{
9668int (*fp) (FILE *, off_t, int) = fseeko;
9669 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9670 ;
9671 return 0;
9672}
9673_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009675 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009676fi
cristy8b350f62009-11-15 23:12:43 +00009677rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009679 ac_cv_sys_largefile_source=unknown
9680 break
9681done
9682fi
cristy8b350f62009-11-15 23:12:43 +00009683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009684$as_echo "$ac_cv_sys_largefile_source" >&6; }
9685case $ac_cv_sys_largefile_source in #(
9686 no | unknown) ;;
9687 *)
9688cat >>confdefs.h <<_ACEOF
9689#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9690_ACEOF
9691;;
9692esac
9693rm -rf conftest*
9694
9695# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9696# in glibc 2.1.3, but that breaks too many other things.
9697# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9698if test $ac_cv_sys_largefile_source != unknown; then
9699
cristy8b350f62009-11-15 23:12:43 +00009700$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009701
9702fi
9703
9704LFS_CPPFLAGS=''
9705if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009706 case $ac_cv_sys_file_offset_bits in
9707 no)
9708 # nothing to do here as the host supports LFS fine
9709 ;;
9710 unknown)
cristy8b350f62009-11-15 23:12:43 +00009711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009712$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009713 if test "$cross_compiling" = yes; then :
9714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009716as_fn_error $? "cannot run test program while cross compiling
9717See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009718else
cristy8b350f62009-11-15 23:12:43 +00009719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009721#include <unistd.h>
9722 main () {
9723 exit(!(sizeof(off_t) == 8));
9724 }
cristyda16f162011-02-19 23:52:17 +00009725int
9726main ()
9727{
9728
9729 ;
9730 return 0;
9731}
cristy3ed852e2009-09-05 21:47:34 +00009732_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009733if ac_fn_c_try_run "$LINENO"; then :
9734 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009735
cristy09b53e12011-10-14 12:47:22 +00009736 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9737$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009738else
cristy09b53e12011-10-14 12:47:22 +00009739 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9740$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009741fi
cristy8b350f62009-11-15 23:12:43 +00009742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9743 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009744fi
9745
cristyc1e0cc12011-09-21 16:41:16 +00009746 ;;
9747 *)
9748 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9749 ;;
9750 esac
cristy3ed852e2009-09-05 21:47:34 +00009751 if test "$ac_cv_sys_large_files" != 'no'; then
9752 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9753 fi
9754 if test "$ac_cv_sys_largefile_source" != 'no'; then
9755 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9756 fi
9757fi
9758
9759
cristy3ed852e2009-09-05 21:47:34 +00009760# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009761enable_dlopen=yes
9762
9763
9764
9765case `pwd` in
9766 *\ * | *\ *)
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9768$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9769esac
9770
9771
9772
cristyda16f162011-02-19 23:52:17 +00009773macro_version='2.4'
9774macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788ltmain="$ac_aux_dir/ltmain.sh"
9789
cristy0c60a692010-11-04 01:09:47 +00009790# Backslashify metacharacters that are still active within
9791# double-quoted strings.
9792sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9793
9794# Same as above, but do not quote variable references.
9795double_quote_subst='s/\(["`\\]\)/\\\1/g'
9796
9797# Sed substitution to delay expansion of an escaped shell variable in a
9798# double_quote_subst'ed string.
9799delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9800
9801# Sed substitution to delay expansion of an escaped single quote.
9802delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9803
9804# Sed substitution to avoid accidental globbing in evaled expressions
9805no_glob_subst='s/\*/\\\*/g'
9806
cristy73bd4a52010-10-05 11:24:23 +00009807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9808$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009809if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009810 $as_echo_n "(cached) " >&6
9811else
9812 if test -n "$NM"; then
9813 # Let the user override the test.
9814 lt_cv_path_NM="$NM"
9815else
9816 lt_nm_to_check="${ac_tool_prefix}nm"
9817 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9818 lt_nm_to_check="$lt_nm_to_check nm"
9819 fi
9820 for lt_tmp_nm in $lt_nm_to_check; do
9821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9822 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9823 IFS="$lt_save_ifs"
9824 test -z "$ac_dir" && ac_dir=.
9825 tmp_nm="$ac_dir/$lt_tmp_nm"
9826 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9827 # Check to see if the nm accepts a BSD-compat flag.
9828 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9829 # nm: unknown option "B" ignored
9830 # Tru64's nm complains that /dev/null is an invalid object file
9831 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9832 */dev/null* | *'Invalid file or object type'*)
9833 lt_cv_path_NM="$tmp_nm -B"
9834 break
9835 ;;
9836 *)
9837 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9838 */dev/null*)
9839 lt_cv_path_NM="$tmp_nm -p"
9840 break
9841 ;;
9842 *)
9843 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9844 continue # so that we can try to find one that supports BSD flags
9845 ;;
9846 esac
9847 ;;
9848 esac
9849 fi
9850 done
9851 IFS="$lt_save_ifs"
9852 done
9853 : ${lt_cv_path_NM=no}
9854fi
9855fi
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9857$as_echo "$lt_cv_path_NM" >&6; }
9858if test "$lt_cv_path_NM" != "no"; then
9859 NM="$lt_cv_path_NM"
9860else
9861 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009862 if test -n "$DUMPBIN"; then :
9863 # Let the user override the test.
9864 else
9865 if test -n "$ac_tool_prefix"; then
9866 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009867 do
9868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009872if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009873 $as_echo_n "(cached) " >&6
9874else
9875 if test -n "$DUMPBIN"; then
9876 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9877else
9878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $PATH
9880do
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 for ac_exec_ext in '' $ac_executable_extensions; do
9884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9885 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 break 2
9888 fi
9889done
9890 done
9891IFS=$as_save_IFS
9892
9893fi
9894fi
9895DUMPBIN=$ac_cv_prog_DUMPBIN
9896if test -n "$DUMPBIN"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9898$as_echo "$DUMPBIN" >&6; }
9899else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901$as_echo "no" >&6; }
9902fi
9903
9904
9905 test -n "$DUMPBIN" && break
9906 done
9907fi
9908if test -z "$DUMPBIN"; then
9909 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009910 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009911do
9912 # Extract the first word of "$ac_prog", so it can be a program name with args.
9913set dummy $ac_prog; ac_word=$2
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009916if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009917 $as_echo_n "(cached) " >&6
9918else
9919 if test -n "$ac_ct_DUMPBIN"; then
9920 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9921else
9922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $PATH
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9929 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933done
9934 done
9935IFS=$as_save_IFS
9936
9937fi
9938fi
9939ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9940if test -n "$ac_ct_DUMPBIN"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9942$as_echo "$ac_ct_DUMPBIN" >&6; }
9943else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945$as_echo "no" >&6; }
9946fi
9947
9948
9949 test -n "$ac_ct_DUMPBIN" && break
9950done
9951
9952 if test "x$ac_ct_DUMPBIN" = x; then
9953 DUMPBIN=":"
9954 else
9955 case $cross_compiling:$ac_tool_warned in
9956yes:)
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9959ac_tool_warned=yes ;;
9960esac
9961 DUMPBIN=$ac_ct_DUMPBIN
9962 fi
9963fi
9964
cristy0c60a692010-11-04 01:09:47 +00009965 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9966 *COFF*)
9967 DUMPBIN="$DUMPBIN -symbols"
9968 ;;
9969 *)
9970 DUMPBIN=:
9971 ;;
9972 esac
9973 fi
cristy73bd4a52010-10-05 11:24:23 +00009974
9975 if test "$DUMPBIN" != ":"; then
9976 NM="$DUMPBIN"
9977 fi
9978fi
9979test -z "$NM" && NM=nm
9980
9981
9982
9983
9984
9985
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9987$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009988if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009989 $as_echo_n "(cached) " >&6
9990else
9991 lt_cv_nm_interface="BSD nm"
9992 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009993 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009994 (eval "$ac_compile" 2>conftest.err)
9995 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009996 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009997 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9998 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009999 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010000 cat conftest.out >&5
10001 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10002 lt_cv_nm_interface="MS dumpbin"
10003 fi
10004 rm -f conftest*
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10007$as_echo "$lt_cv_nm_interface" >&6; }
10008
10009# find the maximum length of command line arguments
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10011$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010012if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010013 $as_echo_n "(cached) " >&6
10014else
10015 i=0
10016 teststring="ABCD"
10017
10018 case $build_os in
10019 msdosdjgpp*)
10020 # On DJGPP, this test can blow up pretty badly due to problems in libc
10021 # (any single argument exceeding 2000 bytes causes a buffer overrun
10022 # during glob expansion). Even if it were fixed, the result of this
10023 # check would be larger than it should be.
10024 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10025 ;;
10026
10027 gnu*)
10028 # Under GNU Hurd, this test is not required because there is
10029 # no limit to the length of command line arguments.
10030 # Libtool will interpret -1 as no limit whatsoever
10031 lt_cv_sys_max_cmd_len=-1;
10032 ;;
10033
10034 cygwin* | mingw* | cegcc*)
10035 # On Win9x/ME, this test blows up -- it succeeds, but takes
10036 # about 5 minutes as the teststring grows exponentially.
10037 # Worse, since 9x/ME are not pre-emptively multitasking,
10038 # you end up with a "frozen" computer, even though with patience
10039 # the test eventually succeeds (with a max line length of 256k).
10040 # Instead, let's just punt: use the minimum linelength reported by
10041 # all of the supported platforms: 8192 (on NT/2K/XP).
10042 lt_cv_sys_max_cmd_len=8192;
10043 ;;
10044
cristy0c60a692010-11-04 01:09:47 +000010045 mint*)
10046 # On MiNT this can take a long time and run out of memory.
10047 lt_cv_sys_max_cmd_len=8192;
10048 ;;
10049
cristy73bd4a52010-10-05 11:24:23 +000010050 amigaos*)
10051 # On AmigaOS with pdksh, this test takes hours, literally.
10052 # So we just punt and use a minimum line length of 8192.
10053 lt_cv_sys_max_cmd_len=8192;
10054 ;;
10055
10056 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10057 # This has been around since 386BSD, at least. Likely further.
10058 if test -x /sbin/sysctl; then
10059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10060 elif test -x /usr/sbin/sysctl; then
10061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10062 else
10063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10064 fi
10065 # And add a safety zone
10066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10068 ;;
10069
10070 interix*)
10071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10072 lt_cv_sys_max_cmd_len=196608
10073 ;;
10074
10075 osf*)
10076 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10077 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10078 # nice to cause kernel panics so lets avoid the loop below.
10079 # First set a reasonable default.
10080 lt_cv_sys_max_cmd_len=16384
10081 #
10082 if test -x /sbin/sysconfig; then
10083 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10084 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10085 esac
10086 fi
10087 ;;
10088 sco3.2v5*)
10089 lt_cv_sys_max_cmd_len=102400
10090 ;;
10091 sysv5* | sco5v6* | sysv4.2uw2*)
10092 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10093 if test -n "$kargmax"; then
10094 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10095 else
10096 lt_cv_sys_max_cmd_len=32768
10097 fi
10098 ;;
10099 *)
10100 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10101 if test -n "$lt_cv_sys_max_cmd_len"; then
10102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10104 else
10105 # Make teststring a little bigger before we do anything with it.
10106 # a 1K string should be a reasonable start.
10107 for i in 1 2 3 4 5 6 7 8 ; do
10108 teststring=$teststring$teststring
10109 done
10110 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10111 # If test is not a shell built-in, we'll probably end up computing a
10112 # maximum length that is only half of the actual maximum length, but
10113 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010114 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10115 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010116 test $i != 17 # 1/2 MB should be enough
10117 do
10118 i=`expr $i + 1`
10119 teststring=$teststring$teststring
10120 done
10121 # Only check the string length outside the loop.
10122 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10123 teststring=
10124 # Add a significant safety factor because C++ compilers can tack on
10125 # massive amounts of additional arguments before passing them to the
10126 # linker. It appears as though 1/2 is a usable value.
10127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10128 fi
10129 ;;
10130 esac
10131
10132fi
10133
10134if test -n $lt_cv_sys_max_cmd_len ; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10136$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10137else
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10139$as_echo "none" >&6; }
10140fi
10141max_cmd_len=$lt_cv_sys_max_cmd_len
10142
10143
10144
10145
10146
10147
10148: ${CP="cp -f"}
10149: ${MV="mv -f"}
10150: ${RM="rm -f"}
10151
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10153$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10154# Try some XSI features
10155xsi_shell=no
10156( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010157 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10158 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010159 && eval 'test $(( 1 + 1 )) -eq 2 \
10160 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10161 && xsi_shell=yes
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10163$as_echo "$xsi_shell" >&6; }
10164
10165
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10167$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10168lt_shell_append=no
10169( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10170 >/dev/null 2>&1 \
10171 && lt_shell_append=yes
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10173$as_echo "$lt_shell_append" >&6; }
10174
10175
10176if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10177 lt_unset=unset
10178else
10179 lt_unset=false
10180fi
10181
10182
10183
10184
10185
10186# test EBCDIC or ASCII
10187case `echo X|tr X '\101'` in
10188 A) # ASCII based system
10189 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10190 lt_SP2NL='tr \040 \012'
10191 lt_NL2SP='tr \015\012 \040\040'
10192 ;;
10193 *) # EBCDIC based system
10194 lt_SP2NL='tr \100 \n'
10195 lt_NL2SP='tr \r\n \100\100'
10196 ;;
10197esac
10198
10199
10200
10201
10202
10203
10204
10205
10206
cristyda16f162011-02-19 23:52:17 +000010207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10208$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10209if ${lt_cv_to_host_file_cmd+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211else
10212 case $host in
10213 *-*-mingw* )
10214 case $build in
10215 *-*-mingw* ) # actually msys
10216 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10217 ;;
10218 *-*-cygwin* )
10219 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10220 ;;
10221 * ) # otherwise, assume *nix
10222 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10223 ;;
10224 esac
10225 ;;
10226 *-*-cygwin* )
10227 case $build in
10228 *-*-mingw* ) # actually msys
10229 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10230 ;;
10231 *-*-cygwin* )
10232 lt_cv_to_host_file_cmd=func_convert_file_noop
10233 ;;
10234 * ) # otherwise, assume *nix
10235 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10236 ;;
10237 esac
10238 ;;
10239 * ) # unhandled hosts (and "normal" native builds)
10240 lt_cv_to_host_file_cmd=func_convert_file_noop
10241 ;;
10242esac
10243
10244fi
10245
10246to_host_file_cmd=$lt_cv_to_host_file_cmd
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10248$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10249
10250
10251
10252
10253
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10255$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10256if ${lt_cv_to_tool_file_cmd+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258else
10259 #assume ordinary cross tools, or native build.
10260lt_cv_to_tool_file_cmd=func_convert_file_noop
10261case $host in
10262 *-*-mingw* )
10263 case $build in
10264 *-*-mingw* ) # actually msys
10265 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10266 ;;
10267 esac
10268 ;;
10269esac
10270
10271fi
10272
10273to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10275$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10276
10277
10278
10279
10280
cristy73bd4a52010-10-05 11:24:23 +000010281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10282$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010283if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010284 $as_echo_n "(cached) " >&6
10285else
10286 lt_cv_ld_reload_flag='-r'
10287fi
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10289$as_echo "$lt_cv_ld_reload_flag" >&6; }
10290reload_flag=$lt_cv_ld_reload_flag
10291case $reload_flag in
10292"" | " "*) ;;
10293*) reload_flag=" $reload_flag" ;;
10294esac
10295reload_cmds='$LD$reload_flag -o $output$reload_objs'
10296case $host_os in
cristyda16f162011-02-19 23:52:17 +000010297 cygwin* | mingw* | pw32* | cegcc*)
10298 if test "$GCC" != yes; then
10299 reload_cmds=false
10300 fi
10301 ;;
cristy73bd4a52010-10-05 11:24:23 +000010302 darwin*)
10303 if test "$GCC" = yes; then
10304 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10305 else
10306 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10307 fi
10308 ;;
10309esac
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319if test -n "$ac_tool_prefix"; then
10320 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10321set dummy ${ac_tool_prefix}objdump; ac_word=$2
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010324if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010325 $as_echo_n "(cached) " >&6
10326else
10327 if test -n "$OBJDUMP"; then
10328 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10329else
10330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331for as_dir in $PATH
10332do
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10337 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10340 fi
10341done
10342 done
10343IFS=$as_save_IFS
10344
10345fi
10346fi
10347OBJDUMP=$ac_cv_prog_OBJDUMP
10348if test -n "$OBJDUMP"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10350$as_echo "$OBJDUMP" >&6; }
10351else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353$as_echo "no" >&6; }
10354fi
10355
10356
10357fi
10358if test -z "$ac_cv_prog_OBJDUMP"; then
10359 ac_ct_OBJDUMP=$OBJDUMP
10360 # Extract the first word of "objdump", so it can be a program name with args.
10361set dummy objdump; ac_word=$2
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010364if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010365 $as_echo_n "(cached) " >&6
10366else
10367 if test -n "$ac_ct_OBJDUMP"; then
10368 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10369else
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381done
10382 done
10383IFS=$as_save_IFS
10384
10385fi
10386fi
10387ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10388if test -n "$ac_ct_OBJDUMP"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10390$as_echo "$ac_ct_OBJDUMP" >&6; }
10391else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
10394fi
10395
10396 if test "x$ac_ct_OBJDUMP" = x; then
10397 OBJDUMP="false"
10398 else
10399 case $cross_compiling:$ac_tool_warned in
10400yes:)
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10403ac_tool_warned=yes ;;
10404esac
10405 OBJDUMP=$ac_ct_OBJDUMP
10406 fi
10407else
10408 OBJDUMP="$ac_cv_prog_OBJDUMP"
10409fi
10410
10411test -z "$OBJDUMP" && OBJDUMP=objdump
10412
10413
10414
10415
10416
10417
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10419$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010420if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010421 $as_echo_n "(cached) " >&6
10422else
10423 lt_cv_file_magic_cmd='$MAGIC_CMD'
10424lt_cv_file_magic_test_file=
10425lt_cv_deplibs_check_method='unknown'
10426# Need to set the preceding variable on all platforms that support
10427# interlibrary dependencies.
10428# 'none' -- dependencies not supported.
10429# `unknown' -- same as none, but documents that we really don't know.
10430# 'pass_all' -- all dependencies passed with no checks.
10431# 'test_compile' -- check by making test program.
10432# 'file_magic [[regex]]' -- check by looking for files in library path
10433# which responds to the $file_magic_cmd with a given extended regex.
10434# If you have `file' or equivalent on your system and you're not sure
10435# whether `pass_all' will *always* work, you probably want this one.
10436
10437case $host_os in
10438aix[4-9]*)
10439 lt_cv_deplibs_check_method=pass_all
10440 ;;
10441
10442beos*)
10443 lt_cv_deplibs_check_method=pass_all
10444 ;;
10445
10446bsdi[45]*)
10447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10448 lt_cv_file_magic_cmd='/usr/bin/file -L'
10449 lt_cv_file_magic_test_file=/shlib/libc.so
10450 ;;
10451
10452cygwin*)
10453 # func_win32_libid is a shell function defined in ltmain.sh
10454 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10455 lt_cv_file_magic_cmd='func_win32_libid'
10456 ;;
10457
10458mingw* | pw32*)
10459 # Base MSYS/MinGW do not provide the 'file' command needed by
10460 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10461 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010462 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10463 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10465 lt_cv_file_magic_cmd='func_win32_libid'
10466 else
cristy0c60a692010-11-04 01:09:47 +000010467 # Keep this pattern in sync with the one in func_win32_libid.
10468 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 +000010469 lt_cv_file_magic_cmd='$OBJDUMP -f'
10470 fi
10471 ;;
10472
cristy0c60a692010-11-04 01:09:47 +000010473cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010474 # use the weaker test based on 'objdump'. See mingw*.
10475 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10476 lt_cv_file_magic_cmd='$OBJDUMP -f'
10477 ;;
10478
10479darwin* | rhapsody*)
10480 lt_cv_deplibs_check_method=pass_all
10481 ;;
10482
10483freebsd* | dragonfly*)
10484 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10485 case $host_cpu in
10486 i*86 )
10487 # Not sure whether the presence of OpenBSD here was a mistake.
10488 # Let's accept both of them until this is cleared up.
10489 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10490 lt_cv_file_magic_cmd=/usr/bin/file
10491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10492 ;;
10493 esac
10494 else
10495 lt_cv_deplibs_check_method=pass_all
10496 fi
10497 ;;
10498
10499gnu*)
10500 lt_cv_deplibs_check_method=pass_all
10501 ;;
10502
cristy0c60a692010-11-04 01:09:47 +000010503haiku*)
10504 lt_cv_deplibs_check_method=pass_all
10505 ;;
10506
cristy73bd4a52010-10-05 11:24:23 +000010507hpux10.20* | hpux11*)
10508 lt_cv_file_magic_cmd=/usr/bin/file
10509 case $host_cpu in
10510 ia64*)
10511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10513 ;;
10514 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010515 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 +000010516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10517 ;;
10518 *)
cristy0c60a692010-11-04 01:09:47 +000010519 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 +000010520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10521 ;;
10522 esac
10523 ;;
10524
10525interix[3-9]*)
10526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10528 ;;
10529
10530irix5* | irix6* | nonstopux*)
10531 case $LD in
10532 *-32|*"-32 ") libmagic=32-bit;;
10533 *-n32|*"-n32 ") libmagic=N32;;
10534 *-64|*"-64 ") libmagic=64-bit;;
10535 *) libmagic=never-match;;
10536 esac
10537 lt_cv_deplibs_check_method=pass_all
10538 ;;
10539
10540# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010541linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010542 lt_cv_deplibs_check_method=pass_all
10543 ;;
10544
10545netbsd*)
10546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10548 else
10549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10550 fi
10551 ;;
10552
10553newos6*)
10554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10555 lt_cv_file_magic_cmd=/usr/bin/file
10556 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10557 ;;
10558
10559*nto* | *qnx*)
10560 lt_cv_deplibs_check_method=pass_all
10561 ;;
10562
10563openbsd*)
10564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10566 else
10567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10568 fi
10569 ;;
10570
10571osf3* | osf4* | osf5*)
10572 lt_cv_deplibs_check_method=pass_all
10573 ;;
10574
10575rdos*)
10576 lt_cv_deplibs_check_method=pass_all
10577 ;;
10578
10579solaris*)
10580 lt_cv_deplibs_check_method=pass_all
10581 ;;
10582
10583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10584 lt_cv_deplibs_check_method=pass_all
10585 ;;
10586
10587sysv4 | sysv4.3*)
10588 case $host_vendor in
10589 motorola)
10590 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]'
10591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10592 ;;
10593 ncr)
10594 lt_cv_deplibs_check_method=pass_all
10595 ;;
10596 sequent)
10597 lt_cv_file_magic_cmd='/bin/file'
10598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10599 ;;
10600 sni)
10601 lt_cv_file_magic_cmd='/bin/file'
10602 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10603 lt_cv_file_magic_test_file=/lib/libc.so
10604 ;;
10605 siemens)
10606 lt_cv_deplibs_check_method=pass_all
10607 ;;
10608 pc)
10609 lt_cv_deplibs_check_method=pass_all
10610 ;;
10611 esac
10612 ;;
10613
10614tpf*)
10615 lt_cv_deplibs_check_method=pass_all
10616 ;;
10617esac
10618
10619fi
10620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10621$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010622
10623file_magic_glob=
10624want_nocaseglob=no
10625if test "$build" = "$host"; then
10626 case $host_os in
10627 mingw* | pw32*)
10628 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10629 want_nocaseglob=yes
10630 else
10631 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10632 fi
10633 ;;
10634 esac
10635fi
10636
cristy73bd4a52010-10-05 11:24:23 +000010637file_magic_cmd=$lt_cv_file_magic_cmd
10638deplibs_check_method=$lt_cv_deplibs_check_method
10639test -z "$deplibs_check_method" && deplibs_check_method=unknown
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
cristyda16f162011-02-19 23:52:17 +000010652
10653
10654
10655
10656
10657
10658
10659
10660
10661
cristy73bd4a52010-10-05 11:24:23 +000010662if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010663 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10664set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010667if ${ac_cv_prog_DLLTOOL+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669else
10670 if test -n "$DLLTOOL"; then
10671 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10672else
10673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674for as_dir in $PATH
10675do
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10683 fi
10684done
10685 done
10686IFS=$as_save_IFS
10687
10688fi
10689fi
10690DLLTOOL=$ac_cv_prog_DLLTOOL
10691if test -n "$DLLTOOL"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10693$as_echo "$DLLTOOL" >&6; }
10694else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
10697fi
10698
10699
10700fi
10701if test -z "$ac_cv_prog_DLLTOOL"; then
10702 ac_ct_DLLTOOL=$DLLTOOL
10703 # Extract the first word of "dlltool", so it can be a program name with args.
10704set dummy dlltool; ac_word=$2
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706$as_echo_n "checking for $ac_word... " >&6; }
10707if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709else
10710 if test -n "$ac_ct_DLLTOOL"; then
10711 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10712else
10713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714for as_dir in $PATH
10715do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10723 fi
10724done
10725 done
10726IFS=$as_save_IFS
10727
10728fi
10729fi
10730ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10731if test -n "$ac_ct_DLLTOOL"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10733$as_echo "$ac_ct_DLLTOOL" >&6; }
10734else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736$as_echo "no" >&6; }
10737fi
10738
10739 if test "x$ac_ct_DLLTOOL" = x; then
10740 DLLTOOL="false"
10741 else
10742 case $cross_compiling:$ac_tool_warned in
10743yes:)
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10746ac_tool_warned=yes ;;
10747esac
10748 DLLTOOL=$ac_ct_DLLTOOL
10749 fi
10750else
10751 DLLTOOL="$ac_cv_prog_DLLTOOL"
10752fi
10753
10754test -z "$DLLTOOL" && DLLTOOL=dlltool
10755
10756
10757
10758
10759
10760
10761
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10763$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10764if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766else
10767 lt_cv_sharedlib_from_linklib_cmd='unknown'
10768
10769case $host_os in
10770cygwin* | mingw* | pw32* | cegcc*)
10771 # two different shell functions defined in ltmain.sh
10772 # decide which to use based on capabilities of $DLLTOOL
10773 case `$DLLTOOL --help 2>&1` in
10774 *--identify-strict*)
10775 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10776 ;;
10777 *)
10778 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10779 ;;
10780 esac
10781 ;;
10782*)
10783 # fallback: assume linklib IS sharedlib
10784 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10785 ;;
10786esac
10787
10788fi
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10790$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10791sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10792test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10793
10794
10795
10796
10797
10798
10799
10800if test -n "$ac_tool_prefix"; then
10801 for ac_prog in ar
10802 do
10803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10804set dummy $ac_tool_prefix$ac_prog; 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; }
10807if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010808 $as_echo_n "(cached) " >&6
10809else
10810 if test -n "$AR"; then
10811 ac_cv_prog_AR="$AR" # 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
cristyda16f162011-02-19 23:52:17 +000010820 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010821 $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
10830AR=$ac_cv_prog_AR
10831if test -n "$AR"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10833$as_echo "$AR" >&6; }
10834else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836$as_echo "no" >&6; }
10837fi
10838
10839
cristyda16f162011-02-19 23:52:17 +000010840 test -n "$AR" && break
10841 done
cristy73bd4a52010-10-05 11:24:23 +000010842fi
cristyda16f162011-02-19 23:52:17 +000010843if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010844 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010845 for ac_prog in ar
10846do
10847 # Extract the first word of "$ac_prog", so it can be a program name with args.
10848set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010851if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010852 $as_echo_n "(cached) " >&6
10853else
10854 if test -n "$ac_ct_AR"; then
10855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 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 +000010864 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868done
10869 done
10870IFS=$as_save_IFS
10871
10872fi
10873fi
10874ac_ct_AR=$ac_cv_prog_ac_ct_AR
10875if test -n "$ac_ct_AR"; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10877$as_echo "$ac_ct_AR" >&6; }
10878else
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880$as_echo "no" >&6; }
10881fi
10882
cristyda16f162011-02-19 23:52:17 +000010883
10884 test -n "$ac_ct_AR" && break
10885done
10886
cristy73bd4a52010-10-05 11:24:23 +000010887 if test "x$ac_ct_AR" = x; then
10888 AR="false"
10889 else
10890 case $cross_compiling:$ac_tool_warned in
10891yes:)
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10894ac_tool_warned=yes ;;
10895esac
10896 AR=$ac_ct_AR
10897 fi
cristy73bd4a52010-10-05 11:24:23 +000010898fi
10899
cristyda16f162011-02-19 23:52:17 +000010900: ${AR=ar}
10901: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
cristyda16f162011-02-19 23:52:17 +000010913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10914$as_echo_n "checking for archiver @FILE support... " >&6; }
10915if ${lt_cv_ar_at_file+:} false; then :
10916 $as_echo_n "(cached) " >&6
10917else
10918 lt_cv_ar_at_file=no
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920/* end confdefs.h. */
10921
10922int
10923main ()
10924{
10925
10926 ;
10927 return 0;
10928}
10929_ACEOF
10930if ac_fn_c_try_compile "$LINENO"; then :
10931 echo conftest.$ac_objext > conftest.lst
10932 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10934 (eval $lt_ar_try) 2>&5
10935 ac_status=$?
10936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10937 test $ac_status = 0; }
10938 if test "$ac_status" -eq 0; then
10939 # Ensure the archiver fails upon bogus file names.
10940 rm -f conftest.$ac_objext libconftest.a
10941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10942 (eval $lt_ar_try) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; }
10946 if test "$ac_status" -ne 0; then
10947 lt_cv_ar_at_file=@
10948 fi
10949 fi
10950 rm -f conftest.* libconftest.a
10951
10952fi
10953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954
10955fi
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10957$as_echo "$lt_cv_ar_at_file" >&6; }
10958
10959if test "x$lt_cv_ar_at_file" = xno; then
10960 archiver_list_spec=
10961else
10962 archiver_list_spec=$lt_cv_ar_at_file
10963fi
10964
10965
10966
10967
10968
10969
10970
cristy73bd4a52010-10-05 11:24:23 +000010971if test -n "$ac_tool_prefix"; then
10972 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10973set dummy ${ac_tool_prefix}strip; ac_word=$2
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010976if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010977 $as_echo_n "(cached) " >&6
10978else
10979 if test -n "$STRIP"; then
10980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10981else
10982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $PATH
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10989 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10992 fi
10993done
10994 done
10995IFS=$as_save_IFS
10996
10997fi
10998fi
10999STRIP=$ac_cv_prog_STRIP
11000if test -n "$STRIP"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11002$as_echo "$STRIP" >&6; }
11003else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005$as_echo "no" >&6; }
11006fi
11007
11008
11009fi
11010if test -z "$ac_cv_prog_STRIP"; then
11011 ac_ct_STRIP=$STRIP
11012 # Extract the first word of "strip", so it can be a program name with args.
11013set dummy strip; ac_word=$2
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011016if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011017 $as_echo_n "(cached) " >&6
11018else
11019 if test -n "$ac_ct_STRIP"; then
11020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11021else
11022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11029 ac_cv_prog_ac_ct_STRIP="strip"
11030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033done
11034 done
11035IFS=$as_save_IFS
11036
11037fi
11038fi
11039ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11040if test -n "$ac_ct_STRIP"; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11042$as_echo "$ac_ct_STRIP" >&6; }
11043else
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045$as_echo "no" >&6; }
11046fi
11047
11048 if test "x$ac_ct_STRIP" = x; then
11049 STRIP=":"
11050 else
11051 case $cross_compiling:$ac_tool_warned in
11052yes:)
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11055ac_tool_warned=yes ;;
11056esac
11057 STRIP=$ac_ct_STRIP
11058 fi
11059else
11060 STRIP="$ac_cv_prog_STRIP"
11061fi
11062
11063test -z "$STRIP" && STRIP=:
11064
11065
11066
11067
11068
11069
11070if test -n "$ac_tool_prefix"; then
11071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11072set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011075if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011076 $as_echo_n "(cached) " >&6
11077else
11078 if test -n "$RANLIB"; then
11079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11080else
11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $PATH
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11091 fi
11092done
11093 done
11094IFS=$as_save_IFS
11095
11096fi
11097fi
11098RANLIB=$ac_cv_prog_RANLIB
11099if test -n "$RANLIB"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11101$as_echo "$RANLIB" >&6; }
11102else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
11105fi
11106
11107
11108fi
11109if test -z "$ac_cv_prog_RANLIB"; then
11110 ac_ct_RANLIB=$RANLIB
11111 # Extract the first word of "ranlib", so it can be a program name with args.
11112set dummy ranlib; ac_word=$2
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011115if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011116 $as_echo_n "(cached) " >&6
11117else
11118 if test -n "$ac_ct_RANLIB"; then
11119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11120else
11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $PATH
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11128 ac_cv_prog_ac_ct_RANLIB="ranlib"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132done
11133 done
11134IFS=$as_save_IFS
11135
11136fi
11137fi
11138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11139if test -n "$ac_ct_RANLIB"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11141$as_echo "$ac_ct_RANLIB" >&6; }
11142else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145fi
11146
11147 if test "x$ac_ct_RANLIB" = x; then
11148 RANLIB=":"
11149 else
11150 case $cross_compiling:$ac_tool_warned in
11151yes:)
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11154ac_tool_warned=yes ;;
11155esac
11156 RANLIB=$ac_ct_RANLIB
11157 fi
11158else
11159 RANLIB="$ac_cv_prog_RANLIB"
11160fi
11161
11162test -z "$RANLIB" && RANLIB=:
11163
11164
11165
11166
11167
11168
11169# Determine commands to create old-style static archives.
11170old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11171old_postinstall_cmds='chmod 644 $oldlib'
11172old_postuninstall_cmds=
11173
11174if test -n "$RANLIB"; then
11175 case $host_os in
11176 openbsd*)
11177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11178 ;;
11179 *)
11180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11181 ;;
11182 esac
11183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11184fi
11185
cristy0c60a692010-11-04 01:09:47 +000011186case $host_os in
11187 darwin*)
11188 lock_old_archive_extraction=yes ;;
11189 *)
11190 lock_old_archive_extraction=no ;;
11191esac
11192
11193
11194
11195
11196
11197
cristy73bd4a52010-10-05 11:24:23 +000011198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231# If no C compiler was specified, use CC.
11232LTCC=${LTCC-"$CC"}
11233
11234# If no C compiler flags were specified, use CFLAGS.
11235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11236
11237# Allow CC to be a program name with arguments.
11238compiler=$CC
11239
11240
11241# Check for command to grab the raw symbol name followed by C symbol from nm.
11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11243$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011244if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011245 $as_echo_n "(cached) " >&6
11246else
11247
11248# These are sane defaults that work on at least a few old systems.
11249# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11250
11251# Character class describing NM global symbol codes.
11252symcode='[BCDEGRST]'
11253
11254# Regexp to match symbols that can be accessed directly from C.
11255sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11256
11257# Define system-specific variables.
11258case $host_os in
11259aix*)
11260 symcode='[BCDT]'
11261 ;;
11262cygwin* | mingw* | pw32* | cegcc*)
11263 symcode='[ABCDGISTW]'
11264 ;;
11265hpux*)
11266 if test "$host_cpu" = ia64; then
11267 symcode='[ABCDEGRST]'
11268 fi
11269 ;;
11270irix* | nonstopux*)
11271 symcode='[BCDEGRST]'
11272 ;;
11273osf*)
11274 symcode='[BCDEGQRST]'
11275 ;;
11276solaris*)
11277 symcode='[BDRT]'
11278 ;;
11279sco3.2v5*)
11280 symcode='[DT]'
11281 ;;
11282sysv4.2uw2*)
11283 symcode='[DT]'
11284 ;;
11285sysv5* | sco5v6* | unixware* | OpenUNIX*)
11286 symcode='[ABDT]'
11287 ;;
11288sysv4)
11289 symcode='[DFNSTU]'
11290 ;;
11291esac
11292
11293# If we're using GNU nm, then use its standard symbol codes.
11294case `$NM -V 2>&1` in
11295*GNU* | *'with BFD'*)
11296 symcode='[ABCDGIRSTW]' ;;
11297esac
11298
11299# Transform an extracted symbol line into a proper C declaration.
11300# Some systems (esp. on ia64) link data and code symbols differently,
11301# so use this general approach.
11302lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11303
11304# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011305lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11306lt_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 +000011307
11308# Handle CRLF in mingw tool chain
11309opt_cr=
11310case $build_os in
11311mingw*)
11312 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11313 ;;
11314esac
11315
11316# Try without a prefix underscore, then with it.
11317for ac_symprfx in "" "_"; do
11318
11319 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11320 symxfrm="\\1 $ac_symprfx\\2 \\2"
11321
11322 # Write the raw and C identifiers.
11323 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11324 # Fake it for dumpbin and say T for any non-static function
11325 # and D for any global variable.
11326 # Also find C++ and __fastcall symbols from MSVC++,
11327 # which start with @ or ?.
11328 lt_cv_sys_global_symbol_pipe="$AWK '"\
11329" {last_section=section; section=\$ 3};"\
11330" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11331" \$ 0!~/External *\|/{next};"\
11332" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11333" {if(hide[section]) next};"\
11334" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11335" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11336" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11337" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11338" ' prfx=^$ac_symprfx"
11339 else
11340 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11341 fi
cristyda16f162011-02-19 23:52:17 +000011342 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011343
11344 # Check to see that the pipe works correctly.
11345 pipe_works=no
11346
11347 rm -f conftest*
11348 cat > conftest.$ac_ext <<_LT_EOF
11349#ifdef __cplusplus
11350extern "C" {
11351#endif
11352char nm_test_var;
11353void nm_test_func(void);
11354void nm_test_func(void){}
11355#ifdef __cplusplus
11356}
11357#endif
11358int main(){nm_test_var='a';nm_test_func();return(0);}
11359_LT_EOF
11360
11361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11362 (eval $ac_compile) 2>&5
11363 ac_status=$?
11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11365 test $ac_status = 0; }; then
11366 # Now try to grab the symbols.
11367 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11369 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011370 ac_status=$?
11371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11372 test $ac_status = 0; } && test -s "$nlist"; then
11373 # Try sorting and uniquifying the output.
11374 if sort "$nlist" | uniq > "$nlist"T; then
11375 mv -f "$nlist"T "$nlist"
11376 else
11377 rm -f "$nlist"T
11378 fi
11379
11380 # Make sure that we snagged all the symbols we need.
11381 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11382 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11383 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011384/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11385#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11386/* DATA imports from DLLs on WIN32 con't be const, because runtime
11387 relocations are performed -- see ld's documentation on pseudo-relocs. */
11388# define LT_DLSYM_CONST
11389#elif defined(__osf__)
11390/* This system does not cope well with relocations in const data. */
11391# define LT_DLSYM_CONST
11392#else
11393# define LT_DLSYM_CONST const
11394#endif
11395
cristy73bd4a52010-10-05 11:24:23 +000011396#ifdef __cplusplus
11397extern "C" {
11398#endif
11399
11400_LT_EOF
11401 # Now generate the symbol file.
11402 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11403
11404 cat <<_LT_EOF >> conftest.$ac_ext
11405
11406/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011407LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011408 const char *name;
11409 void *address;
11410}
11411lt__PROGRAM__LTX_preloaded_symbols[] =
11412{
11413 { "@PROGRAM@", (void *) 0 },
11414_LT_EOF
11415 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11416 cat <<\_LT_EOF >> conftest.$ac_ext
11417 {0, (void *) 0}
11418};
11419
11420/* This works around a problem in FreeBSD linker */
11421#ifdef FREEBSD_WORKAROUND
11422static const void *lt_preloaded_setup() {
11423 return lt__PROGRAM__LTX_preloaded_symbols;
11424}
11425#endif
11426
11427#ifdef __cplusplus
11428}
11429#endif
11430_LT_EOF
11431 # Now try linking the two files.
11432 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011433 lt_globsym_save_LIBS=$LIBS
11434 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011435 LIBS="conftstm.$ac_objext"
11436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11438 (eval $ac_link) 2>&5
11439 ac_status=$?
11440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11441 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11442 pipe_works=yes
11443 fi
cristyda16f162011-02-19 23:52:17 +000011444 LIBS=$lt_globsym_save_LIBS
11445 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011446 else
11447 echo "cannot find nm_test_func in $nlist" >&5
11448 fi
11449 else
11450 echo "cannot find nm_test_var in $nlist" >&5
11451 fi
11452 else
11453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11454 fi
11455 else
11456 echo "$progname: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11458 fi
11459 rm -rf conftest* conftst*
11460
11461 # Do not use the global_symbol_pipe unless it works.
11462 if test "$pipe_works" = yes; then
11463 break
11464 else
11465 lt_cv_sys_global_symbol_pipe=
11466 fi
11467done
11468
11469fi
11470
11471if test -z "$lt_cv_sys_global_symbol_pipe"; then
11472 lt_cv_sys_global_symbol_to_cdecl=
11473fi
11474if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11476$as_echo "failed" >&6; }
11477else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11479$as_echo "ok" >&6; }
11480fi
11481
cristyda16f162011-02-19 23:52:17 +000011482# Response file support.
11483if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11484 nm_file_list_spec='@'
11485elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11486 nm_file_list_spec='@'
11487fi
cristy73bd4a52010-10-05 11:24:23 +000011488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
cristyda16f162011-02-19 23:52:17 +000011509
11510
11511
11512
11513
11514
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11516$as_echo_n "checking for sysroot... " >&6; }
11517
11518# Check whether --with-sysroot was given.
11519if test "${with_sysroot+set}" = set; then :
11520 withval=$with_sysroot;
11521else
11522 with_sysroot=no
11523fi
11524
11525
11526lt_sysroot=
11527case ${with_sysroot} in #(
11528 yes)
11529 if test "$GCC" = yes; then
11530 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11531 fi
11532 ;; #(
11533 /*)
11534 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11535 ;; #(
11536 no|'')
11537 ;; #(
11538 *)
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11540$as_echo "${with_sysroot}" >&6; }
11541 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11542 ;;
11543esac
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11546$as_echo "${lt_sysroot:-no}" >&6; }
11547
11548
11549
11550
11551
cristy73bd4a52010-10-05 11:24:23 +000011552# Check whether --enable-libtool-lock was given.
11553if test "${enable_libtool_lock+set}" = set; then :
11554 enableval=$enable_libtool_lock;
11555fi
11556
11557test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11558
11559# Some flags need to be propagated to the compiler or linker for good
11560# libtool support.
11561case $host in
11562ia64-*-hpux*)
11563 # Find out which ABI we are using.
11564 echo 'int i;' > conftest.$ac_ext
11565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11566 (eval $ac_compile) 2>&5
11567 ac_status=$?
11568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11569 test $ac_status = 0; }; then
11570 case `/usr/bin/file conftest.$ac_objext` in
11571 *ELF-32*)
11572 HPUX_IA64_MODE="32"
11573 ;;
11574 *ELF-64*)
11575 HPUX_IA64_MODE="64"
11576 ;;
11577 esac
11578 fi
11579 rm -rf conftest*
11580 ;;
11581*-*-irix6*)
11582 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011583 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11585 (eval $ac_compile) 2>&5
11586 ac_status=$?
11587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11588 test $ac_status = 0; }; then
11589 if test "$lt_cv_prog_gnu_ld" = yes; then
11590 case `/usr/bin/file conftest.$ac_objext` in
11591 *32-bit*)
11592 LD="${LD-ld} -melf32bsmip"
11593 ;;
11594 *N32*)
11595 LD="${LD-ld} -melf32bmipn32"
11596 ;;
11597 *64-bit*)
11598 LD="${LD-ld} -melf64bmip"
11599 ;;
11600 esac
11601 else
11602 case `/usr/bin/file conftest.$ac_objext` in
11603 *32-bit*)
11604 LD="${LD-ld} -32"
11605 ;;
11606 *N32*)
11607 LD="${LD-ld} -n32"
11608 ;;
11609 *64-bit*)
11610 LD="${LD-ld} -64"
11611 ;;
11612 esac
11613 fi
11614 fi
11615 rm -rf conftest*
11616 ;;
11617
11618x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11619s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11620 # Find out which ABI we are using.
11621 echo 'int i;' > conftest.$ac_ext
11622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11623 (eval $ac_compile) 2>&5
11624 ac_status=$?
11625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626 test $ac_status = 0; }; then
11627 case `/usr/bin/file conftest.o` in
11628 *32-bit*)
11629 case $host in
11630 x86_64-*kfreebsd*-gnu)
11631 LD="${LD-ld} -m elf_i386_fbsd"
11632 ;;
11633 x86_64-*linux*)
11634 LD="${LD-ld} -m elf_i386"
11635 ;;
11636 ppc64-*linux*|powerpc64-*linux*)
11637 LD="${LD-ld} -m elf32ppclinux"
11638 ;;
11639 s390x-*linux*)
11640 LD="${LD-ld} -m elf_s390"
11641 ;;
11642 sparc64-*linux*)
11643 LD="${LD-ld} -m elf32_sparc"
11644 ;;
11645 esac
11646 ;;
11647 *64-bit*)
11648 case $host in
11649 x86_64-*kfreebsd*-gnu)
11650 LD="${LD-ld} -m elf_x86_64_fbsd"
11651 ;;
11652 x86_64-*linux*)
11653 LD="${LD-ld} -m elf_x86_64"
11654 ;;
11655 ppc*-*linux*|powerpc*-*linux*)
11656 LD="${LD-ld} -m elf64ppc"
11657 ;;
11658 s390*-*linux*|s390*-*tpf*)
11659 LD="${LD-ld} -m elf64_s390"
11660 ;;
11661 sparc*-*linux*)
11662 LD="${LD-ld} -m elf64_sparc"
11663 ;;
11664 esac
11665 ;;
11666 esac
11667 fi
11668 rm -rf conftest*
11669 ;;
11670
11671*-*-sco3.2v5*)
11672 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11673 SAVE_CFLAGS="$CFLAGS"
11674 CFLAGS="$CFLAGS -belf"
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11676$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011677if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011678 $as_echo_n "(cached) " >&6
11679else
11680 ac_ext=c
11681ac_cpp='$CPP $CPPFLAGS'
11682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11684ac_compiler_gnu=$ac_cv_c_compiler_gnu
11685
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687/* end confdefs.h. */
11688
11689int
11690main ()
11691{
11692
11693 ;
11694 return 0;
11695}
11696_ACEOF
11697if ac_fn_c_try_link "$LINENO"; then :
11698 lt_cv_cc_needs_belf=yes
11699else
11700 lt_cv_cc_needs_belf=no
11701fi
11702rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704 ac_ext=c
11705ac_cpp='$CPP $CPPFLAGS'
11706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708ac_compiler_gnu=$ac_cv_c_compiler_gnu
11709
11710fi
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11712$as_echo "$lt_cv_cc_needs_belf" >&6; }
11713 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11714 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11715 CFLAGS="$SAVE_CFLAGS"
11716 fi
11717 ;;
11718sparc*-*solaris*)
11719 # Find out which ABI we are using.
11720 echo 'int i;' > conftest.$ac_ext
11721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11722 (eval $ac_compile) 2>&5
11723 ac_status=$?
11724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11725 test $ac_status = 0; }; then
11726 case `/usr/bin/file conftest.o` in
11727 *64-bit*)
11728 case $lt_cv_prog_gnu_ld in
11729 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11730 *)
11731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11732 LD="${LD-ld} -64"
11733 fi
11734 ;;
11735 esac
11736 ;;
11737 esac
11738 fi
11739 rm -rf conftest*
11740 ;;
11741esac
11742
11743need_locks="$enable_libtool_lock"
11744
cristyda16f162011-02-19 23:52:17 +000011745if test -n "$ac_tool_prefix"; then
11746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11747set dummy ${ac_tool_prefix}mt; ac_word=$2
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11749$as_echo_n "checking for $ac_word... " >&6; }
11750if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752else
11753 if test -n "$MANIFEST_TOOL"; then
11754 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11755else
11756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $PATH
11758do
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11766 fi
11767done
11768 done
11769IFS=$as_save_IFS
11770
11771fi
11772fi
11773MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11774if test -n "$MANIFEST_TOOL"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11776$as_echo "$MANIFEST_TOOL" >&6; }
11777else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779$as_echo "no" >&6; }
11780fi
11781
11782
11783fi
11784if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11786 # Extract the first word of "mt", so it can be a program name with args.
11787set dummy mt; ac_word=$2
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
11790if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792else
11793 if test -n "$ac_ct_MANIFEST_TOOL"; then
11794 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11806 fi
11807done
11808 done
11809IFS=$as_save_IFS
11810
11811fi
11812fi
11813ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11814if test -n "$ac_ct_MANIFEST_TOOL"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11816$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11817else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
11820fi
11821
11822 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11823 MANIFEST_TOOL=":"
11824 else
11825 case $cross_compiling:$ac_tool_warned in
11826yes:)
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11829ac_tool_warned=yes ;;
11830esac
11831 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11832 fi
11833else
11834 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11835fi
11836
11837test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11839$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11840if ${lt_cv_path_mainfest_tool+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842else
11843 lt_cv_path_mainfest_tool=no
11844 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11845 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11846 cat conftest.err >&5
11847 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11848 lt_cv_path_mainfest_tool=yes
11849 fi
11850 rm -f conftest*
11851fi
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11853$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11854if test "x$lt_cv_path_mainfest_tool" != xyes; then
11855 MANIFEST_TOOL=:
11856fi
11857
11858
11859
11860
11861
cristy73bd4a52010-10-05 11:24:23 +000011862
11863 case $host_os in
11864 rhapsody* | darwin*)
11865 if test -n "$ac_tool_prefix"; then
11866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11867set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011870if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011871 $as_echo_n "(cached) " >&6
11872else
11873 if test -n "$DSYMUTIL"; then
11874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11875else
11876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877for as_dir in $PATH
11878do
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11886 fi
11887done
11888 done
11889IFS=$as_save_IFS
11890
11891fi
11892fi
11893DSYMUTIL=$ac_cv_prog_DSYMUTIL
11894if test -n "$DSYMUTIL"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11896$as_echo "$DSYMUTIL" >&6; }
11897else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899$as_echo "no" >&6; }
11900fi
11901
11902
11903fi
11904if test -z "$ac_cv_prog_DSYMUTIL"; then
11905 ac_ct_DSYMUTIL=$DSYMUTIL
11906 # Extract the first word of "dsymutil", so it can be a program name with args.
11907set dummy dsymutil; ac_word=$2
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011910if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011911 $as_echo_n "(cached) " >&6
11912else
11913 if test -n "$ac_ct_DSYMUTIL"; then
11914 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11915else
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11923 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11926 fi
11927done
11928 done
11929IFS=$as_save_IFS
11930
11931fi
11932fi
11933ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11934if test -n "$ac_ct_DSYMUTIL"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11936$as_echo "$ac_ct_DSYMUTIL" >&6; }
11937else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940fi
11941
11942 if test "x$ac_ct_DSYMUTIL" = x; then
11943 DSYMUTIL=":"
11944 else
11945 case $cross_compiling:$ac_tool_warned in
11946yes:)
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11949ac_tool_warned=yes ;;
11950esac
11951 DSYMUTIL=$ac_ct_DSYMUTIL
11952 fi
11953else
11954 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11955fi
11956
11957 if test -n "$ac_tool_prefix"; then
11958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11959set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011962if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011963 $as_echo_n "(cached) " >&6
11964else
11965 if test -n "$NMEDIT"; then
11966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11967else
11968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969for as_dir in $PATH
11970do
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 break 2
11978 fi
11979done
11980 done
11981IFS=$as_save_IFS
11982
11983fi
11984fi
11985NMEDIT=$ac_cv_prog_NMEDIT
11986if test -n "$NMEDIT"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11988$as_echo "$NMEDIT" >&6; }
11989else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
11992fi
11993
11994
11995fi
11996if test -z "$ac_cv_prog_NMEDIT"; then
11997 ac_ct_NMEDIT=$NMEDIT
11998 # Extract the first word of "nmedit", so it can be a program name with args.
11999set dummy nmedit; ac_word=$2
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012002if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012003 $as_echo_n "(cached) " >&6
12004else
12005 if test -n "$ac_ct_NMEDIT"; then
12006 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12007else
12008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009for as_dir in $PATH
12010do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 for ac_exec_ext in '' $ac_executable_extensions; do
12014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12015 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12017 break 2
12018 fi
12019done
12020 done
12021IFS=$as_save_IFS
12022
12023fi
12024fi
12025ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12026if test -n "$ac_ct_NMEDIT"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12028$as_echo "$ac_ct_NMEDIT" >&6; }
12029else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031$as_echo "no" >&6; }
12032fi
12033
12034 if test "x$ac_ct_NMEDIT" = x; then
12035 NMEDIT=":"
12036 else
12037 case $cross_compiling:$ac_tool_warned in
12038yes:)
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12041ac_tool_warned=yes ;;
12042esac
12043 NMEDIT=$ac_ct_NMEDIT
12044 fi
12045else
12046 NMEDIT="$ac_cv_prog_NMEDIT"
12047fi
12048
12049 if test -n "$ac_tool_prefix"; then
12050 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12051set dummy ${ac_tool_prefix}lipo; ac_word=$2
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012054if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012055 $as_echo_n "(cached) " >&6
12056else
12057 if test -n "$LIPO"; then
12058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12059else
12060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061for as_dir in $PATH
12062do
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12067 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 break 2
12070 fi
12071done
12072 done
12073IFS=$as_save_IFS
12074
12075fi
12076fi
12077LIPO=$ac_cv_prog_LIPO
12078if test -n "$LIPO"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12080$as_echo "$LIPO" >&6; }
12081else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083$as_echo "no" >&6; }
12084fi
12085
12086
12087fi
12088if test -z "$ac_cv_prog_LIPO"; then
12089 ac_ct_LIPO=$LIPO
12090 # Extract the first word of "lipo", so it can be a program name with args.
12091set dummy lipo; ac_word=$2
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012094if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012095 $as_echo_n "(cached) " >&6
12096else
12097 if test -n "$ac_ct_LIPO"; then
12098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12099else
12100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101for as_dir in $PATH
12102do
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12107 ac_cv_prog_ac_ct_LIPO="lipo"
12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12109 break 2
12110 fi
12111done
12112 done
12113IFS=$as_save_IFS
12114
12115fi
12116fi
12117ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12118if test -n "$ac_ct_LIPO"; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12120$as_echo "$ac_ct_LIPO" >&6; }
12121else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123$as_echo "no" >&6; }
12124fi
12125
12126 if test "x$ac_ct_LIPO" = x; then
12127 LIPO=":"
12128 else
12129 case $cross_compiling:$ac_tool_warned in
12130yes:)
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12133ac_tool_warned=yes ;;
12134esac
12135 LIPO=$ac_ct_LIPO
12136 fi
12137else
12138 LIPO="$ac_cv_prog_LIPO"
12139fi
12140
12141 if test -n "$ac_tool_prefix"; then
12142 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12143set dummy ${ac_tool_prefix}otool; ac_word=$2
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012146if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012147 $as_echo_n "(cached) " >&6
12148else
12149 if test -n "$OTOOL"; then
12150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12151else
12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163done
12164 done
12165IFS=$as_save_IFS
12166
12167fi
12168fi
12169OTOOL=$ac_cv_prog_OTOOL
12170if test -n "$OTOOL"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12172$as_echo "$OTOOL" >&6; }
12173else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175$as_echo "no" >&6; }
12176fi
12177
12178
12179fi
12180if test -z "$ac_cv_prog_OTOOL"; then
12181 ac_ct_OTOOL=$OTOOL
12182 # Extract the first word of "otool", so it can be a program name with args.
12183set dummy otool; ac_word=$2
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012186if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012187 $as_echo_n "(cached) " >&6
12188else
12189 if test -n "$ac_ct_OTOOL"; then
12190 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12191else
12192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193for as_dir in $PATH
12194do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199 ac_cv_prog_ac_ct_OTOOL="otool"
12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 break 2
12202 fi
12203done
12204 done
12205IFS=$as_save_IFS
12206
12207fi
12208fi
12209ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12210if test -n "$ac_ct_OTOOL"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12212$as_echo "$ac_ct_OTOOL" >&6; }
12213else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
12216fi
12217
12218 if test "x$ac_ct_OTOOL" = x; then
12219 OTOOL=":"
12220 else
12221 case $cross_compiling:$ac_tool_warned in
12222yes:)
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12225ac_tool_warned=yes ;;
12226esac
12227 OTOOL=$ac_ct_OTOOL
12228 fi
12229else
12230 OTOOL="$ac_cv_prog_OTOOL"
12231fi
12232
12233 if test -n "$ac_tool_prefix"; then
12234 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12235set dummy ${ac_tool_prefix}otool64; ac_word=$2
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012238if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012239 $as_echo_n "(cached) " >&6
12240else
12241 if test -n "$OTOOL64"; then
12242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12243else
12244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245for as_dir in $PATH
12246do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12251 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12254 fi
12255done
12256 done
12257IFS=$as_save_IFS
12258
12259fi
12260fi
12261OTOOL64=$ac_cv_prog_OTOOL64
12262if test -n "$OTOOL64"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12264$as_echo "$OTOOL64" >&6; }
12265else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267$as_echo "no" >&6; }
12268fi
12269
12270
12271fi
12272if test -z "$ac_cv_prog_OTOOL64"; then
12273 ac_ct_OTOOL64=$OTOOL64
12274 # Extract the first word of "otool64", so it can be a program name with args.
12275set dummy otool64; ac_word=$2
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012278if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012279 $as_echo_n "(cached) " >&6
12280else
12281 if test -n "$ac_ct_OTOOL64"; then
12282 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12283else
12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285for as_dir in $PATH
12286do
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291 ac_cv_prog_ac_ct_OTOOL64="otool64"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12294 fi
12295done
12296 done
12297IFS=$as_save_IFS
12298
12299fi
12300fi
12301ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12302if test -n "$ac_ct_OTOOL64"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12304$as_echo "$ac_ct_OTOOL64" >&6; }
12305else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
12308fi
12309
12310 if test "x$ac_ct_OTOOL64" = x; then
12311 OTOOL64=":"
12312 else
12313 case $cross_compiling:$ac_tool_warned in
12314yes:)
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12317ac_tool_warned=yes ;;
12318esac
12319 OTOOL64=$ac_ct_OTOOL64
12320 fi
12321else
12322 OTOOL64="$ac_cv_prog_OTOOL64"
12323fi
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12352$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012353if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012354 $as_echo_n "(cached) " >&6
12355else
12356 lt_cv_apple_cc_single_mod=no
12357 if test -z "${LT_MULTI_MODULE}"; then
12358 # By default we will add the -single_module flag. You can override
12359 # by either setting the environment variable LT_MULTI_MODULE
12360 # non-empty at configure time, or by adding -multi_module to the
12361 # link flags.
12362 rm -rf libconftest.dylib*
12363 echo "int foo(void){return 1;}" > conftest.c
12364 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12365-dynamiclib -Wl,-single_module conftest.c" >&5
12366 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12367 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12368 _lt_result=$?
12369 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12370 lt_cv_apple_cc_single_mod=yes
12371 else
12372 cat conftest.err >&5
12373 fi
12374 rm -rf libconftest.dylib*
12375 rm -f conftest.*
12376 fi
12377fi
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12379$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12381$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012382if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012383 $as_echo_n "(cached) " >&6
12384else
12385 lt_cv_ld_exported_symbols_list=no
12386 save_LDFLAGS=$LDFLAGS
12387 echo "_main" > conftest.sym
12388 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390/* end confdefs.h. */
12391
12392int
12393main ()
12394{
12395
12396 ;
12397 return 0;
12398}
12399_ACEOF
12400if ac_fn_c_try_link "$LINENO"; then :
12401 lt_cv_ld_exported_symbols_list=yes
12402else
12403 lt_cv_ld_exported_symbols_list=no
12404fi
12405rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 LDFLAGS="$save_LDFLAGS"
12408
12409fi
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12411$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12413$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012414if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012415 $as_echo_n "(cached) " >&6
12416else
12417 lt_cv_ld_force_load=no
12418 cat > conftest.c << _LT_EOF
12419int forced_loaded() { return 2;}
12420_LT_EOF
12421 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12422 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12423 echo "$AR cru libconftest.a conftest.o" >&5
12424 $AR cru libconftest.a conftest.o 2>&5
12425 echo "$RANLIB libconftest.a" >&5
12426 $RANLIB libconftest.a 2>&5
12427 cat > conftest.c << _LT_EOF
12428int main() { return 0;}
12429_LT_EOF
12430 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12431 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12432 _lt_result=$?
12433 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12434 lt_cv_ld_force_load=yes
12435 else
12436 cat conftest.err >&5
12437 fi
12438 rm -f conftest.err libconftest.a conftest conftest.c
12439 rm -rf conftest.dSYM
12440
12441fi
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12443$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012444 case $host_os in
12445 rhapsody* | darwin1.[012])
12446 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12447 darwin1.*)
12448 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12449 darwin*) # darwin 5.x on
12450 # if running on 10.5 or later, the deployment target defaults
12451 # to the OS version, if on x86, and 10.4, the deployment
12452 # target defaults to 10.4. Don't you love it?
12453 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12454 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12455 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12456 10.[012]*)
12457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12458 10.*)
12459 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12460 esac
12461 ;;
12462 esac
12463 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12464 _lt_dar_single_mod='$single_module'
12465 fi
12466 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12467 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12468 else
12469 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12470 fi
cristy0c60a692010-11-04 01:09:47 +000012471 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012472 _lt_dsymutil='~$DSYMUTIL $lib || :'
12473 else
12474 _lt_dsymutil=
12475 fi
12476 ;;
12477 esac
12478
12479for ac_header in dlfcn.h
12480do :
12481 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12482"
cristyda16f162011-02-19 23:52:17 +000012483if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012484 cat >>confdefs.h <<_ACEOF
12485#define HAVE_DLFCN_H 1
12486_ACEOF
12487
12488fi
12489
12490done
12491
12492
12493
cristy73bd4a52010-10-05 11:24:23 +000012494
cristyda16f162011-02-19 23:52:17 +000012495func_stripname_cnf ()
12496{
12497 case ${2} in
12498 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12499 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12500 esac
12501} # func_stripname_cnf
12502
12503
12504
cristy73bd4a52010-10-05 11:24:23 +000012505
12506
12507# Set options
12508enable_win32_dll=yes
12509
12510case $host in
cristy0c60a692010-11-04 01:09:47 +000012511*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012512 if test -n "$ac_tool_prefix"; then
12513 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12514set dummy ${ac_tool_prefix}as; ac_word=$2
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012517if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012518 $as_echo_n "(cached) " >&6
12519else
12520 if test -n "$AS"; then
12521 ac_cv_prog_AS="$AS" # Let the user override the test.
12522else
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12530 ac_cv_prog_AS="${ac_tool_prefix}as"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12533 fi
12534done
12535 done
12536IFS=$as_save_IFS
12537
12538fi
12539fi
12540AS=$ac_cv_prog_AS
12541if test -n "$AS"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12543$as_echo "$AS" >&6; }
12544else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547fi
12548
12549
12550fi
12551if test -z "$ac_cv_prog_AS"; then
12552 ac_ct_AS=$AS
12553 # Extract the first word of "as", so it can be a program name with args.
12554set dummy as; ac_word=$2
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012557if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012558 $as_echo_n "(cached) " >&6
12559else
12560 if test -n "$ac_ct_AS"; then
12561 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12562else
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
12569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12570 ac_cv_prog_ac_ct_AS="as"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12573 fi
12574done
12575 done
12576IFS=$as_save_IFS
12577
12578fi
12579fi
12580ac_ct_AS=$ac_cv_prog_ac_ct_AS
12581if test -n "$ac_ct_AS"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12583$as_echo "$ac_ct_AS" >&6; }
12584else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589 if test "x$ac_ct_AS" = x; then
12590 AS="false"
12591 else
12592 case $cross_compiling:$ac_tool_warned in
12593yes:)
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12596ac_tool_warned=yes ;;
12597esac
12598 AS=$ac_ct_AS
12599 fi
12600else
12601 AS="$ac_cv_prog_AS"
12602fi
12603
12604 if test -n "$ac_tool_prefix"; then
12605 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12606set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012609if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012610 $as_echo_n "(cached) " >&6
12611else
12612 if test -n "$DLLTOOL"; then
12613 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12614else
12615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616for as_dir in $PATH
12617do
12618 IFS=$as_save_IFS
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12622 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 break 2
12625 fi
12626done
12627 done
12628IFS=$as_save_IFS
12629
12630fi
12631fi
12632DLLTOOL=$ac_cv_prog_DLLTOOL
12633if test -n "$DLLTOOL"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12635$as_echo "$DLLTOOL" >&6; }
12636else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639fi
12640
12641
12642fi
12643if test -z "$ac_cv_prog_DLLTOOL"; then
12644 ac_ct_DLLTOOL=$DLLTOOL
12645 # Extract the first word of "dlltool", so it can be a program name with args.
12646set dummy dlltool; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012649if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012650 $as_echo_n "(cached) " >&6
12651else
12652 if test -n "$ac_ct_DLLTOOL"; then
12653 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12662 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666done
12667 done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12673if test -n "$ac_ct_DLLTOOL"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12675$as_echo "$ac_ct_DLLTOOL" >&6; }
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679fi
12680
12681 if test "x$ac_ct_DLLTOOL" = x; then
12682 DLLTOOL="false"
12683 else
12684 case $cross_compiling:$ac_tool_warned in
12685yes:)
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12688ac_tool_warned=yes ;;
12689esac
12690 DLLTOOL=$ac_ct_DLLTOOL
12691 fi
12692else
12693 DLLTOOL="$ac_cv_prog_DLLTOOL"
12694fi
12695
12696 if test -n "$ac_tool_prefix"; then
12697 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12698set dummy ${ac_tool_prefix}objdump; ac_word=$2
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012701if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012702 $as_echo_n "(cached) " >&6
12703else
12704 if test -n "$OBJDUMP"; then
12705 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12706else
12707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708for as_dir in $PATH
12709do
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12714 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12717 fi
12718done
12719 done
12720IFS=$as_save_IFS
12721
12722fi
12723fi
12724OBJDUMP=$ac_cv_prog_OBJDUMP
12725if test -n "$OBJDUMP"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12727$as_echo "$OBJDUMP" >&6; }
12728else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731fi
12732
12733
12734fi
12735if test -z "$ac_cv_prog_OBJDUMP"; then
12736 ac_ct_OBJDUMP=$OBJDUMP
12737 # Extract the first word of "objdump", so it can be a program name with args.
12738set dummy objdump; ac_word=$2
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012741if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012742 $as_echo_n "(cached) " >&6
12743else
12744 if test -n "$ac_ct_OBJDUMP"; then
12745 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12746else
12747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12754 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12757 fi
12758done
12759 done
12760IFS=$as_save_IFS
12761
12762fi
12763fi
12764ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12765if test -n "$ac_ct_OBJDUMP"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12767$as_echo "$ac_ct_OBJDUMP" >&6; }
12768else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773 if test "x$ac_ct_OBJDUMP" = x; then
12774 OBJDUMP="false"
12775 else
12776 case $cross_compiling:$ac_tool_warned in
12777yes:)
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12780ac_tool_warned=yes ;;
12781esac
12782 OBJDUMP=$ac_ct_OBJDUMP
12783 fi
12784else
12785 OBJDUMP="$ac_cv_prog_OBJDUMP"
12786fi
12787
12788 ;;
12789esac
12790
12791test -z "$AS" && AS=as
12792
12793
12794
12795
12796
12797test -z "$DLLTOOL" && DLLTOOL=dlltool
12798
12799
12800
12801
12802
12803test -z "$OBJDUMP" && OBJDUMP=objdump
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813 # Check whether --enable-shared was given.
12814if test "${enable_shared+set}" = set; then :
12815 enableval=$enable_shared; p=${PACKAGE-default}
12816 case $enableval in
12817 yes) enable_shared=yes ;;
12818 no) enable_shared=no ;;
12819 *)
12820 enable_shared=no
12821 # Look at the argument we got. We use all the common list separators.
12822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12823 for pkg in $enableval; do
12824 IFS="$lt_save_ifs"
12825 if test "X$pkg" = "X$p"; then
12826 enable_shared=yes
12827 fi
12828 done
12829 IFS="$lt_save_ifs"
12830 ;;
12831 esac
12832else
12833 enable_shared=yes
12834fi
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 # Check whether --enable-static was given.
12845if test "${enable_static+set}" = set; then :
12846 enableval=$enable_static; p=${PACKAGE-default}
12847 case $enableval in
12848 yes) enable_static=yes ;;
12849 no) enable_static=no ;;
12850 *)
12851 enable_static=no
12852 # Look at the argument we got. We use all the common list separators.
12853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12854 for pkg in $enableval; do
12855 IFS="$lt_save_ifs"
12856 if test "X$pkg" = "X$p"; then
12857 enable_static=yes
12858 fi
12859 done
12860 IFS="$lt_save_ifs"
12861 ;;
12862 esac
12863else
12864 enable_static=yes
12865fi
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876# Check whether --with-pic was given.
12877if test "${with_pic+set}" = set; then :
12878 withval=$with_pic; pic_mode="$withval"
12879else
12880 pic_mode=default
12881fi
12882
12883
12884test -z "$pic_mode" && pic_mode=default
12885
12886
12887
12888
12889
12890
12891
12892 # Check whether --enable-fast-install was given.
12893if test "${enable_fast_install+set}" = set; then :
12894 enableval=$enable_fast_install; p=${PACKAGE-default}
12895 case $enableval in
12896 yes) enable_fast_install=yes ;;
12897 no) enable_fast_install=no ;;
12898 *)
12899 enable_fast_install=no
12900 # Look at the argument we got. We use all the common list separators.
12901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12902 for pkg in $enableval; do
12903 IFS="$lt_save_ifs"
12904 if test "X$pkg" = "X$p"; then
12905 enable_fast_install=yes
12906 fi
12907 done
12908 IFS="$lt_save_ifs"
12909 ;;
12910 esac
12911else
12912 enable_fast_install=yes
12913fi
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925# This can be used to rebuild libtool when needed
12926LIBTOOL_DEPS="$ltmain"
12927
12928# Always use our own libtool.
12929LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
cristy0c60a692010-11-04 01:09:47 +000012955
cristy73bd4a52010-10-05 11:24:23 +000012956test -z "$LN_S" && LN_S="ln -s"
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971if test -n "${ZSH_VERSION+set}" ; then
12972 setopt NO_GLOB_SUBST
12973fi
12974
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12976$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012977if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012978 $as_echo_n "(cached) " >&6
12979else
12980 rm -f .libs 2>/dev/null
12981mkdir .libs 2>/dev/null
12982if test -d .libs; then
12983 lt_cv_objdir=.libs
12984else
12985 # MS-DOS does not allow filenames that begin with a dot.
12986 lt_cv_objdir=_libs
12987fi
12988rmdir .libs 2>/dev/null
12989fi
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12991$as_echo "$lt_cv_objdir" >&6; }
12992objdir=$lt_cv_objdir
12993
12994
12995
12996
12997
12998cat >>confdefs.h <<_ACEOF
12999#define LT_OBJDIR "$lt_cv_objdir/"
13000_ACEOF
13001
13002
13003
13004
cristy73bd4a52010-10-05 11:24:23 +000013005case $host_os in
13006aix3*)
13007 # AIX sometimes has problems with the GCC collect2 program. For some
13008 # reason, if we set the COLLECT_NAMES environment variable, the problems
13009 # vanish in a puff of smoke.
13010 if test "X${COLLECT_NAMES+set}" != Xset; then
13011 COLLECT_NAMES=
13012 export COLLECT_NAMES
13013 fi
13014 ;;
13015esac
13016
cristy73bd4a52010-10-05 11:24:23 +000013017# Global variables:
13018ofile=libtool
13019can_build_shared=yes
13020
13021# All known linkers require a `.a' archive for static linking (except MSVC,
13022# which needs '.lib').
13023libext=a
13024
13025with_gnu_ld="$lt_cv_prog_gnu_ld"
13026
13027old_CC="$CC"
13028old_CFLAGS="$CFLAGS"
13029
13030# Set sane defaults for various variables
13031test -z "$CC" && CC=cc
13032test -z "$LTCC" && LTCC=$CC
13033test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13034test -z "$LD" && LD=ld
13035test -z "$ac_objext" && ac_objext=o
13036
13037for cc_temp in $compiler""; do
13038 case $cc_temp in
13039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13041 \-*) ;;
13042 *) break;;
13043 esac
13044done
cristy0c60a692010-11-04 01:09:47 +000013045cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013046
13047
13048# Only perform the check for file, if the check method requires it
13049test -z "$MAGIC_CMD" && MAGIC_CMD=file
13050case $deplibs_check_method in
13051file_magic*)
13052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13054$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013055if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013056 $as_echo_n "(cached) " >&6
13057else
13058 case $MAGIC_CMD in
13059[\\/*] | ?:[\\/]*)
13060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13061 ;;
13062*)
13063 lt_save_MAGIC_CMD="$MAGIC_CMD"
13064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13066 for ac_dir in $ac_dummy; do
13067 IFS="$lt_save_ifs"
13068 test -z "$ac_dir" && ac_dir=.
13069 if test -f $ac_dir/${ac_tool_prefix}file; then
13070 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13071 if test -n "$file_magic_test_file"; then
13072 case $deplibs_check_method in
13073 "file_magic "*)
13074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13077 $EGREP "$file_magic_regex" > /dev/null; then
13078 :
13079 else
13080 cat <<_LT_EOF 1>&2
13081
13082*** Warning: the command libtool uses to detect shared libraries,
13083*** $file_magic_cmd, produces output that libtool cannot recognize.
13084*** The result is that libtool may fail to recognize shared libraries
13085*** as such. This will affect the creation of libtool libraries that
13086*** depend on shared libraries, but programs linked with such libtool
13087*** libraries will work regardless of this problem. Nevertheless, you
13088*** may want to report the problem to your system manager and/or to
13089*** bug-libtool@gnu.org
13090
13091_LT_EOF
13092 fi ;;
13093 esac
13094 fi
13095 break
13096 fi
13097 done
13098 IFS="$lt_save_ifs"
13099 MAGIC_CMD="$lt_save_MAGIC_CMD"
13100 ;;
13101esac
13102fi
13103
13104MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13105if test -n "$MAGIC_CMD"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13107$as_echo "$MAGIC_CMD" >&6; }
13108else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110$as_echo "no" >&6; }
13111fi
13112
13113
13114
13115
13116
13117if test -z "$lt_cv_path_MAGIC_CMD"; then
13118 if test -n "$ac_tool_prefix"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13120$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013121if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013122 $as_echo_n "(cached) " >&6
13123else
13124 case $MAGIC_CMD in
13125[\\/*] | ?:[\\/]*)
13126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13127 ;;
13128*)
13129 lt_save_MAGIC_CMD="$MAGIC_CMD"
13130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13132 for ac_dir in $ac_dummy; do
13133 IFS="$lt_save_ifs"
13134 test -z "$ac_dir" && ac_dir=.
13135 if test -f $ac_dir/file; then
13136 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13137 if test -n "$file_magic_test_file"; then
13138 case $deplibs_check_method in
13139 "file_magic "*)
13140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13143 $EGREP "$file_magic_regex" > /dev/null; then
13144 :
13145 else
13146 cat <<_LT_EOF 1>&2
13147
13148*** Warning: the command libtool uses to detect shared libraries,
13149*** $file_magic_cmd, produces output that libtool cannot recognize.
13150*** The result is that libtool may fail to recognize shared libraries
13151*** as such. This will affect the creation of libtool libraries that
13152*** depend on shared libraries, but programs linked with such libtool
13153*** libraries will work regardless of this problem. Nevertheless, you
13154*** may want to report the problem to your system manager and/or to
13155*** bug-libtool@gnu.org
13156
13157_LT_EOF
13158 fi ;;
13159 esac
13160 fi
13161 break
13162 fi
13163 done
13164 IFS="$lt_save_ifs"
13165 MAGIC_CMD="$lt_save_MAGIC_CMD"
13166 ;;
13167esac
13168fi
13169
13170MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13171if test -n "$MAGIC_CMD"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13173$as_echo "$MAGIC_CMD" >&6; }
13174else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176$as_echo "no" >&6; }
13177fi
13178
13179
13180 else
13181 MAGIC_CMD=:
13182 fi
13183fi
13184
13185 fi
13186 ;;
13187esac
13188
13189# Use C for the default configuration in the libtool script
13190
13191lt_save_CC="$CC"
13192ac_ext=c
13193ac_cpp='$CPP $CPPFLAGS'
13194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13196ac_compiler_gnu=$ac_cv_c_compiler_gnu
13197
13198
13199# Source file extension for C test sources.
13200ac_ext=c
13201
13202# Object file extension for compiled C test sources.
13203objext=o
13204objext=$objext
13205
13206# Code to be used in simple compile tests
13207lt_simple_compile_test_code="int some_variable = 0;"
13208
13209# Code to be used in simple link tests
13210lt_simple_link_test_code='int main(){return(0);}'
13211
13212
13213
13214
13215
13216
13217
13218# If no C compiler was specified, use CC.
13219LTCC=${LTCC-"$CC"}
13220
13221# If no C compiler flags were specified, use CFLAGS.
13222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13223
13224# Allow CC to be a program name with arguments.
13225compiler=$CC
13226
13227# Save the default compiler, since it gets overwritten when the other
13228# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13229compiler_DEFAULT=$CC
13230
13231# save warnings/boilerplate of simple test code
13232ac_outfile=conftest.$ac_objext
13233echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13234eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13235_lt_compiler_boilerplate=`cat conftest.err`
13236$RM conftest*
13237
13238ac_outfile=conftest.$ac_objext
13239echo "$lt_simple_link_test_code" >conftest.$ac_ext
13240eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13241_lt_linker_boilerplate=`cat conftest.err`
13242$RM -r conftest*
13243
13244
13245## CAVEAT EMPTOR:
13246## There is no encapsulation within the following macros, do not change
13247## the running order or otherwise move them around unless you know exactly
13248## what you are doing...
13249if test -n "$compiler"; then
13250
13251lt_prog_compiler_no_builtin_flag=
13252
13253if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013254 case $cc_basename in
13255 nvcc*)
13256 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13257 *)
13258 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13259 esac
cristy73bd4a52010-10-05 11:24:23 +000013260
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13262$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013263if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013264 $as_echo_n "(cached) " >&6
13265else
13266 lt_cv_prog_compiler_rtti_exceptions=no
13267 ac_outfile=conftest.$ac_objext
13268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13269 lt_compiler_flag="-fno-rtti -fno-exceptions"
13270 # Insert the option either (1) after the last *FLAGS variable, or
13271 # (2) before a word containing "conftest.", or (3) at the end.
13272 # Note that $ac_compile itself does not contain backslashes and begins
13273 # with a dollar sign (not a hyphen), so the echo should work correctly.
13274 # The option is referenced via a variable to avoid confusing sed.
13275 lt_compile=`echo "$ac_compile" | $SED \
13276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13278 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013280 (eval "$lt_compile" 2>conftest.err)
13281 ac_status=$?
13282 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013284 if (exit $ac_status) && test -s "$ac_outfile"; then
13285 # The compiler can only warn and ignore the option if not recognized
13286 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13290 lt_cv_prog_compiler_rtti_exceptions=yes
13291 fi
13292 fi
13293 $RM conftest*
13294
13295fi
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13297$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13298
13299if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13300 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13301else
13302 :
13303fi
13304
13305fi
13306
13307
13308
13309
13310
13311
13312 lt_prog_compiler_wl=
13313lt_prog_compiler_pic=
13314lt_prog_compiler_static=
13315
cristy73bd4a52010-10-05 11:24:23 +000013316
13317 if test "$GCC" = yes; then
13318 lt_prog_compiler_wl='-Wl,'
13319 lt_prog_compiler_static='-static'
13320
13321 case $host_os in
13322 aix*)
13323 # All AIX code is PIC.
13324 if test "$host_cpu" = ia64; then
13325 # AIX 5 now supports IA64 processor
13326 lt_prog_compiler_static='-Bstatic'
13327 fi
13328 ;;
13329
13330 amigaos*)
13331 case $host_cpu in
13332 powerpc)
13333 # see comment about AmigaOS4 .so support
13334 lt_prog_compiler_pic='-fPIC'
13335 ;;
13336 m68k)
13337 # FIXME: we need at least 68020 code to build shared libraries, but
13338 # adding the `-m68020' flag to GCC prevents building anything better,
13339 # like `-m68040'.
13340 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13341 ;;
13342 esac
13343 ;;
13344
13345 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13346 # PIC is the default for these OSes.
13347 ;;
13348
13349 mingw* | cygwin* | pw32* | os2* | cegcc*)
13350 # This hack is so that the source file can tell whether it is being
13351 # built for inclusion in a dll (and should export symbols for example).
13352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13353 # (--disable-auto-import) libraries
13354 lt_prog_compiler_pic='-DDLL_EXPORT'
13355 ;;
13356
13357 darwin* | rhapsody*)
13358 # PIC is the default on this platform
13359 # Common symbols not allowed in MH_DYLIB files
13360 lt_prog_compiler_pic='-fno-common'
13361 ;;
13362
cristy0c60a692010-11-04 01:09:47 +000013363 haiku*)
13364 # PIC is the default for Haiku.
13365 # The "-static" flag exists, but is broken.
13366 lt_prog_compiler_static=
13367 ;;
13368
cristy73bd4a52010-10-05 11:24:23 +000013369 hpux*)
13370 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13371 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13372 # sets the default TLS model and affects inlining.
13373 case $host_cpu in
13374 hppa*64*)
13375 # +Z the default
13376 ;;
13377 *)
13378 lt_prog_compiler_pic='-fPIC'
13379 ;;
13380 esac
13381 ;;
13382
13383 interix[3-9]*)
13384 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13385 # Instead, we relocate shared libraries at runtime.
13386 ;;
13387
13388 msdosdjgpp*)
13389 # Just because we use GCC doesn't mean we suddenly get shared libraries
13390 # on systems that don't support them.
13391 lt_prog_compiler_can_build_shared=no
13392 enable_shared=no
13393 ;;
13394
13395 *nto* | *qnx*)
13396 # QNX uses GNU C++, but need to define -shared option too, otherwise
13397 # it will coredump.
13398 lt_prog_compiler_pic='-fPIC -shared'
13399 ;;
13400
13401 sysv4*MP*)
13402 if test -d /usr/nec; then
13403 lt_prog_compiler_pic=-Kconform_pic
13404 fi
13405 ;;
13406
13407 *)
13408 lt_prog_compiler_pic='-fPIC'
13409 ;;
13410 esac
cristy0c60a692010-11-04 01:09:47 +000013411
13412 case $cc_basename in
13413 nvcc*) # Cuda Compiler Driver 2.2
13414 lt_prog_compiler_wl='-Xlinker '
13415 lt_prog_compiler_pic='-Xcompiler -fPIC'
13416 ;;
13417 esac
cristy73bd4a52010-10-05 11:24:23 +000013418 else
13419 # PORTME Check for flag to pass linker flags through the system compiler.
13420 case $host_os in
13421 aix*)
13422 lt_prog_compiler_wl='-Wl,'
13423 if test "$host_cpu" = ia64; then
13424 # AIX 5 now supports IA64 processor
13425 lt_prog_compiler_static='-Bstatic'
13426 else
13427 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13428 fi
13429 ;;
13430
13431 mingw* | cygwin* | pw32* | os2* | cegcc*)
13432 # This hack is so that the source file can tell whether it is being
13433 # built for inclusion in a dll (and should export symbols for example).
13434 lt_prog_compiler_pic='-DDLL_EXPORT'
13435 ;;
13436
13437 hpux9* | hpux10* | hpux11*)
13438 lt_prog_compiler_wl='-Wl,'
13439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13440 # not for PA HP-UX.
13441 case $host_cpu in
13442 hppa*64*|ia64*)
13443 # +Z the default
13444 ;;
13445 *)
13446 lt_prog_compiler_pic='+Z'
13447 ;;
13448 esac
13449 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13450 lt_prog_compiler_static='${wl}-a ${wl}archive'
13451 ;;
13452
13453 irix5* | irix6* | nonstopux*)
13454 lt_prog_compiler_wl='-Wl,'
13455 # PIC (with -KPIC) is the default.
13456 lt_prog_compiler_static='-non_shared'
13457 ;;
13458
cristy0c60a692010-11-04 01:09:47 +000013459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013460 case $cc_basename in
13461 # old Intel for x86_64 which still supported -KPIC.
13462 ecc*)
13463 lt_prog_compiler_wl='-Wl,'
13464 lt_prog_compiler_pic='-KPIC'
13465 lt_prog_compiler_static='-static'
13466 ;;
13467 # icc used to be incompatible with GCC.
13468 # ICC 10 doesn't accept -KPIC any more.
13469 icc* | ifort*)
13470 lt_prog_compiler_wl='-Wl,'
13471 lt_prog_compiler_pic='-fPIC'
13472 lt_prog_compiler_static='-static'
13473 ;;
13474 # Lahey Fortran 8.1.
13475 lf95*)
13476 lt_prog_compiler_wl='-Wl,'
13477 lt_prog_compiler_pic='--shared'
13478 lt_prog_compiler_static='--static'
13479 ;;
cristyda16f162011-02-19 23:52:17 +000013480 nagfor*)
13481 # NAG Fortran compiler
13482 lt_prog_compiler_wl='-Wl,-Wl,,'
13483 lt_prog_compiler_pic='-PIC'
13484 lt_prog_compiler_static='-Bstatic'
13485 ;;
cristy0c60a692010-11-04 01:09:47 +000013486 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013487 # Portland Group compilers (*not* the Pentium gcc compiler,
13488 # which looks to be a dead project)
13489 lt_prog_compiler_wl='-Wl,'
13490 lt_prog_compiler_pic='-fpic'
13491 lt_prog_compiler_static='-Bstatic'
13492 ;;
13493 ccc*)
13494 lt_prog_compiler_wl='-Wl,'
13495 # All Alpha code is PIC.
13496 lt_prog_compiler_static='-non_shared'
13497 ;;
cristy0c60a692010-11-04 01:09:47 +000013498 xl* | bgxl* | bgf* | mpixl*)
13499 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013500 lt_prog_compiler_wl='-Wl,'
13501 lt_prog_compiler_pic='-qpic'
13502 lt_prog_compiler_static='-qstaticlink'
13503 ;;
13504 *)
13505 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013506 *Sun\ F* | *Sun*Fortran*)
13507 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13508 lt_prog_compiler_pic='-KPIC'
13509 lt_prog_compiler_static='-Bstatic'
13510 lt_prog_compiler_wl=''
13511 ;;
cristy73bd4a52010-10-05 11:24:23 +000013512 *Sun\ C*)
13513 # Sun C 5.9
13514 lt_prog_compiler_pic='-KPIC'
13515 lt_prog_compiler_static='-Bstatic'
13516 lt_prog_compiler_wl='-Wl,'
13517 ;;
cristy73bd4a52010-10-05 11:24:23 +000013518 esac
13519 ;;
13520 esac
13521 ;;
13522
13523 newsos6)
13524 lt_prog_compiler_pic='-KPIC'
13525 lt_prog_compiler_static='-Bstatic'
13526 ;;
13527
13528 *nto* | *qnx*)
13529 # QNX uses GNU C++, but need to define -shared option too, otherwise
13530 # it will coredump.
13531 lt_prog_compiler_pic='-fPIC -shared'
13532 ;;
13533
13534 osf3* | osf4* | osf5*)
13535 lt_prog_compiler_wl='-Wl,'
13536 # All OSF/1 code is PIC.
13537 lt_prog_compiler_static='-non_shared'
13538 ;;
13539
13540 rdos*)
13541 lt_prog_compiler_static='-non_shared'
13542 ;;
13543
13544 solaris*)
13545 lt_prog_compiler_pic='-KPIC'
13546 lt_prog_compiler_static='-Bstatic'
13547 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013548 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013549 lt_prog_compiler_wl='-Qoption ld ';;
13550 *)
13551 lt_prog_compiler_wl='-Wl,';;
13552 esac
13553 ;;
13554
13555 sunos4*)
13556 lt_prog_compiler_wl='-Qoption ld '
13557 lt_prog_compiler_pic='-PIC'
13558 lt_prog_compiler_static='-Bstatic'
13559 ;;
13560
13561 sysv4 | sysv4.2uw2* | sysv4.3*)
13562 lt_prog_compiler_wl='-Wl,'
13563 lt_prog_compiler_pic='-KPIC'
13564 lt_prog_compiler_static='-Bstatic'
13565 ;;
13566
13567 sysv4*MP*)
13568 if test -d /usr/nec ;then
13569 lt_prog_compiler_pic='-Kconform_pic'
13570 lt_prog_compiler_static='-Bstatic'
13571 fi
13572 ;;
13573
13574 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13575 lt_prog_compiler_wl='-Wl,'
13576 lt_prog_compiler_pic='-KPIC'
13577 lt_prog_compiler_static='-Bstatic'
13578 ;;
13579
13580 unicos*)
13581 lt_prog_compiler_wl='-Wl,'
13582 lt_prog_compiler_can_build_shared=no
13583 ;;
13584
13585 uts4*)
13586 lt_prog_compiler_pic='-pic'
13587 lt_prog_compiler_static='-Bstatic'
13588 ;;
13589
13590 *)
13591 lt_prog_compiler_can_build_shared=no
13592 ;;
13593 esac
13594 fi
13595
13596case $host_os in
13597 # For platforms which do not support PIC, -DPIC is meaningless:
13598 *djgpp*)
13599 lt_prog_compiler_pic=
13600 ;;
13601 *)
13602 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13603 ;;
13604esac
cristy73bd4a52010-10-05 11:24:23 +000013605
cristyda16f162011-02-19 23:52:17 +000013606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13607$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13608if ${lt_cv_prog_compiler_pic+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610else
13611 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13612fi
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13614$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13615lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013616
13617#
13618# Check to make sure the PIC flag actually works.
13619#
13620if test -n "$lt_prog_compiler_pic"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13622$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013623if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013624 $as_echo_n "(cached) " >&6
13625else
13626 lt_cv_prog_compiler_pic_works=no
13627 ac_outfile=conftest.$ac_objext
13628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13629 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13630 # Insert the option either (1) after the last *FLAGS variable, or
13631 # (2) before a word containing "conftest.", or (3) at the end.
13632 # Note that $ac_compile itself does not contain backslashes and begins
13633 # with a dollar sign (not a hyphen), so the echo should work correctly.
13634 # The option is referenced via a variable to avoid confusing sed.
13635 lt_compile=`echo "$ac_compile" | $SED \
13636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13638 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013640 (eval "$lt_compile" 2>conftest.err)
13641 ac_status=$?
13642 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013644 if (exit $ac_status) && test -s "$ac_outfile"; then
13645 # The compiler can only warn and ignore the option if not recognized
13646 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13650 lt_cv_prog_compiler_pic_works=yes
13651 fi
13652 fi
13653 $RM conftest*
13654
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13657$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13658
13659if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13660 case $lt_prog_compiler_pic in
13661 "" | " "*) ;;
13662 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13663 esac
13664else
13665 lt_prog_compiler_pic=
13666 lt_prog_compiler_can_build_shared=no
13667fi
13668
13669fi
13670
13671
13672
13673
13674
13675
cristyda16f162011-02-19 23:52:17 +000013676
13677
13678
13679
13680
cristy73bd4a52010-10-05 11:24:23 +000013681#
13682# Check to make sure the static flag actually works.
13683#
13684wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13686$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013687if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013688 $as_echo_n "(cached) " >&6
13689else
13690 lt_cv_prog_compiler_static_works=no
13691 save_LDFLAGS="$LDFLAGS"
13692 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13693 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13694 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13695 # The linker can only warn and ignore the option if not recognized
13696 # So say no if there are warnings
13697 if test -s conftest.err; then
13698 # Append any errors to the config.log.
13699 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013700 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13702 if diff conftest.exp conftest.er2 >/dev/null; then
13703 lt_cv_prog_compiler_static_works=yes
13704 fi
13705 else
13706 lt_cv_prog_compiler_static_works=yes
13707 fi
13708 fi
13709 $RM -r conftest*
13710 LDFLAGS="$save_LDFLAGS"
13711
13712fi
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13714$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13715
13716if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13717 :
13718else
13719 lt_prog_compiler_static=
13720fi
13721
13722
13723
13724
13725
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13729$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013730if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013731 $as_echo_n "(cached) " >&6
13732else
13733 lt_cv_prog_compiler_c_o=no
13734 $RM -r conftest 2>/dev/null
13735 mkdir conftest
13736 cd conftest
13737 mkdir out
13738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13739
13740 lt_compiler_flag="-o out/conftest2.$ac_objext"
13741 # Insert the option either (1) after the last *FLAGS variable, or
13742 # (2) before a word containing "conftest.", or (3) at the end.
13743 # Note that $ac_compile itself does not contain backslashes and begins
13744 # with a dollar sign (not a hyphen), so the echo should work correctly.
13745 lt_compile=`echo "$ac_compile" | $SED \
13746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13748 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013750 (eval "$lt_compile" 2>out/conftest.err)
13751 ac_status=$?
13752 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13755 then
13756 # The compiler can only warn and ignore the option if not recognized
13757 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13761 lt_cv_prog_compiler_c_o=yes
13762 fi
13763 fi
13764 chmod u+w . 2>&5
13765 $RM conftest*
13766 # SGI C++ compiler will create directory out/ii_files/ for
13767 # template instantiation
13768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13769 $RM out/* && rmdir out
13770 cd ..
13771 $RM -r conftest
13772 $RM conftest*
13773
13774fi
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13776$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13777
13778
13779
13780
13781
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13784$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013785if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013786 $as_echo_n "(cached) " >&6
13787else
13788 lt_cv_prog_compiler_c_o=no
13789 $RM -r conftest 2>/dev/null
13790 mkdir conftest
13791 cd conftest
13792 mkdir out
13793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13794
13795 lt_compiler_flag="-o out/conftest2.$ac_objext"
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 lt_compile=`echo "$ac_compile" | $SED \
13801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13803 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013805 (eval "$lt_compile" 2>out/conftest.err)
13806 ac_status=$?
13807 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13810 then
13811 # The compiler can only warn and ignore the option if not recognized
13812 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13816 lt_cv_prog_compiler_c_o=yes
13817 fi
13818 fi
13819 chmod u+w . 2>&5
13820 $RM conftest*
13821 # SGI C++ compiler will create directory out/ii_files/ for
13822 # template instantiation
13823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13824 $RM out/* && rmdir out
13825 cd ..
13826 $RM -r conftest
13827 $RM conftest*
13828
13829fi
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13831$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13832
13833
13834
13835
13836hard_links="nottested"
13837if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13838 # do not overwrite the value of need_locks provided by the user
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13840$as_echo_n "checking if we can lock with hard links... " >&6; }
13841 hard_links=yes
13842 $RM conftest*
13843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13844 touch conftest.a
13845 ln conftest.a conftest.b 2>&5 || hard_links=no
13846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13848$as_echo "$hard_links" >&6; }
13849 if test "$hard_links" = no; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13851$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13852 need_locks=warn
13853 fi
13854else
13855 need_locks=no
13856fi
13857
13858
13859
13860
13861
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13864$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13865
13866 runpath_var=
13867 allow_undefined_flag=
13868 always_export_symbols=no
13869 archive_cmds=
13870 archive_expsym_cmds=
13871 compiler_needs_object=no
13872 enable_shared_with_static_runtimes=no
13873 export_dynamic_flag_spec=
13874 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13875 hardcode_automatic=no
13876 hardcode_direct=no
13877 hardcode_direct_absolute=no
13878 hardcode_libdir_flag_spec=
13879 hardcode_libdir_flag_spec_ld=
13880 hardcode_libdir_separator=
13881 hardcode_minus_L=no
13882 hardcode_shlibpath_var=unsupported
13883 inherit_rpath=no
13884 link_all_deplibs=unknown
13885 module_cmds=
13886 module_expsym_cmds=
13887 old_archive_from_new_cmds=
13888 old_archive_from_expsyms_cmds=
13889 thread_safe_flag_spec=
13890 whole_archive_flag_spec=
13891 # include_expsyms should be a list of space-separated symbols to be *always*
13892 # included in the symbol list
13893 include_expsyms=
13894 # exclude_expsyms can be an extended regexp of symbols to exclude
13895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13897 # as well as any symbol that contains `d'.
13898 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13900 # platforms (ab)use it in PIC code, but their linkers get confused if
13901 # the symbol is explicitly referenced. Since portable code cannot
13902 # rely on this symbol name, it's probably fine to never include it in
13903 # preloaded symbol tables.
13904 # Exclude shared library initialization/finalization symbols.
13905 extract_expsyms_cmds=
13906
13907 case $host_os in
13908 cygwin* | mingw* | pw32* | cegcc*)
13909 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13910 # When not using gcc, we currently assume that we are using
13911 # Microsoft Visual C++.
13912 if test "$GCC" != yes; then
13913 with_gnu_ld=no
13914 fi
13915 ;;
13916 interix*)
13917 # we just hope/assume this is gcc and not c89 (= MSVC++)
13918 with_gnu_ld=yes
13919 ;;
13920 openbsd*)
13921 with_gnu_ld=no
13922 ;;
13923 esac
13924
13925 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013926
13927 # On some targets, GNU ld is compatible enough with the native linker
13928 # that we're better off using the native interface for both.
13929 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013930 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013931 case $host_os in
13932 aix*)
13933 # The AIX port of GNU ld has always aspired to compatibility
13934 # with the native linker. However, as the warning in the GNU ld
13935 # block says, versions before 2.19.5* couldn't really create working
13936 # shared libraries, regardless of the interface used.
13937 case `$LD -v 2>&1` in
13938 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13939 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13940 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13941 *)
13942 lt_use_gnu_ld_interface=yes
13943 ;;
13944 esac
13945 ;;
13946 *)
13947 lt_use_gnu_ld_interface=yes
13948 ;;
13949 esac
13950 fi
13951
13952 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013953 # If archive_cmds runs LD, not CC, wlarc should be empty
13954 wlarc='${wl}'
13955
13956 # Set some defaults for GNU ld with shared library support. These
13957 # are reset later if shared libraries are not supported. Putting them
13958 # here allows them to be overridden if necessary.
13959 runpath_var=LD_RUN_PATH
13960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13961 export_dynamic_flag_spec='${wl}--export-dynamic'
13962 # ancient GNU ld didn't support --whole-archive et. al.
13963 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13965 else
13966 whole_archive_flag_spec=
13967 fi
13968 supports_anon_versioning=no
13969 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013970 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13974 *\ 2.11.*) ;; # other 2.11 versions
13975 *) supports_anon_versioning=yes ;;
13976 esac
13977
13978 # See if GNU ld supports shared libraries.
13979 case $host_os in
13980 aix[3-9]*)
13981 # On AIX/PPC, the GNU linker is very broken
13982 if test "$host_cpu" != ia64; then
13983 ld_shlibs=no
13984 cat <<_LT_EOF 1>&2
13985
cristy0c60a692010-11-04 01:09:47 +000013986*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013987*** to be unable to reliably create shared libraries on AIX.
13988*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013989*** really care for shared libraries, you may want to install binutils
13990*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13991*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013992
13993_LT_EOF
13994 fi
13995 ;;
13996
13997 amigaos*)
13998 case $host_cpu in
13999 powerpc)
14000 # see comment about AmigaOS4 .so support
14001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14002 archive_expsym_cmds=''
14003 ;;
14004 m68k)
14005 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)'
14006 hardcode_libdir_flag_spec='-L$libdir'
14007 hardcode_minus_L=yes
14008 ;;
14009 esac
14010 ;;
14011
14012 beos*)
14013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14014 allow_undefined_flag=unsupported
14015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14016 # support --undefined. This deserves some investigation. FIXME
14017 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14018 else
14019 ld_shlibs=no
14020 fi
14021 ;;
14022
14023 cygwin* | mingw* | pw32* | cegcc*)
14024 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14025 # as there is no search path for DLLs.
14026 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014027 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014028 allow_undefined_flag=unsupported
14029 always_export_symbols=no
14030 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014031 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'
14032 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 +000014033
14034 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14036 # If the export-symbols file already is a .def file (1st line
14037 # is EXPORTS), use it as is; otherwise, prepend...
14038 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14039 cp $export_symbols $output_objdir/$soname.def;
14040 else
14041 echo EXPORTS > $output_objdir/$soname.def;
14042 cat $export_symbols >> $output_objdir/$soname.def;
14043 fi~
14044 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14045 else
14046 ld_shlibs=no
14047 fi
14048 ;;
14049
cristy0c60a692010-11-04 01:09:47 +000014050 haiku*)
14051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14052 link_all_deplibs=yes
14053 ;;
14054
cristy73bd4a52010-10-05 11:24:23 +000014055 interix[3-9]*)
14056 hardcode_direct=no
14057 hardcode_shlibpath_var=no
14058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14059 export_dynamic_flag_spec='${wl}-E'
14060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14061 # Instead, shared libraries are loaded at an image base (0x10000000 by
14062 # default) and relocated if they conflict, which is a slow very memory
14063 # consuming and fragmenting process. To avoid this, we pick a random,
14064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14067 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'
14068 ;;
14069
cristy0c60a692010-11-04 01:09:47 +000014070 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014071 tmp_diet=no
14072 if test "$host_os" = linux-dietlibc; then
14073 case $cc_basename in
14074 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14075 esac
14076 fi
14077 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14078 && test "$tmp_diet" = no
14079 then
cristyda16f162011-02-19 23:52:17 +000014080 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014081 tmp_sharedflag='-shared'
14082 case $cc_basename,$host_cpu in
14083 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014084 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 +000014085 tmp_addflag=' $pic_flag'
14086 ;;
cristy0c60a692010-11-04 01:09:47 +000014087 pgf77* | pgf90* | pgf95* | pgfortran*)
14088 # Portland Group f77 and f90 compilers
14089 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 +000014090 tmp_addflag=' $pic_flag -Mnomain' ;;
14091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14092 tmp_addflag=' -i_dynamic' ;;
14093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14094 tmp_addflag=' -i_dynamic -nofor_main' ;;
14095 ifc* | ifort*) # Intel Fortran compiler
14096 tmp_addflag=' -nofor_main' ;;
14097 lf95*) # Lahey Fortran 8.1
14098 whole_archive_flag_spec=
14099 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014100 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014101 tmp_sharedflag='-qmkshrobj'
14102 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014103 nvcc*) # Cuda Compiler Driver 2.2
14104 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'
14105 compiler_needs_object=yes
14106 ;;
cristy73bd4a52010-10-05 11:24:23 +000014107 esac
14108 case `$CC -V 2>&1 | sed 5q` in
14109 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014110 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 +000014111 compiler_needs_object=yes
14112 tmp_sharedflag='-G' ;;
14113 *Sun\ F*) # Sun Fortran 8.3
14114 tmp_sharedflag='-G' ;;
14115 esac
14116 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14117
14118 if test "x$supports_anon_versioning" = xyes; then
14119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14121 echo "local: *; };" >> $output_objdir/$libname.ver~
14122 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14123 fi
14124
14125 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014126 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014127 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14128 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14129 hardcode_libdir_flag_spec=
14130 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014131 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014132 if test "x$supports_anon_versioning" = xyes; then
14133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14135 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014136 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014137 fi
14138 ;;
14139 esac
14140 else
14141 ld_shlibs=no
14142 fi
14143 ;;
14144
14145 netbsd*)
14146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14147 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14148 wlarc=
14149 else
cristyda16f162011-02-19 23:52:17 +000014150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14151 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 +000014152 fi
14153 ;;
14154
14155 solaris*)
14156 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14157 ld_shlibs=no
14158 cat <<_LT_EOF 1>&2
14159
14160*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14161*** create shared libraries on Solaris systems. Therefore, libtool
14162*** is disabling shared libraries support. We urge you to upgrade GNU
14163*** binutils to release 2.9.1 or newer. Another option is to modify
14164*** your PATH or compiler configuration so that the native linker is
14165*** used, and then restart.
14166
14167_LT_EOF
14168 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14170 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 +000014171 else
14172 ld_shlibs=no
14173 fi
14174 ;;
14175
14176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14177 case `$LD -v 2>&1` in
14178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14179 ld_shlibs=no
14180 cat <<_LT_EOF 1>&2
14181
14182*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14183*** reliably create shared libraries on SCO systems. Therefore, libtool
14184*** is disabling shared libraries support. We urge you to upgrade GNU
14185*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14186*** your PATH or compiler configuration so that the native linker is
14187*** used, and then restart.
14188
14189_LT_EOF
14190 ;;
14191 *)
14192 # For security reasons, it is highly recommended that you always
14193 # use absolute paths for naming shared libraries, and exclude the
14194 # DT_RUNPATH tag from executables and libraries. But doing so
14195 # requires that you compile everything twice, which is a pain.
14196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14200 else
14201 ld_shlibs=no
14202 fi
14203 ;;
14204 esac
14205 ;;
14206
14207 sunos4*)
14208 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14209 wlarc=
14210 hardcode_direct=yes
14211 hardcode_shlibpath_var=no
14212 ;;
14213
14214 *)
14215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14217 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 +000014218 else
14219 ld_shlibs=no
14220 fi
14221 ;;
14222 esac
14223
14224 if test "$ld_shlibs" = no; then
14225 runpath_var=
14226 hardcode_libdir_flag_spec=
14227 export_dynamic_flag_spec=
14228 whole_archive_flag_spec=
14229 fi
14230 else
14231 # PORTME fill in a description of your system's linker (not GNU ld)
14232 case $host_os in
14233 aix3*)
14234 allow_undefined_flag=unsupported
14235 always_export_symbols=yes
14236 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'
14237 # Note: this linker hardcodes the directories in LIBPATH if there
14238 # are no directories specified by -L.
14239 hardcode_minus_L=yes
14240 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14241 # Neither direct hardcoding nor static linking is supported with a
14242 # broken collect2.
14243 hardcode_direct=unsupported
14244 fi
14245 ;;
14246
14247 aix[4-9]*)
14248 if test "$host_cpu" = ia64; then
14249 # On IA64, the linker does run time linking by default, so we don't
14250 # have to do anything special.
14251 aix_use_runtimelinking=no
14252 exp_sym_flag='-Bexport'
14253 no_entry_flag=""
14254 else
14255 # If we're using GNU nm, then we don't want the "-C" option.
14256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014257 # Also, AIX nm treats weak defined symbols like other global
14258 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014260 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 +000014261 else
14262 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'
14263 fi
14264 aix_use_runtimelinking=no
14265
14266 # Test if we are trying to use run time linking or normal
14267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14268 # need to do runtime linking.
14269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14270 for ld_flag in $LDFLAGS; do
14271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14272 aix_use_runtimelinking=yes
14273 break
14274 fi
14275 done
14276 ;;
14277 esac
14278
14279 exp_sym_flag='-bexport'
14280 no_entry_flag='-bnoentry'
14281 fi
14282
14283 # When large executables or shared objects are built, AIX ld can
14284 # have problems creating the table of contents. If linking a library
14285 # or program results in "error TOC overflow" add -mminimal-toc to
14286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14288
14289 archive_cmds=''
14290 hardcode_direct=yes
14291 hardcode_direct_absolute=yes
14292 hardcode_libdir_separator=':'
14293 link_all_deplibs=yes
14294 file_list_spec='${wl}-f,'
14295
14296 if test "$GCC" = yes; then
14297 case $host_os in aix4.[012]|aix4.[012].*)
14298 # We only want to do this on AIX 4.2 and lower, the check
14299 # below for broken collect2 doesn't work under 4.3+
14300 collect2name=`${CC} -print-prog-name=collect2`
14301 if test -f "$collect2name" &&
14302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14303 then
14304 # We have reworked collect2
14305 :
14306 else
14307 # We have old collect2
14308 hardcode_direct=unsupported
14309 # It fails to find uninstalled libraries when the uninstalled
14310 # path is not listed in the libpath. Setting hardcode_minus_L
14311 # to unsupported forces relinking
14312 hardcode_minus_L=yes
14313 hardcode_libdir_flag_spec='-L$libdir'
14314 hardcode_libdir_separator=
14315 fi
14316 ;;
14317 esac
14318 shared_flag='-shared'
14319 if test "$aix_use_runtimelinking" = yes; then
14320 shared_flag="$shared_flag "'${wl}-G'
14321 fi
14322 else
14323 # not using gcc
14324 if test "$host_cpu" = ia64; then
14325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14326 # chokes on -Wl,-G. The following line is correct:
14327 shared_flag='-G'
14328 else
14329 if test "$aix_use_runtimelinking" = yes; then
14330 shared_flag='${wl}-G'
14331 else
14332 shared_flag='${wl}-bM:SRE'
14333 fi
14334 fi
14335 fi
14336
14337 export_dynamic_flag_spec='${wl}-bexpall'
14338 # It seems that -bexpall does not export symbols beginning with
14339 # underscore (_), so it is better to generate a list of symbols to export.
14340 always_export_symbols=yes
14341 if test "$aix_use_runtimelinking" = yes; then
14342 # Warning - without using the other runtime loading flags (-brtl),
14343 # -berok will link without error, but may produce a broken library.
14344 allow_undefined_flag='-berok'
14345 # Determine the default libpath from the value encoded in an
14346 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014347 if test "${lt_cv_aix_libpath+set}" = set; then
14348 aix_libpath=$lt_cv_aix_libpath
14349else
14350 if ${lt_cv_aix_libpath_+:} false; then :
14351 $as_echo_n "(cached) " >&6
14352else
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014354/* end confdefs.h. */
14355
14356int
14357main ()
14358{
14359
14360 ;
14361 return 0;
14362}
14363_ACEOF
14364if ac_fn_c_try_link "$LINENO"; then :
14365
cristyda16f162011-02-19 23:52:17 +000014366 lt_aix_libpath_sed='
14367 /Import File Strings/,/^$/ {
14368 /^0/ {
14369 s/^0 *\([^ ]*\) *$/\1/
14370 p
14371 }
14372 }'
14373 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14374 # Check for a 64-bit object if we didn't find anything.
14375 if test -z "$lt_cv_aix_libpath_"; then
14376 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14377 fi
cristy73bd4a52010-10-05 11:24:23 +000014378fi
14379rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014381 if test -z "$lt_cv_aix_libpath_"; then
14382 lt_cv_aix_libpath_="/usr/lib:/lib"
14383 fi
14384
14385fi
14386
14387 aix_libpath=$lt_cv_aix_libpath_
14388fi
cristy73bd4a52010-10-05 11:24:23 +000014389
14390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014391 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 +000014392 else
14393 if test "$host_cpu" = ia64; then
14394 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14395 allow_undefined_flag="-z nodefs"
14396 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"
14397 else
14398 # Determine the default libpath from the value encoded in an
14399 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014400 if test "${lt_cv_aix_libpath+set}" = set; then
14401 aix_libpath=$lt_cv_aix_libpath
14402else
14403 if ${lt_cv_aix_libpath_+:} false; then :
14404 $as_echo_n "(cached) " >&6
14405else
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014407/* end confdefs.h. */
14408
14409int
14410main ()
14411{
14412
14413 ;
14414 return 0;
14415}
14416_ACEOF
14417if ac_fn_c_try_link "$LINENO"; then :
14418
cristyda16f162011-02-19 23:52:17 +000014419 lt_aix_libpath_sed='
14420 /Import File Strings/,/^$/ {
14421 /^0/ {
14422 s/^0 *\([^ ]*\) *$/\1/
14423 p
14424 }
14425 }'
14426 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14427 # Check for a 64-bit object if we didn't find anything.
14428 if test -z "$lt_cv_aix_libpath_"; then
14429 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14430 fi
cristy73bd4a52010-10-05 11:24:23 +000014431fi
14432rm -f core conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014434 if test -z "$lt_cv_aix_libpath_"; then
14435 lt_cv_aix_libpath_="/usr/lib:/lib"
14436 fi
14437
14438fi
14439
14440 aix_libpath=$lt_cv_aix_libpath_
14441fi
cristy73bd4a52010-10-05 11:24:23 +000014442
14443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14444 # Warning - without using the other run time loading flags,
14445 # -berok will link without error, but may produce a broken library.
14446 no_undefined_flag=' ${wl}-bernotok'
14447 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014448 if test "$with_gnu_ld" = yes; then
14449 # We only use this code for GNU lds that support --whole-archive.
14450 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14451 else
14452 # Exported symbols can be pulled into shared objects from archives
14453 whole_archive_flag_spec='$convenience'
14454 fi
cristy73bd4a52010-10-05 11:24:23 +000014455 archive_cmds_need_lc=yes
14456 # This is similar to how AIX traditionally builds its shared libraries.
14457 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'
14458 fi
14459 fi
14460 ;;
14461
14462 amigaos*)
14463 case $host_cpu in
14464 powerpc)
14465 # see comment about AmigaOS4 .so support
14466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14467 archive_expsym_cmds=''
14468 ;;
14469 m68k)
14470 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)'
14471 hardcode_libdir_flag_spec='-L$libdir'
14472 hardcode_minus_L=yes
14473 ;;
14474 esac
14475 ;;
14476
14477 bsdi[45]*)
14478 export_dynamic_flag_spec=-rdynamic
14479 ;;
14480
14481 cygwin* | mingw* | pw32* | cegcc*)
14482 # When not using gcc, we currently assume that we are using
14483 # Microsoft Visual C++.
14484 # hardcode_libdir_flag_spec is actually meaningless, as there is
14485 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014486 case $cc_basename in
14487 cl*)
14488 # Native MSVC
14489 hardcode_libdir_flag_spec=' '
14490 allow_undefined_flag=unsupported
14491 always_export_symbols=yes
14492 file_list_spec='@'
14493 # Tell ltmain to make .lib files, not .a files.
14494 libext=lib
14495 # Tell ltmain to make .dll files, not .so files.
14496 shrext_cmds=".dll"
14497 # FIXME: Setting linknames here is a bad hack.
14498 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14499 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14500 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14501 else
14502 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14503 fi~
14504 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14505 linknames='
14506 # The linker will not automatically build a static lib if we build a DLL.
14507 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14508 enable_shared_with_static_runtimes=yes
14509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14510 # Don't use ranlib
14511 old_postinstall_cmds='chmod 644 $oldlib'
14512 postlink_cmds='lt_outputfile="@OUTPUT@"~
14513 lt_tool_outputfile="@TOOL_OUTPUT@"~
14514 case $lt_outputfile in
14515 *.exe|*.EXE) ;;
14516 *)
14517 lt_outputfile="$lt_outputfile.exe"
14518 lt_tool_outputfile="$lt_tool_outputfile.exe"
14519 ;;
14520 esac~
14521 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14522 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14523 $RM "$lt_outputfile.manifest";
14524 fi'
14525 ;;
14526 *)
14527 # Assume MSVC wrapper
14528 hardcode_libdir_flag_spec=' '
14529 allow_undefined_flag=unsupported
14530 # Tell ltmain to make .lib files, not .a files.
14531 libext=lib
14532 # Tell ltmain to make .dll files, not .so files.
14533 shrext_cmds=".dll"
14534 # FIXME: Setting linknames here is a bad hack.
14535 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14536 # The linker will automatically build a .lib file if we build a DLL.
14537 old_archive_from_new_cmds='true'
14538 # FIXME: Should let the user specify the lib program.
14539 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14540 enable_shared_with_static_runtimes=yes
14541 ;;
14542 esac
cristy73bd4a52010-10-05 11:24:23 +000014543 ;;
14544
14545 darwin* | rhapsody*)
14546
14547
14548 archive_cmds_need_lc=no
14549 hardcode_direct=no
14550 hardcode_automatic=yes
14551 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014552 if test "$lt_cv_ld_force_load" = "yes"; then
14553 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\"`'
14554 else
14555 whole_archive_flag_spec=''
14556 fi
cristy73bd4a52010-10-05 11:24:23 +000014557 link_all_deplibs=yes
14558 allow_undefined_flag="$_lt_dar_allow_undefined"
14559 case $cc_basename in
14560 ifort*) _lt_dar_can_shared=yes ;;
14561 *) _lt_dar_can_shared=$GCC ;;
14562 esac
14563 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014564 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014565 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14566 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14567 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}"
14568 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}"
14569
14570 else
14571 ld_shlibs=no
14572 fi
14573
14574 ;;
14575
14576 dgux*)
14577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578 hardcode_libdir_flag_spec='-L$libdir'
14579 hardcode_shlibpath_var=no
14580 ;;
14581
14582 freebsd1*)
14583 ld_shlibs=no
14584 ;;
14585
14586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14587 # support. Future versions do this automatically, but an explicit c++rt0.o
14588 # does not break anything, and helps significantly (at the cost of a little
14589 # extra space).
14590 freebsd2.2*)
14591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14592 hardcode_libdir_flag_spec='-R$libdir'
14593 hardcode_direct=yes
14594 hardcode_shlibpath_var=no
14595 ;;
14596
14597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14598 freebsd2*)
14599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14600 hardcode_direct=yes
14601 hardcode_minus_L=yes
14602 hardcode_shlibpath_var=no
14603 ;;
14604
14605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14606 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014608 hardcode_libdir_flag_spec='-R$libdir'
14609 hardcode_direct=yes
14610 hardcode_shlibpath_var=no
14611 ;;
14612
14613 hpux9*)
14614 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014615 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 +000014616 else
14617 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'
14618 fi
14619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14620 hardcode_libdir_separator=:
14621 hardcode_direct=yes
14622
14623 # hardcode_minus_L: Not really in the search PATH,
14624 # but as the default location of the library.
14625 hardcode_minus_L=yes
14626 export_dynamic_flag_spec='${wl}-E'
14627 ;;
14628
14629 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014630 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014631 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 +000014632 else
14633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14634 fi
14635 if test "$with_gnu_ld" = no; then
14636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14637 hardcode_libdir_flag_spec_ld='+b $libdir'
14638 hardcode_libdir_separator=:
14639 hardcode_direct=yes
14640 hardcode_direct_absolute=yes
14641 export_dynamic_flag_spec='${wl}-E'
14642 # hardcode_minus_L: Not really in the search PATH,
14643 # but as the default location of the library.
14644 hardcode_minus_L=yes
14645 fi
14646 ;;
14647
14648 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014649 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014650 case $host_cpu in
14651 hppa*64*)
14652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 ;;
14654 ia64*)
cristyda16f162011-02-19 23:52:17 +000014655 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014656 ;;
14657 *)
cristyda16f162011-02-19 23:52:17 +000014658 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 +000014659 ;;
14660 esac
14661 else
14662 case $host_cpu in
14663 hppa*64*)
14664 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14665 ;;
14666 ia64*)
14667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14668 ;;
14669 *)
cristy0c60a692010-11-04 01:09:47 +000014670
14671 # Older versions of the 11.00 compiler do not understand -b yet
14672 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14674$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014675if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014676 $as_echo_n "(cached) " >&6
14677else
14678 lt_cv_prog_compiler__b=no
14679 save_LDFLAGS="$LDFLAGS"
14680 LDFLAGS="$LDFLAGS -b"
14681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14683 # The linker can only warn and ignore the option if not recognized
14684 # So say no if there are warnings
14685 if test -s conftest.err; then
14686 # Append any errors to the config.log.
14687 cat conftest.err 1>&5
14688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14690 if diff conftest.exp conftest.er2 >/dev/null; then
14691 lt_cv_prog_compiler__b=yes
14692 fi
14693 else
14694 lt_cv_prog_compiler__b=yes
14695 fi
14696 fi
14697 $RM -r conftest*
14698 LDFLAGS="$save_LDFLAGS"
14699
14700fi
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14702$as_echo "$lt_cv_prog_compiler__b" >&6; }
14703
14704if test x"$lt_cv_prog_compiler__b" = xyes; then
14705 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14706else
14707 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14708fi
14709
cristy73bd4a52010-10-05 11:24:23 +000014710 ;;
14711 esac
14712 fi
14713 if test "$with_gnu_ld" = no; then
14714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14715 hardcode_libdir_separator=:
14716
14717 case $host_cpu in
14718 hppa*64*|ia64*)
14719 hardcode_direct=no
14720 hardcode_shlibpath_var=no
14721 ;;
14722 *)
14723 hardcode_direct=yes
14724 hardcode_direct_absolute=yes
14725 export_dynamic_flag_spec='${wl}-E'
14726
14727 # hardcode_minus_L: Not really in the search PATH,
14728 # but as the default location of the library.
14729 hardcode_minus_L=yes
14730 ;;
14731 esac
14732 fi
14733 ;;
14734
14735 irix5* | irix6* | nonstopux*)
14736 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014737 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 +000014738 # Try to use the -exported_symbol ld option, if it does not
14739 # work, assume that -exports_file does not work either and
14740 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014741 # This should be the same for all languages, so no per-tag cache variable.
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14743$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14744if ${lt_cv_irix_exported_symbol+:} false; then :
14745 $as_echo_n "(cached) " >&6
14746else
14747 save_LDFLAGS="$LDFLAGS"
14748 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014750/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014751int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014752_ACEOF
14753if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014754 lt_cv_irix_exported_symbol=yes
14755else
14756 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014757fi
14758rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014760 LDFLAGS="$save_LDFLAGS"
14761fi
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14763$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14764 if test "$lt_cv_irix_exported_symbol" = yes; then
14765 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'
14766 fi
cristy73bd4a52010-10-05 11:24:23 +000014767 else
cristy0c60a692010-11-04 01:09:47 +000014768 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'
14769 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 +000014770 fi
14771 archive_cmds_need_lc='no'
14772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14773 hardcode_libdir_separator=:
14774 inherit_rpath=yes
14775 link_all_deplibs=yes
14776 ;;
14777
14778 netbsd*)
14779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14781 else
14782 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14783 fi
14784 hardcode_libdir_flag_spec='-R$libdir'
14785 hardcode_direct=yes
14786 hardcode_shlibpath_var=no
14787 ;;
14788
14789 newsos6)
14790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14791 hardcode_direct=yes
14792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14793 hardcode_libdir_separator=:
14794 hardcode_shlibpath_var=no
14795 ;;
14796
14797 *nto* | *qnx*)
14798 ;;
14799
14800 openbsd*)
14801 if test -f /usr/libexec/ld.so; then
14802 hardcode_direct=yes
14803 hardcode_shlibpath_var=no
14804 hardcode_direct_absolute=yes
14805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14807 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14809 export_dynamic_flag_spec='${wl}-E'
14810 else
14811 case $host_os in
14812 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14814 hardcode_libdir_flag_spec='-R$libdir'
14815 ;;
14816 *)
14817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14818 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14819 ;;
14820 esac
14821 fi
14822 else
14823 ld_shlibs=no
14824 fi
14825 ;;
14826
14827 os2*)
14828 hardcode_libdir_flag_spec='-L$libdir'
14829 hardcode_minus_L=yes
14830 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014831 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 +000014832 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14833 ;;
14834
14835 osf3*)
14836 if test "$GCC" = yes; then
14837 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014838 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 +000014839 else
14840 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014841 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 +000014842 fi
14843 archive_cmds_need_lc='no'
14844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14845 hardcode_libdir_separator=:
14846 ;;
14847
14848 osf4* | osf5*) # as osf3* with the addition of -msym flag
14849 if test "$GCC" = yes; then
14850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014851 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 +000014852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14853 else
14854 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014855 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 +000014856 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 +000014857 $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 +000014858
14859 # Both c and cxx compiler support -rpath directly
14860 hardcode_libdir_flag_spec='-rpath $libdir'
14861 fi
14862 archive_cmds_need_lc='no'
14863 hardcode_libdir_separator=:
14864 ;;
14865
14866 solaris*)
14867 no_undefined_flag=' -z defs'
14868 if test "$GCC" = yes; then
14869 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014870 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 +000014871 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 +000014872 $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 +000014873 else
14874 case `$CC -V 2>&1` in
14875 *"Compilers 5.0"*)
14876 wlarc=''
14877 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14880 ;;
14881 *)
14882 wlarc='${wl}'
14883 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14885 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14886 ;;
14887 esac
14888 fi
14889 hardcode_libdir_flag_spec='-R$libdir'
14890 hardcode_shlibpath_var=no
14891 case $host_os in
14892 solaris2.[0-5] | solaris2.[0-5].*) ;;
14893 *)
14894 # The compiler driver will combine and reorder linker options,
14895 # but understands `-z linker_flag'. GCC discards it without `$wl',
14896 # but is careful enough not to reorder.
14897 # Supported since Solaris 2.6 (maybe 2.5.1?)
14898 if test "$GCC" = yes; then
14899 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14900 else
14901 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14902 fi
14903 ;;
14904 esac
14905 link_all_deplibs=yes
14906 ;;
14907
14908 sunos4*)
14909 if test "x$host_vendor" = xsequent; then
14910 # Use $CC to link under sequent, because it throws in some extra .o
14911 # files that make .init and .fini sections work.
14912 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14913 else
14914 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14915 fi
14916 hardcode_libdir_flag_spec='-L$libdir'
14917 hardcode_direct=yes
14918 hardcode_minus_L=yes
14919 hardcode_shlibpath_var=no
14920 ;;
14921
14922 sysv4)
14923 case $host_vendor in
14924 sni)
14925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926 hardcode_direct=yes # is this really true???
14927 ;;
14928 siemens)
14929 ## LD is ld it makes a PLAMLIB
14930 ## CC just makes a GrossModule.
14931 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14932 reload_cmds='$CC -r -o $output$reload_objs'
14933 hardcode_direct=no
14934 ;;
14935 motorola)
14936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14938 ;;
14939 esac
14940 runpath_var='LD_RUN_PATH'
14941 hardcode_shlibpath_var=no
14942 ;;
14943
14944 sysv4.3*)
14945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14946 hardcode_shlibpath_var=no
14947 export_dynamic_flag_spec='-Bexport'
14948 ;;
14949
14950 sysv4*MP*)
14951 if test -d /usr/nec; then
14952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14953 hardcode_shlibpath_var=no
14954 runpath_var=LD_RUN_PATH
14955 hardcode_runpath_var=yes
14956 ld_shlibs=yes
14957 fi
14958 ;;
14959
14960 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14961 no_undefined_flag='${wl}-z,text'
14962 archive_cmds_need_lc=no
14963 hardcode_shlibpath_var=no
14964 runpath_var='LD_RUN_PATH'
14965
14966 if test "$GCC" = yes; then
14967 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14969 else
14970 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14971 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14972 fi
14973 ;;
14974
14975 sysv5* | sco3.2v5* | sco5v6*)
14976 # Note: We can NOT use -z defs as we might desire, because we do not
14977 # link with -lc, and that would cause any symbols used from libc to
14978 # always be unresolved, which means just about no library would
14979 # ever link correctly. If we're not using GNU ld we use -z text
14980 # though, which does catch some bad symbols but isn't as heavy-handed
14981 # as -z defs.
14982 no_undefined_flag='${wl}-z,text'
14983 allow_undefined_flag='${wl}-z,nodefs'
14984 archive_cmds_need_lc=no
14985 hardcode_shlibpath_var=no
14986 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14987 hardcode_libdir_separator=':'
14988 link_all_deplibs=yes
14989 export_dynamic_flag_spec='${wl}-Bexport'
14990 runpath_var='LD_RUN_PATH'
14991
14992 if test "$GCC" = yes; then
14993 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 else
14996 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14997 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14998 fi
14999 ;;
15000
15001 uts4*)
15002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15003 hardcode_libdir_flag_spec='-L$libdir'
15004 hardcode_shlibpath_var=no
15005 ;;
15006
15007 *)
15008 ld_shlibs=no
15009 ;;
15010 esac
15011
15012 if test x$host_vendor = xsni; then
15013 case $host in
15014 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15015 export_dynamic_flag_spec='${wl}-Blargedynsym'
15016 ;;
15017 esac
15018 fi
15019 fi
15020
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15022$as_echo "$ld_shlibs" >&6; }
15023test "$ld_shlibs" = no && can_build_shared=no
15024
15025with_gnu_ld=$with_gnu_ld
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041#
15042# Do we need to explicitly link libc?
15043#
15044case "x$archive_cmds_need_lc" in
15045x|xyes)
15046 # Assume -lc should be added
15047 archive_cmds_need_lc=yes
15048
15049 if test "$enable_shared" = yes && test "$GCC" = yes; then
15050 case $archive_cmds in
15051 *'~'*)
15052 # FIXME: we may have to deal with multi-command sequences.
15053 ;;
15054 '$CC '*)
15055 # Test whether the compiler implicitly links with -lc since on some
15056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15057 # to ld, don't add -lc before -lgcc.
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15059$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015060if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015061 $as_echo_n "(cached) " >&6
15062else
15063 $RM conftest*
15064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015065
cristy0c60a692010-11-04 01:09:47 +000015066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015067 (eval $ac_compile) 2>&5
15068 ac_status=$?
15069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015071 soname=conftest
15072 lib=conftest
15073 libobjs=conftest.$ac_objext
15074 deplibs=
15075 wl=$lt_prog_compiler_wl
15076 pic_flag=$lt_prog_compiler_pic
15077 compiler_flags=-v
15078 linker_flags=-v
15079 verstring=
15080 output_objdir=.
15081 libname=conftest
15082 lt_save_allow_undefined_flag=$allow_undefined_flag
15083 allow_undefined_flag=
15084 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 +000015085 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086 ac_status=$?
15087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15088 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015089 then
15090 lt_cv_archive_cmds_need_lc=no
15091 else
15092 lt_cv_archive_cmds_need_lc=yes
15093 fi
15094 allow_undefined_flag=$lt_save_allow_undefined_flag
15095 else
15096 cat conftest.err 1>&5
15097 fi
15098 $RM conftest*
15099
15100fi
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15102$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15103 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015104 ;;
15105 esac
15106 fi
15107 ;;
15108esac
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15267$as_echo_n "checking dynamic linker characteristics... " >&6; }
15268
15269if test "$GCC" = yes; then
15270 case $host_os in
15271 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15272 *) lt_awk_arg="/^libraries:/" ;;
15273 esac
cristy0c60a692010-11-04 01:09:47 +000015274 case $host_os in
15275 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15276 *) lt_sed_strip_eq="s,=/,/,g" ;;
15277 esac
15278 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15279 case $lt_search_path_spec in
15280 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015281 # if the path contains ";" then we assume it to be the separator
15282 # otherwise default to the standard path separator (i.e. ":") - it is
15283 # assumed that no part of a normal pathname contains ";" but that should
15284 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15286 ;;
15287 *)
15288 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15289 ;;
15290 esac
cristy73bd4a52010-10-05 11:24:23 +000015291 # Ok, now we have the path, separated by spaces, we can step through it
15292 # and add multilib dir if necessary.
15293 lt_tmp_lt_search_path_spec=
15294 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15295 for lt_sys_path in $lt_search_path_spec; do
15296 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15298 else
15299 test -d "$lt_sys_path" && \
15300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15301 fi
15302 done
cristy0c60a692010-11-04 01:09:47 +000015303 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015304BEGIN {RS=" "; FS="/|\n";} {
15305 lt_foo="";
15306 lt_count=0;
15307 for (lt_i = NF; lt_i > 0; lt_i--) {
15308 if ($lt_i != "" && $lt_i != ".") {
15309 if ($lt_i == "..") {
15310 lt_count++;
15311 } else {
15312 if (lt_count == 0) {
15313 lt_foo="/" $lt_i lt_foo;
15314 } else {
15315 lt_count--;
15316 }
15317 }
15318 }
15319 }
15320 if (lt_foo != "") { lt_freq[lt_foo]++; }
15321 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15322}'`
cristy0c60a692010-11-04 01:09:47 +000015323 # AWK program above erroneously prepends '/' to C:/dos/paths
15324 # for these hosts.
15325 case $host_os in
15326 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15327 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15328 esac
15329 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015330else
15331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15332fi
15333library_names_spec=
15334libname_spec='lib$name'
15335soname_spec=
15336shrext_cmds=".so"
15337postinstall_cmds=
15338postuninstall_cmds=
15339finish_cmds=
15340finish_eval=
15341shlibpath_var=
15342shlibpath_overrides_runpath=unknown
15343version_type=none
15344dynamic_linker="$host_os ld.so"
15345sys_lib_dlsearch_path_spec="/lib /usr/lib"
15346need_lib_prefix=unknown
15347hardcode_into_libs=no
15348
15349# when you set need_version to no, make sure it does not cause -set_version
15350# flags to be left without arguments
15351need_version=unknown
15352
15353case $host_os in
15354aix3*)
15355 version_type=linux
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15357 shlibpath_var=LIBPATH
15358
15359 # AIX 3 has no versioning support, so we append a major version to the name.
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 ;;
15362
15363aix[4-9]*)
15364 version_type=linux
15365 need_lib_prefix=no
15366 need_version=no
15367 hardcode_into_libs=yes
15368 if test "$host_cpu" = ia64; then
15369 # AIX 5 supports IA64
15370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 else
15373 # With GCC up to 2.95.x, collect2 would create an import file
15374 # for dependence libraries. The import file would start with
15375 # the line `#! .'. This would cause the generated library to
15376 # depend on `.', always an invalid library. This was fixed in
15377 # development snapshots of GCC prior to 3.0.
15378 case $host_os in
15379 aix4 | aix4.[01] | aix4.[01].*)
15380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15381 echo ' yes '
15382 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15383 :
15384 else
15385 can_build_shared=no
15386 fi
15387 ;;
15388 esac
15389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15390 # soname into executable. Probably we can add versioning support to
15391 # collect2, so additional links can be useful in future.
15392 if test "$aix_use_runtimelinking" = yes; then
15393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15394 # instead of lib<name>.a to let people know that these are not
15395 # typical AIX shared libraries.
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 else
15398 # We preserve .a as extension for shared libraries through AIX4.2
15399 # and later when we are not doing run time linking.
15400 library_names_spec='${libname}${release}.a $libname.a'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 fi
15403 shlibpath_var=LIBPATH
15404 fi
15405 ;;
15406
15407amigaos*)
15408 case $host_cpu in
15409 powerpc)
15410 # Since July 2007 AmigaOS4 officially supports .so libraries.
15411 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413 ;;
15414 m68k)
15415 library_names_spec='$libname.ixlibrary $libname.a'
15416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015417 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 +000015418 ;;
15419 esac
15420 ;;
15421
15422beos*)
15423 library_names_spec='${libname}${shared_ext}'
15424 dynamic_linker="$host_os ld.so"
15425 shlibpath_var=LIBRARY_PATH
15426 ;;
15427
15428bsdi[45]*)
15429 version_type=linux
15430 need_version=no
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15437 # the default ld.so.conf also contains /usr/contrib/lib and
15438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15439 # libtool to hard-code these into programs
15440 ;;
15441
15442cygwin* | mingw* | pw32* | cegcc*)
15443 version_type=windows
15444 shrext_cmds=".dll"
15445 need_version=no
15446 need_lib_prefix=no
15447
cristyda16f162011-02-19 23:52:17 +000015448 case $GCC,$cc_basename in
15449 yes,*)
15450 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015451 library_names_spec='$libname.dll.a'
15452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15453 postinstall_cmds='base_file=`basename \${file}`~
15454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15455 dldir=$destdir/`dirname \$dlpath`~
15456 test -d \$dldir || mkdir -p \$dldir~
15457 $install_prog $dir/$dlname \$dldir/$dlname~
15458 chmod a+x \$dldir/$dlname~
15459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15461 fi'
15462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15463 dlpath=$dir/\$dldll~
15464 $RM \$dlpath'
15465 shlibpath_overrides_runpath=yes
15466
15467 case $host_os in
15468 cygwin*)
15469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015471
15472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015473 ;;
15474 mingw* | cegcc*)
15475 # MinGW DLLs use traditional 'lib' prefix
15476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015477 ;;
15478 pw32*)
15479 # pw32 DLLs use 'pw' prefix rather than 'lib'
15480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15481 ;;
15482 esac
cristyda16f162011-02-19 23:52:17 +000015483 dynamic_linker='Win32 ld.exe'
15484 ;;
15485
15486 *,cl*)
15487 # Native MSVC
15488 libname_spec='$name'
15489 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15490 library_names_spec='${libname}.dll.lib'
15491
15492 case $build_os in
15493 mingw*)
15494 sys_lib_search_path_spec=
15495 lt_save_ifs=$IFS
15496 IFS=';'
15497 for lt_path in $LIB
15498 do
15499 IFS=$lt_save_ifs
15500 # Let DOS variable expansion print the short 8.3 style file name.
15501 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15502 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15503 done
15504 IFS=$lt_save_ifs
15505 # Convert to MSYS style.
15506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15507 ;;
15508 cygwin*)
15509 # Convert to unix form, then to dos form, then back to unix form
15510 # but this time dos style (no spaces!) so that the unix form looks
15511 # like /cygdrive/c/PROGRA~1:/cygdr...
15512 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15513 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15514 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15515 ;;
15516 *)
15517 sys_lib_search_path_spec="$LIB"
15518 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15519 # It is most probably a Windows format PATH.
15520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15521 else
15522 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15523 fi
15524 # FIXME: find the short name or the path components, as spaces are
15525 # common. (e.g. "Program Files" -> "PROGRA~1")
15526 ;;
15527 esac
15528
15529 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15530 postinstall_cmds='base_file=`basename \${file}`~
15531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15532 dldir=$destdir/`dirname \$dlpath`~
15533 test -d \$dldir || mkdir -p \$dldir~
15534 $install_prog $dir/$dlname \$dldir/$dlname'
15535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15536 dlpath=$dir/\$dldll~
15537 $RM \$dlpath'
15538 shlibpath_overrides_runpath=yes
15539 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015540 ;;
15541
15542 *)
cristyda16f162011-02-19 23:52:17 +000015543 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015545 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015546 ;;
15547 esac
cristy73bd4a52010-10-05 11:24:23 +000015548 # FIXME: first we should search . and the directory the executable is in
15549 shlibpath_var=PATH
15550 ;;
15551
15552darwin* | rhapsody*)
15553 dynamic_linker="$host_os dyld"
15554 version_type=darwin
15555 need_lib_prefix=no
15556 need_version=no
15557 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15558 soname_spec='${libname}${release}${major}$shared_ext'
15559 shlibpath_overrides_runpath=yes
15560 shlibpath_var=DYLD_LIBRARY_PATH
15561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15562
15563 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15564 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15565 ;;
15566
15567dgux*)
15568 version_type=linux
15569 need_lib_prefix=no
15570 need_version=no
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15572 soname_spec='${libname}${release}${shared_ext}$major'
15573 shlibpath_var=LD_LIBRARY_PATH
15574 ;;
15575
15576freebsd1*)
15577 dynamic_linker=no
15578 ;;
15579
15580freebsd* | dragonfly*)
15581 # DragonFly does not have aout. When/if they implement a new
15582 # versioning mechanism, adjust this.
15583 if test -x /usr/bin/objformat; then
15584 objformat=`/usr/bin/objformat`
15585 else
15586 case $host_os in
15587 freebsd[123]*) objformat=aout ;;
15588 *) objformat=elf ;;
15589 esac
15590 fi
15591 version_type=freebsd-$objformat
15592 case $version_type in
15593 freebsd-elf*)
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15595 need_version=no
15596 need_lib_prefix=no
15597 ;;
15598 freebsd-*)
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15600 need_version=yes
15601 ;;
15602 esac
15603 shlibpath_var=LD_LIBRARY_PATH
15604 case $host_os in
15605 freebsd2*)
15606 shlibpath_overrides_runpath=yes
15607 ;;
15608 freebsd3.[01]* | freebsdelf3.[01]*)
15609 shlibpath_overrides_runpath=yes
15610 hardcode_into_libs=yes
15611 ;;
15612 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15613 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15614 shlibpath_overrides_runpath=no
15615 hardcode_into_libs=yes
15616 ;;
15617 *) # from 4.6 on, and DragonFly
15618 shlibpath_overrides_runpath=yes
15619 hardcode_into_libs=yes
15620 ;;
15621 esac
15622 ;;
15623
15624gnu*)
15625 version_type=linux
15626 need_lib_prefix=no
15627 need_version=no
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 hardcode_into_libs=yes
15632 ;;
15633
cristy0c60a692010-11-04 01:09:47 +000015634haiku*)
15635 version_type=linux
15636 need_lib_prefix=no
15637 need_version=no
15638 dynamic_linker="$host_os runtime_loader"
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes
15643 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15644 hardcode_into_libs=yes
15645 ;;
15646
cristy73bd4a52010-10-05 11:24:23 +000015647hpux9* | hpux10* | hpux11*)
15648 # Give a soname corresponding to the major version so that dld.sl refuses to
15649 # link against other versions.
15650 version_type=sunos
15651 need_lib_prefix=no
15652 need_version=no
15653 case $host_cpu in
15654 ia64*)
15655 shrext_cmds='.so'
15656 hardcode_into_libs=yes
15657 dynamic_linker="$host_os dld.so"
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15662 if test "X$HPUX_IA64_MODE" = X32; then
15663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15664 else
15665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15666 fi
15667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15668 ;;
15669 hppa*64*)
15670 shrext_cmds='.sl'
15671 hardcode_into_libs=yes
15672 dynamic_linker="$host_os dld.sl"
15673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15679 ;;
15680 *)
15681 shrext_cmds='.sl'
15682 dynamic_linker="$host_os dld.sl"
15683 shlibpath_var=SHLIB_PATH
15684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 ;;
15688 esac
cristy0c60a692010-11-04 01:09:47 +000015689 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015690 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015691 # or fails outright, so override atomically:
15692 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015693 ;;
15694
15695interix[3-9]*)
15696 version_type=linux
15697 need_lib_prefix=no
15698 need_version=no
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=no
15704 hardcode_into_libs=yes
15705 ;;
15706
15707irix5* | irix6* | nonstopux*)
15708 case $host_os in
15709 nonstopux*) version_type=nonstopux ;;
15710 *)
15711 if test "$lt_cv_prog_gnu_ld" = yes; then
15712 version_type=linux
15713 else
15714 version_type=irix
15715 fi ;;
15716 esac
15717 need_lib_prefix=no
15718 need_version=no
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15721 case $host_os in
15722 irix5* | nonstopux*)
15723 libsuff= shlibsuff=
15724 ;;
15725 *)
15726 case $LD in # libtool.m4 will add one of these switches to LD
15727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15728 libsuff= shlibsuff= libmagic=32-bit;;
15729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15730 libsuff=32 shlibsuff=N32 libmagic=N32;;
15731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15733 *) libsuff= shlibsuff= libmagic=never-match;;
15734 esac
15735 ;;
15736 esac
15737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15738 shlibpath_overrides_runpath=no
15739 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15740 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15741 hardcode_into_libs=yes
15742 ;;
15743
15744# No shared lib support for Linux oldld, aout, or coff.
15745linux*oldld* | linux*aout* | linux*coff*)
15746 dynamic_linker=no
15747 ;;
15748
15749# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015750linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015751 version_type=linux
15752 need_lib_prefix=no
15753 need_version=no
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15755 soname_spec='${libname}${release}${shared_ext}$major'
15756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15757 shlibpath_var=LD_LIBRARY_PATH
15758 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015759
cristy73bd4a52010-10-05 11:24:23 +000015760 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015761 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015762 $as_echo_n "(cached) " >&6
15763else
15764 lt_cv_shlibpath_overrides_runpath=no
15765 save_LDFLAGS=$LDFLAGS
15766 save_libdir=$libdir
15767 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15768 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015770/* end confdefs.h. */
15771
15772int
15773main ()
15774{
15775
15776 ;
15777 return 0;
15778}
15779_ACEOF
15780if ac_fn_c_try_link "$LINENO"; then :
15781 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015782 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015783fi
15784fi
15785rm -f core conftest.err conftest.$ac_objext \
15786 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015787 LDFLAGS=$save_LDFLAGS
15788 libdir=$save_libdir
15789
15790fi
15791
15792 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015793
15794 # This implies no fast_install, which is unacceptable.
15795 # Some rework will be needed to allow for fast_install
15796 # before this can be enabled.
15797 hardcode_into_libs=yes
15798
15799 # Add ABI-specific directories to the system library path.
15800 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15801
15802 # Append ld.so.conf contents to the search path
15803 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015804 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 +000015805 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015806
cristy73bd4a52010-10-05 11:24:23 +000015807 fi
15808
15809 # We used to test for /lib/ld.so.1 and disable shared libraries on
15810 # powerpc, because MkLinux only supported shared libraries with the
15811 # GNU dynamic linker. Since this was broken with cross compilers,
15812 # most powerpc-linux boxes support dynamic linking these days and
15813 # people can always --disable-shared, the test was removed, and we
15814 # assume the GNU/Linux dynamic linker is in use.
15815 dynamic_linker='GNU/Linux ld.so'
15816 ;;
15817
15818netbsd*)
15819 version_type=sunos
15820 need_lib_prefix=no
15821 need_version=no
15822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15825 dynamic_linker='NetBSD (a.out) ld.so'
15826 else
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 dynamic_linker='NetBSD ld.elf_so'
15830 fi
15831 shlibpath_var=LD_LIBRARY_PATH
15832 shlibpath_overrides_runpath=yes
15833 hardcode_into_libs=yes
15834 ;;
15835
15836newsos6)
15837 version_type=linux
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=yes
15841 ;;
15842
15843*nto* | *qnx*)
15844 version_type=qnx
15845 need_lib_prefix=no
15846 need_version=no
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 shlibpath_var=LD_LIBRARY_PATH
15850 shlibpath_overrides_runpath=no
15851 hardcode_into_libs=yes
15852 dynamic_linker='ldqnx.so'
15853 ;;
15854
15855openbsd*)
15856 version_type=sunos
15857 sys_lib_dlsearch_path_spec="/usr/lib"
15858 need_lib_prefix=no
15859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15860 case $host_os in
15861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15862 *) need_version=no ;;
15863 esac
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15866 shlibpath_var=LD_LIBRARY_PATH
15867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15868 case $host_os in
15869 openbsd2.[89] | openbsd2.[89].*)
15870 shlibpath_overrides_runpath=no
15871 ;;
15872 *)
15873 shlibpath_overrides_runpath=yes
15874 ;;
15875 esac
15876 else
15877 shlibpath_overrides_runpath=yes
15878 fi
15879 ;;
15880
15881os2*)
15882 libname_spec='$name'
15883 shrext_cmds=".dll"
15884 need_lib_prefix=no
15885 library_names_spec='$libname${shared_ext} $libname.a'
15886 dynamic_linker='OS/2 ld.exe'
15887 shlibpath_var=LIBPATH
15888 ;;
15889
15890osf3* | osf4* | osf5*)
15891 version_type=osf
15892 need_lib_prefix=no
15893 need_version=no
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 shlibpath_var=LD_LIBRARY_PATH
15897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15899 ;;
15900
15901rdos*)
15902 dynamic_linker=no
15903 ;;
15904
15905solaris*)
15906 version_type=linux
15907 need_lib_prefix=no
15908 need_version=no
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 shlibpath_var=LD_LIBRARY_PATH
15912 shlibpath_overrides_runpath=yes
15913 hardcode_into_libs=yes
15914 # ldd complains unless libraries are executable
15915 postinstall_cmds='chmod +x $lib'
15916 ;;
15917
15918sunos4*)
15919 version_type=sunos
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 shlibpath_overrides_runpath=yes
15924 if test "$with_gnu_ld" = yes; then
15925 need_lib_prefix=no
15926 fi
15927 need_version=yes
15928 ;;
15929
15930sysv4 | sysv4.3*)
15931 version_type=linux
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 case $host_vendor in
15936 sni)
15937 shlibpath_overrides_runpath=no
15938 need_lib_prefix=no
15939 runpath_var=LD_RUN_PATH
15940 ;;
15941 siemens)
15942 need_lib_prefix=no
15943 ;;
15944 motorola)
15945 need_lib_prefix=no
15946 need_version=no
15947 shlibpath_overrides_runpath=no
15948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15949 ;;
15950 esac
15951 ;;
15952
15953sysv4*MP*)
15954 if test -d /usr/nec ;then
15955 version_type=linux
15956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15957 soname_spec='$libname${shared_ext}.$major'
15958 shlibpath_var=LD_LIBRARY_PATH
15959 fi
15960 ;;
15961
15962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15963 version_type=freebsd-elf
15964 need_lib_prefix=no
15965 need_version=no
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15967 soname_spec='${libname}${release}${shared_ext}$major'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 shlibpath_overrides_runpath=yes
15970 hardcode_into_libs=yes
15971 if test "$with_gnu_ld" = yes; then
15972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15973 else
15974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15975 case $host_os in
15976 sco3.2v5*)
15977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15978 ;;
15979 esac
15980 fi
15981 sys_lib_dlsearch_path_spec='/usr/lib'
15982 ;;
15983
15984tpf*)
15985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15986 version_type=linux
15987 need_lib_prefix=no
15988 need_version=no
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=no
15992 hardcode_into_libs=yes
15993 ;;
15994
15995uts4*)
15996 version_type=linux
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 ;;
16001
16002*)
16003 dynamic_linker=no
16004 ;;
16005esac
16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16007$as_echo "$dynamic_linker" >&6; }
16008test "$dynamic_linker" = no && can_build_shared=no
16009
16010variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16011if test "$GCC" = yes; then
16012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16013fi
16014
16015if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16016 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16017fi
16018if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16019 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16020fi
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
cristy0c60a692010-11-04 01:09:47 +000016108
16109
16110
16111
16112
cristy73bd4a52010-10-05 11:24:23 +000016113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16114$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16115hardcode_action=
16116if test -n "$hardcode_libdir_flag_spec" ||
16117 test -n "$runpath_var" ||
16118 test "X$hardcode_automatic" = "Xyes" ; then
16119
16120 # We can hardcode non-existent directories.
16121 if test "$hardcode_direct" != no &&
16122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16123 # have to relink, otherwise we might link with an installed library
16124 # when we should be linking with a yet-to-be-installed one
16125 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16126 test "$hardcode_minus_L" != no; then
16127 # Linking always hardcodes the temporary library directory.
16128 hardcode_action=relink
16129 else
16130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16131 hardcode_action=immediate
16132 fi
16133else
16134 # We cannot hardcode anything, or else we can only hardcode existing
16135 # directories.
16136 hardcode_action=unsupported
16137fi
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16139$as_echo "$hardcode_action" >&6; }
16140
16141if test "$hardcode_action" = relink ||
16142 test "$inherit_rpath" = yes; then
16143 # Fast installation is not supported
16144 enable_fast_install=no
16145elif test "$shlibpath_overrides_runpath" = yes ||
16146 test "$enable_shared" = no; then
16147 # Fast installation is not necessary
16148 enable_fast_install=needless
16149fi
16150
16151
16152
16153
16154
16155
16156 if test "x$enable_dlopen" != xyes; then
16157 enable_dlopen=unknown
16158 enable_dlopen_self=unknown
16159 enable_dlopen_self_static=unknown
16160else
16161 lt_cv_dlopen=no
16162 lt_cv_dlopen_libs=
16163
16164 case $host_os in
16165 beos*)
16166 lt_cv_dlopen="load_add_on"
16167 lt_cv_dlopen_libs=
16168 lt_cv_dlopen_self=yes
16169 ;;
16170
16171 mingw* | pw32* | cegcc*)
16172 lt_cv_dlopen="LoadLibrary"
16173 lt_cv_dlopen_libs=
16174 ;;
16175
16176 cygwin*)
16177 lt_cv_dlopen="dlopen"
16178 lt_cv_dlopen_libs=
16179 ;;
16180
16181 darwin*)
16182 # if libdl is installed we need to link against it
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16184$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016185if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016186 $as_echo_n "(cached) " >&6
16187else
16188 ac_check_lib_save_LIBS=$LIBS
16189LIBS="-ldl $LIBS"
16190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191/* end confdefs.h. */
16192
16193/* Override any GCC internal prototype to avoid an error.
16194 Use char because int might match the return type of a GCC
16195 builtin and then its argument prototype would still apply. */
16196#ifdef __cplusplus
16197extern "C"
16198#endif
16199char dlopen ();
16200int
16201main ()
16202{
16203return dlopen ();
16204 ;
16205 return 0;
16206}
16207_ACEOF
16208if ac_fn_c_try_link "$LINENO"; then :
16209 ac_cv_lib_dl_dlopen=yes
16210else
16211 ac_cv_lib_dl_dlopen=no
16212fi
16213rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16215LIBS=$ac_check_lib_save_LIBS
16216fi
16217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16218$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016219if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16221else
16222
16223 lt_cv_dlopen="dyld"
16224 lt_cv_dlopen_libs=
16225 lt_cv_dlopen_self=yes
16226
16227fi
16228
16229 ;;
16230
16231 *)
16232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016233if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016234 lt_cv_dlopen="shl_load"
16235else
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16237$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016238if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016239 $as_echo_n "(cached) " >&6
16240else
16241 ac_check_lib_save_LIBS=$LIBS
16242LIBS="-ldld $LIBS"
16243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h. */
16245
16246/* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16249#ifdef __cplusplus
16250extern "C"
16251#endif
16252char shl_load ();
16253int
16254main ()
16255{
16256return shl_load ();
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261if ac_fn_c_try_link "$LINENO"; then :
16262 ac_cv_lib_dld_shl_load=yes
16263else
16264 ac_cv_lib_dld_shl_load=no
16265fi
16266rm -f core conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268LIBS=$ac_check_lib_save_LIBS
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16271$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016272if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16274else
16275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016276if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016277 lt_cv_dlopen="dlopen"
16278else
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16280$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016281if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016282 $as_echo_n "(cached) " >&6
16283else
16284 ac_check_lib_save_LIBS=$LIBS
16285LIBS="-ldl $LIBS"
16286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287/* end confdefs.h. */
16288
16289/* Override any GCC internal prototype to avoid an error.
16290 Use char because int might match the return type of a GCC
16291 builtin and then its argument prototype would still apply. */
16292#ifdef __cplusplus
16293extern "C"
16294#endif
16295char dlopen ();
16296int
16297main ()
16298{
16299return dlopen ();
16300 ;
16301 return 0;
16302}
16303_ACEOF
16304if ac_fn_c_try_link "$LINENO"; then :
16305 ac_cv_lib_dl_dlopen=yes
16306else
16307 ac_cv_lib_dl_dlopen=no
16308fi
16309rm -f core conftest.err conftest.$ac_objext \
16310 conftest$ac_exeext conftest.$ac_ext
16311LIBS=$ac_check_lib_save_LIBS
16312fi
16313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16314$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016315if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16317else
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16319$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016320if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016321 $as_echo_n "(cached) " >&6
16322else
16323 ac_check_lib_save_LIBS=$LIBS
16324LIBS="-lsvld $LIBS"
16325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h. */
16327
16328/* Override any GCC internal prototype to avoid an error.
16329 Use char because int might match the return type of a GCC
16330 builtin and then its argument prototype would still apply. */
16331#ifdef __cplusplus
16332extern "C"
16333#endif
16334char dlopen ();
16335int
16336main ()
16337{
16338return dlopen ();
16339 ;
16340 return 0;
16341}
16342_ACEOF
16343if ac_fn_c_try_link "$LINENO"; then :
16344 ac_cv_lib_svld_dlopen=yes
16345else
16346 ac_cv_lib_svld_dlopen=no
16347fi
16348rm -f core conftest.err conftest.$ac_objext \
16349 conftest$ac_exeext conftest.$ac_ext
16350LIBS=$ac_check_lib_save_LIBS
16351fi
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16353$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016354if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16356else
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16358$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016359if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016360 $as_echo_n "(cached) " >&6
16361else
16362 ac_check_lib_save_LIBS=$LIBS
16363LIBS="-ldld $LIBS"
16364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365/* end confdefs.h. */
16366
16367/* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16370#ifdef __cplusplus
16371extern "C"
16372#endif
16373char dld_link ();
16374int
16375main ()
16376{
16377return dld_link ();
16378 ;
16379 return 0;
16380}
16381_ACEOF
16382if ac_fn_c_try_link "$LINENO"; then :
16383 ac_cv_lib_dld_dld_link=yes
16384else
16385 ac_cv_lib_dld_dld_link=no
16386fi
16387rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16389LIBS=$ac_check_lib_save_LIBS
16390fi
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16392$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016393if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16395fi
16396
16397
16398fi
16399
16400
16401fi
16402
16403
16404fi
16405
16406
16407fi
16408
16409
16410fi
16411
16412 ;;
16413 esac
16414
16415 if test "x$lt_cv_dlopen" != xno; then
16416 enable_dlopen=yes
16417 else
16418 enable_dlopen=no
16419 fi
16420
16421 case $lt_cv_dlopen in
16422 dlopen)
16423 save_CPPFLAGS="$CPPFLAGS"
16424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16425
16426 save_LDFLAGS="$LDFLAGS"
16427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16428
16429 save_LIBS="$LIBS"
16430 LIBS="$lt_cv_dlopen_libs $LIBS"
16431
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16433$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016434if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016435 $as_echo_n "(cached) " >&6
16436else
16437 if test "$cross_compiling" = yes; then :
16438 lt_cv_dlopen_self=cross
16439else
16440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16441 lt_status=$lt_dlunknown
16442 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016443#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016444#include "confdefs.h"
16445
16446#if HAVE_DLFCN_H
16447#include <dlfcn.h>
16448#endif
16449
16450#include <stdio.h>
16451
16452#ifdef RTLD_GLOBAL
16453# define LT_DLGLOBAL RTLD_GLOBAL
16454#else
16455# ifdef DL_GLOBAL
16456# define LT_DLGLOBAL DL_GLOBAL
16457# else
16458# define LT_DLGLOBAL 0
16459# endif
16460#endif
16461
16462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16463 find out it does not work in some platform. */
16464#ifndef LT_DLLAZY_OR_NOW
16465# ifdef RTLD_LAZY
16466# define LT_DLLAZY_OR_NOW RTLD_LAZY
16467# else
16468# ifdef DL_LAZY
16469# define LT_DLLAZY_OR_NOW DL_LAZY
16470# else
16471# ifdef RTLD_NOW
16472# define LT_DLLAZY_OR_NOW RTLD_NOW
16473# else
16474# ifdef DL_NOW
16475# define LT_DLLAZY_OR_NOW DL_NOW
16476# else
16477# define LT_DLLAZY_OR_NOW 0
16478# endif
16479# endif
16480# endif
16481# endif
16482#endif
16483
cristy0c60a692010-11-04 01:09:47 +000016484/* When -fvisbility=hidden is used, assume the code has been annotated
16485 correspondingly for the symbols needed. */
16486#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016487int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016488#endif
16489
cristyda16f162011-02-19 23:52:17 +000016490int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016491int main ()
16492{
16493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16494 int status = $lt_dlunknown;
16495
16496 if (self)
16497 {
16498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016499 else
16500 {
16501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16502 else puts (dlerror ());
16503 }
cristy73bd4a52010-10-05 11:24:23 +000016504 /* dlclose (self); */
16505 }
16506 else
16507 puts (dlerror ());
16508
16509 return status;
16510}
16511_LT_EOF
16512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16513 (eval $ac_link) 2>&5
16514 ac_status=$?
16515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16517 (./conftest; exit; ) >&5 2>/dev/null
16518 lt_status=$?
16519 case x$lt_status in
16520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16523 esac
16524 else :
16525 # compilation failed
16526 lt_cv_dlopen_self=no
16527 fi
16528fi
16529rm -fr conftest*
16530
16531
16532fi
16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16534$as_echo "$lt_cv_dlopen_self" >&6; }
16535
16536 if test "x$lt_cv_dlopen_self" = xyes; then
16537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16539$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016540if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016541 $as_echo_n "(cached) " >&6
16542else
16543 if test "$cross_compiling" = yes; then :
16544 lt_cv_dlopen_self_static=cross
16545else
16546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16547 lt_status=$lt_dlunknown
16548 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016549#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016550#include "confdefs.h"
16551
16552#if HAVE_DLFCN_H
16553#include <dlfcn.h>
16554#endif
16555
16556#include <stdio.h>
16557
16558#ifdef RTLD_GLOBAL
16559# define LT_DLGLOBAL RTLD_GLOBAL
16560#else
16561# ifdef DL_GLOBAL
16562# define LT_DLGLOBAL DL_GLOBAL
16563# else
16564# define LT_DLGLOBAL 0
16565# endif
16566#endif
16567
16568/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16569 find out it does not work in some platform. */
16570#ifndef LT_DLLAZY_OR_NOW
16571# ifdef RTLD_LAZY
16572# define LT_DLLAZY_OR_NOW RTLD_LAZY
16573# else
16574# ifdef DL_LAZY
16575# define LT_DLLAZY_OR_NOW DL_LAZY
16576# else
16577# ifdef RTLD_NOW
16578# define LT_DLLAZY_OR_NOW RTLD_NOW
16579# else
16580# ifdef DL_NOW
16581# define LT_DLLAZY_OR_NOW DL_NOW
16582# else
16583# define LT_DLLAZY_OR_NOW 0
16584# endif
16585# endif
16586# endif
16587# endif
16588#endif
16589
cristy0c60a692010-11-04 01:09:47 +000016590/* When -fvisbility=hidden is used, assume the code has been annotated
16591 correspondingly for the symbols needed. */
16592#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016593int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016594#endif
16595
cristyda16f162011-02-19 23:52:17 +000016596int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016597int main ()
16598{
16599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16600 int status = $lt_dlunknown;
16601
16602 if (self)
16603 {
16604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016605 else
16606 {
16607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16608 else puts (dlerror ());
16609 }
cristy73bd4a52010-10-05 11:24:23 +000016610 /* dlclose (self); */
16611 }
16612 else
16613 puts (dlerror ());
16614
16615 return status;
16616}
16617_LT_EOF
16618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16619 (eval $ac_link) 2>&5
16620 ac_status=$?
16621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16623 (./conftest; exit; ) >&5 2>/dev/null
16624 lt_status=$?
16625 case x$lt_status in
16626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16628 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16629 esac
16630 else :
16631 # compilation failed
16632 lt_cv_dlopen_self_static=no
16633 fi
16634fi
16635rm -fr conftest*
16636
16637
16638fi
16639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16640$as_echo "$lt_cv_dlopen_self_static" >&6; }
16641 fi
16642
16643 CPPFLAGS="$save_CPPFLAGS"
16644 LDFLAGS="$save_LDFLAGS"
16645 LIBS="$save_LIBS"
16646 ;;
16647 esac
16648
16649 case $lt_cv_dlopen_self in
16650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16651 *) enable_dlopen_self=unknown ;;
16652 esac
16653
16654 case $lt_cv_dlopen_self_static in
16655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16656 *) enable_dlopen_self_static=unknown ;;
16657 esac
16658fi
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676striplib=
16677old_striplib=
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16679$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16680if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16682 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16684$as_echo "yes" >&6; }
16685else
16686# FIXME - insert some real tests, host_os isn't really good enough
16687 case $host_os in
16688 darwin*)
16689 if test -n "$STRIP" ; then
16690 striplib="$STRIP -x"
16691 old_striplib="$STRIP -S"
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16693$as_echo "yes" >&6; }
16694 else
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696$as_echo "no" >&6; }
16697 fi
16698 ;;
16699 *)
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701$as_echo "no" >&6; }
16702 ;;
16703 esac
16704fi
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717 # Report which library types will actually be built
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16719$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16721$as_echo "$can_build_shared" >&6; }
16722
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16724$as_echo_n "checking whether to build shared libraries... " >&6; }
16725 test "$can_build_shared" = "no" && enable_shared=no
16726
16727 # On AIX, shared libraries and static libraries use the same namespace, and
16728 # are all built from PIC.
16729 case $host_os in
16730 aix3*)
16731 test "$enable_shared" = yes && enable_static=no
16732 if test -n "$RANLIB"; then
16733 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16734 postinstall_cmds='$RANLIB $lib'
16735 fi
16736 ;;
16737
16738 aix[4-9]*)
16739 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16740 test "$enable_shared" = yes && enable_static=no
16741 fi
16742 ;;
16743 esac
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16745$as_echo "$enable_shared" >&6; }
16746
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16748$as_echo_n "checking whether to build static libraries... " >&6; }
16749 # Make sure either enable_shared or enable_static is yes.
16750 test "$enable_shared" = yes || enable_static=yes
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16752$as_echo "$enable_static" >&6; }
16753
16754
16755
16756
16757fi
16758ac_ext=c
16759ac_cpp='$CPP $CPPFLAGS'
16760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16762ac_compiler_gnu=$ac_cv_c_compiler_gnu
16763
16764CC="$lt_save_CC"
16765
cristy0c60a692010-11-04 01:09:47 +000016766 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16767 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16768 (test "X$CXX" != "Xg++"))) ; then
16769 ac_ext=cpp
16770ac_cpp='$CXXCPP $CPPFLAGS'
16771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16775$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16776if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016777 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016778 $as_echo_n "(cached) " >&6
16779else
16780 # Double quotes because CXXCPP needs to be expanded
16781 for CXXCPP in "$CXX -E" "/lib/cpp"
16782 do
16783 ac_preproc_ok=false
16784for ac_cxx_preproc_warn_flag in '' yes
16785do
16786 # Use a header file that comes with gcc, so configuring glibc
16787 # with a fresh cross-compiler works.
16788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16789 # <limits.h> exists even on freestanding compilers.
16790 # On the NeXT, cc -E runs the code through the compiler's parser,
16791 # not just through cpp. "Syntax error" is here to catch this case.
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793/* end confdefs.h. */
16794#ifdef __STDC__
16795# include <limits.h>
16796#else
16797# include <assert.h>
16798#endif
16799 Syntax error
16800_ACEOF
16801if ac_fn_cxx_try_cpp "$LINENO"; then :
16802
16803else
16804 # Broken: fails on valid input.
16805continue
16806fi
cristyda16f162011-02-19 23:52:17 +000016807rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016808
16809 # OK, works on sane cases. Now check whether nonexistent headers
16810 # can be detected and how.
16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812/* end confdefs.h. */
16813#include <ac_nonexistent.h>
16814_ACEOF
16815if ac_fn_cxx_try_cpp "$LINENO"; then :
16816 # Broken: success on invalid input.
16817continue
16818else
16819 # Passes both tests.
16820ac_preproc_ok=:
16821break
16822fi
cristyda16f162011-02-19 23:52:17 +000016823rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016824
16825done
16826# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016827rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016828if $ac_preproc_ok; then :
16829 break
16830fi
16831
16832 done
16833 ac_cv_prog_CXXCPP=$CXXCPP
16834
16835fi
16836 CXXCPP=$ac_cv_prog_CXXCPP
16837else
16838 ac_cv_prog_CXXCPP=$CXXCPP
16839fi
16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16841$as_echo "$CXXCPP" >&6; }
16842ac_preproc_ok=false
16843for ac_cxx_preproc_warn_flag in '' yes
16844do
16845 # Use a header file that comes with gcc, so configuring glibc
16846 # with a fresh cross-compiler works.
16847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16848 # <limits.h> exists even on freestanding compilers.
16849 # On the NeXT, cc -E runs the code through the compiler's parser,
16850 # not just through cpp. "Syntax error" is here to catch this case.
16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h. */
16853#ifdef __STDC__
16854# include <limits.h>
16855#else
16856# include <assert.h>
16857#endif
16858 Syntax error
16859_ACEOF
16860if ac_fn_cxx_try_cpp "$LINENO"; then :
16861
16862else
16863 # Broken: fails on valid input.
16864continue
16865fi
cristyda16f162011-02-19 23:52:17 +000016866rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016867
16868 # OK, works on sane cases. Now check whether nonexistent headers
16869 # can be detected and how.
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871/* end confdefs.h. */
16872#include <ac_nonexistent.h>
16873_ACEOF
16874if ac_fn_cxx_try_cpp "$LINENO"; then :
16875 # Broken: success on invalid input.
16876continue
16877else
16878 # Passes both tests.
16879ac_preproc_ok=:
16880break
16881fi
cristyda16f162011-02-19 23:52:17 +000016882rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016883
16884done
16885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016886rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016887if $ac_preproc_ok; then :
16888
16889else
16890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16892as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16893See \`config.log' for more details" "$LINENO" 5; }
16894fi
16895
16896ac_ext=c
16897ac_cpp='$CPP $CPPFLAGS'
16898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16900ac_compiler_gnu=$ac_cv_c_compiler_gnu
16901
16902else
16903 _lt_caught_CXX_error=yes
16904fi
cristy73bd4a52010-10-05 11:24:23 +000016905
16906ac_ext=cpp
16907ac_cpp='$CXXCPP $CPPFLAGS'
16908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16911
16912archive_cmds_need_lc_CXX=no
16913allow_undefined_flag_CXX=
16914always_export_symbols_CXX=no
16915archive_expsym_cmds_CXX=
16916compiler_needs_object_CXX=no
16917export_dynamic_flag_spec_CXX=
16918hardcode_direct_CXX=no
16919hardcode_direct_absolute_CXX=no
16920hardcode_libdir_flag_spec_CXX=
16921hardcode_libdir_flag_spec_ld_CXX=
16922hardcode_libdir_separator_CXX=
16923hardcode_minus_L_CXX=no
16924hardcode_shlibpath_var_CXX=unsupported
16925hardcode_automatic_CXX=no
16926inherit_rpath_CXX=no
16927module_cmds_CXX=
16928module_expsym_cmds_CXX=
16929link_all_deplibs_CXX=unknown
16930old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016931reload_flag_CXX=$reload_flag
16932reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016933no_undefined_flag_CXX=
16934whole_archive_flag_spec_CXX=
16935enable_shared_with_static_runtimes_CXX=no
16936
16937# Source file extension for C++ test sources.
16938ac_ext=cpp
16939
16940# Object file extension for compiled C++ test sources.
16941objext=o
16942objext_CXX=$objext
16943
16944# No sense in running all these tests if we already determined that
16945# the CXX compiler isn't working. Some variables (like enable_shared)
16946# are currently assumed to apply to all compilers on this platform,
16947# and will be corrupted by setting them based on a non-working compiler.
16948if test "$_lt_caught_CXX_error" != yes; then
16949 # Code to be used in simple compile tests
16950 lt_simple_compile_test_code="int some_variable = 0;"
16951
16952 # Code to be used in simple link tests
16953 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16954
16955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16956
16957
16958
16959
16960
16961
16962# If no C compiler was specified, use CC.
16963LTCC=${LTCC-"$CC"}
16964
16965# If no C compiler flags were specified, use CFLAGS.
16966LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16967
16968# Allow CC to be a program name with arguments.
16969compiler=$CC
16970
16971
16972 # save warnings/boilerplate of simple test code
16973 ac_outfile=conftest.$ac_objext
16974echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16975eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16976_lt_compiler_boilerplate=`cat conftest.err`
16977$RM conftest*
16978
16979 ac_outfile=conftest.$ac_objext
16980echo "$lt_simple_link_test_code" >conftest.$ac_ext
16981eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16982_lt_linker_boilerplate=`cat conftest.err`
16983$RM -r conftest*
16984
16985
16986 # Allow CC to be a program name with arguments.
16987 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016988 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016989 lt_save_LD=$LD
16990 lt_save_GCC=$GCC
16991 GCC=$GXX
16992 lt_save_with_gnu_ld=$with_gnu_ld
16993 lt_save_path_LD=$lt_cv_path_LD
16994 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16995 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16996 else
16997 $as_unset lt_cv_prog_gnu_ld
16998 fi
16999 if test -n "${lt_cv_path_LDCXX+set}"; then
17000 lt_cv_path_LD=$lt_cv_path_LDCXX
17001 else
17002 $as_unset lt_cv_path_LD
17003 fi
17004 test -z "${LDCXX+set}" || LD=$LDCXX
17005 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017006 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017007 compiler=$CC
17008 compiler_CXX=$CC
17009 for cc_temp in $compiler""; do
17010 case $cc_temp in
17011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17013 \-*) ;;
17014 *) break;;
17015 esac
17016done
cristy0c60a692010-11-04 01:09:47 +000017017cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017018
17019
17020 if test -n "$compiler"; then
17021 # We don't want -fno-exception when compiling C++ code, so set the
17022 # no_builtin_flag separately
17023 if test "$GXX" = yes; then
17024 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17025 else
17026 lt_prog_compiler_no_builtin_flag_CXX=
17027 fi
17028
17029 if test "$GXX" = yes; then
17030 # Set up default GNU C++ configuration
17031
17032
17033
17034# Check whether --with-gnu-ld was given.
17035if test "${with_gnu_ld+set}" = set; then :
17036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17037else
17038 with_gnu_ld=no
17039fi
17040
17041ac_prog=ld
17042if test "$GCC" = yes; then
17043 # Check if gcc -print-prog-name=ld gives a path.
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17045$as_echo_n "checking for ld used by $CC... " >&6; }
17046 case $host in
17047 *-*-mingw*)
17048 # gcc leaves a trailing carriage return which upsets mingw
17049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17050 *)
17051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17052 esac
17053 case $ac_prog in
17054 # Accept absolute paths.
17055 [\\/]* | ?:[\\/]*)
17056 re_direlt='/[^/][^/]*/\.\./'
17057 # Canonicalize the pathname of ld
17058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17061 done
17062 test -z "$LD" && LD="$ac_prog"
17063 ;;
17064 "")
17065 # If it fails, then pretend we aren't using GCC.
17066 ac_prog=ld
17067 ;;
17068 *)
17069 # If it is relative, then search for the first ld in PATH.
17070 with_gnu_ld=unknown
17071 ;;
17072 esac
17073elif test "$with_gnu_ld" = yes; then
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17075$as_echo_n "checking for GNU ld... " >&6; }
17076else
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17078$as_echo_n "checking for non-GNU ld... " >&6; }
17079fi
cristyda16f162011-02-19 23:52:17 +000017080if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017081 $as_echo_n "(cached) " >&6
17082else
17083 if test -z "$LD"; then
17084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17085 for ac_dir in $PATH; do
17086 IFS="$lt_save_ifs"
17087 test -z "$ac_dir" && ac_dir=.
17088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17089 lt_cv_path_LD="$ac_dir/$ac_prog"
17090 # Check to see if the program is GNU ld. I'd rather use --version,
17091 # but apparently some variants of GNU ld only accept -v.
17092 # Break only if it was the GNU/non-GNU ld that we prefer.
17093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17094 *GNU* | *'with BFD'*)
17095 test "$with_gnu_ld" != no && break
17096 ;;
17097 *)
17098 test "$with_gnu_ld" != yes && break
17099 ;;
17100 esac
17101 fi
17102 done
17103 IFS="$lt_save_ifs"
17104else
17105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17106fi
17107fi
17108
17109LD="$lt_cv_path_LD"
17110if test -n "$LD"; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17112$as_echo "$LD" >&6; }
17113else
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17115$as_echo "no" >&6; }
17116fi
cristy98dddb52010-11-04 00:30:15 +000017117test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17119$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017120if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017121 $as_echo_n "(cached) " >&6
17122else
17123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17124case `$LD -v 2>&1 </dev/null` in
17125*GNU* | *'with BFD'*)
17126 lt_cv_prog_gnu_ld=yes
17127 ;;
17128*)
17129 lt_cv_prog_gnu_ld=no
17130 ;;
17131esac
17132fi
17133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17134$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17135with_gnu_ld=$lt_cv_prog_gnu_ld
17136
17137
17138
17139
17140
17141
17142
17143 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17144 # archiving commands below assume that GNU ld is being used.
17145 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017146 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17147 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 +000017148
17149 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17151
17152 # If archive_cmds runs LD, not CC, wlarc should be empty
17153 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17154 # investigate it a little bit more. (MM)
17155 wlarc='${wl}'
17156
17157 # ancient GNU ld didn't support --whole-archive et. al.
17158 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17159 $GREP 'no-whole-archive' > /dev/null; then
17160 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17161 else
17162 whole_archive_flag_spec_CXX=
17163 fi
17164 else
17165 with_gnu_ld=no
17166 wlarc=
17167
17168 # A generic and very simple default shared library creation
17169 # command for GNU C++ for the case where it uses the native
17170 # linker, instead of GNU ld. If possible, this setting should
17171 # overridden to take advantage of the native linker features on
17172 # the platform it is being used on.
17173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17174 fi
17175
17176 # Commands to make compiler produce verbose output that lists
17177 # what "hidden" libraries, object files and flags are used when
17178 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017180
17181 else
17182 GXX=no
17183 with_gnu_ld=no
17184 wlarc=
17185 fi
17186
17187 # PORTME: fill in a description of your system's C++ link characteristics
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17189$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17190 ld_shlibs_CXX=yes
17191 case $host_os in
17192 aix3*)
17193 # FIXME: insert proper C++ library support
17194 ld_shlibs_CXX=no
17195 ;;
17196 aix[4-9]*)
17197 if test "$host_cpu" = ia64; then
17198 # On IA64, the linker does run time linking by default, so we don't
17199 # have to do anything special.
17200 aix_use_runtimelinking=no
17201 exp_sym_flag='-Bexport'
17202 no_entry_flag=""
17203 else
17204 aix_use_runtimelinking=no
17205
17206 # Test if we are trying to use run time linking or normal
17207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17208 # need to do runtime linking.
17209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17210 for ld_flag in $LDFLAGS; do
17211 case $ld_flag in
17212 *-brtl*)
17213 aix_use_runtimelinking=yes
17214 break
17215 ;;
17216 esac
17217 done
17218 ;;
17219 esac
17220
17221 exp_sym_flag='-bexport'
17222 no_entry_flag='-bnoentry'
17223 fi
17224
17225 # When large executables or shared objects are built, AIX ld can
17226 # have problems creating the table of contents. If linking a library
17227 # or program results in "error TOC overflow" add -mminimal-toc to
17228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17230
17231 archive_cmds_CXX=''
17232 hardcode_direct_CXX=yes
17233 hardcode_direct_absolute_CXX=yes
17234 hardcode_libdir_separator_CXX=':'
17235 link_all_deplibs_CXX=yes
17236 file_list_spec_CXX='${wl}-f,'
17237
17238 if test "$GXX" = yes; then
17239 case $host_os in aix4.[012]|aix4.[012].*)
17240 # We only want to do this on AIX 4.2 and lower, the check
17241 # below for broken collect2 doesn't work under 4.3+
17242 collect2name=`${CC} -print-prog-name=collect2`
17243 if test -f "$collect2name" &&
17244 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17245 then
17246 # We have reworked collect2
17247 :
17248 else
17249 # We have old collect2
17250 hardcode_direct_CXX=unsupported
17251 # It fails to find uninstalled libraries when the uninstalled
17252 # path is not listed in the libpath. Setting hardcode_minus_L
17253 # to unsupported forces relinking
17254 hardcode_minus_L_CXX=yes
17255 hardcode_libdir_flag_spec_CXX='-L$libdir'
17256 hardcode_libdir_separator_CXX=
17257 fi
17258 esac
17259 shared_flag='-shared'
17260 if test "$aix_use_runtimelinking" = yes; then
17261 shared_flag="$shared_flag "'${wl}-G'
17262 fi
17263 else
17264 # not using gcc
17265 if test "$host_cpu" = ia64; then
17266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17267 # chokes on -Wl,-G. The following line is correct:
17268 shared_flag='-G'
17269 else
17270 if test "$aix_use_runtimelinking" = yes; then
17271 shared_flag='${wl}-G'
17272 else
17273 shared_flag='${wl}-bM:SRE'
17274 fi
17275 fi
17276 fi
17277
17278 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17279 # It seems that -bexpall does not export symbols beginning with
17280 # underscore (_), so it is better to generate a list of symbols to
17281 # export.
17282 always_export_symbols_CXX=yes
17283 if test "$aix_use_runtimelinking" = yes; then
17284 # Warning - without using the other runtime loading flags (-brtl),
17285 # -berok will link without error, but may produce a broken library.
17286 allow_undefined_flag_CXX='-berok'
17287 # Determine the default libpath from the value encoded in an empty
17288 # executable.
cristyda16f162011-02-19 23:52:17 +000017289 if test "${lt_cv_aix_libpath+set}" = set; then
17290 aix_libpath=$lt_cv_aix_libpath
17291else
17292 if ${lt_cv_aix_libpath__CXX+:} false; then :
17293 $as_echo_n "(cached) " >&6
17294else
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017296/* end confdefs.h. */
17297
17298int
17299main ()
17300{
17301
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306if ac_fn_cxx_try_link "$LINENO"; then :
17307
cristyda16f162011-02-19 23:52:17 +000017308 lt_aix_libpath_sed='
17309 /Import File Strings/,/^$/ {
17310 /^0/ {
17311 s/^0 *\([^ ]*\) *$/\1/
17312 p
17313 }
17314 }'
17315 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17316 # Check for a 64-bit object if we didn't find anything.
17317 if test -z "$lt_cv_aix_libpath__CXX"; then
17318 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17319 fi
cristy73bd4a52010-10-05 11:24:23 +000017320fi
17321rm -f core conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017323 if test -z "$lt_cv_aix_libpath__CXX"; then
17324 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17325 fi
17326
17327fi
17328
17329 aix_libpath=$lt_cv_aix_libpath__CXX
17330fi
cristy73bd4a52010-10-05 11:24:23 +000017331
17332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17333
cristy0c60a692010-11-04 01:09:47 +000017334 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 +000017335 else
17336 if test "$host_cpu" = ia64; then
17337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17338 allow_undefined_flag_CXX="-z nodefs"
17339 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"
17340 else
17341 # Determine the default libpath from the value encoded in an
17342 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017343 if test "${lt_cv_aix_libpath+set}" = set; then
17344 aix_libpath=$lt_cv_aix_libpath
17345else
17346 if ${lt_cv_aix_libpath__CXX+:} false; then :
17347 $as_echo_n "(cached) " >&6
17348else
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017350/* end confdefs.h. */
17351
17352int
17353main ()
17354{
17355
17356 ;
17357 return 0;
17358}
17359_ACEOF
17360if ac_fn_cxx_try_link "$LINENO"; then :
17361
cristyda16f162011-02-19 23:52:17 +000017362 lt_aix_libpath_sed='
17363 /Import File Strings/,/^$/ {
17364 /^0/ {
17365 s/^0 *\([^ ]*\) *$/\1/
17366 p
17367 }
17368 }'
17369 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17370 # Check for a 64-bit object if we didn't find anything.
17371 if test -z "$lt_cv_aix_libpath__CXX"; then
17372 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17373 fi
cristy73bd4a52010-10-05 11:24:23 +000017374fi
17375rm -f core conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017377 if test -z "$lt_cv_aix_libpath__CXX"; then
17378 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17379 fi
17380
17381fi
17382
17383 aix_libpath=$lt_cv_aix_libpath__CXX
17384fi
cristy73bd4a52010-10-05 11:24:23 +000017385
17386 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17387 # Warning - without using the other run time loading flags,
17388 # -berok will link without error, but may produce a broken library.
17389 no_undefined_flag_CXX=' ${wl}-bernotok'
17390 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017391 if test "$with_gnu_ld" = yes; then
17392 # We only use this code for GNU lds that support --whole-archive.
17393 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17394 else
17395 # Exported symbols can be pulled into shared objects from archives
17396 whole_archive_flag_spec_CXX='$convenience'
17397 fi
cristy73bd4a52010-10-05 11:24:23 +000017398 archive_cmds_need_lc_CXX=yes
17399 # This is similar to how AIX traditionally builds its shared
17400 # libraries.
17401 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'
17402 fi
17403 fi
17404 ;;
17405
17406 beos*)
17407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17408 allow_undefined_flag_CXX=unsupported
17409 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17410 # support --undefined. This deserves some investigation. FIXME
17411 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412 else
17413 ld_shlibs_CXX=no
17414 fi
17415 ;;
17416
17417 chorus*)
17418 case $cc_basename in
17419 *)
17420 # FIXME: insert proper C++ library support
17421 ld_shlibs_CXX=no
17422 ;;
17423 esac
17424 ;;
17425
17426 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017427 case $GXX,$cc_basename in
17428 ,cl* | no,cl*)
17429 # Native MSVC
17430 # hardcode_libdir_flag_spec is actually meaningless, as there is
17431 # no search path for DLLs.
17432 hardcode_libdir_flag_spec_CXX=' '
17433 allow_undefined_flag_CXX=unsupported
17434 always_export_symbols_CXX=yes
17435 file_list_spec_CXX='@'
17436 # Tell ltmain to make .lib files, not .a files.
17437 libext=lib
17438 # Tell ltmain to make .dll files, not .so files.
17439 shrext_cmds=".dll"
17440 # FIXME: Setting linknames here is a bad hack.
17441 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17442 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17443 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17444 else
17445 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17446 fi~
17447 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17448 linknames='
17449 # The linker will not automatically build a static lib if we build a DLL.
17450 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17451 enable_shared_with_static_runtimes_CXX=yes
17452 # Don't use ranlib
17453 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17454 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17455 lt_tool_outputfile="@TOOL_OUTPUT@"~
17456 case $lt_outputfile in
17457 *.exe|*.EXE) ;;
17458 *)
17459 lt_outputfile="$lt_outputfile.exe"
17460 lt_tool_outputfile="$lt_tool_outputfile.exe"
17461 ;;
17462 esac~
17463 func_to_tool_file "$lt_outputfile"~
17464 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17465 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17466 $RM "$lt_outputfile.manifest";
17467 fi'
17468 ;;
17469 *)
17470 # g++
17471 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17472 # as there is no search path for DLLs.
17473 hardcode_libdir_flag_spec_CXX='-L$libdir'
17474 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17475 allow_undefined_flag_CXX=unsupported
17476 always_export_symbols_CXX=no
17477 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017478
cristyda16f162011-02-19 23:52:17 +000017479 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17480 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'
17481 # If the export-symbols file already is a .def file (1st line
17482 # is EXPORTS), use it as is; otherwise, prepend...
17483 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17484 cp $export_symbols $output_objdir/$soname.def;
17485 else
17486 echo EXPORTS > $output_objdir/$soname.def;
17487 cat $export_symbols >> $output_objdir/$soname.def;
17488 fi~
17489 $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'
17490 else
17491 ld_shlibs_CXX=no
17492 fi
17493 ;;
17494 esac
17495 ;;
cristy73bd4a52010-10-05 11:24:23 +000017496 darwin* | rhapsody*)
17497
17498
17499 archive_cmds_need_lc_CXX=no
17500 hardcode_direct_CXX=no
17501 hardcode_automatic_CXX=yes
17502 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017503 if test "$lt_cv_ld_force_load" = "yes"; then
17504 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\"`'
17505 else
17506 whole_archive_flag_spec_CXX=''
17507 fi
cristy73bd4a52010-10-05 11:24:23 +000017508 link_all_deplibs_CXX=yes
17509 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17510 case $cc_basename in
17511 ifort*) _lt_dar_can_shared=yes ;;
17512 *) _lt_dar_can_shared=$GCC ;;
17513 esac
17514 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017515 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017516 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}"
17517 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17518 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}"
17519 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}"
17520 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17521 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}"
17522 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}"
17523 fi
17524
17525 else
17526 ld_shlibs_CXX=no
17527 fi
17528
17529 ;;
17530
17531 dgux*)
17532 case $cc_basename in
17533 ec++*)
17534 # FIXME: insert proper C++ library support
17535 ld_shlibs_CXX=no
17536 ;;
17537 ghcx*)
17538 # Green Hills C++ Compiler
17539 # FIXME: insert proper C++ library support
17540 ld_shlibs_CXX=no
17541 ;;
17542 *)
17543 # FIXME: insert proper C++ library support
17544 ld_shlibs_CXX=no
17545 ;;
17546 esac
17547 ;;
17548
17549 freebsd[12]*)
17550 # C++ shared libraries reported to be fairly broken before
17551 # switch to ELF
17552 ld_shlibs_CXX=no
17553 ;;
17554
17555 freebsd-elf*)
17556 archive_cmds_need_lc_CXX=no
17557 ;;
17558
17559 freebsd* | dragonfly*)
17560 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17561 # conventions
17562 ld_shlibs_CXX=yes
17563 ;;
17564
17565 gnu*)
17566 ;;
17567
cristy0c60a692010-11-04 01:09:47 +000017568 haiku*)
17569 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17570 link_all_deplibs_CXX=yes
17571 ;;
17572
cristy73bd4a52010-10-05 11:24:23 +000017573 hpux9*)
17574 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17575 hardcode_libdir_separator_CXX=:
17576 export_dynamic_flag_spec_CXX='${wl}-E'
17577 hardcode_direct_CXX=yes
17578 hardcode_minus_L_CXX=yes # Not in the search PATH,
17579 # but as the default
17580 # location of the library.
17581
17582 case $cc_basename in
17583 CC*)
17584 # FIXME: insert proper C++ library support
17585 ld_shlibs_CXX=no
17586 ;;
17587 aCC*)
17588 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'
17589 # Commands to make compiler produce verbose output that lists
17590 # what "hidden" libraries, object files and flags are used when
17591 # linking a shared library.
17592 #
17593 # There doesn't appear to be a way to prevent this compiler from
17594 # explicitly linking system object files so we need to strip them
17595 # from the output so that they don't get included in the library
17596 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017597 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 +000017598 ;;
17599 *)
17600 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017601 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 +000017602 else
17603 # FIXME: insert proper C++ library support
17604 ld_shlibs_CXX=no
17605 fi
17606 ;;
17607 esac
17608 ;;
17609
17610 hpux10*|hpux11*)
17611 if test $with_gnu_ld = no; then
17612 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17613 hardcode_libdir_separator_CXX=:
17614
17615 case $host_cpu in
17616 hppa*64*|ia64*)
17617 ;;
17618 *)
17619 export_dynamic_flag_spec_CXX='${wl}-E'
17620 ;;
17621 esac
17622 fi
17623 case $host_cpu in
17624 hppa*64*|ia64*)
17625 hardcode_direct_CXX=no
17626 hardcode_shlibpath_var_CXX=no
17627 ;;
17628 *)
17629 hardcode_direct_CXX=yes
17630 hardcode_direct_absolute_CXX=yes
17631 hardcode_minus_L_CXX=yes # Not in the search PATH,
17632 # but as the default
17633 # location of the library.
17634 ;;
17635 esac
17636
17637 case $cc_basename in
17638 CC*)
17639 # FIXME: insert proper C++ library support
17640 ld_shlibs_CXX=no
17641 ;;
17642 aCC*)
17643 case $host_cpu in
17644 hppa*64*)
17645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17646 ;;
17647 ia64*)
17648 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17649 ;;
17650 *)
17651 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17652 ;;
17653 esac
17654 # Commands to make compiler produce verbose output that lists
17655 # what "hidden" libraries, object files and flags are used when
17656 # linking a shared library.
17657 #
17658 # There doesn't appear to be a way to prevent this compiler from
17659 # explicitly linking system object files so we need to strip them
17660 # from the output so that they don't get included in the library
17661 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017662 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 +000017663 ;;
17664 *)
17665 if test "$GXX" = yes; then
17666 if test $with_gnu_ld = no; then
17667 case $host_cpu in
17668 hppa*64*)
17669 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17670 ;;
17671 ia64*)
cristyda16f162011-02-19 23:52:17 +000017672 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 +000017673 ;;
17674 *)
cristyda16f162011-02-19 23:52:17 +000017675 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 +000017676 ;;
17677 esac
17678 fi
17679 else
17680 # FIXME: insert proper C++ library support
17681 ld_shlibs_CXX=no
17682 fi
17683 ;;
17684 esac
17685 ;;
17686
17687 interix[3-9]*)
17688 hardcode_direct_CXX=no
17689 hardcode_shlibpath_var_CXX=no
17690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17691 export_dynamic_flag_spec_CXX='${wl}-E'
17692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17693 # Instead, shared libraries are loaded at an image base (0x10000000 by
17694 # default) and relocated if they conflict, which is a slow very memory
17695 # consuming and fragmenting process. To avoid this, we pick a random,
17696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17698 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'
17699 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'
17700 ;;
17701 irix5* | irix6*)
17702 case $cc_basename in
17703 CC*)
17704 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017705 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 +000017706
17707 # Archives containing C++ object files must be created using
17708 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17709 # necessary to make sure instantiated templates are included
17710 # in the archive.
17711 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17712 ;;
17713 *)
17714 if test "$GXX" = yes; then
17715 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017716 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 +000017717 else
cristyda16f162011-02-19 23:52:17 +000017718 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 +000017719 fi
17720 fi
17721 link_all_deplibs_CXX=yes
17722 ;;
17723 esac
17724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17725 hardcode_libdir_separator_CXX=:
17726 inherit_rpath_CXX=yes
17727 ;;
17728
cristy0c60a692010-11-04 01:09:47 +000017729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017730 case $cc_basename in
17731 KCC*)
17732 # Kuck and Associates, Inc. (KAI) C++ Compiler
17733
17734 # KCC will only create a shared library if the output file
17735 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17736 # to its proper name (with version) after linking.
17737 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'
17738 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'
17739 # Commands to make compiler produce verbose output that lists
17740 # what "hidden" libraries, object files and flags are used when
17741 # linking a shared library.
17742 #
17743 # There doesn't appear to be a way to prevent this compiler from
17744 # explicitly linking system object files so we need to strip them
17745 # from the output so that they don't get included in the library
17746 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017747 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 +000017748
17749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17751
17752 # Archives containing C++ object files must be created using
17753 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17754 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17755 ;;
17756 icpc* | ecpc* )
17757 # Intel C++
17758 with_gnu_ld=yes
17759 # version 8.0 and above of icpc choke on multiply defined symbols
17760 # if we add $predep_objects and $postdep_objects, however 7.1 and
17761 # earlier do not add the objects themselves.
17762 case `$CC -V 2>&1` in
17763 *"Version 7."*)
17764 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17765 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'
17766 ;;
17767 *) # Version 8.0 or newer
17768 tmp_idyn=
17769 case $host_cpu in
17770 ia64*) tmp_idyn=' -i_dynamic';;
17771 esac
17772 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17773 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'
17774 ;;
17775 esac
17776 archive_cmds_need_lc_CXX=no
17777 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17779 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17780 ;;
17781 pgCC* | pgcpp*)
17782 # Portland Group C++ compiler
17783 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017784 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017785 prelink_cmds_CXX='tpldir=Template.dir~
17786 rm -rf $tpldir~
17787 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017788 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017789 old_archive_cmds_CXX='tpldir=Template.dir~
17790 rm -rf $tpldir~
17791 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017792 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017793 $RANLIB $oldlib'
17794 archive_cmds_CXX='tpldir=Template.dir~
17795 rm -rf $tpldir~
17796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017797 $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 +000017798 archive_expsym_cmds_CXX='tpldir=Template.dir~
17799 rm -rf $tpldir~
17800 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017801 $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 +000017802 ;;
cristy0c60a692010-11-04 01:09:47 +000017803 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17805 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'
17806 ;;
17807 esac
17808
17809 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17810 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017811 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 +000017812 ;;
17813 cxx*)
17814 # Compaq C++
17815 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17816 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'
17817
17818 runpath_var=LD_RUN_PATH
17819 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17820 hardcode_libdir_separator_CXX=:
17821
17822 # Commands to make compiler produce verbose output that lists
17823 # what "hidden" libraries, object files and flags are used when
17824 # linking a shared library.
17825 #
17826 # There doesn't appear to be a way to prevent this compiler from
17827 # explicitly linking system object files so we need to strip them
17828 # from the output so that they don't get included in the library
17829 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017830 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 +000017831 ;;
cristy0c60a692010-11-04 01:09:47 +000017832 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017833 # IBM XL 8.0 on PPC, with GNU ld
17834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17836 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17837 if test "x$supports_anon_versioning" = xyes; then
17838 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17839 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17840 echo "local: *; };" >> $output_objdir/$libname.ver~
17841 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17842 fi
17843 ;;
17844 *)
17845 case `$CC -V 2>&1 | sed 5q` in
17846 *Sun\ C*)
17847 # Sun C++ 5.9
17848 no_undefined_flag_CXX=' -zdefs'
17849 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17850 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'
17851 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017852 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 +000017853 compiler_needs_object_CXX=yes
17854
17855 # Not sure whether something based on
17856 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17857 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017858 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017859
17860 # Archives containing C++ object files must be created using
17861 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17862 # necessary to make sure instantiated templates are included
17863 # in the archive.
17864 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17865 ;;
17866 esac
17867 ;;
17868 esac
17869 ;;
17870
17871 lynxos*)
17872 # FIXME: insert proper C++ library support
17873 ld_shlibs_CXX=no
17874 ;;
17875
17876 m88k*)
17877 # FIXME: insert proper C++ library support
17878 ld_shlibs_CXX=no
17879 ;;
17880
17881 mvs*)
17882 case $cc_basename in
17883 cxx*)
17884 # FIXME: insert proper C++ library support
17885 ld_shlibs_CXX=no
17886 ;;
17887 *)
17888 # FIXME: insert proper C++ library support
17889 ld_shlibs_CXX=no
17890 ;;
17891 esac
17892 ;;
17893
17894 netbsd*)
17895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17896 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17897 wlarc=
17898 hardcode_libdir_flag_spec_CXX='-R$libdir'
17899 hardcode_direct_CXX=yes
17900 hardcode_shlibpath_var_CXX=no
17901 fi
17902 # Workaround some broken pre-1.5 toolchains
17903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17904 ;;
17905
17906 *nto* | *qnx*)
17907 ld_shlibs_CXX=yes
17908 ;;
17909
17910 openbsd2*)
17911 # C++ shared libraries are fairly broken
17912 ld_shlibs_CXX=no
17913 ;;
17914
17915 openbsd*)
17916 if test -f /usr/libexec/ld.so; then
17917 hardcode_direct_CXX=yes
17918 hardcode_shlibpath_var_CXX=no
17919 hardcode_direct_absolute_CXX=yes
17920 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17923 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17924 export_dynamic_flag_spec_CXX='${wl}-E'
17925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17926 fi
cristy0c60a692010-11-04 01:09:47 +000017927 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017928 else
17929 ld_shlibs_CXX=no
17930 fi
17931 ;;
17932
17933 osf3* | osf4* | osf5*)
17934 case $cc_basename in
17935 KCC*)
17936 # Kuck and Associates, Inc. (KAI) C++ Compiler
17937
17938 # KCC will only create a shared library if the output file
17939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17940 # to its proper name (with version) after linking.
17941 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'
17942
17943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17944 hardcode_libdir_separator_CXX=:
17945
17946 # Archives containing C++ object files must be created using
17947 # the KAI C++ compiler.
17948 case $host in
17949 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17950 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17951 esac
17952 ;;
17953 RCC*)
17954 # Rational C++ 2.4.1
17955 # FIXME: insert proper C++ library support
17956 ld_shlibs_CXX=no
17957 ;;
17958 cxx*)
17959 case $host in
17960 osf3*)
17961 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017962 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 +000017963 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17964 ;;
17965 *)
17966 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017967 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 +000017968 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17969 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017970 $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 +000017971 $RM $lib.exp'
17972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17973 ;;
17974 esac
17975
17976 hardcode_libdir_separator_CXX=:
17977
17978 # Commands to make compiler produce verbose output that lists
17979 # what "hidden" libraries, object files and flags are used when
17980 # linking a shared library.
17981 #
17982 # There doesn't appear to be a way to prevent this compiler from
17983 # explicitly linking system object files so we need to strip them
17984 # from the output so that they don't get included in the library
17985 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017986 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 +000017987 ;;
17988 *)
17989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17991 case $host in
17992 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017993 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 +000017994 ;;
17995 *)
cristyda16f162011-02-19 23:52:17 +000017996 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 +000017997 ;;
17998 esac
17999
18000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18001 hardcode_libdir_separator_CXX=:
18002
18003 # Commands to make compiler produce verbose output that lists
18004 # what "hidden" libraries, object files and flags are used when
18005 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018007
18008 else
18009 # FIXME: insert proper C++ library support
18010 ld_shlibs_CXX=no
18011 fi
18012 ;;
18013 esac
18014 ;;
18015
18016 psos*)
18017 # FIXME: insert proper C++ library support
18018 ld_shlibs_CXX=no
18019 ;;
18020
18021 sunos4*)
18022 case $cc_basename in
18023 CC*)
18024 # Sun C++ 4.x
18025 # FIXME: insert proper C++ library support
18026 ld_shlibs_CXX=no
18027 ;;
18028 lcc*)
18029 # Lucid
18030 # FIXME: insert proper C++ library support
18031 ld_shlibs_CXX=no
18032 ;;
18033 *)
18034 # FIXME: insert proper C++ library support
18035 ld_shlibs_CXX=no
18036 ;;
18037 esac
18038 ;;
18039
18040 solaris*)
18041 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018042 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018043 # Sun C++ 4.2, 5.x and Centerline C++
18044 archive_cmds_need_lc_CXX=yes
18045 no_undefined_flag_CXX=' -zdefs'
18046 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18047 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18048 $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'
18049
18050 hardcode_libdir_flag_spec_CXX='-R$libdir'
18051 hardcode_shlibpath_var_CXX=no
18052 case $host_os in
18053 solaris2.[0-5] | solaris2.[0-5].*) ;;
18054 *)
18055 # The compiler driver will combine and reorder linker options,
18056 # but understands `-z linker_flag'.
18057 # Supported since Solaris 2.6 (maybe 2.5.1?)
18058 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18059 ;;
18060 esac
18061 link_all_deplibs_CXX=yes
18062
cristy0c60a692010-11-04 01:09:47 +000018063 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018064
18065 # Archives containing C++ object files must be created using
18066 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18067 # necessary to make sure instantiated templates are included
18068 # in the archive.
18069 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18070 ;;
18071 gcx*)
18072 # Green Hills C++ Compiler
18073 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18074
18075 # The C++ compiler must be used to create the archive.
18076 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18077 ;;
18078 *)
18079 # GNU C++ compiler with Solaris linker
18080 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18081 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18082 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018083 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 +000018084 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 +000018085 $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 +000018086
18087 # Commands to make compiler produce verbose output that lists
18088 # what "hidden" libraries, object files and flags are used when
18089 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018090 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018091 else
18092 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18093 # platform.
18094 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18095 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18096 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18097
18098 # Commands to make compiler produce verbose output that lists
18099 # what "hidden" libraries, object files and flags are used when
18100 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018101 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018102 fi
18103
18104 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18105 case $host_os in
18106 solaris2.[0-5] | solaris2.[0-5].*) ;;
18107 *)
18108 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18109 ;;
18110 esac
18111 fi
18112 ;;
18113 esac
18114 ;;
18115
18116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18117 no_undefined_flag_CXX='${wl}-z,text'
18118 archive_cmds_need_lc_CXX=no
18119 hardcode_shlibpath_var_CXX=no
18120 runpath_var='LD_RUN_PATH'
18121
18122 case $cc_basename in
18123 CC*)
18124 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18125 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 ;;
18127 *)
18128 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18130 ;;
18131 esac
18132 ;;
18133
18134 sysv5* | sco3.2v5* | sco5v6*)
18135 # Note: We can NOT use -z defs as we might desire, because we do not
18136 # link with -lc, and that would cause any symbols used from libc to
18137 # always be unresolved, which means just about no library would
18138 # ever link correctly. If we're not using GNU ld we use -z text
18139 # though, which does catch some bad symbols but isn't as heavy-handed
18140 # as -z defs.
18141 no_undefined_flag_CXX='${wl}-z,text'
18142 allow_undefined_flag_CXX='${wl}-z,nodefs'
18143 archive_cmds_need_lc_CXX=no
18144 hardcode_shlibpath_var_CXX=no
18145 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18146 hardcode_libdir_separator_CXX=':'
18147 link_all_deplibs_CXX=yes
18148 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18149 runpath_var='LD_RUN_PATH'
18150
18151 case $cc_basename in
18152 CC*)
18153 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18154 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 +000018155 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18156 '"$old_archive_cmds_CXX"
18157 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18158 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018159 ;;
18160 *)
18161 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18162 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18163 ;;
18164 esac
18165 ;;
18166
18167 tandem*)
18168 case $cc_basename in
18169 NCC*)
18170 # NonStop-UX NCC 3.20
18171 # FIXME: insert proper C++ library support
18172 ld_shlibs_CXX=no
18173 ;;
18174 *)
18175 # FIXME: insert proper C++ library support
18176 ld_shlibs_CXX=no
18177 ;;
18178 esac
18179 ;;
18180
18181 vxworks*)
18182 # FIXME: insert proper C++ library support
18183 ld_shlibs_CXX=no
18184 ;;
18185
18186 *)
18187 # FIXME: insert proper C++ library support
18188 ld_shlibs_CXX=no
18189 ;;
18190 esac
18191
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18193$as_echo "$ld_shlibs_CXX" >&6; }
18194 test "$ld_shlibs_CXX" = no && can_build_shared=no
18195
18196 GCC_CXX="$GXX"
18197 LD_CXX="$LD"
18198
18199 ## CAVEAT EMPTOR:
18200 ## There is no encapsulation within the following macros, do not change
18201 ## the running order or otherwise move them around unless you know exactly
18202 ## what you are doing...
18203 # Dependencies to place before and after the object being linked:
18204predep_objects_CXX=
18205postdep_objects_CXX=
18206predeps_CXX=
18207postdeps_CXX=
18208compiler_lib_search_path_CXX=
18209
18210cat > conftest.$ac_ext <<_LT_EOF
18211class Foo
18212{
18213public:
18214 Foo (void) { a = 0; }
18215private:
18216 int a;
18217};
18218_LT_EOF
18219
cristyda16f162011-02-19 23:52:17 +000018220
18221_lt_libdeps_save_CFLAGS=$CFLAGS
18222case "$CC $CFLAGS " in #(
18223*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18224*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18225esac
18226
cristy73bd4a52010-10-05 11:24:23 +000018227if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18228 (eval $ac_compile) 2>&5
18229 ac_status=$?
18230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18231 test $ac_status = 0; }; then
18232 # Parse the compiler output and extract the necessary
18233 # objects, libraries and library flags.
18234
18235 # Sentinel used to keep track of whether or not we are before
18236 # the conftest object file.
18237 pre_test_object_deps_done=no
18238
18239 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018240 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018241
18242 -L* | -R* | -l*)
18243 # Some compilers place space between "-{L,R}" and the path.
18244 # Remove the space.
18245 if test $p = "-L" ||
18246 test $p = "-R"; then
18247 prev=$p
18248 continue
cristy73bd4a52010-10-05 11:24:23 +000018249 fi
18250
cristyda16f162011-02-19 23:52:17 +000018251 # Expand the sysroot to ease extracting the directories later.
18252 if test -z "$prev"; then
18253 case $p in
18254 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18255 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18256 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18257 esac
18258 fi
18259 case $p in
18260 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18261 esac
cristy73bd4a52010-10-05 11:24:23 +000018262 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018263 case ${prev} in
18264 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018265 # Internal compiler library paths should come after those
18266 # provided the user. The postdeps already come after the
18267 # user supplied libs so there is no need to process them.
18268 if test -z "$compiler_lib_search_path_CXX"; then
18269 compiler_lib_search_path_CXX="${prev}${p}"
18270 else
18271 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18272 fi
18273 ;;
18274 # The "-l" case would never come before the object being
18275 # linked, so don't bother handling this case.
18276 esac
18277 else
18278 if test -z "$postdeps_CXX"; then
18279 postdeps_CXX="${prev}${p}"
18280 else
18281 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18282 fi
18283 fi
cristyda16f162011-02-19 23:52:17 +000018284 prev=
cristy73bd4a52010-10-05 11:24:23 +000018285 ;;
18286
cristyda16f162011-02-19 23:52:17 +000018287 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018288 *.$objext)
18289 # This assumes that the test object file only shows up
18290 # once in the compiler output.
18291 if test "$p" = "conftest.$objext"; then
18292 pre_test_object_deps_done=yes
18293 continue
18294 fi
18295
18296 if test "$pre_test_object_deps_done" = no; then
18297 if test -z "$predep_objects_CXX"; then
18298 predep_objects_CXX="$p"
18299 else
18300 predep_objects_CXX="$predep_objects_CXX $p"
18301 fi
18302 else
18303 if test -z "$postdep_objects_CXX"; then
18304 postdep_objects_CXX="$p"
18305 else
18306 postdep_objects_CXX="$postdep_objects_CXX $p"
18307 fi
18308 fi
18309 ;;
18310
18311 *) ;; # Ignore the rest.
18312
18313 esac
18314 done
18315
18316 # Clean up.
18317 rm -f a.out a.exe
18318else
18319 echo "libtool.m4: error: problem compiling CXX test program"
18320fi
18321
18322$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018323CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018324
18325# PORTME: override above test on systems where it is broken
18326case $host_os in
18327interix[3-9]*)
18328 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18329 # hack all around it, let's just trust "g++" to DTRT.
18330 predep_objects_CXX=
18331 postdep_objects_CXX=
18332 postdeps_CXX=
18333 ;;
18334
18335linux*)
18336 case `$CC -V 2>&1 | sed 5q` in
18337 *Sun\ C*)
18338 # Sun C++ 5.9
18339
18340 # The more standards-conforming stlport4 library is
18341 # incompatible with the Cstd library. Avoid specifying
18342 # it if it's in CXXFLAGS. Ignore libCrun as
18343 # -library=stlport4 depends on it.
18344 case " $CXX $CXXFLAGS " in
18345 *" -library=stlport4 "*)
18346 solaris_use_stlport4=yes
18347 ;;
18348 esac
18349
18350 if test "$solaris_use_stlport4" != yes; then
18351 postdeps_CXX='-library=Cstd -library=Crun'
18352 fi
18353 ;;
18354 esac
18355 ;;
18356
18357solaris*)
18358 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018359 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018360 # The more standards-conforming stlport4 library is
18361 # incompatible with the Cstd library. Avoid specifying
18362 # it if it's in CXXFLAGS. Ignore libCrun as
18363 # -library=stlport4 depends on it.
18364 case " $CXX $CXXFLAGS " in
18365 *" -library=stlport4 "*)
18366 solaris_use_stlport4=yes
18367 ;;
18368 esac
18369
18370 # Adding this requires a known-good setup of shared libraries for
18371 # Sun compiler versions before 5.6, else PIC objects from an old
18372 # archive will be linked into the output, leading to subtle bugs.
18373 if test "$solaris_use_stlport4" != yes; then
18374 postdeps_CXX='-library=Cstd -library=Crun'
18375 fi
18376 ;;
18377 esac
18378 ;;
18379esac
18380
18381
18382case " $postdeps_CXX " in
18383*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18384esac
18385 compiler_lib_search_dirs_CXX=
18386if test -n "${compiler_lib_search_path_CXX}"; then
18387 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18388fi
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420 lt_prog_compiler_wl_CXX=
18421lt_prog_compiler_pic_CXX=
18422lt_prog_compiler_static_CXX=
18423
cristy73bd4a52010-10-05 11:24:23 +000018424
18425 # C++ specific cases for pic, static, wl, etc.
18426 if test "$GXX" = yes; then
18427 lt_prog_compiler_wl_CXX='-Wl,'
18428 lt_prog_compiler_static_CXX='-static'
18429
18430 case $host_os in
18431 aix*)
18432 # All AIX code is PIC.
18433 if test "$host_cpu" = ia64; then
18434 # AIX 5 now supports IA64 processor
18435 lt_prog_compiler_static_CXX='-Bstatic'
18436 fi
18437 ;;
18438
18439 amigaos*)
18440 case $host_cpu in
18441 powerpc)
18442 # see comment about AmigaOS4 .so support
18443 lt_prog_compiler_pic_CXX='-fPIC'
18444 ;;
18445 m68k)
18446 # FIXME: we need at least 68020 code to build shared libraries, but
18447 # adding the `-m68020' flag to GCC prevents building anything better,
18448 # like `-m68040'.
18449 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18450 ;;
18451 esac
18452 ;;
18453
18454 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18455 # PIC is the default for these OSes.
18456 ;;
18457 mingw* | cygwin* | os2* | pw32* | cegcc*)
18458 # This hack is so that the source file can tell whether it is being
18459 # built for inclusion in a dll (and should export symbols for example).
18460 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18461 # (--disable-auto-import) libraries
18462 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18463 ;;
18464 darwin* | rhapsody*)
18465 # PIC is the default on this platform
18466 # Common symbols not allowed in MH_DYLIB files
18467 lt_prog_compiler_pic_CXX='-fno-common'
18468 ;;
18469 *djgpp*)
18470 # DJGPP does not support shared libraries at all
18471 lt_prog_compiler_pic_CXX=
18472 ;;
cristy0c60a692010-11-04 01:09:47 +000018473 haiku*)
18474 # PIC is the default for Haiku.
18475 # The "-static" flag exists, but is broken.
18476 lt_prog_compiler_static_CXX=
18477 ;;
cristy73bd4a52010-10-05 11:24:23 +000018478 interix[3-9]*)
18479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18480 # Instead, we relocate shared libraries at runtime.
18481 ;;
18482 sysv4*MP*)
18483 if test -d /usr/nec; then
18484 lt_prog_compiler_pic_CXX=-Kconform_pic
18485 fi
18486 ;;
18487 hpux*)
18488 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18489 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18490 # sets the default TLS model and affects inlining.
18491 case $host_cpu in
18492 hppa*64*)
18493 ;;
18494 *)
18495 lt_prog_compiler_pic_CXX='-fPIC'
18496 ;;
18497 esac
18498 ;;
18499 *qnx* | *nto*)
18500 # QNX uses GNU C++, but need to define -shared option too, otherwise
18501 # it will coredump.
18502 lt_prog_compiler_pic_CXX='-fPIC -shared'
18503 ;;
18504 *)
18505 lt_prog_compiler_pic_CXX='-fPIC'
18506 ;;
18507 esac
18508 else
18509 case $host_os in
18510 aix[4-9]*)
18511 # All AIX code is PIC.
18512 if test "$host_cpu" = ia64; then
18513 # AIX 5 now supports IA64 processor
18514 lt_prog_compiler_static_CXX='-Bstatic'
18515 else
18516 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18517 fi
18518 ;;
18519 chorus*)
18520 case $cc_basename in
18521 cxch68*)
18522 # Green Hills C++ Compiler
18523 # _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"
18524 ;;
18525 esac
18526 ;;
cristyda16f162011-02-19 23:52:17 +000018527 mingw* | cygwin* | os2* | pw32* | cegcc*)
18528 # This hack is so that the source file can tell whether it is being
18529 # built for inclusion in a dll (and should export symbols for example).
18530 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18531 ;;
cristy73bd4a52010-10-05 11:24:23 +000018532 dgux*)
18533 case $cc_basename in
18534 ec++*)
18535 lt_prog_compiler_pic_CXX='-KPIC'
18536 ;;
18537 ghcx*)
18538 # Green Hills C++ Compiler
18539 lt_prog_compiler_pic_CXX='-pic'
18540 ;;
18541 *)
18542 ;;
18543 esac
18544 ;;
18545 freebsd* | dragonfly*)
18546 # FreeBSD uses GNU C++
18547 ;;
18548 hpux9* | hpux10* | hpux11*)
18549 case $cc_basename in
18550 CC*)
18551 lt_prog_compiler_wl_CXX='-Wl,'
18552 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18553 if test "$host_cpu" != ia64; then
18554 lt_prog_compiler_pic_CXX='+Z'
18555 fi
18556 ;;
18557 aCC*)
18558 lt_prog_compiler_wl_CXX='-Wl,'
18559 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18560 case $host_cpu in
18561 hppa*64*|ia64*)
18562 # +Z the default
18563 ;;
18564 *)
18565 lt_prog_compiler_pic_CXX='+Z'
18566 ;;
18567 esac
18568 ;;
18569 *)
18570 ;;
18571 esac
18572 ;;
18573 interix*)
18574 # This is c89, which is MS Visual C++ (no shared libs)
18575 # Anyone wants to do a port?
18576 ;;
18577 irix5* | irix6* | nonstopux*)
18578 case $cc_basename in
18579 CC*)
18580 lt_prog_compiler_wl_CXX='-Wl,'
18581 lt_prog_compiler_static_CXX='-non_shared'
18582 # CC pic flag -KPIC is the default.
18583 ;;
18584 *)
18585 ;;
18586 esac
18587 ;;
cristy0c60a692010-11-04 01:09:47 +000018588 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018589 case $cc_basename in
18590 KCC*)
18591 # KAI C++ Compiler
18592 lt_prog_compiler_wl_CXX='--backend -Wl,'
18593 lt_prog_compiler_pic_CXX='-fPIC'
18594 ;;
18595 ecpc* )
18596 # old Intel C++ for x86_64 which still supported -KPIC.
18597 lt_prog_compiler_wl_CXX='-Wl,'
18598 lt_prog_compiler_pic_CXX='-KPIC'
18599 lt_prog_compiler_static_CXX='-static'
18600 ;;
18601 icpc* )
18602 # Intel C++, used to be incompatible with GCC.
18603 # ICC 10 doesn't accept -KPIC any more.
18604 lt_prog_compiler_wl_CXX='-Wl,'
18605 lt_prog_compiler_pic_CXX='-fPIC'
18606 lt_prog_compiler_static_CXX='-static'
18607 ;;
18608 pgCC* | pgcpp*)
18609 # Portland Group C++ compiler
18610 lt_prog_compiler_wl_CXX='-Wl,'
18611 lt_prog_compiler_pic_CXX='-fpic'
18612 lt_prog_compiler_static_CXX='-Bstatic'
18613 ;;
18614 cxx*)
18615 # Compaq C++
18616 # Make sure the PIC flag is empty. It appears that all Alpha
18617 # Linux and Compaq Tru64 Unix objects are PIC.
18618 lt_prog_compiler_pic_CXX=
18619 lt_prog_compiler_static_CXX='-non_shared'
18620 ;;
cristy0c60a692010-11-04 01:09:47 +000018621 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18622 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018623 lt_prog_compiler_wl_CXX='-Wl,'
18624 lt_prog_compiler_pic_CXX='-qpic'
18625 lt_prog_compiler_static_CXX='-qstaticlink'
18626 ;;
18627 *)
18628 case `$CC -V 2>&1 | sed 5q` in
18629 *Sun\ C*)
18630 # Sun C++ 5.9
18631 lt_prog_compiler_pic_CXX='-KPIC'
18632 lt_prog_compiler_static_CXX='-Bstatic'
18633 lt_prog_compiler_wl_CXX='-Qoption ld '
18634 ;;
18635 esac
18636 ;;
18637 esac
18638 ;;
18639 lynxos*)
18640 ;;
18641 m88k*)
18642 ;;
18643 mvs*)
18644 case $cc_basename in
18645 cxx*)
18646 lt_prog_compiler_pic_CXX='-W c,exportall'
18647 ;;
18648 *)
18649 ;;
18650 esac
18651 ;;
18652 netbsd*)
18653 ;;
18654 *qnx* | *nto*)
18655 # QNX uses GNU C++, but need to define -shared option too, otherwise
18656 # it will coredump.
18657 lt_prog_compiler_pic_CXX='-fPIC -shared'
18658 ;;
18659 osf3* | osf4* | osf5*)
18660 case $cc_basename in
18661 KCC*)
18662 lt_prog_compiler_wl_CXX='--backend -Wl,'
18663 ;;
18664 RCC*)
18665 # Rational C++ 2.4.1
18666 lt_prog_compiler_pic_CXX='-pic'
18667 ;;
18668 cxx*)
18669 # Digital/Compaq C++
18670 lt_prog_compiler_wl_CXX='-Wl,'
18671 # Make sure the PIC flag is empty. It appears that all Alpha
18672 # Linux and Compaq Tru64 Unix objects are PIC.
18673 lt_prog_compiler_pic_CXX=
18674 lt_prog_compiler_static_CXX='-non_shared'
18675 ;;
18676 *)
18677 ;;
18678 esac
18679 ;;
18680 psos*)
18681 ;;
18682 solaris*)
18683 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018684 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018685 # Sun C++ 4.2, 5.x and Centerline C++
18686 lt_prog_compiler_pic_CXX='-KPIC'
18687 lt_prog_compiler_static_CXX='-Bstatic'
18688 lt_prog_compiler_wl_CXX='-Qoption ld '
18689 ;;
18690 gcx*)
18691 # Green Hills C++ Compiler
18692 lt_prog_compiler_pic_CXX='-PIC'
18693 ;;
18694 *)
18695 ;;
18696 esac
18697 ;;
18698 sunos4*)
18699 case $cc_basename in
18700 CC*)
18701 # Sun C++ 4.x
18702 lt_prog_compiler_pic_CXX='-pic'
18703 lt_prog_compiler_static_CXX='-Bstatic'
18704 ;;
18705 lcc*)
18706 # Lucid
18707 lt_prog_compiler_pic_CXX='-pic'
18708 ;;
18709 *)
18710 ;;
18711 esac
18712 ;;
18713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18714 case $cc_basename in
18715 CC*)
18716 lt_prog_compiler_wl_CXX='-Wl,'
18717 lt_prog_compiler_pic_CXX='-KPIC'
18718 lt_prog_compiler_static_CXX='-Bstatic'
18719 ;;
18720 esac
18721 ;;
18722 tandem*)
18723 case $cc_basename in
18724 NCC*)
18725 # NonStop-UX NCC 3.20
18726 lt_prog_compiler_pic_CXX='-KPIC'
18727 ;;
18728 *)
18729 ;;
18730 esac
18731 ;;
18732 vxworks*)
18733 ;;
18734 *)
18735 lt_prog_compiler_can_build_shared_CXX=no
18736 ;;
18737 esac
18738 fi
18739
18740case $host_os in
18741 # For platforms which do not support PIC, -DPIC is meaningless:
18742 *djgpp*)
18743 lt_prog_compiler_pic_CXX=
18744 ;;
18745 *)
18746 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18747 ;;
18748esac
cristy73bd4a52010-10-05 11:24:23 +000018749
cristyda16f162011-02-19 23:52:17 +000018750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18751$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18752if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18753 $as_echo_n "(cached) " >&6
18754else
18755 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18756fi
18757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18758$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18759lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018760
18761#
18762# Check to make sure the PIC flag actually works.
18763#
18764if test -n "$lt_prog_compiler_pic_CXX"; then
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18766$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018767if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018768 $as_echo_n "(cached) " >&6
18769else
18770 lt_cv_prog_compiler_pic_works_CXX=no
18771 ac_outfile=conftest.$ac_objext
18772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18773 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18774 # Insert the option either (1) after the last *FLAGS variable, or
18775 # (2) before a word containing "conftest.", or (3) at the end.
18776 # Note that $ac_compile itself does not contain backslashes and begins
18777 # with a dollar sign (not a hyphen), so the echo should work correctly.
18778 # The option is referenced via a variable to avoid confusing sed.
18779 lt_compile=`echo "$ac_compile" | $SED \
18780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18782 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018784 (eval "$lt_compile" 2>conftest.err)
18785 ac_status=$?
18786 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018788 if (exit $ac_status) && test -s "$ac_outfile"; then
18789 # The compiler can only warn and ignore the option if not recognized
18790 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18794 lt_cv_prog_compiler_pic_works_CXX=yes
18795 fi
18796 fi
18797 $RM conftest*
18798
18799fi
18800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18801$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18802
18803if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18804 case $lt_prog_compiler_pic_CXX in
18805 "" | " "*) ;;
18806 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18807 esac
18808else
18809 lt_prog_compiler_pic_CXX=
18810 lt_prog_compiler_can_build_shared_CXX=no
18811fi
18812
18813fi
18814
18815
18816
cristyda16f162011-02-19 23:52:17 +000018817
18818
cristy73bd4a52010-10-05 11:24:23 +000018819#
18820# Check to make sure the static flag actually works.
18821#
18822wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18824$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018825if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018826 $as_echo_n "(cached) " >&6
18827else
18828 lt_cv_prog_compiler_static_works_CXX=no
18829 save_LDFLAGS="$LDFLAGS"
18830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18831 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18833 # The linker can only warn and ignore the option if not recognized
18834 # So say no if there are warnings
18835 if test -s conftest.err; then
18836 # Append any errors to the config.log.
18837 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018838 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18840 if diff conftest.exp conftest.er2 >/dev/null; then
18841 lt_cv_prog_compiler_static_works_CXX=yes
18842 fi
18843 else
18844 lt_cv_prog_compiler_static_works_CXX=yes
18845 fi
18846 fi
18847 $RM -r conftest*
18848 LDFLAGS="$save_LDFLAGS"
18849
18850fi
18851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18852$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18853
18854if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18855 :
18856else
18857 lt_prog_compiler_static_CXX=
18858fi
18859
18860
18861
18862
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18864$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018865if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018866 $as_echo_n "(cached) " >&6
18867else
18868 lt_cv_prog_compiler_c_o_CXX=no
18869 $RM -r conftest 2>/dev/null
18870 mkdir conftest
18871 cd conftest
18872 mkdir out
18873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18874
18875 lt_compiler_flag="-o out/conftest2.$ac_objext"
18876 # Insert the option either (1) after the last *FLAGS variable, or
18877 # (2) before a word containing "conftest.", or (3) at the end.
18878 # Note that $ac_compile itself does not contain backslashes and begins
18879 # with a dollar sign (not a hyphen), so the echo should work correctly.
18880 lt_compile=`echo "$ac_compile" | $SED \
18881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18883 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018885 (eval "$lt_compile" 2>out/conftest.err)
18886 ac_status=$?
18887 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18890 then
18891 # The compiler can only warn and ignore the option if not recognized
18892 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18896 lt_cv_prog_compiler_c_o_CXX=yes
18897 fi
18898 fi
18899 chmod u+w . 2>&5
18900 $RM conftest*
18901 # SGI C++ compiler will create directory out/ii_files/ for
18902 # template instantiation
18903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18904 $RM out/* && rmdir out
18905 cd ..
18906 $RM -r conftest
18907 $RM conftest*
18908
18909fi
18910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18911$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18912
18913
18914
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18916$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018917if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018918 $as_echo_n "(cached) " >&6
18919else
18920 lt_cv_prog_compiler_c_o_CXX=no
18921 $RM -r conftest 2>/dev/null
18922 mkdir conftest
18923 cd conftest
18924 mkdir out
18925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18926
18927 lt_compiler_flag="-o out/conftest2.$ac_objext"
18928 # Insert the option either (1) after the last *FLAGS variable, or
18929 # (2) before a word containing "conftest.", or (3) at the end.
18930 # Note that $ac_compile itself does not contain backslashes and begins
18931 # with a dollar sign (not a hyphen), so the echo should work correctly.
18932 lt_compile=`echo "$ac_compile" | $SED \
18933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18935 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018937 (eval "$lt_compile" 2>out/conftest.err)
18938 ac_status=$?
18939 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18942 then
18943 # The compiler can only warn and ignore the option if not recognized
18944 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18948 lt_cv_prog_compiler_c_o_CXX=yes
18949 fi
18950 fi
18951 chmod u+w . 2>&5
18952 $RM conftest*
18953 # SGI C++ compiler will create directory out/ii_files/ for
18954 # template instantiation
18955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18956 $RM out/* && rmdir out
18957 cd ..
18958 $RM -r conftest
18959 $RM conftest*
18960
18961fi
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18963$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18964
18965
18966
18967
18968hard_links="nottested"
18969if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18970 # do not overwrite the value of need_locks provided by the user
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18972$as_echo_n "checking if we can lock with hard links... " >&6; }
18973 hard_links=yes
18974 $RM conftest*
18975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18976 touch conftest.a
18977 ln conftest.a conftest.b 2>&5 || hard_links=no
18978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18980$as_echo "$hard_links" >&6; }
18981 if test "$hard_links" = no; then
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18983$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18984 need_locks=warn
18985 fi
18986else
18987 need_locks=no
18988fi
18989
18990
18991
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18993$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18994
18995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018996 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018997 case $host_os in
18998 aix[4-9]*)
18999 # If we're using GNU nm, then we don't want the "-C" option.
19000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019001 # Also, AIX nm treats weak defined symbols like other global defined
19002 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019003 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019004 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 +000019005 else
19006 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'
19007 fi
19008 ;;
19009 pw32*)
19010 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019011 ;;
cristy73bd4a52010-10-05 11:24:23 +000019012 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019013 case $cc_basename in
19014 cl*) ;;
19015 *)
19016 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'
19017 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19018 ;;
19019 esac
19020 ;;
cristy73bd4a52010-10-05 11:24:23 +000019021 *)
19022 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019023 ;;
cristy73bd4a52010-10-05 11:24:23 +000019024 esac
cristy73bd4a52010-10-05 11:24:23 +000019025
19026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19027$as_echo "$ld_shlibs_CXX" >&6; }
19028test "$ld_shlibs_CXX" = no && can_build_shared=no
19029
19030with_gnu_ld_CXX=$with_gnu_ld
19031
19032
19033
19034
19035
19036
19037#
19038# Do we need to explicitly link libc?
19039#
19040case "x$archive_cmds_need_lc_CXX" in
19041x|xyes)
19042 # Assume -lc should be added
19043 archive_cmds_need_lc_CXX=yes
19044
19045 if test "$enable_shared" = yes && test "$GCC" = yes; then
19046 case $archive_cmds_CXX in
19047 *'~'*)
19048 # FIXME: we may have to deal with multi-command sequences.
19049 ;;
19050 '$CC '*)
19051 # Test whether the compiler implicitly links with -lc since on some
19052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19053 # to ld, don't add -lc before -lgcc.
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19055$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019056if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019057 $as_echo_n "(cached) " >&6
19058else
19059 $RM conftest*
19060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019061
cristy0c60a692010-11-04 01:09:47 +000019062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019063 (eval $ac_compile) 2>&5
19064 ac_status=$?
19065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19066 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019067 soname=conftest
19068 lib=conftest
19069 libobjs=conftest.$ac_objext
19070 deplibs=
19071 wl=$lt_prog_compiler_wl_CXX
19072 pic_flag=$lt_prog_compiler_pic_CXX
19073 compiler_flags=-v
19074 linker_flags=-v
19075 verstring=
19076 output_objdir=.
19077 libname=conftest
19078 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19079 allow_undefined_flag_CXX=
19080 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 +000019081 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19082 ac_status=$?
19083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19084 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019085 then
19086 lt_cv_archive_cmds_need_lc_CXX=no
19087 else
19088 lt_cv_archive_cmds_need_lc_CXX=yes
19089 fi
19090 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19091 else
19092 cat conftest.err 1>&5
19093 fi
19094 $RM conftest*
19095
19096fi
19097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19098$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19099 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019100 ;;
19101 esac
19102 fi
19103 ;;
19104esac
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19170$as_echo_n "checking dynamic linker characteristics... " >&6; }
19171
19172library_names_spec=
19173libname_spec='lib$name'
19174soname_spec=
19175shrext_cmds=".so"
19176postinstall_cmds=
19177postuninstall_cmds=
19178finish_cmds=
19179finish_eval=
19180shlibpath_var=
19181shlibpath_overrides_runpath=unknown
19182version_type=none
19183dynamic_linker="$host_os ld.so"
19184sys_lib_dlsearch_path_spec="/lib /usr/lib"
19185need_lib_prefix=unknown
19186hardcode_into_libs=no
19187
19188# when you set need_version to no, make sure it does not cause -set_version
19189# flags to be left without arguments
19190need_version=unknown
19191
19192case $host_os in
19193aix3*)
19194 version_type=linux
19195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19196 shlibpath_var=LIBPATH
19197
19198 # AIX 3 has no versioning support, so we append a major version to the name.
19199 soname_spec='${libname}${release}${shared_ext}$major'
19200 ;;
19201
19202aix[4-9]*)
19203 version_type=linux
19204 need_lib_prefix=no
19205 need_version=no
19206 hardcode_into_libs=yes
19207 if test "$host_cpu" = ia64; then
19208 # AIX 5 supports IA64
19209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19210 shlibpath_var=LD_LIBRARY_PATH
19211 else
19212 # With GCC up to 2.95.x, collect2 would create an import file
19213 # for dependence libraries. The import file would start with
19214 # the line `#! .'. This would cause the generated library to
19215 # depend on `.', always an invalid library. This was fixed in
19216 # development snapshots of GCC prior to 3.0.
19217 case $host_os in
19218 aix4 | aix4.[01] | aix4.[01].*)
19219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19220 echo ' yes '
19221 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19222 :
19223 else
19224 can_build_shared=no
19225 fi
19226 ;;
19227 esac
19228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19229 # soname into executable. Probably we can add versioning support to
19230 # collect2, so additional links can be useful in future.
19231 if test "$aix_use_runtimelinking" = yes; then
19232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19233 # instead of lib<name>.a to let people know that these are not
19234 # typical AIX shared libraries.
19235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19236 else
19237 # We preserve .a as extension for shared libraries through AIX4.2
19238 # and later when we are not doing run time linking.
19239 library_names_spec='${libname}${release}.a $libname.a'
19240 soname_spec='${libname}${release}${shared_ext}$major'
19241 fi
19242 shlibpath_var=LIBPATH
19243 fi
19244 ;;
19245
19246amigaos*)
19247 case $host_cpu in
19248 powerpc)
19249 # Since July 2007 AmigaOS4 officially supports .so libraries.
19250 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19252 ;;
19253 m68k)
19254 library_names_spec='$libname.ixlibrary $libname.a'
19255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019256 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 +000019257 ;;
19258 esac
19259 ;;
19260
19261beos*)
19262 library_names_spec='${libname}${shared_ext}'
19263 dynamic_linker="$host_os ld.so"
19264 shlibpath_var=LIBRARY_PATH
19265 ;;
19266
19267bsdi[45]*)
19268 version_type=linux
19269 need_version=no
19270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19271 soname_spec='${libname}${release}${shared_ext}$major'
19272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19273 shlibpath_var=LD_LIBRARY_PATH
19274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19276 # the default ld.so.conf also contains /usr/contrib/lib and
19277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19278 # libtool to hard-code these into programs
19279 ;;
19280
19281cygwin* | mingw* | pw32* | cegcc*)
19282 version_type=windows
19283 shrext_cmds=".dll"
19284 need_version=no
19285 need_lib_prefix=no
19286
cristyda16f162011-02-19 23:52:17 +000019287 case $GCC,$cc_basename in
19288 yes,*)
19289 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019290 library_names_spec='$libname.dll.a'
19291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19292 postinstall_cmds='base_file=`basename \${file}`~
19293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19294 dldir=$destdir/`dirname \$dlpath`~
19295 test -d \$dldir || mkdir -p \$dldir~
19296 $install_prog $dir/$dlname \$dldir/$dlname~
19297 chmod a+x \$dldir/$dlname~
19298 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19299 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19300 fi'
19301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19302 dlpath=$dir/\$dldll~
19303 $RM \$dlpath'
19304 shlibpath_overrides_runpath=yes
19305
19306 case $host_os in
19307 cygwin*)
19308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019310
cristy73bd4a52010-10-05 11:24:23 +000019311 ;;
19312 mingw* | cegcc*)
19313 # MinGW DLLs use traditional 'lib' prefix
19314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019315 ;;
19316 pw32*)
19317 # pw32 DLLs use 'pw' prefix rather than 'lib'
19318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19319 ;;
19320 esac
cristyda16f162011-02-19 23:52:17 +000019321 dynamic_linker='Win32 ld.exe'
19322 ;;
19323
19324 *,cl*)
19325 # Native MSVC
19326 libname_spec='$name'
19327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19328 library_names_spec='${libname}.dll.lib'
19329
19330 case $build_os in
19331 mingw*)
19332 sys_lib_search_path_spec=
19333 lt_save_ifs=$IFS
19334 IFS=';'
19335 for lt_path in $LIB
19336 do
19337 IFS=$lt_save_ifs
19338 # Let DOS variable expansion print the short 8.3 style file name.
19339 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19340 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19341 done
19342 IFS=$lt_save_ifs
19343 # Convert to MSYS style.
19344 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19345 ;;
19346 cygwin*)
19347 # Convert to unix form, then to dos form, then back to unix form
19348 # but this time dos style (no spaces!) so that the unix form looks
19349 # like /cygdrive/c/PROGRA~1:/cygdr...
19350 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19351 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19352 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19353 ;;
19354 *)
19355 sys_lib_search_path_spec="$LIB"
19356 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19357 # It is most probably a Windows format PATH.
19358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19359 else
19360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19361 fi
19362 # FIXME: find the short name or the path components, as spaces are
19363 # common. (e.g. "Program Files" -> "PROGRA~1")
19364 ;;
19365 esac
19366
19367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19368 postinstall_cmds='base_file=`basename \${file}`~
19369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19370 dldir=$destdir/`dirname \$dlpath`~
19371 test -d \$dldir || mkdir -p \$dldir~
19372 $install_prog $dir/$dlname \$dldir/$dlname'
19373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19374 dlpath=$dir/\$dldll~
19375 $RM \$dlpath'
19376 shlibpath_overrides_runpath=yes
19377 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019378 ;;
19379
19380 *)
cristyda16f162011-02-19 23:52:17 +000019381 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019382 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019383 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019384 ;;
19385 esac
cristy73bd4a52010-10-05 11:24:23 +000019386 # FIXME: first we should search . and the directory the executable is in
19387 shlibpath_var=PATH
19388 ;;
19389
19390darwin* | rhapsody*)
19391 dynamic_linker="$host_os dyld"
19392 version_type=darwin
19393 need_lib_prefix=no
19394 need_version=no
19395 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19396 soname_spec='${libname}${release}${major}$shared_ext'
19397 shlibpath_overrides_runpath=yes
19398 shlibpath_var=DYLD_LIBRARY_PATH
19399 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19400
19401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19402 ;;
19403
19404dgux*)
19405 version_type=linux
19406 need_lib_prefix=no
19407 need_version=no
19408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19409 soname_spec='${libname}${release}${shared_ext}$major'
19410 shlibpath_var=LD_LIBRARY_PATH
19411 ;;
19412
19413freebsd1*)
19414 dynamic_linker=no
19415 ;;
19416
19417freebsd* | dragonfly*)
19418 # DragonFly does not have aout. When/if they implement a new
19419 # versioning mechanism, adjust this.
19420 if test -x /usr/bin/objformat; then
19421 objformat=`/usr/bin/objformat`
19422 else
19423 case $host_os in
19424 freebsd[123]*) objformat=aout ;;
19425 *) objformat=elf ;;
19426 esac
19427 fi
19428 version_type=freebsd-$objformat
19429 case $version_type in
19430 freebsd-elf*)
19431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19432 need_version=no
19433 need_lib_prefix=no
19434 ;;
19435 freebsd-*)
19436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19437 need_version=yes
19438 ;;
19439 esac
19440 shlibpath_var=LD_LIBRARY_PATH
19441 case $host_os in
19442 freebsd2*)
19443 shlibpath_overrides_runpath=yes
19444 ;;
19445 freebsd3.[01]* | freebsdelf3.[01]*)
19446 shlibpath_overrides_runpath=yes
19447 hardcode_into_libs=yes
19448 ;;
19449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19451 shlibpath_overrides_runpath=no
19452 hardcode_into_libs=yes
19453 ;;
19454 *) # from 4.6 on, and DragonFly
19455 shlibpath_overrides_runpath=yes
19456 hardcode_into_libs=yes
19457 ;;
19458 esac
19459 ;;
19460
19461gnu*)
19462 version_type=linux
19463 need_lib_prefix=no
19464 need_version=no
19465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19466 soname_spec='${libname}${release}${shared_ext}$major'
19467 shlibpath_var=LD_LIBRARY_PATH
19468 hardcode_into_libs=yes
19469 ;;
19470
cristy0c60a692010-11-04 01:09:47 +000019471haiku*)
19472 version_type=linux
19473 need_lib_prefix=no
19474 need_version=no
19475 dynamic_linker="$host_os runtime_loader"
19476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19477 soname_spec='${libname}${release}${shared_ext}$major'
19478 shlibpath_var=LIBRARY_PATH
19479 shlibpath_overrides_runpath=yes
19480 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19481 hardcode_into_libs=yes
19482 ;;
19483
cristy73bd4a52010-10-05 11:24:23 +000019484hpux9* | hpux10* | hpux11*)
19485 # Give a soname corresponding to the major version so that dld.sl refuses to
19486 # link against other versions.
19487 version_type=sunos
19488 need_lib_prefix=no
19489 need_version=no
19490 case $host_cpu in
19491 ia64*)
19492 shrext_cmds='.so'
19493 hardcode_into_libs=yes
19494 dynamic_linker="$host_os dld.so"
19495 shlibpath_var=LD_LIBRARY_PATH
19496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19498 soname_spec='${libname}${release}${shared_ext}$major'
19499 if test "X$HPUX_IA64_MODE" = X32; then
19500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19501 else
19502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19503 fi
19504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19505 ;;
19506 hppa*64*)
19507 shrext_cmds='.sl'
19508 hardcode_into_libs=yes
19509 dynamic_linker="$host_os dld.sl"
19510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19513 soname_spec='${libname}${release}${shared_ext}$major'
19514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19516 ;;
19517 *)
19518 shrext_cmds='.sl'
19519 dynamic_linker="$host_os dld.sl"
19520 shlibpath_var=SHLIB_PATH
19521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 ;;
19525 esac
cristy0c60a692010-11-04 01:09:47 +000019526 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019527 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019528 # or fails outright, so override atomically:
19529 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019530 ;;
19531
19532interix[3-9]*)
19533 version_type=linux
19534 need_lib_prefix=no
19535 need_version=no
19536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19537 soname_spec='${libname}${release}${shared_ext}$major'
19538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19539 shlibpath_var=LD_LIBRARY_PATH
19540 shlibpath_overrides_runpath=no
19541 hardcode_into_libs=yes
19542 ;;
19543
19544irix5* | irix6* | nonstopux*)
19545 case $host_os in
19546 nonstopux*) version_type=nonstopux ;;
19547 *)
19548 if test "$lt_cv_prog_gnu_ld" = yes; then
19549 version_type=linux
19550 else
19551 version_type=irix
19552 fi ;;
19553 esac
19554 need_lib_prefix=no
19555 need_version=no
19556 soname_spec='${libname}${release}${shared_ext}$major'
19557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19558 case $host_os in
19559 irix5* | nonstopux*)
19560 libsuff= shlibsuff=
19561 ;;
19562 *)
19563 case $LD in # libtool.m4 will add one of these switches to LD
19564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19565 libsuff= shlibsuff= libmagic=32-bit;;
19566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19567 libsuff=32 shlibsuff=N32 libmagic=N32;;
19568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19570 *) libsuff= shlibsuff= libmagic=never-match;;
19571 esac
19572 ;;
19573 esac
19574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19575 shlibpath_overrides_runpath=no
19576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19578 hardcode_into_libs=yes
19579 ;;
19580
19581# No shared lib support for Linux oldld, aout, or coff.
19582linux*oldld* | linux*aout* | linux*coff*)
19583 dynamic_linker=no
19584 ;;
19585
19586# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019587linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019588 version_type=linux
19589 need_lib_prefix=no
19590 need_version=no
19591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19592 soname_spec='${libname}${release}${shared_ext}$major'
19593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19594 shlibpath_var=LD_LIBRARY_PATH
19595 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019596
cristy73bd4a52010-10-05 11:24:23 +000019597 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019598 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019599 $as_echo_n "(cached) " >&6
19600else
19601 lt_cv_shlibpath_overrides_runpath=no
19602 save_LDFLAGS=$LDFLAGS
19603 save_libdir=$libdir
19604 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19605 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019607/* end confdefs.h. */
19608
19609int
19610main ()
19611{
19612
19613 ;
19614 return 0;
19615}
19616_ACEOF
19617if ac_fn_cxx_try_link "$LINENO"; then :
19618 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019619 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019620fi
19621fi
19622rm -f core conftest.err conftest.$ac_objext \
19623 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019624 LDFLAGS=$save_LDFLAGS
19625 libdir=$save_libdir
19626
19627fi
19628
19629 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019630
19631 # This implies no fast_install, which is unacceptable.
19632 # Some rework will be needed to allow for fast_install
19633 # before this can be enabled.
19634 hardcode_into_libs=yes
19635
19636 # Add ABI-specific directories to the system library path.
19637 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19638
19639 # Append ld.so.conf contents to the search path
19640 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019641 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 +000019642 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019643
cristy73bd4a52010-10-05 11:24:23 +000019644 fi
19645
19646 # We used to test for /lib/ld.so.1 and disable shared libraries on
19647 # powerpc, because MkLinux only supported shared libraries with the
19648 # GNU dynamic linker. Since this was broken with cross compilers,
19649 # most powerpc-linux boxes support dynamic linking these days and
19650 # people can always --disable-shared, the test was removed, and we
19651 # assume the GNU/Linux dynamic linker is in use.
19652 dynamic_linker='GNU/Linux ld.so'
19653 ;;
19654
19655netbsd*)
19656 version_type=sunos
19657 need_lib_prefix=no
19658 need_version=no
19659 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19662 dynamic_linker='NetBSD (a.out) ld.so'
19663 else
19664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19665 soname_spec='${libname}${release}${shared_ext}$major'
19666 dynamic_linker='NetBSD ld.elf_so'
19667 fi
19668 shlibpath_var=LD_LIBRARY_PATH
19669 shlibpath_overrides_runpath=yes
19670 hardcode_into_libs=yes
19671 ;;
19672
19673newsos6)
19674 version_type=linux
19675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19676 shlibpath_var=LD_LIBRARY_PATH
19677 shlibpath_overrides_runpath=yes
19678 ;;
19679
19680*nto* | *qnx*)
19681 version_type=qnx
19682 need_lib_prefix=no
19683 need_version=no
19684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19685 soname_spec='${libname}${release}${shared_ext}$major'
19686 shlibpath_var=LD_LIBRARY_PATH
19687 shlibpath_overrides_runpath=no
19688 hardcode_into_libs=yes
19689 dynamic_linker='ldqnx.so'
19690 ;;
19691
19692openbsd*)
19693 version_type=sunos
19694 sys_lib_dlsearch_path_spec="/usr/lib"
19695 need_lib_prefix=no
19696 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19697 case $host_os in
19698 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19699 *) need_version=no ;;
19700 esac
19701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19703 shlibpath_var=LD_LIBRARY_PATH
19704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19705 case $host_os in
19706 openbsd2.[89] | openbsd2.[89].*)
19707 shlibpath_overrides_runpath=no
19708 ;;
19709 *)
19710 shlibpath_overrides_runpath=yes
19711 ;;
19712 esac
19713 else
19714 shlibpath_overrides_runpath=yes
19715 fi
19716 ;;
19717
19718os2*)
19719 libname_spec='$name'
19720 shrext_cmds=".dll"
19721 need_lib_prefix=no
19722 library_names_spec='$libname${shared_ext} $libname.a'
19723 dynamic_linker='OS/2 ld.exe'
19724 shlibpath_var=LIBPATH
19725 ;;
19726
19727osf3* | osf4* | osf5*)
19728 version_type=osf
19729 need_lib_prefix=no
19730 need_version=no
19731 soname_spec='${libname}${release}${shared_ext}$major'
19732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19733 shlibpath_var=LD_LIBRARY_PATH
19734 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19735 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19736 ;;
19737
19738rdos*)
19739 dynamic_linker=no
19740 ;;
19741
19742solaris*)
19743 version_type=linux
19744 need_lib_prefix=no
19745 need_version=no
19746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19747 soname_spec='${libname}${release}${shared_ext}$major'
19748 shlibpath_var=LD_LIBRARY_PATH
19749 shlibpath_overrides_runpath=yes
19750 hardcode_into_libs=yes
19751 # ldd complains unless libraries are executable
19752 postinstall_cmds='chmod +x $lib'
19753 ;;
19754
19755sunos4*)
19756 version_type=sunos
19757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19758 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19759 shlibpath_var=LD_LIBRARY_PATH
19760 shlibpath_overrides_runpath=yes
19761 if test "$with_gnu_ld" = yes; then
19762 need_lib_prefix=no
19763 fi
19764 need_version=yes
19765 ;;
19766
19767sysv4 | sysv4.3*)
19768 version_type=linux
19769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19770 soname_spec='${libname}${release}${shared_ext}$major'
19771 shlibpath_var=LD_LIBRARY_PATH
19772 case $host_vendor in
19773 sni)
19774 shlibpath_overrides_runpath=no
19775 need_lib_prefix=no
19776 runpath_var=LD_RUN_PATH
19777 ;;
19778 siemens)
19779 need_lib_prefix=no
19780 ;;
19781 motorola)
19782 need_lib_prefix=no
19783 need_version=no
19784 shlibpath_overrides_runpath=no
19785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19786 ;;
19787 esac
19788 ;;
19789
19790sysv4*MP*)
19791 if test -d /usr/nec ;then
19792 version_type=linux
19793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19794 soname_spec='$libname${shared_ext}.$major'
19795 shlibpath_var=LD_LIBRARY_PATH
19796 fi
19797 ;;
19798
19799sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19800 version_type=freebsd-elf
19801 need_lib_prefix=no
19802 need_version=no
19803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19804 soname_spec='${libname}${release}${shared_ext}$major'
19805 shlibpath_var=LD_LIBRARY_PATH
19806 shlibpath_overrides_runpath=yes
19807 hardcode_into_libs=yes
19808 if test "$with_gnu_ld" = yes; then
19809 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19810 else
19811 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19812 case $host_os in
19813 sco3.2v5*)
19814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19815 ;;
19816 esac
19817 fi
19818 sys_lib_dlsearch_path_spec='/usr/lib'
19819 ;;
19820
19821tpf*)
19822 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19823 version_type=linux
19824 need_lib_prefix=no
19825 need_version=no
19826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19827 shlibpath_var=LD_LIBRARY_PATH
19828 shlibpath_overrides_runpath=no
19829 hardcode_into_libs=yes
19830 ;;
19831
19832uts4*)
19833 version_type=linux
19834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19835 soname_spec='${libname}${release}${shared_ext}$major'
19836 shlibpath_var=LD_LIBRARY_PATH
19837 ;;
19838
19839*)
19840 dynamic_linker=no
19841 ;;
19842esac
19843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19844$as_echo "$dynamic_linker" >&6; }
19845test "$dynamic_linker" = no && can_build_shared=no
19846
19847variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19848if test "$GCC" = yes; then
19849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19850fi
19851
19852if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19853 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19854fi
19855if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19856 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19857fi
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
cristy0c60a692010-11-04 01:09:47 +000019894
19895
cristy73bd4a52010-10-05 11:24:23 +000019896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19897$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19898hardcode_action_CXX=
19899if test -n "$hardcode_libdir_flag_spec_CXX" ||
19900 test -n "$runpath_var_CXX" ||
19901 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19902
19903 # We can hardcode non-existent directories.
19904 if test "$hardcode_direct_CXX" != no &&
19905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19906 # have to relink, otherwise we might link with an installed library
19907 # when we should be linking with a yet-to-be-installed one
19908 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19909 test "$hardcode_minus_L_CXX" != no; then
19910 # Linking always hardcodes the temporary library directory.
19911 hardcode_action_CXX=relink
19912 else
19913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19914 hardcode_action_CXX=immediate
19915 fi
19916else
19917 # We cannot hardcode anything, or else we can only hardcode existing
19918 # directories.
19919 hardcode_action_CXX=unsupported
19920fi
19921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19922$as_echo "$hardcode_action_CXX" >&6; }
19923
19924if test "$hardcode_action_CXX" = relink ||
19925 test "$inherit_rpath_CXX" = yes; then
19926 # Fast installation is not supported
19927 enable_fast_install=no
19928elif test "$shlibpath_overrides_runpath" = yes ||
19929 test "$enable_shared" = no; then
19930 # Fast installation is not necessary
19931 enable_fast_install=needless
19932fi
19933
19934
19935
19936
19937
19938
19939
19940 fi # test -n "$compiler"
19941
19942 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019943 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019944 LDCXX=$LD
19945 LD=$lt_save_LD
19946 GCC=$lt_save_GCC
19947 with_gnu_ld=$lt_save_with_gnu_ld
19948 lt_cv_path_LDCXX=$lt_cv_path_LD
19949 lt_cv_path_LD=$lt_save_path_LD
19950 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19951 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19952fi # test "$_lt_caught_CXX_error" != yes
19953
19954ac_ext=c
19955ac_cpp='$CPP $CPPFLAGS'
19956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958ac_compiler_gnu=$ac_cv_c_compiler_gnu
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972 ac_config_commands="$ac_config_commands libtool"
19973
19974
19975
19976
19977# Only expand once:
19978
19979
19980
cristy3ed852e2009-09-05 21:47:34 +000019981
19982
19983# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019984
19985
19986
19987
19988
19989
19990
cristy73bd4a52010-10-05 11:24:23 +000019991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19992$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019993if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019994 $as_echo_n "(cached) " >&6
19995else
19996
19997module=yes
19998eval libltdl_cv_shlibext=$shrext_cmds
19999
20000fi
20001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20002$as_echo "$libltdl_cv_shlibext" >&6; }
20003if test -n "$libltdl_cv_shlibext"; then
20004
20005cat >>confdefs.h <<_ACEOF
20006#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20007_ACEOF
20008
20009fi
20010
20011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20012$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020013if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020014 $as_echo_n "(cached) " >&6
20015else
20016 lt_cv_module_path_var="$shlibpath_var"
20017fi
20018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20019$as_echo "$lt_cv_module_path_var" >&6; }
20020if test -n "$lt_cv_module_path_var"; then
20021
20022cat >>confdefs.h <<_ACEOF
20023#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20024_ACEOF
20025
20026fi
20027
20028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20029$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020030if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020031 $as_echo_n "(cached) " >&6
20032else
20033 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20034fi
20035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20036$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20037if test -n "$lt_cv_sys_dlsearch_path"; then
20038 sys_dlsearch_path=
20039 for dir in $lt_cv_sys_dlsearch_path; do
20040 if test -z "$sys_dlsearch_path"; then
20041 sys_dlsearch_path="$dir"
20042 else
20043 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20044 fi
20045 done
20046
20047cat >>confdefs.h <<_ACEOF
20048#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20049_ACEOF
20050
20051fi
20052
20053
20054LT_DLLOADERS=
20055
20056
20057ac_ext=c
20058ac_cpp='$CPP $CPPFLAGS'
20059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061ac_compiler_gnu=$ac_cv_c_compiler_gnu
20062
20063
20064LIBADD_DLOPEN=
20065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20066$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020067if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020068 $as_echo_n "(cached) " >&6
20069else
20070 ac_func_search_save_LIBS=$LIBS
20071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072/* end confdefs.h. */
20073
20074/* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20077#ifdef __cplusplus
20078extern "C"
20079#endif
20080char dlopen ();
20081int
20082main ()
20083{
20084return dlopen ();
20085 ;
20086 return 0;
20087}
20088_ACEOF
20089for ac_lib in '' dl; do
20090 if test -z "$ac_lib"; then
20091 ac_res="none required"
20092 else
20093 ac_res=-l$ac_lib
20094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20095 fi
20096 if ac_fn_c_try_link "$LINENO"; then :
20097 ac_cv_search_dlopen=$ac_res
20098fi
20099rm -f core conftest.err conftest.$ac_objext \
20100 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020101 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020102 break
20103fi
20104done
cristyda16f162011-02-19 23:52:17 +000020105if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020106
20107else
20108 ac_cv_search_dlopen=no
20109fi
20110rm conftest.$ac_ext
20111LIBS=$ac_func_search_save_LIBS
20112fi
20113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20114$as_echo "$ac_cv_search_dlopen" >&6; }
20115ac_res=$ac_cv_search_dlopen
20116if test "$ac_res" != no; then :
20117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20118
20119$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20120
20121 if test "$ac_cv_search_dlopen" != "none required" ; then
20122 LIBADD_DLOPEN="-ldl"
20123 fi
20124 libltdl_cv_lib_dl_dlopen="yes"
20125 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20126else
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128/* end confdefs.h. */
20129#if HAVE_DLFCN_H
20130# include <dlfcn.h>
20131#endif
20132
20133int
20134main ()
20135{
20136dlopen(0, 0);
20137 ;
20138 return 0;
20139}
20140_ACEOF
20141if ac_fn_c_try_link "$LINENO"; then :
20142
20143$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20144
20145 libltdl_cv_func_dlopen="yes"
20146 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20147else
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20149$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020150if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020151 $as_echo_n "(cached) " >&6
20152else
20153 ac_check_lib_save_LIBS=$LIBS
20154LIBS="-lsvld $LIBS"
20155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20156/* end confdefs.h. */
20157
20158/* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20161#ifdef __cplusplus
20162extern "C"
20163#endif
20164char dlopen ();
20165int
20166main ()
20167{
20168return dlopen ();
20169 ;
20170 return 0;
20171}
20172_ACEOF
20173if ac_fn_c_try_link "$LINENO"; then :
20174 ac_cv_lib_svld_dlopen=yes
20175else
20176 ac_cv_lib_svld_dlopen=no
20177fi
20178rm -f core conftest.err conftest.$ac_objext \
20179 conftest$ac_exeext conftest.$ac_ext
20180LIBS=$ac_check_lib_save_LIBS
20181fi
20182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20183$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020184if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020185
20186$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20187
20188 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20189 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20190fi
20191
20192fi
20193rm -f core conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
20195fi
20196
20197if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20198then
20199 lt_save_LIBS="$LIBS"
20200 LIBS="$LIBS $LIBADD_DLOPEN"
20201 for ac_func in dlerror
20202do :
20203 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020204if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020205 cat >>confdefs.h <<_ACEOF
20206#define HAVE_DLERROR 1
20207_ACEOF
20208
20209fi
20210done
20211
20212 LIBS="$lt_save_LIBS"
20213fi
20214
20215
20216LIBADD_SHL_LOAD=
20217ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020218if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020219
20220$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20221
20222 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20223else
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20225$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020226if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020227 $as_echo_n "(cached) " >&6
20228else
20229 ac_check_lib_save_LIBS=$LIBS
20230LIBS="-ldld $LIBS"
20231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232/* end confdefs.h. */
20233
20234/* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20237#ifdef __cplusplus
20238extern "C"
20239#endif
20240char shl_load ();
20241int
20242main ()
20243{
20244return shl_load ();
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249if ac_fn_c_try_link "$LINENO"; then :
20250 ac_cv_lib_dld_shl_load=yes
20251else
20252 ac_cv_lib_dld_shl_load=no
20253fi
20254rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256LIBS=$ac_check_lib_save_LIBS
20257fi
20258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20259$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020260if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020261
20262$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20263
20264 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20265 LIBADD_SHL_LOAD="-ldld"
20266fi
20267
20268fi
20269
20270
20271
20272case $host_os in
20273darwin[1567].*)
20274# We only want this for pre-Mac OS X 10.4.
20275 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020276if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020277
20278$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20279
20280 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20281fi
20282
20283 ;;
20284beos*)
20285 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20286 ;;
20287cygwin* | mingw* | os2* | pw32*)
20288 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20289"
cristyda16f162011-02-19 23:52:17 +000020290if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020291 ac_have_decl=1
20292else
20293 ac_have_decl=0
20294fi
20295
20296cat >>confdefs.h <<_ACEOF
20297#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20298_ACEOF
20299
20300 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20301 ;;
20302esac
20303
20304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20305$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020306if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020307 $as_echo_n "(cached) " >&6
20308else
20309 ac_check_lib_save_LIBS=$LIBS
20310LIBS="-ldld $LIBS"
20311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312/* end confdefs.h. */
20313
20314/* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20317#ifdef __cplusplus
20318extern "C"
20319#endif
20320char dld_link ();
20321int
20322main ()
20323{
20324return dld_link ();
20325 ;
20326 return 0;
20327}
20328_ACEOF
20329if ac_fn_c_try_link "$LINENO"; then :
20330 ac_cv_lib_dld_dld_link=yes
20331else
20332 ac_cv_lib_dld_dld_link=no
20333fi
20334rm -f core conftest.err conftest.$ac_objext \
20335 conftest$ac_exeext conftest.$ac_ext
20336LIBS=$ac_check_lib_save_LIBS
20337fi
20338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20339$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020340if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020341
20342$as_echo "#define HAVE_DLD 1" >>confdefs.h
20343
20344 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20345fi
20346
20347
20348
20349
20350LT_DLPREOPEN=
20351if test -n "$LT_DLLOADERS"
20352then
20353 for lt_loader in $LT_DLLOADERS; do
20354 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20355 done
20356
20357$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20358
20359fi
20360
20361
20362LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20363
20364
20365ac_ext=c
20366ac_cpp='$CPP $CPPFLAGS'
20367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20369ac_compiler_gnu=$ac_cv_c_compiler_gnu
20370
20371
20372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20373$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020374if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020375 $as_echo_n "(cached) " >&6
20376else
20377 lt_cv_sys_symbol_underscore=no
20378 cat > conftest.$ac_ext <<_LT_EOF
20379void nm_test_func(){}
20380int main(){nm_test_func;return 0;}
20381_LT_EOF
20382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20383 (eval $ac_compile) 2>&5
20384 ac_status=$?
20385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20386 test $ac_status = 0; }; then
20387 # Now try to grab the symbols.
20388 ac_nlist=conftest.nm
20389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20390 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20391 ac_status=$?
20392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20393 test $ac_status = 0; } && test -s "$ac_nlist"; then
20394 # See whether the symbols have a leading underscore.
20395 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20396 lt_cv_sys_symbol_underscore=yes
20397 else
20398 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20399 :
20400 else
20401 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20402 fi
20403 fi
20404 else
20405 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20406 fi
20407 else
20408 echo "configure: failed program was:" >&5
20409 cat conftest.c >&5
20410 fi
20411 rm -rf conftest*
20412
20413fi
20414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20415$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20416 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20417
20418
20419if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20420 if test x"$libltdl_cv_func_dlopen" = xyes ||
20421 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20423$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020424if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020425 $as_echo_n "(cached) " >&6
20426else
20427 libltdl_cv_need_uscore=unknown
20428 save_LIBS="$LIBS"
20429 LIBS="$LIBS $LIBADD_DLOPEN"
20430 if test "$cross_compiling" = yes; then :
20431 libltdl_cv_need_uscore=cross
20432else
20433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20434 lt_status=$lt_dlunknown
20435 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020436#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020437#include "confdefs.h"
20438
20439#if HAVE_DLFCN_H
20440#include <dlfcn.h>
20441#endif
20442
20443#include <stdio.h>
20444
20445#ifdef RTLD_GLOBAL
20446# define LT_DLGLOBAL RTLD_GLOBAL
20447#else
20448# ifdef DL_GLOBAL
20449# define LT_DLGLOBAL DL_GLOBAL
20450# else
20451# define LT_DLGLOBAL 0
20452# endif
20453#endif
20454
20455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20456 find out it does not work in some platform. */
20457#ifndef LT_DLLAZY_OR_NOW
20458# ifdef RTLD_LAZY
20459# define LT_DLLAZY_OR_NOW RTLD_LAZY
20460# else
20461# ifdef DL_LAZY
20462# define LT_DLLAZY_OR_NOW DL_LAZY
20463# else
20464# ifdef RTLD_NOW
20465# define LT_DLLAZY_OR_NOW RTLD_NOW
20466# else
20467# ifdef DL_NOW
20468# define LT_DLLAZY_OR_NOW DL_NOW
20469# else
20470# define LT_DLLAZY_OR_NOW 0
20471# endif
20472# endif
20473# endif
20474# endif
20475#endif
20476
cristy0c60a692010-11-04 01:09:47 +000020477/* When -fvisbility=hidden is used, assume the code has been annotated
20478 correspondingly for the symbols needed. */
20479#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020480int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020481#endif
20482
cristyda16f162011-02-19 23:52:17 +000020483int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020484int main ()
20485{
20486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20487 int status = $lt_dlunknown;
20488
20489 if (self)
20490 {
20491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020492 else
20493 {
20494 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20495 else puts (dlerror ());
20496 }
cristy73bd4a52010-10-05 11:24:23 +000020497 /* dlclose (self); */
20498 }
20499 else
20500 puts (dlerror ());
20501
20502 return status;
20503}
20504_LT_EOF
20505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20506 (eval $ac_link) 2>&5
20507 ac_status=$?
20508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20509 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20510 (./conftest; exit; ) >&5 2>/dev/null
20511 lt_status=$?
20512 case x$lt_status in
20513 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20514 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20515 x$lt_dlunknown|x*) ;;
20516 esac
20517 else :
20518 # compilation failed
20519
20520 fi
20521fi
20522rm -fr conftest*
20523
20524 LIBS="$save_LIBS"
20525
20526fi
20527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20528$as_echo "$libltdl_cv_need_uscore" >&6; }
20529 fi
20530fi
20531
20532if test x"$libltdl_cv_need_uscore" = xyes; then
20533
20534$as_echo "#define NEED_USCORE 1" >>confdefs.h
20535
20536fi
20537
20538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20539$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020540if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020541 $as_echo_n "(cached) " >&6
20542else
20543 # PORTME does your system automatically load deplibs for dlopen?
20544 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20545 # For now, we just catch OSes we know something about -- in the
20546 # future, we'll try test this programmatically.
20547 lt_cv_sys_dlopen_deplibs=unknown
20548 case $host_os in
20549 aix3*|aix4.1.*|aix4.2.*)
20550 # Unknown whether this is true for these versions of AIX, but
20551 # we want this `case' here to explicitly catch those versions.
20552 lt_cv_sys_dlopen_deplibs=unknown
20553 ;;
20554 aix[4-9]*)
20555 lt_cv_sys_dlopen_deplibs=yes
20556 ;;
20557 amigaos*)
20558 case $host_cpu in
20559 powerpc)
20560 lt_cv_sys_dlopen_deplibs=no
20561 ;;
20562 esac
20563 ;;
20564 darwin*)
20565 # Assuming the user has installed a libdl from somewhere, this is true
20566 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20567 lt_cv_sys_dlopen_deplibs=yes
20568 ;;
20569 freebsd* | dragonfly*)
20570 lt_cv_sys_dlopen_deplibs=yes
20571 ;;
cristy0c60a692010-11-04 01:09:47 +000020572 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020573 # GNU and its variants, using gnu ld.so (Glibc)
20574 lt_cv_sys_dlopen_deplibs=yes
20575 ;;
20576 hpux10*|hpux11*)
20577 lt_cv_sys_dlopen_deplibs=yes
20578 ;;
20579 interix*)
20580 lt_cv_sys_dlopen_deplibs=yes
20581 ;;
20582 irix[12345]*|irix6.[01]*)
20583 # Catch all versions of IRIX before 6.2, and indicate that we don't
20584 # know how it worked for any of those versions.
20585 lt_cv_sys_dlopen_deplibs=unknown
20586 ;;
20587 irix*)
20588 # The case above catches anything before 6.2, and it's known that
20589 # at 6.2 and later dlopen does load deplibs.
20590 lt_cv_sys_dlopen_deplibs=yes
20591 ;;
20592 netbsd*)
20593 lt_cv_sys_dlopen_deplibs=yes
20594 ;;
20595 openbsd*)
20596 lt_cv_sys_dlopen_deplibs=yes
20597 ;;
20598 osf[1234]*)
20599 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20600 # it did *not* use an RPATH in a shared library to find objects the
20601 # library depends on, so we explicitly say `no'.
20602 lt_cv_sys_dlopen_deplibs=no
20603 ;;
20604 osf5.0|osf5.0a|osf5.1)
20605 # dlopen *does* load deplibs and with the right loader patch applied
20606 # it even uses RPATH in a shared library to search for shared objects
20607 # that the library depends on, but there's no easy way to know if that
20608 # patch is installed. Since this is the case, all we can really
20609 # say is unknown -- it depends on the patch being installed. If
20610 # it is, this changes to `yes'. Without it, it would be `no'.
20611 lt_cv_sys_dlopen_deplibs=unknown
20612 ;;
20613 osf*)
20614 # the two cases above should catch all versions of osf <= 5.1. Read
20615 # the comments above for what we know about them.
20616 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20617 # is used to find them so we can finally say `yes'.
20618 lt_cv_sys_dlopen_deplibs=yes
20619 ;;
20620 qnx*)
20621 lt_cv_sys_dlopen_deplibs=yes
20622 ;;
20623 solaris*)
20624 lt_cv_sys_dlopen_deplibs=yes
20625 ;;
20626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20627 libltdl_cv_sys_dlopen_deplibs=yes
20628 ;;
20629 esac
20630
20631fi
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20633$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20634if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20635
20636$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20637
20638fi
20639
20640:
20641
20642for ac_header in argz.h
20643do :
20644 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20645"
cristyda16f162011-02-19 23:52:17 +000020646if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020647 cat >>confdefs.h <<_ACEOF
20648#define HAVE_ARGZ_H 1
20649_ACEOF
20650
20651fi
20652
20653done
20654
20655
20656ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20657# include <argz.h>
20658#endif
20659"
cristyda16f162011-02-19 23:52:17 +000020660if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020661
20662cat >>confdefs.h <<_ACEOF
20663#define HAVE_ERROR_T 1
20664_ACEOF
20665
20666
20667else
20668
20669$as_echo "#define error_t int" >>confdefs.h
20670
20671
20672$as_echo "#define __error_t_defined 1" >>confdefs.h
20673
20674fi
20675
20676
20677ARGZ_H=
20678for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20679 argz_next argz_stringify
20680do :
20681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20682ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020683if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020684 cat >>confdefs.h <<_ACEOF
20685#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20686_ACEOF
20687
20688else
20689 ARGZ_H=argz.h;
20690
20691 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20692
20693fi
20694done
20695
20696
20697if test -z "$ARGZ_H"; then :
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20699$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020700if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020701 $as_echo_n "(cached) " >&6
20702else
20703 case $host_os in #(
20704 *cygwin*)
20705 lt_cv_sys_argz_works=no
20706 if test "$cross_compiling" != no; then
20707 lt_cv_sys_argz_works="guessing no"
20708 else
20709 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20710 save_IFS=$IFS
20711 IFS=-.
20712 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20713 IFS=$save_IFS
20714 lt_os_major=${2-0}
20715 lt_os_minor=${3-0}
20716 lt_os_micro=${4-0}
20717 if test "$lt_os_major" -gt 1 \
20718 || { test "$lt_os_major" -eq 1 \
20719 && { test "$lt_os_minor" -gt 5 \
20720 || { test "$lt_os_minor" -eq 5 \
20721 && test "$lt_os_micro" -gt 24; }; }; }; then
20722 lt_cv_sys_argz_works=yes
20723 fi
20724 fi
20725 ;; #(
20726 *) lt_cv_sys_argz_works=yes ;;
20727 esac
20728fi
20729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20730$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020731 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020732
20733$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20734
20735else
20736 ARGZ_H=argz.h
20737
20738
20739 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20740
20741fi
20742fi
20743
20744
20745
20746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20747$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020748if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020749 $as_echo_n "(cached) " >&6
20750else
20751 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20752 libltdl_cv_preloaded_symbols=yes
20753 else
20754 libltdl_cv_preloaded_symbols=no
20755 fi
20756
20757fi
20758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20759$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20760if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20761
20762$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20763
20764fi
20765
20766# Set options
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778# Check whether --with-included_ltdl was given.
20779if test "${with_included_ltdl+set}" = set; then :
20780 withval=$with_included_ltdl;
20781fi
20782
20783
20784if test "x$with_included_ltdl" != xyes; then
20785 # We are not being forced to use the included libltdl sources, so
20786 # decide whether there is a useful installed version we can use.
20787 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20788
20789"
cristyda16f162011-02-19 23:52:17 +000020790if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020791 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20792 #include <ltdl.h>
20793"
cristyda16f162011-02-19 23:52:17 +000020794if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20796$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020797if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020798 $as_echo_n "(cached) " >&6
20799else
20800 ac_check_lib_save_LIBS=$LIBS
20801LIBS="-lltdl $LIBS"
20802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803/* end confdefs.h. */
20804
20805/* Override any GCC internal prototype to avoid an error.
20806 Use char because int might match the return type of a GCC
20807 builtin and then its argument prototype would still apply. */
20808#ifdef __cplusplus
20809extern "C"
20810#endif
20811char lt_dladvise_preload ();
20812int
20813main ()
20814{
20815return lt_dladvise_preload ();
20816 ;
20817 return 0;
20818}
20819_ACEOF
20820if ac_fn_c_try_link "$LINENO"; then :
20821 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20822else
20823 ac_cv_lib_ltdl_lt_dladvise_preload=no
20824fi
20825rm -f core conftest.err conftest.$ac_objext \
20826 conftest$ac_exeext conftest.$ac_ext
20827LIBS=$ac_check_lib_save_LIBS
20828fi
20829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20830$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020831if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020832 with_included_ltdl=no
20833else
20834 with_included_ltdl=yes
20835fi
20836
20837else
20838 with_included_ltdl=yes
20839fi
20840
20841else
20842 with_included_ltdl=yes
20843fi
20844
20845
20846fi
20847
20848
20849
20850
20851# Check whether --with-ltdl_include was given.
20852if test "${with_ltdl_include+set}" = set; then :
20853 withval=$with_ltdl_include;
20854fi
20855
20856
20857if test -n "$with_ltdl_include"; then
20858 if test -f "$with_ltdl_include/ltdl.h"; then :
20859 else
cristy98dddb52010-11-04 00:30:15 +000020860 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020861 fi
20862else
20863 with_ltdl_include=no
20864fi
20865
20866
20867# Check whether --with-ltdl_lib was given.
20868if test "${with_ltdl_lib+set}" = set; then :
20869 withval=$with_ltdl_lib;
20870fi
20871
20872
20873if test -n "$with_ltdl_lib"; then
20874 if test -f "$with_ltdl_lib/libltdl.la"; then :
20875 else
cristy98dddb52010-11-04 00:30:15 +000020876 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020877 fi
20878else
20879 with_ltdl_lib=no
20880fi
20881
20882case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20883 ,yes,no,no,)
20884 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020885 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020886 "") enable_ltdl_convenience=yes
20887 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20888esac
20889LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20890LTDLDEPS=$LIBLTDL
20891LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20892
20893
20894
20895
20896
20897# For backwards non-gettext consistent compatibility...
20898INCLTDL="$LTDLINCL"
20899
20900
20901 ;;
20902 ,no,no,no,)
20903 # If the included ltdl is not to be used, then use the
20904 # preinstalled libltdl we found.
20905
20906$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20907
20908 LIBLTDL=-lltdl
20909 LTDLDEPS=
20910 LTDLINCL=
20911 ;;
20912 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020913 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020914 ;;
20915 *) with_included_ltdl=no
20916 LIBLTDL="-L$with_ltdl_lib -lltdl"
20917 LTDLDEPS=
20918 LTDLINCL="-I$with_ltdl_include"
20919 ;;
20920esac
20921INCLTDL="$LTDLINCL"
20922
20923# Report our decision...
20924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20925$as_echo_n "checking where to find libltdl headers... " >&6; }
20926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20927$as_echo "$LTDLINCL" >&6; }
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20929$as_echo_n "checking where to find libltdl library... " >&6; }
20930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20931$as_echo "$LIBLTDL" >&6; }
20932
20933
20934
20935# Check whether --enable-ltdl-install was given.
20936if test "${enable_ltdl_install+set}" = set; then :
20937 enableval=$enable_ltdl_install;
20938fi
20939
20940
20941case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20942 *yes*) ;;
20943 *) enable_ltdl_convenience=yes ;;
20944esac
20945
20946 if test x"${enable_ltdl_install-no}" != xno; then
20947 INSTALL_LTDL_TRUE=
20948 INSTALL_LTDL_FALSE='#'
20949else
20950 INSTALL_LTDL_TRUE='#'
20951 INSTALL_LTDL_FALSE=
20952fi
20953
20954 if test x"${enable_ltdl_convenience-no}" != xno; then
20955 CONVENIENCE_LTDL_TRUE=
20956 CONVENIENCE_LTDL_FALSE='#'
20957else
20958 CONVENIENCE_LTDL_TRUE='#'
20959 CONVENIENCE_LTDL_FALSE=
20960fi
20961
20962
20963
20964
20965
20966
cristy73bd4a52010-10-05 11:24:23 +000020967# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20968# the user used. This is so that ltdl.h can pick up the parent projects
20969# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20970# definitions required by ltdl.c.
20971# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20972
20973
20974
20975for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20976do :
20977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20978ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20979"
cristy98dddb52010-11-04 00:30:15 +000020980if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020981 cat >>confdefs.h <<_ACEOF
20982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20983_ACEOF
20984
20985fi
20986
20987done
20988
20989
20990for ac_func in closedir opendir readdir
20991do :
20992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20993ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020994if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020995 cat >>confdefs.h <<_ACEOF
20996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20997_ACEOF
20998
20999else
21000
21001
21002 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21003
21004fi
21005done
21006
21007for ac_func in strlcat strlcpy
21008do :
21009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21010ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021011if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021012 cat >>confdefs.h <<_ACEOF
21013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21014_ACEOF
21015
21016else
21017
21018
21019 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21020
21021fi
21022done
21023
21024
21025
21026cat >>confdefs.h <<_ACEOF
21027#define LT_LIBEXT "$libext"
21028_ACEOF
21029
21030
cristyda16f162011-02-19 23:52:17 +000021031name=
21032eval "lt_libprefix=\"$libname_spec\""
21033
21034cat >>confdefs.h <<_ACEOF
21035#define LT_LIBPREFIX "$lt_libprefix"
21036_ACEOF
21037
21038
cristy73bd4a52010-10-05 11:24:23 +000021039name=ltdl
cristyda16f162011-02-19 23:52:17 +000021040eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021041
21042
21043
21044
21045
21046
21047
21048
21049# Only expand once:
21050
21051
cristy3ed852e2009-09-05 21:47:34 +000021052
21053# Check to see if building shared libraries
21054libtool_build_shared_libs='no'
21055if test "$enable_shared" = 'yes'; then
21056 libtool_build_shared_libs='yes'
21057fi
21058
21059# Check to see if building static libraries
21060libtool_build_static_libs='no'
21061if test "$enable_static" = 'yes'; then
21062 libtool_build_static_libs='yes'
21063fi
21064
cristy73bd4a52010-10-05 11:24:23 +000021065 if test "${libtool_build_shared_libs}" = 'yes'; then
21066 WITH_SHARED_LIBS_TRUE=
21067 WITH_SHARED_LIBS_FALSE='#'
21068else
21069 WITH_SHARED_LIBS_TRUE='#'
21070 WITH_SHARED_LIBS_FALSE=
21071fi
21072
cristy3ed852e2009-09-05 21:47:34 +000021073#
21074# Enable support for building loadable modules
21075#
21076
21077# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021078if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021079 withval=$with_modules; with_modules=$withval
21080else
cristy5a1cefd2010-01-06 20:42:35 +000021081 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021082fi
21083
21084
21085# Only allow building loadable modules if we are building shared libraries
21086if test "$with_modules" != 'no' ; then
21087 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021088 { $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 +000021089$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21090 with_modules='no'
21091 fi
21092fi
21093if test "$with_modules" != 'no'; then
21094
cristy8b350f62009-11-15 23:12:43 +000021095$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021096
21097fi
cristy73bd4a52010-10-05 11:24:23 +000021098 if test "$with_modules" != 'no'; then
21099 WITH_MODULES_TRUE=
21100 WITH_MODULES_FALSE='#'
21101else
21102 WITH_MODULES_TRUE='#'
21103 WITH_MODULES_FALSE=
21104fi
21105
cristy3ed852e2009-09-05 21:47:34 +000021106
21107# Enable building/use of libltdl if we are building shared libraries regardless
21108# of whether modules are built or not.
21109with_ltdl='no'
21110if test "$libtool_build_shared_libs" != 'no'; then
21111 with_ltdl='yes'
21112fi
21113
cristy73bd4a52010-10-05 11:24:23 +000021114 if test "$with_ltdl" != 'no'; then
21115 WITH_LTDL_TRUE=
21116 WITH_LTDL_FALSE='#'
21117else
21118 WITH_LTDL_TRUE='#'
21119 WITH_LTDL_FALSE=
21120fi
21121
cristy3ed852e2009-09-05 21:47:34 +000021122if test "$with_ltdl" != 'no'; then
21123
cristy8b350f62009-11-15 23:12:43 +000021124$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021125
21126
21127 # Set DLLDFLAGS
21128 if test X"$enable_shared" = Xyes; then
21129 DLLDFLAGS=-export-dynamic
21130
21131 fi
21132fi
21133
21134# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021135# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021136# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021137if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021138 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21139else
21140 enable_delegate_build='no'
21141fi
21142
21143
21144# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021145if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021146 enableval=$enable_deprecated; enable_deprecated=$enableval
21147else
21148 enable_deprecated='no'
21149fi
21150
21151
21152if test "$enable_deprecated" = 'yes'; then
21153
cristy8b350f62009-11-15 23:12:43 +000021154$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021155
21156else
21157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21158fi
21159
21160# Build a version of ImageMagick which operates uninstalled.
21161# Used to build distributions located via MAGICK_HOME / executable path
21162# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021163if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021164 enableval=$enable_installed; enable_installed=$enableval
21165else
21166 enable_installed='yes'
21167fi
21168
21169
21170if test "$enable_installed" = 'yes'; then
21171
cristy8b350f62009-11-15 23:12:43 +000021172$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021173
21174else
21175 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21176fi
21177
21178# Permit enciphering and deciphering image pixels.
21179# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021180if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021181 enableval=$enable_cipher; enable_cipher=$enableval
21182else
21183 enable_cipher='yes'
21184fi
21185
21186
21187if test "$enable_cipher" = 'yes'; then
21188
cristy8b350f62009-11-15 23:12:43 +000021189$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021190
21191fi
21192
cristy6e3607c2011-09-13 13:59:17 +000021193# Build a zero-configuration version of ImageMagick.
21194# Check whether --enable-zero-configuration was given.
21195if test "${enable_zero_configuration+set}" = set; then :
21196 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021197else
cristy6e3607c2011-09-13 13:59:17 +000021198 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021199fi
21200
21201
cristy6e3607c2011-09-13 13:59:17 +000021202if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021203
cristy6e3607c2011-09-13 13:59:17 +000021204$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021205
cristy81af5702011-09-13 14:20:58 +000021206 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021207fi
21208
21209# Build a high dynamic range version of ImageMagick.
21210# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021211if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021212 enableval=$enable_hdri; enable_hdri=$enableval
21213else
21214 enable_hdri='no'
21215fi
21216
21217
21218MAGICK_HDRI=""
21219if test "$enable_hdri" = 'yes'; then
21220 MAGICK_HDRI="HDRI"
21221
cristy8b350f62009-11-15 23:12:43 +000021222$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021223
cristyfd9dcd42010-08-08 18:07:02 +000021224 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021225fi
21226
cristy3ed852e2009-09-05 21:47:34 +000021227# Build a version of ImageMagick with assert statements.
21228# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021229if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021230 enableval=$enable_assert; enable_assert=$enableval
21231else
21232 enable_assert='yes'
21233fi
21234
21235
21236if test "$enable_assert" = 'no'; then
21237
cristy8b350f62009-11-15 23:12:43 +000021238$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021239
21240fi
21241
cristya448bd22011-10-14 12:38:13 +000021242# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021243
21244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21245$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21246 # Check whether --enable-maintainer-mode was given.
21247if test "${enable_maintainer_mode+set}" = set; then :
21248 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21249else
21250 USE_MAINTAINER_MODE=no
21251fi
21252
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21254$as_echo "$USE_MAINTAINER_MODE" >&6; }
21255 if test $USE_MAINTAINER_MODE = yes; then
21256 MAINTAINER_MODE_TRUE=
21257 MAINTAINER_MODE_FALSE='#'
21258else
21259 MAINTAINER_MODE_TRUE='#'
21260 MAINTAINER_MODE_FALSE=
21261fi
21262
21263 MAINT=$MAINTAINER_MODE_TRUE
21264
21265
cristy3ed852e2009-09-05 21:47:34 +000021266
cristy3ed852e2009-09-05 21:47:34 +000021267# Enable ccmalloc memory debugging support
21268# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021269if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021270 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21271else
21272 enable_ccmalloc='no'
21273fi
21274
21275
21276# Enable Electric Fence memory debugging support
21277# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021278if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021279 enableval=$enable_efence; enable_efence=$enableval
21280else
21281 enable_efence='no'
21282fi
21283
21284
21285# Enable prof-based profiling support
21286# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021287if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 enableval=$enable_prof; enable_prof=$enableval
21289else
21290 enable_prof='no'
21291fi
21292
21293
21294# Enable gprof-based profiling support
21295# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021296if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021297 enableval=$enable_gprof; enable_gprof=$enableval
21298else
21299 enable_gprof='no'
21300fi
21301
21302
21303# Enable gcov-based profiling support
21304# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021305if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021306 enableval=$enable_gcov; enable_gcov=$enableval
21307else
21308 enable_gcov='no'
21309fi
21310
21311
21312enable_profiling='no'
21313if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21314 enable_profiling='yes'
21315 if test "$libtool_build_shared_libs" = 'yes'; then
21316 echo "Warning: Can not profile code using shared libraries"
21317 fi
21318fi
21319
21320# Magick API method prefix
21321
21322# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021323if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021324 withval=$with_method_prefix; with_method_prefix=$enableval
21325else
21326 with_method_prefix=''
21327fi
21328
21329
21330if test "$with_method_prefix" != ''; then
21331
21332cat >>confdefs.h <<_ACEOF
21333#define NAMESPACE_PREFIX $with_method_prefix
21334_ACEOF
21335
21336fi
21337
21338# Number of bits in a Quantum
21339
21340# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021341if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021342 withval=$with_quantum_depth; with_quantum_depth=$withval
21343else
21344 with_quantum_depth=16
21345fi
21346
21347
21348if test "$with_quantum_depth" != '8'; then
21349 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21350fi
21351
21352case "${with_quantum_depth}" in
21353 8 ) ;;
21354 16 ) ;;
21355 32 ) ;;
21356 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021357 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021358esac
21359QUANTUM_DEPTH="$with_quantum_depth"
21360
21361cat >>confdefs.h <<_ACEOF
21362#define QUANTUM_DEPTH $QUANTUM_DEPTH
21363_ACEOF
21364
21365
21366# Set pixel cache threshold
21367
21368# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021369if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021370 withval=$with_cache; with_cache=$withval
21371else
21372 with_cache=''
21373fi
21374
21375
21376if test "$with_cache" != ''; then
21377
21378cat >>confdefs.h <<_ACEOF
21379#define PixelCacheThreshold $with_cache
21380_ACEOF
21381
21382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21383fi
21384
21385# Disable/Enable support for full delegate paths
21386
21387# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021388if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021389 withval=$with_frozenpaths; with_frozenpaths=$withval
21390else
21391 with_frozenpaths='no'
21392fi
21393
21394
21395# Enable build/install of Magick++
21396
21397# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021398if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021399 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21400else
21401 with_magick_plus_plus='yes'
21402fi
21403
21404
21405# Disable build/install of PerlMagick.
21406
21407# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021408if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021409 withval=$with_perl; with_perl=$withval
21410else
cristyb5f4e2f2010-04-25 00:49:11 +000021411 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021412fi
21413
21414
21415# Options to pass when configuring PerlMagick
21416
21417# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021418if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021419 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021420fi
21421
21422
cristy3ed852e2009-09-05 21:47:34 +000021423
21424# Enable umem, object-caching memory allocation library.
21425
21426# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021427if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021428 withval=$with_umem; with_umem=$withval
21429else
21430 with_umem='no'
21431fi
21432
21433if test "$with_umem" != 'yes' ; then
21434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21435fi
21436
21437#
21438# Specify path to shared libstdc++ if not in normal location
21439#
21440
21441# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021442if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021443 withval=$with_libstdc; with_libstdc=$withval
21444else
21445 with_libstdc=''
21446fi
21447
21448
21449if test "$with_libstdc" != ''; then
21450 if test -d "$with_libstdc"; then
21451 LIBSTDCLDFLAGS="-L$with_libstdc"
21452 fi
21453fi
21454
21455
21456# Does gcc required -traditional?
21457if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021459$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021460if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021461 $as_echo_n "(cached) " >&6
21462else
21463 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021465/* end confdefs.h. */
21466#include <sgtty.h>
21467Autoconf TIOCGETP
21468_ACEOF
21469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021470 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 ac_cv_prog_gcc_traditional=yes
21472else
21473 ac_cv_prog_gcc_traditional=no
21474fi
21475rm -f conftest*
21476
21477
21478 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021480/* end confdefs.h. */
21481#include <termio.h>
21482Autoconf TCGETA
21483_ACEOF
21484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021485 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 ac_cv_prog_gcc_traditional=yes
21487fi
21488rm -f conftest*
21489
21490 fi
21491fi
cristy8b350f62009-11-15 23:12:43 +000021492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021493$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21494 if test $ac_cv_prog_gcc_traditional = yes; then
21495 CC="$CC -traditional"
21496 fi
21497fi
21498
21499
21500########
21501#
21502# Set defines required to build DLLs and modules using MinGW
21503#
21504########
21505# These options are set for multi-thread DLL module build
21506# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21507# module: _DLL
21508# executable/Magick++: _DLL _MAGICKMOD_
21509MODULE_EXTRA_CPPFLAGS=''
21510LIBRARY_EXTRA_CPPFLAGS=''
21511if test "${native_win32_build}" = 'yes'; then
21512 if test "${libtool_build_shared_libs}" = 'yes'; then
21513 CPPFLAGS="$CPPFLAGS -D_DLL"
21514 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21515 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21516 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21517 if test "$with_modules" = 'yes'; then
21518 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21519 else
21520 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21521 fi
21522 else
21523 CPPFLAGS="$CPPFLAGS -D_LIB"
21524 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21525 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21526 fi
21527 if test "$with_threads" = 'yes'; then
21528 CPPFLAGS="$CPPFLAGS -D_MT"
21529 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21530 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21531 fi
21532fi
21533
21534
21535
21536# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021538$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021539if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021540 $as_echo_n "(cached) " >&6
21541else
cristy8b350f62009-11-15 23:12:43 +000021542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021543/* end confdefs.h. */
21544#include <stdlib.h>
21545#include <stdarg.h>
21546#include <string.h>
21547#include <float.h>
21548
21549int
21550main ()
21551{
21552
21553 ;
21554 return 0;
21555}
21556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021557if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 ac_cv_header_stdc=yes
21559else
cristy8b350f62009-11-15 23:12:43 +000021560 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021561fi
cristy3ed852e2009-09-05 21:47:34 +000021562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563
21564if test $ac_cv_header_stdc = yes; then
21565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021567/* end confdefs.h. */
21568#include <string.h>
21569
21570_ACEOF
21571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021572 $EGREP "memchr" >/dev/null 2>&1; then :
21573
cristy3ed852e2009-09-05 21:47:34 +000021574else
21575 ac_cv_header_stdc=no
21576fi
21577rm -f conftest*
21578
21579fi
21580
21581if test $ac_cv_header_stdc = yes; then
21582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021584/* end confdefs.h. */
21585#include <stdlib.h>
21586
21587_ACEOF
21588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021589 $EGREP "free" >/dev/null 2>&1; then :
21590
cristy3ed852e2009-09-05 21:47:34 +000021591else
21592 ac_cv_header_stdc=no
21593fi
21594rm -f conftest*
21595
21596fi
21597
21598if test $ac_cv_header_stdc = yes; then
21599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021600 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021601 :
21602else
cristy8b350f62009-11-15 23:12:43 +000021603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021604/* end confdefs.h. */
21605#include <ctype.h>
21606#include <stdlib.h>
21607#if ((' ' & 0x0FF) == 0x020)
21608# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21609# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21610#else
21611# define ISLOWER(c) \
21612 (('a' <= (c) && (c) <= 'i') \
21613 || ('j' <= (c) && (c) <= 'r') \
21614 || ('s' <= (c) && (c) <= 'z'))
21615# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21616#endif
21617
21618#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21619int
21620main ()
21621{
21622 int i;
21623 for (i = 0; i < 256; i++)
21624 if (XOR (islower (i), ISLOWER (i))
21625 || toupper (i) != TOUPPER (i))
21626 return 2;
21627 return 0;
21628}
21629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021630if ac_fn_c_try_run "$LINENO"; then :
21631
cristy3ed852e2009-09-05 21:47:34 +000021632else
cristy8b350f62009-11-15 23:12:43 +000021633 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021634fi
cristy8b350f62009-11-15 23:12:43 +000021635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21636 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021637fi
21638
cristy3ed852e2009-09-05 21:47:34 +000021639fi
21640fi
cristy8b350f62009-11-15 23:12:43 +000021641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021642$as_echo "$ac_cv_header_stdc" >&6; }
21643if test $ac_cv_header_stdc = yes; then
21644
cristy8b350f62009-11-15 23:12:43 +000021645$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021646
21647fi
21648
21649if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021650 { $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 +000021651 header files. Compilation cannot proceed. Please install the ANSI C
21652 headers and rerun this script." >&5
21653$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21654 header files. Compilation cannot proceed. Please install the ANSI C
21655 headers and rerun this script." >&2;};
21656fi
cristya0b81c32010-01-22 02:54:33 +000021657
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21659$as_echo_n "checking whether to enable assertions... " >&6; }
21660 # Check whether --enable-assert was given.
21661if test "${enable_assert+set}" = set; then :
21662 enableval=$enable_assert; ac_enable_assert=$enableval
21663 if test "x$enableval" = xno; then :
21664
21665$as_echo "#define NDEBUG 1" >>confdefs.h
21666
21667elif test "x$enableval" != xyes; then :
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21669$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21670 ac_enable_assert=yes
21671fi
21672else
21673 ac_enable_assert=yes
21674fi
21675
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21677$as_echo "$ac_enable_assert" >&6; }
21678
cristy3ed852e2009-09-05 21:47:34 +000021679ac_header_dirent=no
21680for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21681 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021683$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021684if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 $as_echo_n "(cached) " >&6
21686else
cristy8b350f62009-11-15 23:12:43 +000021687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021688/* end confdefs.h. */
21689#include <sys/types.h>
21690#include <$ac_hdr>
21691
21692int
21693main ()
21694{
21695if ((DIR *) 0)
21696return 0;
21697 ;
21698 return 0;
21699}
21700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021701if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021702 eval "$as_ac_Header=yes"
21703else
cristy8b350f62009-11-15 23:12:43 +000021704 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021705fi
cristy3ed852e2009-09-05 21:47:34 +000021706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707fi
cristy8b350f62009-11-15 23:12:43 +000021708eval ac_res=\$$as_ac_Header
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021710$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021711if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 cat >>confdefs.h <<_ACEOF
21713#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21714_ACEOF
21715
21716ac_header_dirent=$ac_hdr; break
21717fi
21718
21719done
21720# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21721if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021723$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021724if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021725 $as_echo_n "(cached) " >&6
21726else
21727 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021729/* end confdefs.h. */
21730
21731/* Override any GCC internal prototype to avoid an error.
21732 Use char because int might match the return type of a GCC
21733 builtin and then its argument prototype would still apply. */
21734#ifdef __cplusplus
21735extern "C"
21736#endif
21737char opendir ();
21738int
21739main ()
21740{
21741return opendir ();
21742 ;
21743 return 0;
21744}
21745_ACEOF
21746for ac_lib in '' dir; do
21747 if test -z "$ac_lib"; then
21748 ac_res="none required"
21749 else
21750 ac_res=-l$ac_lib
21751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21752 fi
cristy8b350f62009-11-15 23:12:43 +000021753 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021755fi
cristy8b350f62009-11-15 23:12:43 +000021756rm -f core conftest.err conftest.$ac_objext \
21757 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021758 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021759 break
21760fi
21761done
cristyda16f162011-02-19 23:52:17 +000021762if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021763
cristy3ed852e2009-09-05 21:47:34 +000021764else
21765 ac_cv_search_opendir=no
21766fi
21767rm conftest.$ac_ext
21768LIBS=$ac_func_search_save_LIBS
21769fi
cristy8b350f62009-11-15 23:12:43 +000021770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo "$ac_cv_search_opendir" >&6; }
21772ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021773if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21775
21776fi
21777
21778else
cristy8b350f62009-11-15 23:12:43 +000021779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021780$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021781if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021782 $as_echo_n "(cached) " >&6
21783else
21784 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021786/* end confdefs.h. */
21787
21788/* Override any GCC internal prototype to avoid an error.
21789 Use char because int might match the return type of a GCC
21790 builtin and then its argument prototype would still apply. */
21791#ifdef __cplusplus
21792extern "C"
21793#endif
21794char opendir ();
21795int
21796main ()
21797{
21798return opendir ();
21799 ;
21800 return 0;
21801}
21802_ACEOF
21803for ac_lib in '' x; do
21804 if test -z "$ac_lib"; then
21805 ac_res="none required"
21806 else
21807 ac_res=-l$ac_lib
21808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21809 fi
cristy8b350f62009-11-15 23:12:43 +000021810 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021812fi
cristy8b350f62009-11-15 23:12:43 +000021813rm -f core conftest.err conftest.$ac_objext \
21814 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021815 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021816 break
21817fi
21818done
cristyda16f162011-02-19 23:52:17 +000021819if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021820
cristy3ed852e2009-09-05 21:47:34 +000021821else
21822 ac_cv_search_opendir=no
21823fi
21824rm conftest.$ac_ext
21825LIBS=$ac_func_search_save_LIBS
21826fi
cristy8b350f62009-11-15 23:12:43 +000021827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021828$as_echo "$ac_cv_search_opendir" >&6; }
21829ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021830if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21832
21833fi
21834
21835fi
21836
21837
21838# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021839for 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 +000021840do :
21841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21842ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021844 cat >>confdefs.h <<_ACEOF
21845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21846_ACEOF
21847
21848fi
21849
21850done
21851
21852
21853########
21854#
21855# Checks for typedefs, structures, and compiler characteristics.
21856#
21857########
21858
cristy8b350f62009-11-15 23:12:43 +000021859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021860$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021861if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021862 $as_echo_n "(cached) " >&6
21863else
cristy8b350f62009-11-15 23:12:43 +000021864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021865/* end confdefs.h. */
21866
21867#include <stdbool.h>
21868#ifndef bool
21869 "error: bool is not defined"
21870#endif
21871#ifndef false
21872 "error: false is not defined"
21873#endif
21874#if false
21875 "error: false is not 0"
21876#endif
21877#ifndef true
21878 "error: true is not defined"
21879#endif
21880#if true != 1
21881 "error: true is not 1"
21882#endif
21883#ifndef __bool_true_false_are_defined
21884 "error: __bool_true_false_are_defined is not defined"
21885#endif
21886
21887 struct s { _Bool s: 1; _Bool t; } s;
21888
21889 char a[true == 1 ? 1 : -1];
21890 char b[false == 0 ? 1 : -1];
21891 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21892 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021893 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021894 char f[(_Bool) 0.0 == false ? 1 : -1];
21895 char g[true];
21896 char h[sizeof (_Bool)];
21897 char i[sizeof s.t];
21898 enum { j = false, k = true, l = false * true, m = true * 256 };
21899 /* The following fails for
21900 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21901 _Bool n[m];
21902 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21903 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021904 /* Catch a bug in an HP-UX C compiler. See
21905 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21906 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21907 */
21908 _Bool q = true;
21909 _Bool *pq = &q;
21910
21911int
21912main ()
21913{
21914
cristyda16f162011-02-19 23:52:17 +000021915 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021916 *pq |= q;
21917 *pq |= ! q;
21918 /* Refer to every declared value, to avoid compiler optimizations. */
21919 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21920 + !m + !n + !o + !p + !q + !pq);
21921
21922 ;
21923 return 0;
21924}
21925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 ac_cv_header_stdbool_h=yes
21928else
cristy8b350f62009-11-15 23:12:43 +000021929 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021930fi
cristy3ed852e2009-09-05 21:47:34 +000021931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932fi
cristy8b350f62009-11-15 23:12:43 +000021933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021934$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021935ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021936if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021937
21938cat >>confdefs.h <<_ACEOF
21939#define HAVE__BOOL 1
21940_ACEOF
21941
21942
21943fi
21944
21945if test $ac_cv_header_stdbool_h = yes; then
21946
cristy8b350f62009-11-15 23:12:43 +000021947$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021948
21949fi
21950
cristy8b350f62009-11-15 23:12:43 +000021951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021953if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 $as_echo_n "(cached) " >&6
21955else
cristy8b350f62009-11-15 23:12:43 +000021956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021957/* end confdefs.h. */
21958
21959int
21960main ()
21961{
21962
21963volatile int x;
21964int * volatile y = (int *) 0;
21965return !x && !y;
21966 ;
21967 return 0;
21968}
21969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021970if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021971 ac_cv_c_volatile=yes
21972else
cristy8b350f62009-11-15 23:12:43 +000021973 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021974fi
cristy3ed852e2009-09-05 21:47:34 +000021975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21976fi
cristy8b350f62009-11-15 23:12:43 +000021977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978$as_echo "$ac_cv_c_volatile" >&6; }
21979if test $ac_cv_c_volatile = no; then
21980
cristy8b350f62009-11-15 23:12:43 +000021981$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021982
21983fi
21984
cristy8b350f62009-11-15 23:12:43 +000021985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021986$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021987if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021988 $as_echo_n "(cached) " >&6
21989else
cristy8b350f62009-11-15 23:12:43 +000021990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021991/* end confdefs.h. */
21992#define x(y) #y
21993
21994char *s = x(teststring);
21995_ACEOF
21996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021997 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021998 ac_cv_c_stringize=no
21999else
22000 ac_cv_c_stringize=yes
22001fi
22002rm -f conftest*
22003
22004fi
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo "$ac_cv_c_stringize" >&6; }
22007if test $ac_cv_c_stringize = yes; then
22008
cristy8b350f62009-11-15 23:12:43 +000022009$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022010
22011fi
22012
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022015if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022016 $as_echo_n "(cached) " >&6
22017else
cristy8b350f62009-11-15 23:12:43 +000022018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022019/* end confdefs.h. */
22020#include <sys/types.h>
22021#include <sys/stat.h>
22022
22023#if defined S_ISBLK && defined S_IFDIR
22024extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22025#endif
22026
22027#if defined S_ISBLK && defined S_IFCHR
22028extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22029#endif
22030
22031#if defined S_ISLNK && defined S_IFREG
22032extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22033#endif
22034
22035#if defined S_ISSOCK && defined S_IFREG
22036extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22037#endif
22038
22039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022040if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022041 ac_cv_header_stat_broken=no
22042else
cristy8b350f62009-11-15 23:12:43 +000022043 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022044fi
cristy3ed852e2009-09-05 21:47:34 +000022045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046fi
cristy8b350f62009-11-15 23:12:43 +000022047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022048$as_echo "$ac_cv_header_stat_broken" >&6; }
22049if test $ac_cv_header_stat_broken = yes; then
22050
cristy8b350f62009-11-15 23:12:43 +000022051$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022052
22053fi
22054
cristy8b350f62009-11-15 23:12:43 +000022055{ $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 +000022056$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022057if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022058 $as_echo_n "(cached) " >&6
22059else
cristy8b350f62009-11-15 23:12:43 +000022060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022061/* end confdefs.h. */
22062#include <sys/types.h>
22063#include <sys/time.h>
22064#include <time.h>
22065
22066int
22067main ()
22068{
22069if ((struct tm *) 0)
22070return 0;
22071 ;
22072 return 0;
22073}
22074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022075if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 ac_cv_header_time=yes
22077else
cristy8b350f62009-11-15 23:12:43 +000022078 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022079fi
cristy3ed852e2009-09-05 21:47:34 +000022080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081fi
cristy8b350f62009-11-15 23:12:43 +000022082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022083$as_echo "$ac_cv_header_time" >&6; }
22084if test $ac_cv_header_time = yes; then
22085
cristy8b350f62009-11-15 23:12:43 +000022086$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022087
22088fi
22089
cristy8b350f62009-11-15 23:12:43 +000022090{ $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 +000022091$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022092if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022093 $as_echo_n "(cached) " >&6
22094else
cristy8b350f62009-11-15 23:12:43 +000022095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022096/* end confdefs.h. */
22097#include <sys/types.h>
22098#include <time.h>
22099
22100int
22101main ()
22102{
22103struct tm tm;
22104 int *p = &tm.tm_sec;
22105 return !p;
22106 ;
22107 return 0;
22108}
22109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022110if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022111 ac_cv_struct_tm=time.h
22112else
cristy8b350f62009-11-15 23:12:43 +000022113 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022114fi
cristy3ed852e2009-09-05 21:47:34 +000022115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116fi
cristy8b350f62009-11-15 23:12:43 +000022117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022118$as_echo "$ac_cv_struct_tm" >&6; }
22119if test $ac_cv_struct_tm = sys/time.h; then
22120
cristy8b350f62009-11-15 23:12:43 +000022121$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022122
22123fi
22124
cristy92703d82010-04-26 00:18:18 +000022125ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22126#include <$ac_cv_struct_tm>
22127
22128"
cristyda16f162011-02-19 23:52:17 +000022129if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022130
22131cat >>confdefs.h <<_ACEOF
22132#define HAVE_STRUCT_TM_TM_ZONE 1
22133_ACEOF
22134
22135
22136fi
22137
22138if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22139
22140$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22141
22142else
22143 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22144"
cristyda16f162011-02-19 23:52:17 +000022145if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022146 ac_have_decl=1
22147else
22148 ac_have_decl=0
22149fi
22150
22151cat >>confdefs.h <<_ACEOF
22152#define HAVE_DECL_TZNAME $ac_have_decl
22153_ACEOF
22154
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22156$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022157if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022158 $as_echo_n "(cached) " >&6
22159else
22160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22161/* end confdefs.h. */
22162#include <time.h>
22163#if !HAVE_DECL_TZNAME
22164extern char *tzname[];
22165#endif
22166
22167int
22168main ()
22169{
22170return tzname[0][0];
22171 ;
22172 return 0;
22173}
22174_ACEOF
22175if ac_fn_c_try_link "$LINENO"; then :
22176 ac_cv_var_tzname=yes
22177else
22178 ac_cv_var_tzname=no
22179fi
22180rm -f core conftest.err conftest.$ac_objext \
22181 conftest$ac_exeext conftest.$ac_ext
22182fi
22183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22184$as_echo "$ac_cv_var_tzname" >&6; }
22185 if test $ac_cv_var_tzname = yes; then
22186
22187$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22188
22189 fi
22190fi
22191
cristy8b350f62009-11-15 23:12:43 +000022192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022193$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022194if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022195 $as_echo_n "(cached) " >&6
22196else
22197 echo '#! /bin/cat
22198exit 69
22199' >conftest
22200chmod u+x conftest
22201(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22202if test $? -ne 69; then
22203 ac_cv_sys_interpreter=yes
22204else
22205 ac_cv_sys_interpreter=no
22206fi
22207rm -f conftest
22208fi
cristy8b350f62009-11-15 23:12:43 +000022209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022210$as_echo "$ac_cv_sys_interpreter" >&6; }
22211interpval=$ac_cv_sys_interpreter
22212
22213
cristy3ed852e2009-09-05 21:47:34 +000022214# If the C compiler supports the keyword inline, do nothing. Otherwise
22215# define inline to __inline__ or __inline if it accepts one of those,
22216# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022218$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022219if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 $as_echo_n "(cached) " >&6
22221else
22222 ac_cv_c_inline=no
22223for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022225/* end confdefs.h. */
22226#ifndef __cplusplus
22227typedef int foo_t;
22228static $ac_kw foo_t static_foo () {return 0; }
22229$ac_kw foo_t foo () {return 0; }
22230#endif
22231
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022235fi
cristy3ed852e2009-09-05 21:47:34 +000022236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 test "$ac_cv_c_inline" != no && break
22238done
22239
22240fi
cristy8b350f62009-11-15 23:12:43 +000022241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022242$as_echo "$ac_cv_c_inline" >&6; }
22243
cristy3ed852e2009-09-05 21:47:34 +000022244case $ac_cv_c_inline in
22245 inline | yes) ;;
22246 *)
22247 case $ac_cv_c_inline in
22248 no) ac_val=;;
22249 *) ac_val=$ac_cv_c_inline;;
22250 esac
22251 cat >>confdefs.h <<_ACEOF
22252#ifndef __cplusplus
22253#define inline $ac_val
22254#endif
22255_ACEOF
22256 ;;
22257esac
22258
22259
22260# If the C compiler supports the keyword restrict, do nothing. Otherwise
22261# define restrict to __restrict__ or __restrict if it accepts one of those,
22262# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022264$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022265if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022266 $as_echo_n "(cached) " >&6
22267else
22268 ac_cv_c_restrict=no
22269 # The order here caters to the fact that C++ does not require restrict.
22270 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022272/* end confdefs.h. */
22273typedef int * int_ptr;
22274 int foo (int_ptr $ac_kw ip) {
22275 return ip[0];
22276 }
22277int
22278main ()
22279{
22280int s[1];
22281 int * $ac_kw t = s;
22282 t[0] = 0;
22283 return foo(t)
22284 ;
22285 return 0;
22286}
22287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022288if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022289 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022290fi
cristy3ed852e2009-09-05 21:47:34 +000022291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 test "$ac_cv_c_restrict" != no && break
22293 done
22294
22295fi
cristy8b350f62009-11-15 23:12:43 +000022296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022297$as_echo "$ac_cv_c_restrict" >&6; }
22298
cristy3ed852e2009-09-05 21:47:34 +000022299 case $ac_cv_c_restrict in
22300 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022301 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022302 ;;
22303 *) cat >>confdefs.h <<_ACEOF
22304#define restrict $ac_cv_c_restrict
22305_ACEOF
22306 ;;
22307 esac
22308
22309
22310# If words are stored with the most significant byte first (like
22311# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022313$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022314if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022315 $as_echo_n "(cached) " >&6
22316else
22317 ac_cv_c_bigendian=unknown
22318 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022320/* end confdefs.h. */
22321#ifndef __APPLE_CC__
22322 not a universal capable compiler
22323 #endif
22324 typedef int dummy;
22325
22326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022327if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022328
22329 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022330 # there are at least two -arch flags with different values.
22331 ac_arch=
22332 ac_prev=
22333 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22334 if test -n "$ac_prev"; then
22335 case $ac_word in
22336 i?86 | x86_64 | ppc | ppc64)
22337 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22338 ac_arch=$ac_word
22339 else
22340 ac_cv_c_bigendian=universal
22341 break
22342 fi
22343 ;;
22344 esac
22345 ac_prev=
22346 elif test "x$ac_word" = "x-arch"; then
22347 ac_prev=arch
22348 fi
22349 done
cristy3ed852e2009-09-05 21:47:34 +000022350fi
cristy3ed852e2009-09-05 21:47:34 +000022351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 if test $ac_cv_c_bigendian = unknown; then
22353 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022355/* end confdefs.h. */
22356#include <sys/types.h>
22357 #include <sys/param.h>
22358
22359int
22360main ()
22361{
22362#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22363 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22364 && LITTLE_ENDIAN)
22365 bogus endian macros
22366 #endif
22367
22368 ;
22369 return 0;
22370}
22371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022372if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022373 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022375/* end confdefs.h. */
22376#include <sys/types.h>
22377 #include <sys/param.h>
22378
22379int
22380main ()
22381{
22382#if BYTE_ORDER != BIG_ENDIAN
22383 not big endian
22384 #endif
22385
22386 ;
22387 return 0;
22388}
22389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022390if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022391 ac_cv_c_bigendian=yes
22392else
cristy8b350f62009-11-15 23:12:43 +000022393 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022394fi
cristy3ed852e2009-09-05 21:47:34 +000022395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022396fi
cristy3ed852e2009-09-05 21:47:34 +000022397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398 fi
22399 if test $ac_cv_c_bigendian = unknown; then
22400 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022402/* end confdefs.h. */
22403#include <limits.h>
22404
22405int
22406main ()
22407{
22408#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22409 bogus endian macros
22410 #endif
22411
22412 ;
22413 return 0;
22414}
22415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022416if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022417 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022419/* end confdefs.h. */
22420#include <limits.h>
22421
22422int
22423main ()
22424{
22425#ifndef _BIG_ENDIAN
22426 not big endian
22427 #endif
22428
22429 ;
22430 return 0;
22431}
22432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022433if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022434 ac_cv_c_bigendian=yes
22435else
cristy8b350f62009-11-15 23:12:43 +000022436 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022437fi
cristy3ed852e2009-09-05 21:47:34 +000022438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022439fi
cristy3ed852e2009-09-05 21:47:34 +000022440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 fi
22442 if test $ac_cv_c_bigendian = unknown; then
22443 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022444 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022445 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022447/* end confdefs.h. */
22448short int ascii_mm[] =
22449 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22450 short int ascii_ii[] =
22451 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22452 int use_ascii (int i) {
22453 return ascii_mm[i] + ascii_ii[i];
22454 }
22455 short int ebcdic_ii[] =
22456 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22457 short int ebcdic_mm[] =
22458 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22459 int use_ebcdic (int i) {
22460 return ebcdic_mm[i] + ebcdic_ii[i];
22461 }
22462 extern int foo;
22463
22464int
22465main ()
22466{
22467return use_ascii (foo) == use_ebcdic (foo);
22468 ;
22469 return 0;
22470}
22471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022472if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022473 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22474 ac_cv_c_bigendian=yes
22475 fi
22476 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22477 if test "$ac_cv_c_bigendian" = unknown; then
22478 ac_cv_c_bigendian=no
22479 else
22480 # finding both strings is unlikely to happen, but who knows?
22481 ac_cv_c_bigendian=unknown
22482 fi
22483 fi
cristy3ed852e2009-09-05 21:47:34 +000022484fi
cristy3ed852e2009-09-05 21:47:34 +000022485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486else
cristy8b350f62009-11-15 23:12:43 +000022487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022488/* end confdefs.h. */
22489$ac_includes_default
22490int
22491main ()
22492{
22493
22494 /* Are we little or big endian? From Harbison&Steele. */
22495 union
22496 {
22497 long int l;
22498 char c[sizeof (long int)];
22499 } u;
22500 u.l = 1;
22501 return u.c[sizeof (long int) - 1] == 1;
22502
22503 ;
22504 return 0;
22505}
22506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022507if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022508 ac_cv_c_bigendian=no
22509else
cristy8b350f62009-11-15 23:12:43 +000022510 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022511fi
cristy8b350f62009-11-15 23:12:43 +000022512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22513 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022514fi
22515
cristy3ed852e2009-09-05 21:47:34 +000022516 fi
22517fi
cristy8b350f62009-11-15 23:12:43 +000022518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022519$as_echo "$ac_cv_c_bigendian" >&6; }
22520 case $ac_cv_c_bigendian in #(
22521 yes)
cristy8b350f62009-11-15 23:12:43 +000022522 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022523;; #(
22524 no)
22525 ;; #(
22526 universal)
22527
cristy8b350f62009-11-15 23:12:43 +000022528$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022529
22530 ;; #(
22531 *)
cristy98dddb52010-11-04 00:30:15 +000022532 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022533 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022534 esac
22535
22536
cristy501c8042011-05-26 17:46:28 +000022537# Define to a suitable type, if standard headers do not define it.
22538ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22539case $ac_cv_c_int8_t in #(
22540 no|yes) ;; #(
22541 *)
cristy3ed852e2009-09-05 21:47:34 +000022542
22543cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022544#define int8_t $ac_cv_c_int8_t
22545_ACEOF
22546;;
22547esac
22548
22549ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22550case $ac_cv_c_int16_t in #(
22551 no|yes) ;; #(
22552 *)
22553
22554cat >>confdefs.h <<_ACEOF
22555#define int16_t $ac_cv_c_int16_t
22556_ACEOF
22557;;
22558esac
22559
22560ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22561case $ac_cv_c_int32_t in #(
22562 no|yes) ;; #(
22563 *)
22564
22565cat >>confdefs.h <<_ACEOF
22566#define int32_t $ac_cv_c_int32_t
22567_ACEOF
22568;;
22569esac
22570
22571ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22572case $ac_cv_c_int64_t in #(
22573 no|yes) ;; #(
22574 *)
22575
22576cat >>confdefs.h <<_ACEOF
22577#define int64_t $ac_cv_c_int64_t
22578_ACEOF
22579;;
22580esac
22581
22582
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22584$as_echo_n "checking for long long int... " >&6; }
22585if ${ac_cv_type_long_long_int+:} false; then :
22586 $as_echo_n "(cached) " >&6
22587else
22588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589/* end confdefs.h. */
22590
22591 /* For now, do not test the preprocessor; as of 2007 there are too many
22592 implementations with broken preprocessors. Perhaps this can
22593 be revisited in 2012. In the meantime, code should not expect
22594 #if to work with literals wider than 32 bits. */
22595 /* Test literals. */
22596 long long int ll = 9223372036854775807ll;
22597 long long int nll = -9223372036854775807LL;
22598 unsigned long long int ull = 18446744073709551615ULL;
22599 /* Test constant expressions. */
22600 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22601 ? 1 : -1)];
22602 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22603 ? 1 : -1)];
22604 int i = 63;
22605int
22606main ()
22607{
22608/* Test availability of runtime routines for shift and division. */
22609 long long int llmax = 9223372036854775807ll;
22610 unsigned long long int ullmax = 18446744073709551615ull;
22611 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22612 | (llmax / ll) | (llmax % ll)
22613 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22614 | (ullmax / ull) | (ullmax % ull));
22615 ;
22616 return 0;
22617}
22618
22619_ACEOF
22620if ac_fn_c_try_link "$LINENO"; then :
22621 if test "$cross_compiling" = yes; then :
22622 ac_cv_type_long_long_int=yes
22623else
22624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22625/* end confdefs.h. */
22626#include <limits.h>
22627 #ifndef LLONG_MAX
22628 # define HALF \
22629 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22630 # define LLONG_MAX (HALF - 1 + HALF)
22631 #endif
22632int
22633main ()
22634{
22635long long int n = 1;
22636 int i;
22637 for (i = 0; ; i++)
22638 {
22639 long long int m = n << i;
22640 if (m >> i != n)
22641 return 1;
22642 if (LLONG_MAX / 2 < m)
22643 break;
22644 }
22645 return 0;
22646 ;
22647 return 0;
22648}
22649_ACEOF
22650if ac_fn_c_try_run "$LINENO"; then :
22651 ac_cv_type_long_long_int=yes
22652else
22653 ac_cv_type_long_long_int=no
22654fi
22655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22656 conftest.$ac_objext conftest.beam conftest.$ac_ext
22657fi
22658
22659else
22660 ac_cv_type_long_long_int=no
22661fi
22662rm -f core conftest.err conftest.$ac_objext \
22663 conftest$ac_exeext conftest.$ac_ext
22664fi
22665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22666$as_echo "$ac_cv_type_long_long_int" >&6; }
22667 if test $ac_cv_type_long_long_int = yes; then
22668
22669$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22670
22671 fi
22672
22673
22674
22675 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22676if test "x$ac_cv_type_intmax_t" = xyes; then :
22677
22678$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22679
22680else
22681 test $ac_cv_type_long_long_int = yes \
22682 && ac_type='long long int' \
22683 || ac_type='long int'
22684
22685cat >>confdefs.h <<_ACEOF
22686#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022687_ACEOF
22688
22689fi
22690
22691
cristy501c8042011-05-26 17:46:28 +000022692
22693 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22694if test "x$ac_cv_type_intptr_t" = xyes; then :
22695
22696$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022697
cristy3ed852e2009-09-05 21:47:34 +000022698else
cristy501c8042011-05-26 17:46:28 +000022699 for ac_type in 'int' 'long int' 'long long int'; do
22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701/* end confdefs.h. */
22702$ac_includes_default
22703int
22704main ()
22705{
22706static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22707test_array [0] = 0
22708
22709 ;
22710 return 0;
22711}
22712_ACEOF
22713if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022714
22715cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022716#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022717_ACEOF
22718
cristy501c8042011-05-26 17:46:28 +000022719 ac_type=
22720fi
22721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 test -z "$ac_type" && break
22723 done
cristy3ed852e2009-09-05 21:47:34 +000022724fi
22725
22726
cristy3ed852e2009-09-05 21:47:34 +000022727
cristy501c8042011-05-26 17:46:28 +000022728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22729$as_echo_n "checking for long double... " >&6; }
22730if ${ac_cv_type_long_double+:} false; then :
22731 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022732else
cristy501c8042011-05-26 17:46:28 +000022733 if test "$GCC" = yes; then
22734 ac_cv_type_long_double=yes
22735 else
22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737/* end confdefs.h. */
22738/* The Stardent Vistra knows sizeof (long double), but does
22739 not support it. */
22740 long double foo = 0.0L;
22741int
22742main ()
22743{
22744static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22745 sizeof (double) <= sizeof (long double))];
22746test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022747
cristy501c8042011-05-26 17:46:28 +000022748 ;
22749 return 0;
22750}
cristy3ed852e2009-09-05 21:47:34 +000022751_ACEOF
cristy501c8042011-05-26 17:46:28 +000022752if ac_fn_c_try_compile "$LINENO"; then :
22753 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022754else
cristy501c8042011-05-26 17:46:28 +000022755 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022756fi
cristy501c8042011-05-26 17:46:28 +000022757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 fi
cristy3ed852e2009-09-05 21:47:34 +000022759fi
cristy501c8042011-05-26 17:46:28 +000022760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22761$as_echo "$ac_cv_type_long_double" >&6; }
22762 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022763
cristy501c8042011-05-26 17:46:28 +000022764$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022765
cristy501c8042011-05-26 17:46:28 +000022766 fi
22767
cristy3ed852e2009-09-05 21:47:34 +000022768
cristy8b350f62009-11-15 23:12:43 +000022769 { $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 +000022770$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022771if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022772 $as_echo_n "(cached) " >&6
22773else
cristy8b350f62009-11-15 23:12:43 +000022774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022775/* end confdefs.h. */
22776#include <float.h>
22777 long double const a[] =
22778 {
22779 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22780 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22781 };
22782 long double
22783 f (long double x)
22784 {
22785 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22786 + (x ? f (x) : 'c'));
22787 }
22788
22789int
22790main ()
22791{
22792static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22793 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22794 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22795 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22796 && (int) LDBL_EPSILON == 0
22797 )];
22798test_array [0] = 0
22799
22800 ;
22801 return 0;
22802}
22803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022805 ac_cv_type_long_double_wider=yes
22806else
cristy8b350f62009-11-15 23:12:43 +000022807 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022808fi
cristy3ed852e2009-09-05 21:47:34 +000022809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810fi
cristy8b350f62009-11-15 23:12:43 +000022811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022812$as_echo "$ac_cv_type_long_double_wider" >&6; }
22813 if test $ac_cv_type_long_double_wider = yes; then
22814
cristy8b350f62009-11-15 23:12:43 +000022815$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022816
22817 fi
22818
22819
cristy501c8042011-05-26 17:46:28 +000022820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22821$as_echo_n "checking for long long int... " >&6; }
22822if ${ac_cv_type_long_long_int+:} false; then :
22823 $as_echo_n "(cached) " >&6
22824else
22825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22826/* end confdefs.h. */
22827
22828 /* For now, do not test the preprocessor; as of 2007 there are too many
22829 implementations with broken preprocessors. Perhaps this can
22830 be revisited in 2012. In the meantime, code should not expect
22831 #if to work with literals wider than 32 bits. */
22832 /* Test literals. */
22833 long long int ll = 9223372036854775807ll;
22834 long long int nll = -9223372036854775807LL;
22835 unsigned long long int ull = 18446744073709551615ULL;
22836 /* Test constant expressions. */
22837 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22838 ? 1 : -1)];
22839 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22840 ? 1 : -1)];
22841 int i = 63;
22842int
22843main ()
22844{
22845/* Test availability of runtime routines for shift and division. */
22846 long long int llmax = 9223372036854775807ll;
22847 unsigned long long int ullmax = 18446744073709551615ull;
22848 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22849 | (llmax / ll) | (llmax % ll)
22850 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22851 | (ullmax / ull) | (ullmax % ull));
22852 ;
22853 return 0;
22854}
22855
22856_ACEOF
22857if ac_fn_c_try_link "$LINENO"; then :
22858 if test "$cross_compiling" = yes; then :
22859 ac_cv_type_long_long_int=yes
22860else
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862/* end confdefs.h. */
22863#include <limits.h>
22864 #ifndef LLONG_MAX
22865 # define HALF \
22866 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22867 # define LLONG_MAX (HALF - 1 + HALF)
22868 #endif
22869int
22870main ()
22871{
22872long long int n = 1;
22873 int i;
22874 for (i = 0; ; i++)
22875 {
22876 long long int m = n << i;
22877 if (m >> i != n)
22878 return 1;
22879 if (LLONG_MAX / 2 < m)
22880 break;
22881 }
22882 return 0;
22883 ;
22884 return 0;
22885}
22886_ACEOF
22887if ac_fn_c_try_run "$LINENO"; then :
22888 ac_cv_type_long_long_int=yes
22889else
22890 ac_cv_type_long_long_int=no
22891fi
22892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22893 conftest.$ac_objext conftest.beam conftest.$ac_ext
22894fi
22895
22896else
22897 ac_cv_type_long_long_int=no
22898fi
22899rm -f core conftest.err conftest.$ac_objext \
22900 conftest$ac_exeext conftest.$ac_ext
22901fi
22902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22903$as_echo "$ac_cv_type_long_long_int" >&6; }
22904 if test $ac_cv_type_long_long_int = yes; then
22905
22906$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22907
22908 fi
22909
22910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22911$as_echo_n "checking for mbstate_t... " >&6; }
22912if ${ac_cv_type_mbstate_t+:} false; then :
22913 $as_echo_n "(cached) " >&6
22914else
22915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916/* end confdefs.h. */
22917$ac_includes_default
22918# include <wchar.h>
22919int
22920main ()
22921{
22922mbstate_t x; return sizeof x;
22923 ;
22924 return 0;
22925}
22926_ACEOF
22927if ac_fn_c_try_compile "$LINENO"; then :
22928 ac_cv_type_mbstate_t=yes
22929else
22930 ac_cv_type_mbstate_t=no
22931fi
22932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933fi
22934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22935$as_echo "$ac_cv_type_mbstate_t" >&6; }
22936 if test $ac_cv_type_mbstate_t = yes; then
22937
22938$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22939
22940 else
22941
22942$as_echo "#define mbstate_t int" >>confdefs.h
22943
22944 fi
22945ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22946if test "x$ac_cv_type_mode_t" = xyes; then :
22947
22948else
22949
22950cat >>confdefs.h <<_ACEOF
22951#define mode_t int
22952_ACEOF
22953
22954fi
22955
22956ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22957if test "x$ac_cv_type_off_t" = xyes; then :
22958
22959else
22960
22961cat >>confdefs.h <<_ACEOF
22962#define off_t long int
22963_ACEOF
22964
22965fi
22966
22967ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22968if test "x$ac_cv_type_pid_t" = xyes; then :
22969
22970else
22971
22972cat >>confdefs.h <<_ACEOF
22973#define pid_t int
22974_ACEOF
22975
22976fi
22977
22978ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22979if test "x$ac_cv_type_size_t" = xyes; then :
22980
22981else
22982
22983cat >>confdefs.h <<_ACEOF
22984#define size_t unsigned int
22985_ACEOF
22986
22987fi
22988
22989ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22990if test "x$ac_cv_type_ssize_t" = xyes; then :
22991
22992else
22993
22994cat >>confdefs.h <<_ACEOF
22995#define ssize_t int
22996_ACEOF
22997
22998fi
22999
23000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23001$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23002if ${ac_cv_type_uid_t+:} false; then :
23003 $as_echo_n "(cached) " >&6
23004else
23005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006/* end confdefs.h. */
23007#include <sys/types.h>
23008
23009_ACEOF
23010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23011 $EGREP "uid_t" >/dev/null 2>&1; then :
23012 ac_cv_type_uid_t=yes
23013else
23014 ac_cv_type_uid_t=no
23015fi
23016rm -f conftest*
23017
23018fi
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23020$as_echo "$ac_cv_type_uid_t" >&6; }
23021if test $ac_cv_type_uid_t = no; then
23022
23023$as_echo "#define uid_t int" >>confdefs.h
23024
23025
23026$as_echo "#define gid_t int" >>confdefs.h
23027
23028fi
23029
23030ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23031case $ac_cv_c_uint8_t in #(
23032 no|yes) ;; #(
23033 *)
23034
23035$as_echo "#define _UINT8_T 1" >>confdefs.h
23036
23037
23038cat >>confdefs.h <<_ACEOF
23039#define uint8_t $ac_cv_c_uint8_t
23040_ACEOF
23041;;
23042 esac
23043
23044ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23045case $ac_cv_c_uint16_t in #(
23046 no|yes) ;; #(
23047 *)
23048
23049
23050cat >>confdefs.h <<_ACEOF
23051#define uint16_t $ac_cv_c_uint16_t
23052_ACEOF
23053;;
23054 esac
23055
23056ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23057case $ac_cv_c_uint32_t in #(
23058 no|yes) ;; #(
23059 *)
23060
23061$as_echo "#define _UINT32_T 1" >>confdefs.h
23062
23063
23064cat >>confdefs.h <<_ACEOF
23065#define uint32_t $ac_cv_c_uint32_t
23066_ACEOF
23067;;
23068 esac
23069
23070ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23071case $ac_cv_c_uint64_t in #(
23072 no|yes) ;; #(
23073 *)
23074
23075$as_echo "#define _UINT64_T 1" >>confdefs.h
23076
23077
23078cat >>confdefs.h <<_ACEOF
23079#define uint64_t $ac_cv_c_uint64_t
23080_ACEOF
23081;;
23082 esac
23083
23084
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23086$as_echo_n "checking for unsigned long long int... " >&6; }
23087if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23088 $as_echo_n "(cached) " >&6
23089else
23090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091/* end confdefs.h. */
23092
23093 /* For now, do not test the preprocessor; as of 2007 there are too many
23094 implementations with broken preprocessors. Perhaps this can
23095 be revisited in 2012. In the meantime, code should not expect
23096 #if to work with literals wider than 32 bits. */
23097 /* Test literals. */
23098 long long int ll = 9223372036854775807ll;
23099 long long int nll = -9223372036854775807LL;
23100 unsigned long long int ull = 18446744073709551615ULL;
23101 /* Test constant expressions. */
23102 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23103 ? 1 : -1)];
23104 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23105 ? 1 : -1)];
23106 int i = 63;
23107int
23108main ()
23109{
23110/* Test availability of runtime routines for shift and division. */
23111 long long int llmax = 9223372036854775807ll;
23112 unsigned long long int ullmax = 18446744073709551615ull;
23113 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23114 | (llmax / ll) | (llmax % ll)
23115 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23116 | (ullmax / ull) | (ullmax % ull));
23117 ;
23118 return 0;
23119}
23120
23121_ACEOF
23122if ac_fn_c_try_link "$LINENO"; then :
23123 ac_cv_type_unsigned_long_long_int=yes
23124else
23125 ac_cv_type_unsigned_long_long_int=no
23126fi
23127rm -f core conftest.err conftest.$ac_objext \
23128 conftest$ac_exeext conftest.$ac_ext
23129fi
23130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23131$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23132 if test $ac_cv_type_unsigned_long_long_int = yes; then
23133
23134$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23135
23136 fi
23137
23138
23139
23140 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23141if test "x$ac_cv_type_uintmax_t" = xyes; then :
23142
23143$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23144
23145else
23146 test $ac_cv_type_unsigned_long_long_int = yes \
23147 && ac_type='unsigned long long int' \
23148 || ac_type='unsigned long int'
23149
23150cat >>confdefs.h <<_ACEOF
23151#define uintmax_t $ac_type
23152_ACEOF
23153
23154fi
23155
23156
23157
23158 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23159if test "x$ac_cv_type_uintptr_t" = xyes; then :
23160
23161$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23162
23163else
23164 for ac_type in 'unsigned int' 'unsigned long int' \
23165 'unsigned long long int'; do
23166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23167/* end confdefs.h. */
23168$ac_includes_default
23169int
23170main ()
23171{
23172static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23173test_array [0] = 0
23174
23175 ;
23176 return 0;
23177}
23178_ACEOF
23179if ac_fn_c_try_compile "$LINENO"; then :
23180
23181cat >>confdefs.h <<_ACEOF
23182#define uintptr_t $ac_type
23183_ACEOF
23184
23185 ac_type=
23186fi
23187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23188 test -z "$ac_type" && break
23189 done
23190fi
23191
23192
23193
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23195$as_echo_n "checking for unsigned long long int... " >&6; }
23196if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23197 $as_echo_n "(cached) " >&6
23198else
23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23200/* end confdefs.h. */
23201
23202 /* For now, do not test the preprocessor; as of 2007 there are too many
23203 implementations with broken preprocessors. Perhaps this can
23204 be revisited in 2012. In the meantime, code should not expect
23205 #if to work with literals wider than 32 bits. */
23206 /* Test literals. */
23207 long long int ll = 9223372036854775807ll;
23208 long long int nll = -9223372036854775807LL;
23209 unsigned long long int ull = 18446744073709551615ULL;
23210 /* Test constant expressions. */
23211 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23212 ? 1 : -1)];
23213 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23214 ? 1 : -1)];
23215 int i = 63;
23216int
23217main ()
23218{
23219/* Test availability of runtime routines for shift and division. */
23220 long long int llmax = 9223372036854775807ll;
23221 unsigned long long int ullmax = 18446744073709551615ull;
23222 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23223 | (llmax / ll) | (llmax % ll)
23224 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23225 | (ullmax / ull) | (ullmax % ull));
23226 ;
23227 return 0;
23228}
23229
23230_ACEOF
23231if ac_fn_c_try_link "$LINENO"; then :
23232 ac_cv_type_unsigned_long_long_int=yes
23233else
23234 ac_cv_type_unsigned_long_long_int=no
23235fi
23236rm -f core conftest.err conftest.$ac_objext \
23237 conftest$ac_exeext conftest.$ac_ext
23238fi
23239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23240$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23241 if test $ac_cv_type_unsigned_long_long_int = yes; then
23242
23243$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23244
23245 fi
23246
23247
cristy3ed852e2009-09-05 21:47:34 +000023248# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23249# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023251$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023252if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023253 $as_echo_n "(cached) " >&6
23254else
cristy8b350f62009-11-15 23:12:43 +000023255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023256/* end confdefs.h. */
23257$ac_includes_default
23258int
23259main ()
23260{
23261static int test_array [1 - 2 * !(((char) -1) < 0)];
23262test_array [0] = 0
23263
23264 ;
23265 return 0;
23266}
23267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023269 ac_cv_c_char_unsigned=no
23270else
cristy8b350f62009-11-15 23:12:43 +000023271 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023272fi
cristy3ed852e2009-09-05 21:47:34 +000023273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274fi
cristy8b350f62009-11-15 23:12:43 +000023275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023276$as_echo "$ac_cv_c_char_unsigned" >&6; }
23277if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023278 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023279
23280fi
23281
23282
23283# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23284# The cast to long int works around a bug in the HP C Compiler
23285# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23286# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23287# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023289$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023290if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023291 $as_echo_n "(cached) " >&6
23292else
cristy8b350f62009-11-15 23:12:43 +000023293 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 +000023294
cristy3ed852e2009-09-05 21:47:34 +000023295else
cristy8b350f62009-11-15 23:12:43 +000023296 if test "$ac_cv_type_signed_short" = yes; then
23297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023299as_fn_error 77 "cannot compute sizeof (signed short)
23300See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023301 else
23302 ac_cv_sizeof_signed_short=0
23303 fi
23304fi
cristy8b350f62009-11-15 23:12:43 +000023305
cristy3ed852e2009-09-05 21:47:34 +000023306fi
cristy8b350f62009-11-15 23:12:43 +000023307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023308$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23309
23310
23311
23312cat >>confdefs.h <<_ACEOF
23313#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23314_ACEOF
23315
23316
23317
23318# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23319# The cast to long int works around a bug in the HP C Compiler
23320# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23321# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23322# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023324$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023325if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023326 $as_echo_n "(cached) " >&6
23327else
cristy8b350f62009-11-15 23:12:43 +000023328 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 +000023329
cristy3ed852e2009-09-05 21:47:34 +000023330else
cristy8b350f62009-11-15 23:12:43 +000023331 if test "$ac_cv_type_unsigned_short" = yes; then
23332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023334as_fn_error 77 "cannot compute sizeof (unsigned short)
23335See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023336 else
23337 ac_cv_sizeof_unsigned_short=0
23338 fi
23339fi
cristy8b350f62009-11-15 23:12:43 +000023340
cristy3ed852e2009-09-05 21:47:34 +000023341fi
cristy8b350f62009-11-15 23:12:43 +000023342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023343$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23344
23345
23346
23347cat >>confdefs.h <<_ACEOF
23348#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23349_ACEOF
23350
23351
23352
23353# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23354# The cast to long int works around a bug in the HP C Compiler
23355# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23356# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23357# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023359$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023360if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023361 $as_echo_n "(cached) " >&6
23362else
cristy8b350f62009-11-15 23:12:43 +000023363 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 +000023364
cristy3ed852e2009-09-05 21:47:34 +000023365else
cristy8b350f62009-11-15 23:12:43 +000023366 if test "$ac_cv_type_signed_int" = yes; then
23367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023369as_fn_error 77 "cannot compute sizeof (signed int)
23370See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023371 else
23372 ac_cv_sizeof_signed_int=0
23373 fi
23374fi
cristy8b350f62009-11-15 23:12:43 +000023375
cristy3ed852e2009-09-05 21:47:34 +000023376fi
cristy8b350f62009-11-15 23:12:43 +000023377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023378$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23379
23380
23381
23382cat >>confdefs.h <<_ACEOF
23383#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23384_ACEOF
23385
23386
23387
23388# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23389# The cast to long int works around a bug in the HP C Compiler
23390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23392# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023395if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023396 $as_echo_n "(cached) " >&6
23397else
cristy8b350f62009-11-15 23:12:43 +000023398 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 +000023399
cristy3ed852e2009-09-05 21:47:34 +000023400else
cristy8b350f62009-11-15 23:12:43 +000023401 if test "$ac_cv_type_unsigned_int" = yes; then
23402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023404as_fn_error 77 "cannot compute sizeof (unsigned int)
23405See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023406 else
23407 ac_cv_sizeof_unsigned_int=0
23408 fi
23409fi
cristy8b350f62009-11-15 23:12:43 +000023410
cristy3ed852e2009-09-05 21:47:34 +000023411fi
cristy8b350f62009-11-15 23:12:43 +000023412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023413$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23414
23415
23416
23417cat >>confdefs.h <<_ACEOF
23418#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23419_ACEOF
23420
23421
23422
23423# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23424# The cast to long int works around a bug in the HP C Compiler
23425# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23426# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23427# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023430if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023431 $as_echo_n "(cached) " >&6
23432else
cristy8b350f62009-11-15 23:12:43 +000023433 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 +000023434
cristy3ed852e2009-09-05 21:47:34 +000023435else
cristy8b350f62009-11-15 23:12:43 +000023436 if test "$ac_cv_type_signed_long" = yes; then
23437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023439as_fn_error 77 "cannot compute sizeof (signed long)
23440See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023441 else
23442 ac_cv_sizeof_signed_long=0
23443 fi
23444fi
cristy8b350f62009-11-15 23:12:43 +000023445
cristy3ed852e2009-09-05 21:47:34 +000023446fi
cristy8b350f62009-11-15 23:12:43 +000023447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023448$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23449
23450
23451
23452cat >>confdefs.h <<_ACEOF
23453#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23454_ACEOF
23455
23456
23457
23458# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23459# The cast to long int works around a bug in the HP C Compiler
23460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23462# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023464$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023465if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023466 $as_echo_n "(cached) " >&6
23467else
cristy8b350f62009-11-15 23:12:43 +000023468 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 +000023469
cristy3ed852e2009-09-05 21:47:34 +000023470else
cristy8b350f62009-11-15 23:12:43 +000023471 if test "$ac_cv_type_unsigned_long" = yes; then
23472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023474as_fn_error 77 "cannot compute sizeof (unsigned long)
23475See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023476 else
23477 ac_cv_sizeof_unsigned_long=0
23478 fi
23479fi
cristy8b350f62009-11-15 23:12:43 +000023480
cristy3ed852e2009-09-05 21:47:34 +000023481fi
cristy8b350f62009-11-15 23:12:43 +000023482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023483$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23484
23485
23486
23487cat >>confdefs.h <<_ACEOF
23488#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23489_ACEOF
23490
23491
23492
23493# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23494# 'signed long long' is not supported then the value defined is zero.
23495# The cast to long int works around a bug in the HP C Compiler
23496# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23497# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23498# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023500$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023501if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023502 $as_echo_n "(cached) " >&6
23503else
cristy8b350f62009-11-15 23:12:43 +000023504 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 +000023505
cristy3ed852e2009-09-05 21:47:34 +000023506else
cristy8b350f62009-11-15 23:12:43 +000023507 if test "$ac_cv_type_signed_long_long" = yes; then
23508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023510as_fn_error 77 "cannot compute sizeof (signed long long)
23511See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023512 else
23513 ac_cv_sizeof_signed_long_long=0
23514 fi
23515fi
cristy8b350f62009-11-15 23:12:43 +000023516
cristy3ed852e2009-09-05 21:47:34 +000023517fi
cristy8b350f62009-11-15 23:12:43 +000023518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023519$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23520
23521
23522
23523cat >>confdefs.h <<_ACEOF
23524#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23525_ACEOF
23526
23527
23528
23529# Obtain size of a 'unsigned long long' and define as
23530# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23531# supported then the value defined is zero.
23532# The cast to long int works around a bug in the HP C Compiler
23533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23535# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023537$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023538if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023539 $as_echo_n "(cached) " >&6
23540else
cristy8b350f62009-11-15 23:12:43 +000023541 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 +000023542
cristy3ed852e2009-09-05 21:47:34 +000023543else
cristy8b350f62009-11-15 23:12:43 +000023544 if test "$ac_cv_type_unsigned_long_long" = yes; then
23545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023547as_fn_error 77 "cannot compute sizeof (unsigned long long)
23548See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023549 else
23550 ac_cv_sizeof_unsigned_long_long=0
23551 fi
23552fi
cristy8b350f62009-11-15 23:12:43 +000023553
cristy3ed852e2009-09-05 21:47:34 +000023554fi
cristy8b350f62009-11-15 23:12:43 +000023555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023556$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23557
23558
23559
23560cat >>confdefs.h <<_ACEOF
23561#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23562_ACEOF
23563
23564
23565
23566# Obtain size of off_t and define as SIZEOF_OFF_T
23567# The cast to long int works around a bug in the HP C Compiler
23568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23570# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023573if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023574 $as_echo_n "(cached) " >&6
23575else
cristy8b350f62009-11-15 23:12:43 +000023576 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 +000023577
cristy3ed852e2009-09-05 21:47:34 +000023578else
cristy8b350f62009-11-15 23:12:43 +000023579 if test "$ac_cv_type_off_t" = yes; then
23580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023582as_fn_error 77 "cannot compute sizeof (off_t)
23583See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023584 else
23585 ac_cv_sizeof_off_t=0
23586 fi
23587fi
cristy8b350f62009-11-15 23:12:43 +000023588
cristy3ed852e2009-09-05 21:47:34 +000023589fi
cristy8b350f62009-11-15 23:12:43 +000023590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023591$as_echo "$ac_cv_sizeof_off_t" >&6; }
23592
23593
23594
23595cat >>confdefs.h <<_ACEOF
23596#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23597_ACEOF
23598
23599
23600
23601# Obtain size of size_t and define as SIZEOF_SIZE_T
23602# The cast to long int works around a bug in the HP C Compiler
23603# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23604# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23605# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023607$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023608if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023609 $as_echo_n "(cached) " >&6
23610else
cristy8b350f62009-11-15 23:12:43 +000023611 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 +000023612
cristy3ed852e2009-09-05 21:47:34 +000023613else
cristy8b350f62009-11-15 23:12:43 +000023614 if test "$ac_cv_type_size_t" = yes; then
23615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023617as_fn_error 77 "cannot compute sizeof (size_t)
23618See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023619 else
23620 ac_cv_sizeof_size_t=0
23621 fi
23622fi
cristy8b350f62009-11-15 23:12:43 +000023623
cristy3ed852e2009-09-05 21:47:34 +000023624fi
cristy8b350f62009-11-15 23:12:43 +000023625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023626$as_echo "$ac_cv_sizeof_size_t" >&6; }
23627
23628
23629
23630cat >>confdefs.h <<_ACEOF
23631#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23632_ACEOF
23633
23634
23635
cristy330e9352010-06-01 18:42:49 +000023636# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23637# The cast to long int works around a bug in the HP C Compiler
23638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23640# This bug is HP SR number 8606223364.
23641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23642$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023643if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023644 $as_echo_n "(cached) " >&6
23645else
23646 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23647
23648else
23649 if test "$ac_cv_type_ssize_t" = yes; then
23650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023652as_fn_error 77 "cannot compute sizeof (ssize_t)
23653See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023654 else
23655 ac_cv_sizeof_ssize_t=0
23656 fi
23657fi
23658
23659fi
23660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23661$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23662
23663
23664
23665cat >>confdefs.h <<_ACEOF
23666#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23667_ACEOF
23668
23669
23670
cristy3ed852e2009-09-05 21:47:34 +000023671# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23672# The cast to long int works around a bug in the HP C Compiler
23673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23675# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023677$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023678if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023679 $as_echo_n "(cached) " >&6
23680else
cristy8b350f62009-11-15 23:12:43 +000023681 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 +000023682
cristy3ed852e2009-09-05 21:47:34 +000023683else
cristy8b350f62009-11-15 23:12:43 +000023684 if test "$ac_cv_type_unsigned_intp" = yes; then
23685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023687as_fn_error 77 "cannot compute sizeof (unsigned int*)
23688See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023689 else
23690 ac_cv_sizeof_unsigned_intp=0
23691 fi
23692fi
cristy8b350f62009-11-15 23:12:43 +000023693
cristy3ed852e2009-09-05 21:47:34 +000023694fi
cristy8b350f62009-11-15 23:12:43 +000023695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023696$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23697
23698
23699
23700cat >>confdefs.h <<_ACEOF
23701#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23702_ACEOF
23703
23704
23705
23706#
23707# Compute sized types for current CPU and compiler options.
23708#
23709
cristy8b350f62009-11-15 23:12:43 +000023710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023711$as_echo_n "checking for signed 8-bit type... " >&6; }
23712INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023713{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23714$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023715
23716
cristy8b350f62009-11-15 23:12:43 +000023717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23719UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023720{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23721$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023722
23723
cristy8b350f62009-11-15 23:12:43 +000023724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023725$as_echo_n "checking for signed 16-bit type... " >&6; }
23726INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023727{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23728$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023729
23730
cristy8b350f62009-11-15 23:12:43 +000023731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023732$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23733UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023734{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23735$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023736
23737
cristy8b350f62009-11-15 23:12:43 +000023738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023739$as_echo_n "checking for signed 32-bit type... " >&6; }
23740INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023741INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023742if test $ac_cv_sizeof_signed_int -eq 4; then
23743 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023744 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023745elif test $ac_cv_sizeof_signed_long -eq 4; then
23746 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023747 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023748fi
cristy09b53e12011-10-14 12:47:22 +000023749{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23750$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023751
23752
cristy6d5e20f2011-04-25 13:48:54 +000023753
cristy8b350f62009-11-15 23:12:43 +000023754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023755$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23756UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023757UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023758if test $ac_cv_sizeof_unsigned_int -eq 4; then
23759 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023760 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023761elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23762 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023763 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023764fi
cristy09b53e12011-10-14 12:47:22 +000023765{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23766$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023767
23768
cristy6d5e20f2011-04-25 13:48:54 +000023769
cristy8b350f62009-11-15 23:12:43 +000023770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023771$as_echo_n "checking for signed 64-bit type... " >&6; }
23772INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023773INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023774if test $ac_cv_sizeof_signed_long -eq 8; then
23775 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023776 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023777elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23778 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023779 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023780fi
cristy6d5e20f2011-04-25 13:48:54 +000023781case "${build_os}" in
23782 mingw* )
23783 INT64_F='"I64"'
23784 ;;
23785esac
cristy09b53e12011-10-14 12:47:22 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23787$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023788
23789
cristy6d5e20f2011-04-25 13:48:54 +000023790
cristy8b350f62009-11-15 23:12:43 +000023791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023792$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23793UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023794UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023795if test $ac_cv_sizeof_unsigned_long -eq 8; then
23796 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023797 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023798elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23799 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023800 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023801fi
cristy6d5e20f2011-04-25 13:48:54 +000023802case "${build_os}" in
23803 mingw* )
23804 UINT64_F='"I64"'
23805 ;;
23806esac
cristy09b53e12011-10-14 12:47:22 +000023807{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23808$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023809
23810
cristy6d5e20f2011-04-25 13:48:54 +000023811
cristy8b350f62009-11-15 23:12:43 +000023812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023813$as_echo_n "checking for unsigned maximum type... " >&6; }
23814UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023815UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023816if test "$UINT64_T" != 'none'; then
23817 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023818 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023819elif test "$UINT32_T" != 'none'; then
23820 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023821 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023822fi
cristy09b53e12011-10-14 12:47:22 +000023823{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23824$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023825
23826
cristy6d5e20f2011-04-25 13:48:54 +000023827
cristy8b350f62009-11-15 23:12:43 +000023828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023829$as_echo_n "checking for pointer difference type... " >&6; }
23830UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023831UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023832if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23833 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023834 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023835elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23836 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023837 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023838fi
cristy09b53e12011-10-14 12:47:22 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23840$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023841
23842
cristy6d5e20f2011-04-25 13:48:54 +000023843
cristy8b350f62009-11-15 23:12:43 +000023844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023847/* end confdefs.h. */
23848
23849int
23850main ()
23851{
23852{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23853 ;
23854 return 0;
23855}
23856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023857if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023858 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23859$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023860else
cristy09b53e12011-10-14 12:47:22 +000023861 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23862$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023864$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023866/* end confdefs.h. */
23867
23868int
23869main ()
23870{
23871{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23872 ;
23873 return 0;
23874}
23875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023876if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023877 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23878$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023879
cristy8b350f62009-11-15 23:12:43 +000023880$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023881
23882else
cristy09b53e12011-10-14 12:47:22 +000023883 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23884$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023885
cristy8b350f62009-11-15 23:12:43 +000023886$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023887
23888fi
cristy3ed852e2009-09-05 21:47:34 +000023889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23890fi
cristy3ed852e2009-09-05 21:47:34 +000023891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892
23893########
23894#
23895# Check for functions
23896#
23897########
cristy73bd4a52010-10-05 11:24:23 +000023898for ac_header in stdlib.h unistd.h
23899do :
23900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023902if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023903 cat >>confdefs.h <<_ACEOF
23904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23905_ACEOF
23906
23907fi
23908
23909done
23910
23911for ac_func in getpagesize
23912do :
23913 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023914if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023915 cat >>confdefs.h <<_ACEOF
23916#define HAVE_GETPAGESIZE 1
23917_ACEOF
23918
23919fi
23920done
23921
23922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23923$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023924if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023925 $as_echo_n "(cached) " >&6
23926else
23927 if test "$cross_compiling" = yes; then :
23928 magick_cv_func_mmap_fileio=no
23929else
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931/* end confdefs.h. */
23932$ac_includes_default
23933/* malloc might have been renamed as rpl_malloc. */
23934#undef malloc
23935
23936/*
23937 This test is derived from GNU Autoconf's similar macro.
23938 The purpose of this test is to verify that files may be memory
23939 mapped, and that memory mapping and file I/O are coherent.
23940
23941 The test creates a test file, memory maps the file, updates
23942 the file using the memory map, and then reads the file using
23943 file I/O to verify that the file contains the updates.
23944*/
23945
23946#include <fcntl.h>
23947#include <sys/mman.h>
23948
23949#if !STDC_HEADERS && !HAVE_STDLIB_H
23950char *malloc ();
23951#endif
23952
23953/* This mess was copied from the GNU getpagesize.h. */
23954#if !HAVE_GETPAGESIZE
23955/* Assume that all systems that can run configure have sys/param.h. */
23956# if !HAVE_SYS_PARAM_H
23957# define HAVE_SYS_PARAM_H 1
23958# endif
23959
23960# ifdef _SC_PAGESIZE
23961# define getpagesize() sysconf(_SC_PAGESIZE)
23962# else /* no _SC_PAGESIZE */
23963# if HAVE_SYS_PARAM_H
23964# include <sys/param.h>
23965# ifdef EXEC_PAGESIZE
23966# define getpagesize() EXEC_PAGESIZE
23967# else /* no EXEC_PAGESIZE */
23968# ifdef NBPG
23969# define getpagesize() NBPG * CLSIZE
23970# ifndef CLSIZE
23971# define CLSIZE 1
23972# endif /* no CLSIZE */
23973# else /* no NBPG */
23974# ifdef NBPC
23975# define getpagesize() NBPC
23976# else /* no NBPC */
23977# ifdef PAGESIZE
23978# define getpagesize() PAGESIZE
23979# endif /* PAGESIZE */
23980# endif /* no NBPC */
23981# endif /* no NBPG */
23982# endif /* no EXEC_PAGESIZE */
23983# else /* no HAVE_SYS_PARAM_H */
23984# define getpagesize() 8192 /* punt totally */
23985# endif /* no HAVE_SYS_PARAM_H */
23986# endif /* no _SC_PAGESIZE */
23987
23988#endif /* no HAVE_GETPAGESIZE */
23989
23990int
23991main ()
23992{
23993 char *data, *data2, *data3;
23994 int i, pagesize;
23995 int fd;
23996
23997 pagesize = getpagesize ();
23998
23999 /* First, make a file with some known garbage in it. */
24000 data = (char *) malloc (pagesize);
24001 if (!data)
24002 exit (1);
24003 for (i = 0; i < pagesize; ++i)
24004 *(data + i) = rand ();
24005 umask (0);
24006 fd = creat ("conftest.mmap", 0600);
24007 if (fd < 0)
24008 exit (1);
24009 if (write (fd, data, pagesize) != pagesize)
24010 exit (1);
24011 close (fd);
24012
24013 /* Mmap the file as read/write/shared and verify that we see the
24014 same garbage. */
24015 fd = open ("conftest.mmap", O_RDWR);
24016 if (fd < 0)
24017 exit (1);
24018 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24019 if (data2 == 0)
24020 exit (1);
24021 for (i = 0; i < pagesize; ++i)
24022 if (*(data + i) != *(data2 + i))
24023 exit (1);
24024
24025 /* Finally, make sure that changes to the mapped area
24026 percolate back to the file as seen by read(). */
24027 for (i = 0; i < pagesize; ++i)
24028 *(data2 + i) = *(data2 + i) + 1;
24029 data3 = (char *) malloc (pagesize);
24030 if (!data3)
24031 exit (1);
24032 if (read (fd, data3, pagesize) != pagesize)
24033 exit (1);
24034 for (i = 0; i < pagesize; ++i)
24035 if (*(data2 + i) != *(data3 + i))
24036 exit (1);
24037 close (fd);
24038 exit (0);
24039}
24040_ACEOF
24041if ac_fn_c_try_run "$LINENO"; then :
24042 magick_cv_func_mmap_fileio=yes
24043else
24044 magick_cv_func_mmap_fileio=no
24045fi
24046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24047 conftest.$ac_objext conftest.beam conftest.$ac_ext
24048fi
24049
24050fi
24051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24052$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24053if test $magick_cv_func_mmap_fileio = yes; then
24054
24055$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24056
24057fi
24058rm -f conftest.mmap
24059
cristy8b350f62009-11-15 23:12:43 +000024060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024061$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024062if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024063 $as_echo_n "(cached) " >&6
24064else
cristy8b350f62009-11-15 23:12:43 +000024065 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024066 ac_cv_func_closedir_void=yes
24067else
cristy8b350f62009-11-15 23:12:43 +000024068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024069/* end confdefs.h. */
24070$ac_includes_default
24071#include <$ac_header_dirent>
24072#ifndef __cplusplus
24073int closedir ();
24074#endif
24075
24076int
24077main ()
24078{
24079return closedir (opendir (".")) != 0;
24080 ;
24081 return 0;
24082}
24083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024084if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024085 ac_cv_func_closedir_void=no
24086else
cristy8b350f62009-11-15 23:12:43 +000024087 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024088fi
cristy8b350f62009-11-15 23:12:43 +000024089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24090 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024091fi
24092
cristy3ed852e2009-09-05 21:47:34 +000024093fi
cristy8b350f62009-11-15 23:12:43 +000024094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024095$as_echo "$ac_cv_func_closedir_void" >&6; }
24096if test $ac_cv_func_closedir_void = yes; then
24097
cristy8b350f62009-11-15 23:12:43 +000024098$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024099
24100fi
24101
cristycd4c5312009-11-22 01:19:08 +000024102
24103
24104
24105 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024106do :
24107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024108ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24109"
cristy98dddb52010-11-04 00:30:15 +000024110if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024111 cat >>confdefs.h <<_ACEOF
24112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24113_ACEOF
24114
24115fi
24116
24117done
24118
cristycd4c5312009-11-22 01:19:08 +000024119
24120
24121
24122
24123
24124
24125
cristy3ed852e2009-09-05 21:47:34 +000024126for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024127do :
24128 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024129if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024130 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024131#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024132_ACEOF
24133
24134fi
24135done
24136
cristy8b350f62009-11-15 23:12:43 +000024137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024138$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024139if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024140 $as_echo_n "(cached) " >&6
24141else
cristy8b350f62009-11-15 23:12:43 +000024142 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024143 ac_cv_func_mmap_fixed_mapped=no
24144else
cristy8b350f62009-11-15 23:12:43 +000024145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024146/* end confdefs.h. */
24147$ac_includes_default
24148/* malloc might have been renamed as rpl_malloc. */
24149#undef malloc
24150
24151/* Thanks to Mike Haertel and Jim Avera for this test.
24152 Here is a matrix of mmap possibilities:
24153 mmap private not fixed
24154 mmap private fixed at somewhere currently unmapped
24155 mmap private fixed at somewhere already mapped
24156 mmap shared not fixed
24157 mmap shared fixed at somewhere currently unmapped
24158 mmap shared fixed at somewhere already mapped
24159 For private mappings, we should verify that changes cannot be read()
24160 back from the file, nor mmap's back from the file at a different
24161 address. (There have been systems where private was not correctly
24162 implemented like the infamous i386 svr4.0, and systems where the
24163 VM page cache was not coherent with the file system buffer cache
24164 like early versions of FreeBSD and possibly contemporary NetBSD.)
24165 For shared mappings, we should conversely verify that changes get
24166 propagated back to all the places they're supposed to be.
24167
24168 Grep wants private fixed already mapped.
24169 The main things grep needs to know about mmap are:
24170 * does it exist and is it safe to write into the mmap'd area
24171 * how to use it (BSD variants) */
24172
24173#include <fcntl.h>
24174#include <sys/mman.h>
24175
24176#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24177char *malloc ();
24178#endif
24179
24180/* This mess was copied from the GNU getpagesize.h. */
24181#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024182# ifdef _SC_PAGESIZE
24183# define getpagesize() sysconf(_SC_PAGESIZE)
24184# else /* no _SC_PAGESIZE */
24185# ifdef HAVE_SYS_PARAM_H
24186# include <sys/param.h>
24187# ifdef EXEC_PAGESIZE
24188# define getpagesize() EXEC_PAGESIZE
24189# else /* no EXEC_PAGESIZE */
24190# ifdef NBPG
24191# define getpagesize() NBPG * CLSIZE
24192# ifndef CLSIZE
24193# define CLSIZE 1
24194# endif /* no CLSIZE */
24195# else /* no NBPG */
24196# ifdef NBPC
24197# define getpagesize() NBPC
24198# else /* no NBPC */
24199# ifdef PAGESIZE
24200# define getpagesize() PAGESIZE
24201# endif /* PAGESIZE */
24202# endif /* no NBPC */
24203# endif /* no NBPG */
24204# endif /* no EXEC_PAGESIZE */
24205# else /* no HAVE_SYS_PARAM_H */
24206# define getpagesize() 8192 /* punt totally */
24207# endif /* no HAVE_SYS_PARAM_H */
24208# endif /* no _SC_PAGESIZE */
24209
24210#endif /* no HAVE_GETPAGESIZE */
24211
24212int
24213main ()
24214{
24215 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024216 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024217 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024218 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024219
24220 pagesize = getpagesize ();
24221
24222 /* First, make a file with some known garbage in it. */
24223 data = (char *) malloc (pagesize);
24224 if (!data)
24225 return 1;
24226 for (i = 0; i < pagesize; ++i)
24227 *(data + i) = rand ();
24228 umask (0);
24229 fd = creat ("conftest.mmap", 0600);
24230 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024231 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024232 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024233 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024234 close (fd);
24235
cristycd4c5312009-11-22 01:19:08 +000024236 /* Next, check that the tail of a page is zero-filled. File must have
24237 non-zero length, otherwise we risk SIGBUS for entire page. */
24238 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24239 if (fd2 < 0)
24240 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024241 cdata2 = "";
24242 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024243 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024244 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024245 if (data2 == MAP_FAILED)
24246 return 6;
24247 for (i = 0; i < pagesize; ++i)
24248 if (*(data2 + i))
24249 return 7;
24250 close (fd2);
24251 if (munmap (data2, pagesize))
24252 return 8;
24253
cristy3ed852e2009-09-05 21:47:34 +000024254 /* Next, try to mmap the file at a fixed address which already has
24255 something else allocated at it. If we can, also make sure that
24256 we see the same garbage. */
24257 fd = open ("conftest.mmap", O_RDWR);
24258 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024259 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024260 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24261 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024262 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024263 for (i = 0; i < pagesize; ++i)
24264 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024265 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024266
24267 /* Finally, make sure that changes to the mapped area do not
24268 percolate back to the file as seen by read(). (This is a bug on
24269 some variants of i386 svr4.0.) */
24270 for (i = 0; i < pagesize; ++i)
24271 *(data2 + i) = *(data2 + i) + 1;
24272 data3 = (char *) malloc (pagesize);
24273 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024274 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024275 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024276 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024277 for (i = 0; i < pagesize; ++i)
24278 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024279 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024280 close (fd);
24281 return 0;
24282}
24283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024284if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 ac_cv_func_mmap_fixed_mapped=yes
24286else
cristy8b350f62009-11-15 23:12:43 +000024287 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24290 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024291fi
24292
cristy3ed852e2009-09-05 21:47:34 +000024293fi
cristy8b350f62009-11-15 23:12:43 +000024294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024295$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24296if test $ac_cv_func_mmap_fixed_mapped = yes; then
24297
cristy8b350f62009-11-15 23:12:43 +000024298$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024299
24300fi
cristycd4c5312009-11-22 01:19:08 +000024301rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024302
cristy3ed852e2009-09-05 21:47:34 +000024303for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024304do :
24305 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024306if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024308#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024309_ACEOF
24310
24311fi
24312
24313done
24314
cristy3ed852e2009-09-05 21:47:34 +000024315for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024316do :
24317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24318ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024319if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024320 cat >>confdefs.h <<_ACEOF
24321#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24322_ACEOF
24323
24324fi
24325done
24326
24327if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024329$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024330if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024331 $as_echo_n "(cached) " >&6
24332else
cristy8b350f62009-11-15 23:12:43 +000024333 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024334 ac_cv_func_fork_works=cross
24335else
cristy8b350f62009-11-15 23:12:43 +000024336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024337/* end confdefs.h. */
24338$ac_includes_default
24339int
24340main ()
24341{
24342
24343 /* By Ruediger Kuhlmann. */
24344 return fork () < 0;
24345
24346 ;
24347 return 0;
24348}
24349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024350if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024351 ac_cv_func_fork_works=yes
24352else
cristy8b350f62009-11-15 23:12:43 +000024353 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy8b350f62009-11-15 23:12:43 +000024355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24356 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024357fi
24358
cristy3ed852e2009-09-05 21:47:34 +000024359fi
cristy8b350f62009-11-15 23:12:43 +000024360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo "$ac_cv_func_fork_works" >&6; }
24362
24363else
24364 ac_cv_func_fork_works=$ac_cv_func_fork
24365fi
24366if test "x$ac_cv_func_fork_works" = xcross; then
24367 case $host in
24368 *-*-amigaos* | *-*-msdosdjgpp*)
24369 # Override, as these systems have only a dummy fork() stub
24370 ac_cv_func_fork_works=no
24371 ;;
24372 *)
24373 ac_cv_func_fork_works=yes
24374 ;;
24375 esac
cristy8b350f62009-11-15 23:12:43 +000024376 { $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 +000024377$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24378fi
24379ac_cv_func_vfork_works=$ac_cv_func_vfork
24380if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024382$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024383if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024384 $as_echo_n "(cached) " >&6
24385else
cristy8b350f62009-11-15 23:12:43 +000024386 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024387 ac_cv_func_vfork_works=cross
24388else
cristy8b350f62009-11-15 23:12:43 +000024389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024390/* end confdefs.h. */
24391/* Thanks to Paul Eggert for this test. */
24392$ac_includes_default
24393#include <sys/wait.h>
24394#ifdef HAVE_VFORK_H
24395# include <vfork.h>
24396#endif
24397/* On some sparc systems, changes by the child to local and incoming
24398 argument registers are propagated back to the parent. The compiler
24399 is told about this with #include <vfork.h>, but some compilers
24400 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24401 static variable whose address is put into a register that is
24402 clobbered by the vfork. */
24403static void
24404#ifdef __cplusplus
24405sparc_address_test (int arg)
24406# else
24407sparc_address_test (arg) int arg;
24408#endif
24409{
24410 static pid_t child;
24411 if (!child) {
24412 child = vfork ();
24413 if (child < 0) {
24414 perror ("vfork");
24415 _exit(2);
24416 }
24417 if (!child) {
24418 arg = getpid();
24419 write(-1, "", 0);
24420 _exit (arg);
24421 }
24422 }
24423}
24424
24425int
24426main ()
24427{
24428 pid_t parent = getpid ();
24429 pid_t child;
24430
24431 sparc_address_test (0);
24432
24433 child = vfork ();
24434
24435 if (child == 0) {
24436 /* Here is another test for sparc vfork register problems. This
24437 test uses lots of local variables, at least as many local
24438 variables as main has allocated so far including compiler
24439 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24440 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24441 reuse the register of parent for one of the local variables,
24442 since it will think that parent can't possibly be used any more
24443 in this routine. Assigning to the local variable will thus
24444 munge parent in the parent process. */
24445 pid_t
24446 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24447 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24448 /* Convince the compiler that p..p7 are live; otherwise, it might
24449 use the same hardware register for all 8 local variables. */
24450 if (p != p1 || p != p2 || p != p3 || p != p4
24451 || p != p5 || p != p6 || p != p7)
24452 _exit(1);
24453
24454 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24455 from child file descriptors. If the child closes a descriptor
24456 before it execs or exits, this munges the parent's descriptor
24457 as well. Test for this by closing stdout in the child. */
24458 _exit(close(fileno(stdout)) != 0);
24459 } else {
24460 int status;
24461 struct stat st;
24462
24463 while (wait(&status) != child)
24464 ;
24465 return (
24466 /* Was there some problem with vforking? */
24467 child < 0
24468
24469 /* Did the child fail? (This shouldn't happen.) */
24470 || status
24471
24472 /* Did the vfork/compiler bug occur? */
24473 || parent != getpid()
24474
24475 /* Did the file descriptor bug occur? */
24476 || fstat(fileno(stdout), &st) != 0
24477 );
24478 }
24479}
24480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024481if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024482 ac_cv_func_vfork_works=yes
24483else
cristy8b350f62009-11-15 23:12:43 +000024484 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024485fi
cristy8b350f62009-11-15 23:12:43 +000024486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24487 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024488fi
24489
cristy3ed852e2009-09-05 21:47:34 +000024490fi
cristy8b350f62009-11-15 23:12:43 +000024491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024492$as_echo "$ac_cv_func_vfork_works" >&6; }
24493
24494fi;
24495if test "x$ac_cv_func_fork_works" = xcross; then
24496 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024497 { $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 +000024498$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24499fi
24500
24501if test "x$ac_cv_func_vfork_works" = xyes; then
24502
cristy8b350f62009-11-15 23:12:43 +000024503$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024504
24505else
24506
cristy8b350f62009-11-15 23:12:43 +000024507$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024508
24509fi
24510if test "x$ac_cv_func_fork_works" = xyes; then
24511
cristy8b350f62009-11-15 23:12:43 +000024512$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024513
24514fi
24515
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024518if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 $as_echo_n "(cached) " >&6
24520else
cristy8b350f62009-11-15 23:12:43 +000024521 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024522 ac_cv_func_memcmp_working=no
24523else
cristy8b350f62009-11-15 23:12:43 +000024524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024525/* end confdefs.h. */
24526$ac_includes_default
24527int
24528main ()
24529{
24530
24531 /* Some versions of memcmp are not 8-bit clean. */
24532 char c0 = '\100', c1 = '\200', c2 = '\201';
24533 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24534 return 1;
24535
24536 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24537 or more and with at least one buffer not starting on a 4-byte boundary.
24538 William Lewis provided this test program. */
24539 {
24540 char foo[21];
24541 char bar[21];
24542 int i;
24543 for (i = 0; i < 4; i++)
24544 {
24545 char *a = foo + i;
24546 char *b = bar + i;
24547 strcpy (a, "--------01111111");
24548 strcpy (b, "--------10000000");
24549 if (memcmp (a, b, 16) >= 0)
24550 return 1;
24551 }
24552 return 0;
24553 }
24554
24555 ;
24556 return 0;
24557}
24558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024559if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024560 ac_cv_func_memcmp_working=yes
24561else
cristy8b350f62009-11-15 23:12:43 +000024562 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristy8b350f62009-11-15 23:12:43 +000024564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24565 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024566fi
24567
cristy3ed852e2009-09-05 21:47:34 +000024568fi
cristy8b350f62009-11-15 23:12:43 +000024569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024570$as_echo "$ac_cv_func_memcmp_working" >&6; }
24571test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24572 *" memcmp.$ac_objext "* ) ;;
24573 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24574 ;;
24575esac
24576
24577
cristy3ed852e2009-09-05 21:47:34 +000024578for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024579do :
24580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24581ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024583 cat >>confdefs.h <<_ACEOF
24584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24585_ACEOF
24586
24587fi
24588
24589done
24590
cristy8b350f62009-11-15 23:12:43 +000024591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024592$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024593if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024594 $as_echo_n "(cached) " >&6
24595else
24596 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24597 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24598 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024600/* end confdefs.h. */
24601$ac_includes_default
24602#ifdef HAVE_SYS_SELECT_H
24603# include <sys/select.h>
24604#endif
24605#ifdef HAVE_SYS_SOCKET_H
24606# include <sys/socket.h>
24607#endif
24608
24609int
24610main ()
24611{
24612extern int select ($ac_arg1,
24613 $ac_arg234, $ac_arg234, $ac_arg234,
24614 $ac_arg5);
24615 ;
24616 return 0;
24617}
24618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024619if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024620 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024621fi
cristy3ed852e2009-09-05 21:47:34 +000024622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24623 done
24624 done
24625done
24626# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024627: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024628
24629fi
cristy8b350f62009-11-15 23:12:43 +000024630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo "$ac_cv_func_select_args" >&6; }
24632ac_save_IFS=$IFS; IFS=','
24633set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24634IFS=$ac_save_IFS
24635shift
24636
24637cat >>confdefs.h <<_ACEOF
24638#define SELECT_TYPE_ARG1 $1
24639_ACEOF
24640
24641
24642cat >>confdefs.h <<_ACEOF
24643#define SELECT_TYPE_ARG234 ($2)
24644_ACEOF
24645
24646
24647cat >>confdefs.h <<_ACEOF
24648#define SELECT_TYPE_ARG5 ($3)
24649_ACEOF
24650
24651rm -f conftest*
24652
cristyda16f162011-02-19 23:52:17 +000024653if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 $as_echo_n "(cached) " >&6
24655else
24656 ac_cv_func_setvbuf_reversed=no
24657fi
24658
24659
cristy8b350f62009-11-15 23:12:43 +000024660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024661$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024662if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024663 $as_echo_n "(cached) " >&6
24664else
cristy8b350f62009-11-15 23:12:43 +000024665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024666/* end confdefs.h. */
24667#include <sys/types.h>
24668#include <signal.h>
24669
24670int
24671main ()
24672{
24673return *(signal (0, 0)) (0) == 1;
24674 ;
24675 return 0;
24676}
24677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024678if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024679 ac_cv_type_signal=int
24680else
cristy8b350f62009-11-15 23:12:43 +000024681 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024682fi
cristy3ed852e2009-09-05 21:47:34 +000024683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24684fi
cristy8b350f62009-11-15 23:12:43 +000024685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024686$as_echo "$ac_cv_type_signal" >&6; }
24687
24688cat >>confdefs.h <<_ACEOF
24689#define RETSIGTYPE $ac_cv_type_signal
24690_ACEOF
24691
24692
cristy8b350f62009-11-15 23:12:43 +000024693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024694$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024695if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024696 $as_echo_n "(cached) " >&6
24697else
cristy8b350f62009-11-15 23:12:43 +000024698 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024699 ac_cv_func_strtod=no
24700else
cristy8b350f62009-11-15 23:12:43 +000024701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024702/* end confdefs.h. */
24703
24704$ac_includes_default
24705#ifndef strtod
24706double strtod ();
24707#endif
24708int
24709main()
24710{
24711 {
24712 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24713 char *string = " +69";
24714 char *term;
24715 double value;
24716 value = strtod (string, &term);
24717 if (value != 69 || term != (string + 4))
24718 return 1;
24719 }
24720
24721 {
24722 /* Under Solaris 2.4, strtod returns the wrong value for the
24723 terminating character under some conditions. */
24724 char *string = "NaN";
24725 char *term;
24726 strtod (string, &term);
24727 if (term != string && *(term - 1) == 0)
24728 return 1;
24729 }
24730 return 0;
24731}
24732
24733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024734if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024735 ac_cv_func_strtod=yes
24736else
cristy8b350f62009-11-15 23:12:43 +000024737 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024738fi
cristy8b350f62009-11-15 23:12:43 +000024739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24740 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024741fi
24742
cristy3ed852e2009-09-05 21:47:34 +000024743fi
cristy8b350f62009-11-15 23:12:43 +000024744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024745$as_echo "$ac_cv_func_strtod" >&6; }
24746if test $ac_cv_func_strtod = no; then
24747 case " $LIBOBJS " in
24748 *" strtod.$ac_objext "* ) ;;
24749 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24750 ;;
24751esac
24752
cristy8b350f62009-11-15 23:12:43 +000024753ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024754if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024755
cristy3ed852e2009-09-05 21:47:34 +000024756fi
24757
cristy3ed852e2009-09-05 21:47:34 +000024758if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024760$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024761if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024762 $as_echo_n "(cached) " >&6
24763else
24764 ac_check_lib_save_LIBS=$LIBS
24765LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024767/* end confdefs.h. */
24768
24769/* Override any GCC internal prototype to avoid an error.
24770 Use char because int might match the return type of a GCC
24771 builtin and then its argument prototype would still apply. */
24772#ifdef __cplusplus
24773extern "C"
24774#endif
24775char pow ();
24776int
24777main ()
24778{
24779return pow ();
24780 ;
24781 return 0;
24782}
24783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024784if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024785 ac_cv_lib_m_pow=yes
24786else
cristy8b350f62009-11-15 23:12:43 +000024787 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024788fi
cristy8b350f62009-11-15 23:12:43 +000024789rm -f core conftest.err conftest.$ac_objext \
24790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024791LIBS=$ac_check_lib_save_LIBS
24792fi
cristy8b350f62009-11-15 23:12:43 +000024793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024794$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024795if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024796 POW_LIB=-lm
24797else
cristy8b350f62009-11-15 23:12:43 +000024798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024799$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24800fi
24801
24802fi
24803
24804fi
24805
cristy7d4a1d62011-10-13 15:54:12 +000024806ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24807if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24808 ac_have_decl=1
24809else
24810 ac_have_decl=0
24811fi
24812
24813cat >>confdefs.h <<_ACEOF
24814#define HAVE_DECL_STRERROR_R $ac_have_decl
24815_ACEOF
24816
24817for ac_func in strerror_r
24818do :
24819 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24820if test "x$ac_cv_func_strerror_r" = xyes; then :
24821 cat >>confdefs.h <<_ACEOF
24822#define HAVE_STRERROR_R 1
24823_ACEOF
24824
24825fi
24826done
24827
24828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24829$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24830if ${ac_cv_func_strerror_r_char_p+:} false; then :
24831 $as_echo_n "(cached) " >&6
24832else
24833
24834 ac_cv_func_strerror_r_char_p=no
24835 if test $ac_cv_have_decl_strerror_r = yes; then
24836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24837/* end confdefs.h. */
24838$ac_includes_default
24839int
24840main ()
24841{
24842
24843 char buf[100];
24844 char x = *strerror_r (0, buf, sizeof buf);
24845 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024846 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024847
24848 ;
24849 return 0;
24850}
24851_ACEOF
24852if ac_fn_c_try_compile "$LINENO"; then :
24853 ac_cv_func_strerror_r_char_p=yes
24854fi
24855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24856 else
24857 # strerror_r is not declared. Choose between
24858 # systems that have relatively inaccessible declarations for the
24859 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24860 # former has a strerror_r that returns char*, while the latter
24861 # has a strerror_r that returns `int'.
24862 # This test should segfault on the DEC system.
24863 if test "$cross_compiling" = yes; then :
24864 :
24865else
24866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24867/* end confdefs.h. */
24868$ac_includes_default
24869 extern char *strerror_r ();
24870int
24871main ()
24872{
24873char buf[100];
24874 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024875 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024876 ;
24877 return 0;
24878}
24879_ACEOF
24880if ac_fn_c_try_run "$LINENO"; then :
24881 ac_cv_func_strerror_r_char_p=yes
24882fi
24883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24884 conftest.$ac_objext conftest.beam conftest.$ac_ext
24885fi
24886
24887 fi
24888
24889fi
24890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24891$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24892if test $ac_cv_func_strerror_r_char_p = yes; then
24893
24894$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24895
24896fi
24897
cristy3ed852e2009-09-05 21:47:34 +000024898for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024899do :
24900 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024901if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024902 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024903#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024904_ACEOF
24905
cristy8b350f62009-11-15 23:12:43 +000024906ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024907if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024908
cristy8b350f62009-11-15 23:12:43 +000024909$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024910
24911fi
24912
24913fi
24914done
24915
24916
24917
cristy161b9262010-03-20 19:34:32 +000024918#
24919# Find math library
24920#
24921MATH_LIBS=''
24922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24923$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024924if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024925 $as_echo_n "(cached) " >&6
24926else
24927 ac_check_lib_save_LIBS=$LIBS
24928LIBS="-lm $LIBS"
24929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24930/* end confdefs.h. */
24931
24932/* Override any GCC internal prototype to avoid an error.
24933 Use char because int might match the return type of a GCC
24934 builtin and then its argument prototype would still apply. */
24935#ifdef __cplusplus
24936extern "C"
24937#endif
24938char sqrt ();
24939int
24940main ()
24941{
24942return sqrt ();
24943 ;
24944 return 0;
24945}
24946_ACEOF
24947if ac_fn_c_try_link "$LINENO"; then :
24948 ac_cv_lib_m_sqrt=yes
24949else
24950 ac_cv_lib_m_sqrt=no
24951fi
24952rm -f core conftest.err conftest.$ac_objext \
24953 conftest$ac_exeext conftest.$ac_ext
24954LIBS=$ac_check_lib_save_LIBS
24955fi
24956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24957$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024958if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024959 MATH_LIBS="-lm"
24960fi
24961
24962LIBS="$MATH_LIBS $LIBS"
24963
24964
cristy82b20722011-11-05 21:52:36 +000024965for 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 +000024966do :
24967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024969if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024970 cat >>confdefs.h <<_ACEOF
24971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24972_ACEOF
24973
24974fi
24975done
24976
24977
cristye43a45e2009-09-28 14:49:00 +000024978#
24979# Check for clock_gettime().
24980#
cristy8b350f62009-11-15 23:12:43 +000024981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024982$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024983if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024984 $as_echo_n "(cached) " >&6
24985else
24986 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024988/* end confdefs.h. */
24989
24990/* Override any GCC internal prototype to avoid an error.
24991 Use char because int might match the return type of a GCC
24992 builtin and then its argument prototype would still apply. */
24993#ifdef __cplusplus
24994extern "C"
24995#endif
24996char clock_gettime ();
24997int
24998main ()
24999{
25000return clock_gettime ();
25001 ;
25002 return 0;
25003}
25004_ACEOF
25005for ac_lib in '' rt; do
25006 if test -z "$ac_lib"; then
25007 ac_res="none required"
25008 else
25009 ac_res=-l$ac_lib
25010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25011 fi
cristy8b350f62009-11-15 23:12:43 +000025012 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025013 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025014fi
cristy8b350f62009-11-15 23:12:43 +000025015rm -f core conftest.err conftest.$ac_objext \
25016 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025017 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025018 break
25019fi
25020done
cristyda16f162011-02-19 23:52:17 +000025021if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025022
cristye43a45e2009-09-28 14:49:00 +000025023else
25024 ac_cv_search_clock_gettime=no
25025fi
25026rm conftest.$ac_ext
25027LIBS=$ac_func_search_save_LIBS
25028fi
cristy8b350f62009-11-15 23:12:43 +000025029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025030$as_echo "$ac_cv_search_clock_gettime" >&6; }
25031ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025032if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25034
25035
cristy8b350f62009-11-15 23:12:43 +000025036$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025037
cristy8b350f62009-11-15 23:12:43 +000025038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025039$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025041/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025042
25043 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025044int
25045main ()
25046{
25047clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025048 ;
25049 return 0;
25050}
25051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025052if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025053
cristy09b53e12011-10-14 12:47:22 +000025054 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25055$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025056
cristy8b350f62009-11-15 23:12:43 +000025057$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025058
25059
25060else
cristy09b53e12011-10-14 12:47:22 +000025061 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25062$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025063
25064fi
cristye43a45e2009-09-28 14:49:00 +000025065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066
25067else
25068
cristy8b350f62009-11-15 23:12:43 +000025069 for ac_func in gettimeofday ftime
25070do :
25071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25072ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025073if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025074 cat >>confdefs.h <<_ACEOF
25075#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25076_ACEOF
25077 break
25078fi
25079done
25080
25081
25082
25083fi
25084
25085
cristy3ed852e2009-09-05 21:47:34 +000025086########
25087#
25088# Check for function prototypes
25089#
25090########
25091
cristy8b350f62009-11-15 23:12:43 +000025092ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025093#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025094"
cristyda16f162011-02-19 23:52:17 +000025095if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025096 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025097else
cristy8b350f62009-11-15 23:12:43 +000025098 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025099fi
25100
cristy3ed852e2009-09-05 21:47:34 +000025101cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025102#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025104ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025105#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025106"
cristyda16f162011-02-19 23:52:17 +000025107if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025108 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025109else
cristy8b350f62009-11-15 23:12:43 +000025110 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025111fi
25112
cristy3ed852e2009-09-05 21:47:34 +000025113cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025114#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025115_ACEOF
25116
25117
cristy8b350f62009-11-15 23:12:43 +000025118ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025119#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025120"
cristyda16f162011-02-19 23:52:17 +000025121if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025122 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025123else
cristy8b350f62009-11-15 23:12:43 +000025124 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025125fi
25126
cristy3ed852e2009-09-05 21:47:34 +000025127cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025128#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025129_ACEOF
25130
25131
cristy8b350f62009-11-15 23:12:43 +000025132ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025133#include <stdio.h>
25134#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025135"
cristyda16f162011-02-19 23:52:17 +000025136if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025137 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025138else
cristy8b350f62009-11-15 23:12:43 +000025139 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025140fi
25141
cristy3ed852e2009-09-05 21:47:34 +000025142cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025143#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025144_ACEOF
25145
25146
cristy3ed852e2009-09-05 21:47:34 +000025147########
25148#
25149# C++ Support Tests (For Magick++)
25150#
25151########
25152have_magick_plus_plus='no'
25153if test "$with_magick_plus_plus" = 'yes'; then
25154 OLIBS="$LIBS"
25155 LIBS=''
25156 ac_ext=cpp
25157ac_cpp='$CXXCPP $CPPFLAGS'
25158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25161
25162
25163 # Full set of headers used...
25164 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25165 # functional iomanip iosfwd iostream iterator list string strstream utility
25166 ac_ext=cpp
25167ac_cpp='$CXXCPP $CPPFLAGS'
25168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25171
25172 ac_ext=cpp
25173ac_cpp='$CXXCPP $CPPFLAGS'
25174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25177if test -z "$CXX"; then
25178 if test -n "$CCC"; then
25179 CXX=$CCC
25180 else
25181 if test -n "$ac_tool_prefix"; then
25182 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25183 do
25184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025188if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025189 $as_echo_n "(cached) " >&6
25190else
25191 if test -n "$CXX"; then
25192 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25193else
25194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25195for as_dir in $PATH
25196do
25197 IFS=$as_save_IFS
25198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25201 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025203 break 2
25204 fi
25205done
cristy8b350f62009-11-15 23:12:43 +000025206 done
cristy3ed852e2009-09-05 21:47:34 +000025207IFS=$as_save_IFS
25208
25209fi
25210fi
25211CXX=$ac_cv_prog_CXX
25212if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025214$as_echo "$CXX" >&6; }
25215else
cristy8b350f62009-11-15 23:12:43 +000025216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025217$as_echo "no" >&6; }
25218fi
25219
25220
25221 test -n "$CXX" && break
25222 done
25223fi
25224if test -z "$CXX"; then
25225 ac_ct_CXX=$CXX
25226 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25227do
25228 # Extract the first word of "$ac_prog", so it can be a program name with args.
25229set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025231$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025232if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025233 $as_echo_n "(cached) " >&6
25234else
25235 if test -n "$ac_ct_CXX"; then
25236 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25237else
25238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25239for as_dir in $PATH
25240do
25241 IFS=$as_save_IFS
25242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25245 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025247 break 2
25248 fi
25249done
cristy8b350f62009-11-15 23:12:43 +000025250 done
cristy3ed852e2009-09-05 21:47:34 +000025251IFS=$as_save_IFS
25252
25253fi
25254fi
25255ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25256if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025258$as_echo "$ac_ct_CXX" >&6; }
25259else
cristy8b350f62009-11-15 23:12:43 +000025260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025261$as_echo "no" >&6; }
25262fi
25263
25264
25265 test -n "$ac_ct_CXX" && break
25266done
25267
25268 if test "x$ac_ct_CXX" = x; then
25269 CXX="g++"
25270 else
25271 case $cross_compiling:$ac_tool_warned in
25272yes:)
cristy8b350f62009-11-15 23:12:43 +000025273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25275ac_tool_warned=yes ;;
25276esac
25277 CXX=$ac_ct_CXX
25278 fi
25279fi
25280
25281 fi
25282fi
25283# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025284$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285set X $ac_compile
25286ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025287for ac_option in --version -v -V -qversion; do
25288 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025289case "(($ac_try" in
25290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291 *) ac_try_echo=$ac_try;;
25292esac
cristy8b350f62009-11-15 23:12:43 +000025293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25294$as_echo "$ac_try_echo"; } >&5
25295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025296 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025297 if test -s conftest.err; then
25298 sed '10a\
25299... rest of stderr output deleted ...
25300 10q' conftest.err >conftest.er1
25301 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025302 fi
cristycd4c5312009-11-22 01:19:08 +000025303 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }
25306done
cristy3ed852e2009-09-05 21:47:34 +000025307
cristy8b350f62009-11-15 23:12:43 +000025308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025309$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025310if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025311 $as_echo_n "(cached) " >&6
25312else
cristy8b350f62009-11-15 23:12:43 +000025313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025314/* end confdefs.h. */
25315
25316int
25317main ()
25318{
25319#ifndef __GNUC__
25320 choke me
25321#endif
25322
25323 ;
25324 return 0;
25325}
25326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025327if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 ac_compiler_gnu=yes
25329else
cristy8b350f62009-11-15 23:12:43 +000025330 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025331fi
cristy3ed852e2009-09-05 21:47:34 +000025332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25334
25335fi
cristy8b350f62009-11-15 23:12:43 +000025336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025337$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25338if test $ac_compiler_gnu = yes; then
25339 GXX=yes
25340else
25341 GXX=
25342fi
25343ac_test_CXXFLAGS=${CXXFLAGS+set}
25344ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025346$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025347if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025348 $as_echo_n "(cached) " >&6
25349else
25350 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25351 ac_cxx_werror_flag=yes
25352 ac_cv_prog_cxx_g=no
25353 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025355/* end confdefs.h. */
25356
25357int
25358main ()
25359{
25360
25361 ;
25362 return 0;
25363}
25364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025365if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025366 ac_cv_prog_cxx_g=yes
25367else
cristy8b350f62009-11-15 23:12:43 +000025368 CXXFLAGS=""
25369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025370/* end confdefs.h. */
25371
25372int
25373main ()
25374{
25375
25376 ;
25377 return 0;
25378}
25379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025380if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025381
cristy8b350f62009-11-15 23:12:43 +000025382else
25383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025384 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025386/* end confdefs.h. */
25387
25388int
25389main ()
25390{
25391
25392 ;
25393 return 0;
25394}
25395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025396if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025397 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025398fi
cristy3ed852e2009-09-05 21:47:34 +000025399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400fi
cristy3ed852e2009-09-05 21:47:34 +000025401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402fi
cristy3ed852e2009-09-05 21:47:34 +000025403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25405fi
cristy8b350f62009-11-15 23:12:43 +000025406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407$as_echo "$ac_cv_prog_cxx_g" >&6; }
25408if test "$ac_test_CXXFLAGS" = set; then
25409 CXXFLAGS=$ac_save_CXXFLAGS
25410elif test $ac_cv_prog_cxx_g = yes; then
25411 if test "$GXX" = yes; then
25412 CXXFLAGS="-g -O2"
25413 else
25414 CXXFLAGS="-g"
25415 fi
25416else
25417 if test "$GXX" = yes; then
25418 CXXFLAGS="-O2"
25419 else
25420 CXXFLAGS=
25421 fi
25422fi
25423ac_ext=cpp
25424ac_cpp='$CXXCPP $CPPFLAGS'
25425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25428
cristy73bd4a52010-10-05 11:24:23 +000025429depcc="$CXX" am_compiler_list=
25430
25431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25432$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025433if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025434 $as_echo_n "(cached) " >&6
25435else
25436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25437 # We make a subdir and do the tests there. Otherwise we can end up
25438 # making bogus files that we don't know about and never remove. For
25439 # instance it was reported that on HP-UX the gcc test will end up
25440 # making a dummy file named `D' -- because `-MD' means `put the output
25441 # in D'.
25442 mkdir conftest.dir
25443 # Copy depcomp to subdir because otherwise we won't find it if we're
25444 # using a relative directory.
25445 cp "$am_depcomp" conftest.dir
25446 cd conftest.dir
25447 # We will build objects and dependencies in a subdirectory because
25448 # it helps to detect inapplicable dependency modes. For instance
25449 # both Tru64's cc and ICC support -MD to output dependencies as a
25450 # side effect of compilation, but ICC will put the dependencies in
25451 # the current directory while Tru64 will put them in the object
25452 # directory.
25453 mkdir sub
25454
25455 am_cv_CXX_dependencies_compiler_type=none
25456 if test "$am_compiler_list" = ""; then
25457 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25458 fi
25459 am__universal=false
25460 case " $depcc " in #(
25461 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25462 esac
25463
25464 for depmode in $am_compiler_list; do
25465 # Setup a source with many dependencies, because some compilers
25466 # like to wrap large dependency lists on column 80 (with \), and
25467 # we should not choose a depcomp mode which is confused by this.
25468 #
25469 # We need to recreate these files for each test, as the compiler may
25470 # overwrite some of them when testing with obscure command lines.
25471 # This happens at least with the AIX C compiler.
25472 : > sub/conftest.c
25473 for i in 1 2 3 4 5 6; do
25474 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25475 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25476 # Solaris 8's {/usr,}/bin/sh.
25477 touch sub/conftst$i.h
25478 done
25479 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25480
25481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25482 # mode. It turns out that the SunPro C++ compiler does not properly
25483 # handle `-M -o', and we need to detect this. Also, some Intel
25484 # versions had trouble with output in subdirs
25485 am__obj=sub/conftest.${OBJEXT-o}
25486 am__minus_obj="-o $am__obj"
25487 case $depmode in
25488 gcc)
25489 # This depmode causes a compiler race in universal mode.
25490 test "$am__universal" = false || continue
25491 ;;
25492 nosideeffect)
25493 # after this tag, mechanisms are not by side-effect, so they'll
25494 # only be used when explicitly requested
25495 if test "x$enable_dependency_tracking" = xyes; then
25496 continue
25497 else
25498 break
25499 fi
25500 ;;
25501 msvisualcpp | msvcmsys)
25502 # This compiler won't grok `-c -o', but also, the minuso test has
25503 # not run yet. These depmodes are late enough in the game, and
25504 # so weak that their functioning should not be impacted.
25505 am__obj=conftest.${OBJEXT-o}
25506 am__minus_obj=
25507 ;;
25508 none) break ;;
25509 esac
25510 if depmode=$depmode \
25511 source=sub/conftest.c object=$am__obj \
25512 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25513 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25514 >/dev/null 2>conftest.err &&
25515 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25516 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25517 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25518 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25519 # icc doesn't choke on unknown options, it will just issue warnings
25520 # or remarks (even with -Werror). So we grep stderr for any message
25521 # that says an option was ignored or not supported.
25522 # When given -MP, icc 7.0 and 7.1 complain thusly:
25523 # icc: Command line warning: ignoring option '-M'; no argument required
25524 # The diagnosis changed in icc 8.0:
25525 # icc: Command line remark: option '-MP' not supported
25526 if (grep 'ignoring option' conftest.err ||
25527 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25528 am_cv_CXX_dependencies_compiler_type=$depmode
25529 break
25530 fi
25531 fi
25532 done
25533
25534 cd ..
25535 rm -rf conftest.dir
25536else
25537 am_cv_CXX_dependencies_compiler_type=none
25538fi
25539
25540fi
25541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25542$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25543CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25544
25545 if
25546 test "x$enable_dependency_tracking" != xno \
25547 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25548 am__fastdepCXX_TRUE=
25549 am__fastdepCXX_FALSE='#'
25550else
25551 am__fastdepCXX_TRUE='#'
25552 am__fastdepCXX_FALSE=
25553fi
25554
25555
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25557$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025558if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025559 $as_echo_n "(cached) " >&6
25560else
25561
25562 ac_ext=cpp
25563ac_cpp='$CXXCPP $CPPFLAGS'
25564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25567
25568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25569/* end confdefs.h. */
25570
25571int f(int x){return 1;}
25572int f(char x){return 1;}
25573int f(bool x){return 1;}
25574
25575int
25576main ()
25577{
25578bool b = true; return f(b);
25579 ;
25580 return 0;
25581}
25582_ACEOF
25583if ac_fn_cxx_try_compile "$LINENO"; then :
25584 ax_cv_cxx_bool=yes
25585else
25586 ax_cv_cxx_bool=no
25587fi
25588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589 ac_ext=cpp
25590ac_cpp='$CXXCPP $CPPFLAGS'
25591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25594
25595
25596fi
25597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25598$as_echo "$ax_cv_cxx_bool" >&6; }
25599if test "$ax_cv_cxx_bool" = yes; then
25600
25601$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25602
25603fi
25604
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25606$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025607if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025608 $as_echo_n "(cached) " >&6
25609else
25610
25611 ac_ext=cpp
25612ac_cpp='$CXXCPP $CPPFLAGS'
25613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25616
25617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618/* end confdefs.h. */
25619namespace Outer { namespace Inner { int i = 0; }}
25620int
25621main ()
25622{
25623using namespace Outer::Inner; return i;
25624 ;
25625 return 0;
25626}
25627_ACEOF
25628if ac_fn_cxx_try_compile "$LINENO"; then :
25629 ax_cv_cxx_namespaces=yes
25630else
25631 ax_cv_cxx_namespaces=no
25632fi
25633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25634 ac_ext=cpp
25635ac_cpp='$CXXCPP $CPPFLAGS'
25636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25639
25640
25641fi
25642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25643$as_echo "$ax_cv_cxx_namespaces" >&6; }
25644if test "$ax_cv_cxx_namespaces" = yes; then
25645
25646$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25647
25648fi
25649
25650
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25652$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025653if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025654 $as_echo_n "(cached) " >&6
25655else
25656
25657 ac_ext=cpp
25658ac_cpp='$CXXCPP $CPPFLAGS'
25659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25662
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664/* end confdefs.h. */
25665#include <iostream>
25666 std::istream& is = std::cin;
25667int
25668main ()
25669{
25670
25671 ;
25672 return 0;
25673}
25674_ACEOF
25675if ac_fn_cxx_try_compile "$LINENO"; then :
25676 ax_cv_cxx_have_std_namespace=yes
25677else
25678 ax_cv_cxx_have_std_namespace=no
25679fi
25680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25681 ac_ext=cpp
25682ac_cpp='$CXXCPP $CPPFLAGS'
25683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25686
25687
25688fi
25689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25690$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25691 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25692
25693$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25694
25695 fi
25696
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25698$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025699if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025700 $as_echo_n "(cached) " >&6
25701else
25702
25703
25704 ac_ext=cpp
25705ac_cpp='$CXXCPP $CPPFLAGS'
25706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25709
25710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25711/* end confdefs.h. */
25712#include <iostream>
25713#include <map>
25714#include <iomanip>
25715#include <cmath>
25716#ifdef HAVE_NAMESPACES
25717using namespace std;
25718#endif
25719int
25720main ()
25721{
25722return 0;
25723 ;
25724 return 0;
25725}
25726_ACEOF
25727if ac_fn_cxx_try_compile "$LINENO"; then :
25728 ac_cv_cxx_have_std_libs=yes
25729else
25730 ac_cv_cxx_have_std_libs=no
25731fi
25732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733 ac_ext=cpp
25734ac_cpp='$CXXCPP $CPPFLAGS'
25735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25738
25739
25740fi
25741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25742$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25743if test "$ac_cv_cxx_have_std_libs" = yes; then
25744
25745$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25746
25747fi
25748
cristy3ed852e2009-09-05 21:47:34 +000025749
25750 OPENMP_CXXFLAGS=
25751 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025752if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025753 enableval=$enable_openmp;
25754fi
25755
25756 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25758$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025759if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025760 $as_echo_n "(cached) " >&6
25761else
cristy8b350f62009-11-15 23:12:43 +000025762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025764
25765#ifndef _OPENMP
25766 choke me
25767#endif
25768#include <omp.h>
25769int main () { return omp_get_num_threads (); }
25770
25771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025772if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025773 ac_cv_prog_cxx_openmp='none needed'
25774else
cristy8b350f62009-11-15 23:12:43 +000025775 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025776 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25777 ac_save_CXXFLAGS=$CXXFLAGS
25778 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25780/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025781
25782#ifndef _OPENMP
25783 choke me
25784#endif
25785#include <omp.h>
25786int main () { return omp_get_num_threads (); }
25787
25788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025789if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025790 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025791fi
cristy8b350f62009-11-15 23:12:43 +000025792rm -f core conftest.err conftest.$ac_objext \
25793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025794 CXXFLAGS=$ac_save_CXXFLAGS
25795 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25796 break
25797 fi
25798 done
25799fi
cristy8b350f62009-11-15 23:12:43 +000025800rm -f core conftest.err conftest.$ac_objext \
25801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025802fi
cristy8b350f62009-11-15 23:12:43 +000025803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025804$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25805 case $ac_cv_prog_cxx_openmp in #(
25806 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025807 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025808 *)
cristy8b350f62009-11-15 23:12:43 +000025809 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025810 esac
25811 fi
25812
25813
25814 ac_ext=c
25815ac_cpp='$CPP $CPPFLAGS'
25816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25818ac_compiler_gnu=$ac_cv_c_compiler_gnu
25819
25820
cristy8b350f62009-11-15 23:12:43 +000025821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025822$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25823 if \
cristy964cb7f2010-04-25 23:18:00 +000025824 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025825 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025826 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025827 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025828 have_magick_plus_plus='yes'
25829 else
25830 have_magick_plus_plus='no (failed tests)'
25831 fi
cristy09b53e12011-10-14 12:47:22 +000025832 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25833$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025834 LIBS="$OLIBS"
25835fi
cristy73bd4a52010-10-05 11:24:23 +000025836 if test "$have_magick_plus_plus" = 'yes'; then
25837 WITH_MAGICK_PLUS_PLUS_TRUE=
25838 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25839else
25840 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25841 WITH_MAGICK_PLUS_PLUS_FALSE=
25842fi
25843
cristy3ed852e2009-09-05 21:47:34 +000025844
25845# Only check for delegate libraries in subdirectories if requested.
25846if test "$enable_delegate_build" != 'no'; then
25847 # Check for delegate sub-directories and add -I & -L options as required.
25848 # This presumes that delegates are installed as detailed in the ImageMagick
25849 # README. If delegates are installed in a standard location where the
25850 # compiler will automatically find them then these options should not be
25851 # required.
25852
25853 #
25854 # Most delegates have includes in the same directory as the library, but not all...
25855 #
25856 # Includes
cristy2542fc62011-12-06 17:50:25 +000025857 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 +000025858 if test -d "$builddir/$dir"; then
25859 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25860 else
25861 if test -d "$srcdirfull/$dir"; then
25862 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25863 fi
25864 fi
25865 done
25866
25867 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025868 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 +000025869 if test -d "$builddir/$dir/.libs"; then
25870 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25871 else
25872 if test -d "$srcdirfull/$dir/.libs"; then
25873 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25874 fi
25875 fi
25876 if test -d "$builddir/$dir"; then
25877 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25878 else
25879 if test -d "$srcdirfull/$dir"; then
25880 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25881 fi
25882 fi
25883 done
25884fi
25885
25886# Assume that delegate headers reside under same directory as ImageMagick
25887# installation prefix.
25888MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25889
25890#
25891# Find the X11 RGB database
25892#
cristy8b350f62009-11-15 23:12:43 +000025893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025894$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025895if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025896 $as_echo_n "(cached) " >&6
25897else
25898 # Look for the header file in a standard set of common directories.
25899# Check X11 before X11Rn because it is often a symlink to the current release.
25900 for ac_dir in \
25901 /lib/usr/lib/X11 \
25902 /usr/X11/lib \
25903 /usr/X11R4/lib \
25904 /usr/X11R5/lib \
25905 /usr/X11R6/lib \
25906 /usr/X11R7/lib \
25907 /usr/X386/lib \
25908 /usr/XFree86/lib/X11 \
25909 /usr/athena/lib \
25910 /usr/lib \
25911 /usr/lib/X11 \
25912 /usr/lib/X11R4 \
25913 /usr/lib/X11R5 \
25914 /usr/lib/X11R6 \
25915 /usr/lib/X11R7 \
25916 /usr/local/X11/lib \
25917 /usr/local/X11R4/lib \
25918 /usr/local/X11R5/lib \
25919 /usr/local/X11R6/lib \
25920 /usr/local/lib \
25921 /usr/local/lib/X11 \
25922 /usr/local/lib/X11R4 \
25923 /usr/local/lib/X11R5 \
25924 /usr/local/lib/X11R6 \
25925 /usr/local/lib/X11R7 \
25926 /usr/local/x11r5/lib \
25927 /usr/lpp/Xamples/lib \
25928 /usr/openwin/lib \
25929 /usr/openwin/share/lib \
25930 /usr/unsupported/lib \
25931 /usr/x386/lib \
25932 ; do
25933 if test -f "$ac_dir/X11/rgb.txt"; then
25934 im_cv_x_configure="$ac_dir/X11/"
25935 break
25936 elif test -f "$ac_dir/rgb.txt"; then
25937 im_cv_x_configure="$ac_dir/"
25938 break
25939 fi
25940
25941 done
25942fi
cristy8b350f62009-11-15 23:12:43 +000025943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025944$as_echo "$im_cv_x_configure" >&6; }
25945X11_CONFIGURE_PATH="$im_cv_x_configure"
25946case "${build_os}" in
25947 mingw* )
25948 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25949 ;;
25950esac
25951
25952cat >>confdefs.h <<_ACEOF
25953#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25954_ACEOF
25955
25956
25957#
25958# Find OpenMP library
25959#
25960GOMP_LIBS=''
25961if test "$enable_openmp" != 'no'; then
25962 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025964$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025965if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025966 $as_echo_n "(cached) " >&6
25967else
25968 ac_check_lib_save_LIBS=$LIBS
25969LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025971/* end confdefs.h. */
25972
25973/* Override any GCC internal prototype to avoid an error.
25974 Use char because int might match the return type of a GCC
25975 builtin and then its argument prototype would still apply. */
25976#ifdef __cplusplus
25977extern "C"
25978#endif
25979char GOMP_parallel_start ();
25980int
25981main ()
25982{
25983return GOMP_parallel_start ();
25984 ;
25985 return 0;
25986}
25987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025989 ac_cv_lib_gomp_GOMP_parallel_start=yes
25990else
cristy8b350f62009-11-15 23:12:43 +000025991 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025992fi
cristy8b350f62009-11-15 23:12:43 +000025993rm -f core conftest.err conftest.$ac_objext \
25994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025995LIBS=$ac_check_lib_save_LIBS
25996fi
cristy8b350f62009-11-15 23:12:43 +000025997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025998$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025999if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026000 GOMP_LIBS="-lgomp"
26001fi
26002 # gcc
26003 else
cristy8b350f62009-11-15 23:12:43 +000026004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026006if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026007 $as_echo_n "(cached) " >&6
26008else
26009 ac_check_lib_save_LIBS=$LIBS
26010LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026012/* end confdefs.h. */
26013
26014/* Override any GCC internal prototype to avoid an error.
26015 Use char because int might match the return type of a GCC
26016 builtin and then its argument prototype would still apply. */
26017#ifdef __cplusplus
26018extern "C"
26019#endif
26020char sunw_mp_register_warn ();
26021int
26022main ()
26023{
26024return sunw_mp_register_warn ();
26025 ;
26026 return 0;
26027}
26028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26031else
cristy8b350f62009-11-15 23:12:43 +000026032 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026033fi
cristy8b350f62009-11-15 23:12:43 +000026034rm -f core conftest.err conftest.$ac_objext \
26035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026036LIBS=$ac_check_lib_save_LIBS
26037fi
cristy8b350f62009-11-15 23:12:43 +000026038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026040if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 GOMP_LIBS="-lmtsk"
26042fi
26043 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026045$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026046if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026047 $as_echo_n "(cached) " >&6
26048else
26049 ac_check_lib_save_LIBS=$LIBS
26050LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026052/* end confdefs.h. */
26053
26054/* Override any GCC internal prototype to avoid an error.
26055 Use char because int might match the return type of a GCC
26056 builtin and then its argument prototype would still apply. */
26057#ifdef __cplusplus
26058extern "C"
26059#endif
26060char _xlsmpFlush ();
26061int
26062main ()
26063{
26064return _xlsmpFlush ();
26065 ;
26066 return 0;
26067}
26068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026069if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026070 ac_cv_lib_xlsmp__xlsmpFlush=yes
26071else
cristy8b350f62009-11-15 23:12:43 +000026072 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026073fi
cristy8b350f62009-11-15 23:12:43 +000026074rm -f core conftest.err conftest.$ac_objext \
26075 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026076LIBS=$ac_check_lib_save_LIBS
26077fi
cristy8b350f62009-11-15 23:12:43 +000026078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026079$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026080if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026081 GOMP_LIBS="-lxlsmp"
26082fi
26083 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026085$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026086if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026087 $as_echo_n "(cached) " >&6
26088else
26089 ac_check_lib_save_LIBS=$LIBS
26090LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026092/* end confdefs.h. */
26093
26094/* Override any GCC internal prototype to avoid an error.
26095 Use char because int might match the return type of a GCC
26096 builtin and then its argument prototype would still apply. */
26097#ifdef __cplusplus
26098extern "C"
26099#endif
26100char mp_destroy ();
26101int
26102main ()
26103{
26104return mp_destroy ();
26105 ;
26106 return 0;
26107}
26108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 ac_cv_lib_mp_mp_destroy=yes
26111else
cristy8b350f62009-11-15 23:12:43 +000026112 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026113fi
cristy8b350f62009-11-15 23:12:43 +000026114rm -f core conftest.err conftest.$ac_objext \
26115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026116LIBS=$ac_check_lib_save_LIBS
26117fi
cristy8b350f62009-11-15 23:12:43 +000026118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026119$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026120if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026121 GOMP_LIBS="-lmp"
26122fi
26123 # SGI IRIX 6.5 MIPSpro C/C++
26124 fi
26125 LIBS="$GOMP_LIBS $LIBS"
26126fi
26127
26128
26129#
26130# Find Posix threads library
26131#
26132THREAD_LIBS=''
26133if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26134
26135 if test "x$PTHREAD_LIBS" = "x"; then
26136 case "${host_cpu}-${host_os}" in
26137 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026138
26139
26140
26141ac_ext=c
26142ac_cpp='$CPP $CPPFLAGS'
26143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26145ac_compiler_gnu=$ac_cv_c_compiler_gnu
26146
26147magick_pthread_lib_ok=no
26148
26149LIB=-lc_r
26150save_LIBS="$LIBS"
26151LIBS="$LIBS $LIB"
26152
26153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26154$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26156/* end confdefs.h. */
26157#include <pthread.h>
26158int
26159main ()
26160{
26161 pthread_t th;
26162 pthread_join(th, 0);
26163 pthread_attr_init(0);
26164 pthread_cleanup_push(0, 0);
26165 pthread_create(0,0,0,0);
26166 pthread_cleanup_pop(0);
26167 ;
26168 return 0;
26169}
26170_ACEOF
26171if ac_fn_c_try_link "$LINENO"; then :
26172 magick_pthread_lib_ok=yes
26173fi
26174rm -f core conftest.err conftest.$ac_objext \
26175 conftest$ac_exeext conftest.$ac_ext
26176
26177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26178$as_echo "${magick_pthread_lib_ok}" >&6; }
26179if test "$magick_pthread_lib_ok" = yes
26180then
26181 PTHREAD_LIBS=-lc_r
26182 :
26183else
26184
26185 :
26186fi
26187
26188LIBS="$save_LIBS"
26189
26190ac_ext=c
26191ac_cpp='$CPP $CPPFLAGS'
26192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26194ac_compiler_gnu=$ac_cv_c_compiler_gnu
26195
26196 ;;
cristy3ed852e2009-09-05 21:47:34 +000026197 esac
26198 fi
26199
26200 for lib in pthread pthreads; do
26201 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026202
26203
26204
26205ac_ext=c
26206ac_cpp='$CPP $CPPFLAGS'
26207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26209ac_compiler_gnu=$ac_cv_c_compiler_gnu
26210
26211magick_pthread_lib_ok=no
26212
26213LIB=-l$lib
26214save_LIBS="$LIBS"
26215LIBS="$LIBS $LIB"
26216
26217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26218$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26220/* end confdefs.h. */
26221#include <pthread.h>
26222int
26223main ()
26224{
26225 pthread_t th;
26226 pthread_join(th, 0);
26227 pthread_attr_init(0);
26228 pthread_cleanup_push(0, 0);
26229 pthread_create(0,0,0,0);
26230 pthread_cleanup_pop(0);
26231 ;
26232 return 0;
26233}
26234_ACEOF
26235if ac_fn_c_try_link "$LINENO"; then :
26236 magick_pthread_lib_ok=yes
26237fi
26238rm -f core conftest.err conftest.$ac_objext \
26239 conftest$ac_exeext conftest.$ac_ext
26240
26241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26242$as_echo "${magick_pthread_lib_ok}" >&6; }
26243if test "$magick_pthread_lib_ok" = yes
26244then
26245 PTHREAD_LIBS=-l$lib
26246 :
26247else
26248
26249 :
26250fi
26251
26252LIBS="$save_LIBS"
26253
26254ac_ext=c
26255ac_cpp='$CPP $CPPFLAGS'
26256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26258ac_compiler_gnu=$ac_cv_c_compiler_gnu
26259
26260
cristy3ed852e2009-09-05 21:47:34 +000026261 fi
26262 done
26263
26264 THREAD_LIBS="$PTHREAD_LIBS"
26265 LIBS="$LIBS $THREAD_LIBS"
26266fi
26267
26268
26269#
26270# Check for umem.
26271#
26272have_umem='no'
26273UMEM_LIBS=''
26274if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026276$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026277 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26278$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026279 failed=0
26280 passed=0
cristy8b350f62009-11-15 23:12:43 +000026281 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026282if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026283 passed=`expr $passed + 1`
26284else
26285 failed=`expr $failed + 1`
26286fi
26287
26288
cristy8b350f62009-11-15 23:12:43 +000026289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026290$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026291if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026292 $as_echo_n "(cached) " >&6
26293else
26294 ac_check_lib_save_LIBS=$LIBS
26295LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026297/* end confdefs.h. */
26298
26299/* Override any GCC internal prototype to avoid an error.
26300 Use char because int might match the return type of a GCC
26301 builtin and then its argument prototype would still apply. */
26302#ifdef __cplusplus
26303extern "C"
26304#endif
26305char umem_alloc ();
26306int
26307main ()
26308{
26309return umem_alloc ();
26310 ;
26311 return 0;
26312}
26313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 ac_cv_lib_umem_umem_alloc=yes
26316else
cristy8b350f62009-11-15 23:12:43 +000026317 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026318fi
cristy8b350f62009-11-15 23:12:43 +000026319rm -f core conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026321LIBS=$ac_check_lib_save_LIBS
26322fi
cristy8b350f62009-11-15 23:12:43 +000026323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026325if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026326 passed=`expr $passed + 1`
26327else
26328 failed=`expr $failed + 1`
26329fi
26330
cristy8b350f62009-11-15 23:12:43 +000026331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026332$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026333if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026334 $as_echo_n "(cached) " >&6
26335else
26336 ac_check_lib_save_LIBS=$LIBS
26337LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026339/* end confdefs.h. */
26340
26341/* Override any GCC internal prototype to avoid an error.
26342 Use char because int might match the return type of a GCC
26343 builtin and then its argument prototype would still apply. */
26344#ifdef __cplusplus
26345extern "C"
26346#endif
26347char umem_free ();
26348int
26349main ()
26350{
26351return umem_free ();
26352 ;
26353 return 0;
26354}
26355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026357 ac_cv_lib_umem_umem_free=yes
26358else
cristy8b350f62009-11-15 23:12:43 +000026359 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026360fi
cristy8b350f62009-11-15 23:12:43 +000026361rm -f core conftest.err conftest.$ac_objext \
26362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026363LIBS=$ac_check_lib_save_LIBS
26364fi
cristy8b350f62009-11-15 23:12:43 +000026365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026366$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026367if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026368 passed=`expr $passed + 1`
26369else
26370 failed=`expr $failed + 1`
26371fi
26372
cristy8b350f62009-11-15 23:12:43 +000026373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026374$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26375 if test $passed -gt 0; then
26376 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026377 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26378$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026379 have_umem='no (failed tests)'
26380 else
26381 UMEM_LIBS='-lumem'
26382 LIBS="$UMEM_LIBS $LIBS"
26383
cristy8b350f62009-11-15 23:12:43 +000026384$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026385
cristy09b53e12011-10-14 12:47:22 +000026386 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26387$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026388 have_umem='yes'
26389 fi
26390 else
cristy09b53e12011-10-14 12:47:22 +000026391 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26392$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026393 fi
26394fi
cristy73bd4a52010-10-05 11:24:23 +000026395 if test "$have_umem" = 'yes'; then
26396 HasUMEM_TRUE=
26397 HasUMEM_FALSE='#'
26398else
26399 HasUMEM_TRUE='#'
26400 HasUMEM_FALSE=
26401fi
26402
cristy3ed852e2009-09-05 21:47:34 +000026403
26404
26405#
26406# Add support for ccmalloc memory debugging library if requested
26407#
26408have_ccmalloc='no'
26409CCMALLOC_LIBS=''
26410if test "$enable_ccmalloc" = 'yes'; then
26411 # Extract the first word of "ccmalloc", so it can be a program name with args.
26412set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026415if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026416 $as_echo_n "(cached) " >&6
26417else
26418 case $CCMALLOCDelegate in
26419 [\\/]* | ?:[\\/]*)
26420 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26421 ;;
26422 *)
26423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26424for as_dir in $PATH
26425do
26426 IFS=$as_save_IFS
26427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26430 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026432 break 2
26433 fi
26434done
cristy8b350f62009-11-15 23:12:43 +000026435 done
cristy3ed852e2009-09-05 21:47:34 +000026436IFS=$as_save_IFS
26437
26438 ;;
26439esac
26440fi
26441CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26442if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026444$as_echo "$CCMALLOCDelegate" >&6; }
26445else
cristy8b350f62009-11-15 23:12:43 +000026446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026447$as_echo "no" >&6; }
26448fi
26449
26450
26451 if test -n "$CCMALLOCDelegate"; then
26452 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26453 OLIBS="$LIBS"
26454 # Assume that gcc is used with ccmalloc.
26455 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026457$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026458if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 $as_echo_n "(cached) " >&6
26460else
26461 ac_check_lib_save_LIBS=$LIBS
26462LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026464/* end confdefs.h. */
26465
26466/* Override any GCC internal prototype to avoid an error.
26467 Use char because int might match the return type of a GCC
26468 builtin and then its argument prototype would still apply. */
26469#ifdef __cplusplus
26470extern "C"
26471#endif
26472char ccmalloc_malloc ();
26473int
26474main ()
26475{
26476return ccmalloc_malloc ();
26477 ;
26478 return 0;
26479}
26480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026482 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26483else
cristy8b350f62009-11-15 23:12:43 +000026484 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026485fi
cristy8b350f62009-11-15 23:12:43 +000026486rm -f core conftest.err conftest.$ac_objext \
26487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026488LIBS=$ac_check_lib_save_LIBS
26489fi
cristy8b350f62009-11-15 23:12:43 +000026490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026491$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026492if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26494fi
26495
26496 if test -n "$CCMALLOC_LIBS"; then
26497 LIBS="$OLIBS"
26498 LIBS="$LIBS $CCMALLOC_LIBS"
26499 have_ccmalloc='yes'
26500 else
26501 LIBS="$OLIBS"
26502 fi
26503 fi
26504fi
26505
26506#
26507# Add support for efence memory debugging library if requested
26508#
26509if test "$enable_efence" = 'yes'; then
26510 EFENCE_LIBS='-lefence'
26511 LIBS="$EFENCE_LIBS $LIBS"
26512fi
26513
cristy3ed852e2009-09-05 21:47:34 +000026514
26515#
26516# Check for BZLIB
26517#
26518
26519
26520# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026521if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026522 withval=$with_bzlib; with_bzlib=$withval
26523else
26524 with_bzlib='yes'
26525fi
26526
26527
26528if test "$with_bzlib" != 'yes'; then
26529 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26530fi
26531
26532have_bzlib='no'
26533if test "$with_bzlib" != 'no'; then
26534 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26536$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026538$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026539 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26540$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026541 failed=0
26542 passed=0
26543 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026544 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026545if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 passed=`expr $passed + 1`
26547else
26548 failed=`expr $failed + 1`
26549fi
26550
26551
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026554if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026555 $as_echo_n "(cached) " >&6
26556else
26557 ac_check_lib_save_LIBS=$LIBS
26558LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026560/* end confdefs.h. */
26561
26562/* Override any GCC internal prototype to avoid an error.
26563 Use char because int might match the return type of a GCC
26564 builtin and then its argument prototype would still apply. */
26565#ifdef __cplusplus
26566extern "C"
26567#endif
26568char BZ2_bzDecompress ();
26569int
26570main ()
26571{
26572return BZ2_bzDecompress ();
26573 ;
26574 return 0;
26575}
26576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026578 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26579else
cristy8b350f62009-11-15 23:12:43 +000026580 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026581fi
cristy8b350f62009-11-15 23:12:43 +000026582rm -f core conftest.err conftest.$ac_objext \
26583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026584LIBS=$ac_check_lib_save_LIBS
26585fi
cristy8b350f62009-11-15 23:12:43 +000026586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026588if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026589 found_libbz=`expr $found_libbz + 1`
26590fi
26591
26592 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026594$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026595if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 $as_echo_n "(cached) " >&6
26597else
26598 ac_check_lib_save_LIBS=$LIBS
26599LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026601/* end confdefs.h. */
26602
26603/* Override any GCC internal prototype to avoid an error.
26604 Use char because int might match the return type of a GCC
26605 builtin and then its argument prototype would still apply. */
26606#ifdef __cplusplus
26607extern "C"
26608#endif
26609char _imp__BZ2_decompress ();
26610int
26611main ()
26612{
26613return _imp__BZ2_decompress ();
26614 ;
26615 return 0;
26616}
26617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026618if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026619 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26620else
cristy8b350f62009-11-15 23:12:43 +000026621 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026622fi
cristy8b350f62009-11-15 23:12:43 +000026623rm -f core conftest.err conftest.$ac_objext \
26624 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026625LIBS=$ac_check_lib_save_LIBS
26626fi
cristy8b350f62009-11-15 23:12:43 +000026627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026628$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026629if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026630 found_libbz=`expr $found_libbz + 1`
26631fi
26632
26633 fi
26634 if test $found_libbz -gt 0; then
26635 passed=`expr $passed + 1`
26636 else
26637 failed=`expr $failed + 1`
26638 fi
cristy8b350f62009-11-15 23:12:43 +000026639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026640$as_echo_n "checking if BZLIB package is complete... " >&6; }
26641 if test $passed -gt 0; then
26642 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026643 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26644$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026645 have_bzlib='no (failed tests)'
26646 else
26647 BZLIB_LIBS='-lbz2'
26648 LIBS="$BZLIB_LIBS $LIBS"
26649
cristy8b350f62009-11-15 23:12:43 +000026650$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026651
cristy09b53e12011-10-14 12:47:22 +000026652 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26653$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026654 have_bzlib='yes'
26655 fi
26656 else
cristy09b53e12011-10-14 12:47:22 +000026657 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26658$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026659 fi
26660fi
cristy73bd4a52010-10-05 11:24:23 +000026661 if test "$have_bzlib" = 'yes'; then
26662 BZLIB_DELEGATE_TRUE=
26663 BZLIB_DELEGATE_FALSE='#'
26664else
26665 BZLIB_DELEGATE_TRUE='#'
26666 BZLIB_DELEGATE_FALSE=
26667fi
26668
cristy3ed852e2009-09-05 21:47:34 +000026669
26670
26671#
26672# Find the X11 include and library directories.
26673#
26674IPC_LIBS=''
26675X11_LIBS=''
26676XEXT_LIBS=''
26677XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026679$as_echo_n "checking for X... " >&6; }
26680
26681
26682# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026683if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026684 withval=$with_x;
26685fi
26686
26687# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26688if test "x$with_x" = xno; then
26689 # The user explicitly disabled X.
26690 have_x=disabled
26691else
26692 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026693 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026694 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026695 $as_echo_n "(cached) " >&6
26696else
26697 # One or both of the vars are not set, and there is no cached value.
26698ac_x_includes=no ac_x_libraries=no
26699rm -f -r conftest.dir
26700if mkdir conftest.dir; then
26701 cd conftest.dir
26702 cat >Imakefile <<'_ACEOF'
26703incroot:
26704 @echo incroot='${INCROOT}'
26705usrlibdir:
26706 @echo usrlibdir='${USRLIBDIR}'
26707libdir:
26708 @echo libdir='${LIBDIR}'
26709_ACEOF
26710 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026712 for ac_var in incroot usrlibdir libdir; do
26713 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26714 done
26715 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26716 for ac_extension in a so sl dylib la dll; do
26717 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26718 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26719 ac_im_usrlibdir=$ac_im_libdir; break
26720 fi
26721 done
26722 # Screen out bogus values from the imake configuration. They are
26723 # bogus both because they are the default anyway, and because
26724 # using them would break gcc on systems where it needs fixed includes.
26725 case $ac_im_incroot in
26726 /usr/include) ac_x_includes= ;;
26727 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26728 esac
26729 case $ac_im_usrlibdir in
26730 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26731 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26732 esac
26733 fi
26734 cd ..
26735 rm -f -r conftest.dir
26736fi
26737
26738# Standard set of common directories for X headers.
26739# Check X11 before X11Rn because it is often a symlink to the current release.
26740ac_x_header_dirs='
26741/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026742/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026743/usr/X11R6/include
26744/usr/X11R5/include
26745/usr/X11R4/include
26746
26747/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026748/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026749/usr/include/X11R6
26750/usr/include/X11R5
26751/usr/include/X11R4
26752
26753/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026754/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026755/usr/local/X11R6/include
26756/usr/local/X11R5/include
26757/usr/local/X11R4/include
26758
26759/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026760/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026761/usr/local/include/X11R6
26762/usr/local/include/X11R5
26763/usr/local/include/X11R4
26764
26765/usr/X386/include
26766/usr/x386/include
26767/usr/XFree86/include/X11
26768
26769/usr/include
26770/usr/local/include
26771/usr/unsupported/include
26772/usr/athena/include
26773/usr/local/x11r5/include
26774/usr/lpp/Xamples/include
26775
26776/usr/openwin/include
26777/usr/openwin/share/include'
26778
26779if test "$ac_x_includes" = no; then
26780 # Guess where to find include files, by looking for Xlib.h.
26781 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026783/* end confdefs.h. */
26784#include <X11/Xlib.h>
26785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026786if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026787 # We can compile using X headers with no special include directory.
26788ac_x_includes=
26789else
cristyc7083c12009-10-14 03:16:55 +000026790 for ac_dir in $ac_x_header_dirs; do
26791 if test -r "$ac_dir/X11/Xlib.h"; then
26792 ac_x_includes=$ac_dir
26793 break
26794 fi
26795done
26796fi
cristyda16f162011-02-19 23:52:17 +000026797rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026798fi # $ac_x_includes = no
26799
26800if test "$ac_x_libraries" = no; then
26801 # Check for the libraries.
26802 # See if we find them without any special options.
26803 # Don't add to $LIBS permanently.
26804 ac_save_LIBS=$LIBS
26805 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026807/* end confdefs.h. */
26808#include <X11/Xlib.h>
26809int
26810main ()
26811{
26812XrmInitialize ()
26813 ;
26814 return 0;
26815}
26816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026817if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026818 LIBS=$ac_save_LIBS
26819# We can link X programs with no special library path.
26820ac_x_libraries=
26821else
cristy8b350f62009-11-15 23:12:43 +000026822 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026823for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26824do
26825 # Don't even attempt the hair of trying to link an X program!
26826 for ac_extension in a so sl dylib la dll; do
26827 if test -r "$ac_dir/libX11.$ac_extension"; then
26828 ac_x_libraries=$ac_dir
26829 break 2
26830 fi
26831 done
26832done
26833fi
cristy8b350f62009-11-15 23:12:43 +000026834rm -f core conftest.err conftest.$ac_objext \
26835 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026836fi # $ac_x_libraries = no
26837
26838case $ac_x_includes,$ac_x_libraries in #(
26839 no,* | *,no | *\'*)
26840 # Didn't find X, or a directory has "'" in its name.
26841 ac_cv_have_x="have_x=no";; #(
26842 *)
26843 # Record where we found X for the cache.
26844 ac_cv_have_x="have_x=yes\
26845 ac_x_includes='$ac_x_includes'\
26846 ac_x_libraries='$ac_x_libraries'"
26847esac
26848fi
26849;; #(
26850 *) have_x=yes;;
26851 esac
26852 eval "$ac_cv_have_x"
26853fi # $with_x != no
26854
26855if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026857$as_echo "$have_x" >&6; }
26858 no_x=yes
26859else
26860 # If each of the values was on the command line, it overrides each guess.
26861 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26862 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26863 # Update the cache value to reflect the command line values.
26864 ac_cv_have_x="have_x=yes\
26865 ac_x_includes='$x_includes'\
26866 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026868$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26869fi
26870
cristy3ed852e2009-09-05 21:47:34 +000026871if test "$no_x" = yes; then
26872 # Not all programs may use this symbol, but it does not hurt to define it.
26873
cristy8b350f62009-11-15 23:12:43 +000026874$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026875
26876 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26877else
26878 if test -n "$x_includes"; then
26879 X_CFLAGS="$X_CFLAGS -I$x_includes"
26880 fi
26881
26882 # It would also be nice to do this for all -L options, not just this one.
26883 if test -n "$x_libraries"; then
26884 X_LIBS="$X_LIBS -L$x_libraries"
26885 # For Solaris; some versions of Sun CC require a space after -R and
26886 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026888$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26889 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26890 ac_xsave_c_werror_flag=$ac_c_werror_flag
26891 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026893/* end confdefs.h. */
26894
26895int
26896main ()
26897{
26898
26899 ;
26900 return 0;
26901}
26902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026903if ac_fn_c_try_link "$LINENO"; then :
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "no" >&6; }
26906 X_LIBS="$X_LIBS -R$x_libraries"
26907else
cristy8b350f62009-11-15 23:12:43 +000026908 LIBS="$ac_xsave_LIBS -R $x_libraries"
26909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026910/* end confdefs.h. */
26911
26912int
26913main ()
26914{
26915
26916 ;
26917 return 0;
26918}
26919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026920if ac_fn_c_try_link "$LINENO"; then :
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026922$as_echo "yes" >&6; }
26923 X_LIBS="$X_LIBS -R $x_libraries"
26924else
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo "neither works" >&6; }
26927fi
cristy8b350f62009-11-15 23:12:43 +000026928rm -f core conftest.err conftest.$ac_objext \
26929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026930fi
cristy8b350f62009-11-15 23:12:43 +000026931rm -f core conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026933 ac_c_werror_flag=$ac_xsave_c_werror_flag
26934 LIBS=$ac_xsave_LIBS
26935 fi
26936
26937 # Check for system-dependent libraries X programs must link with.
26938 # Do this before checking for the system-independent R6 libraries
26939 # (-lICE), since we may need -lsocket or whatever for X linking.
26940
26941 if test "$ISC" = yes; then
26942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26943 else
26944 # Martyn Johnson says this is needed for Ultrix, if the X
26945 # libraries were built with DECnet support. And Karl Berry says
26946 # the Alpha needs dnet_stub (dnet does not exist).
26947 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026949/* end confdefs.h. */
26950
26951/* Override any GCC internal prototype to avoid an error.
26952 Use char because int might match the return type of a GCC
26953 builtin and then its argument prototype would still apply. */
26954#ifdef __cplusplus
26955extern "C"
26956#endif
26957char XOpenDisplay ();
26958int
26959main ()
26960{
26961return XOpenDisplay ();
26962 ;
26963 return 0;
26964}
26965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026967
cristy8b350f62009-11-15 23:12:43 +000026968else
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026971if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 $as_echo_n "(cached) " >&6
26973else
26974 ac_check_lib_save_LIBS=$LIBS
26975LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026977/* end confdefs.h. */
26978
26979/* Override any GCC internal prototype to avoid an error.
26980 Use char because int might match the return type of a GCC
26981 builtin and then its argument prototype would still apply. */
26982#ifdef __cplusplus
26983extern "C"
26984#endif
26985char dnet_ntoa ();
26986int
26987main ()
26988{
26989return dnet_ntoa ();
26990 ;
26991 return 0;
26992}
26993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026995 ac_cv_lib_dnet_dnet_ntoa=yes
26996else
cristy8b350f62009-11-15 23:12:43 +000026997 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026998fi
cristy8b350f62009-11-15 23:12:43 +000026999rm -f core conftest.err conftest.$ac_objext \
27000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027001LIBS=$ac_check_lib_save_LIBS
27002fi
cristy8b350f62009-11-15 23:12:43 +000027003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027004$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027005if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027006 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27007fi
27008
27009 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027012if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027013 $as_echo_n "(cached) " >&6
27014else
27015 ac_check_lib_save_LIBS=$LIBS
27016LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027018/* end confdefs.h. */
27019
27020/* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27023#ifdef __cplusplus
27024extern "C"
27025#endif
27026char dnet_ntoa ();
27027int
27028main ()
27029{
27030return dnet_ntoa ();
27031 ;
27032 return 0;
27033}
27034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027035if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27037else
cristy8b350f62009-11-15 23:12:43 +000027038 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027039fi
cristy8b350f62009-11-15 23:12:43 +000027040rm -f core conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027042LIBS=$ac_check_lib_save_LIBS
27043fi
cristy8b350f62009-11-15 23:12:43 +000027044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027046if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027047 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27048fi
27049
27050 fi
27051fi
cristy8b350f62009-11-15 23:12:43 +000027052rm -f core conftest.err conftest.$ac_objext \
27053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027054 LIBS="$ac_xsave_LIBS"
27055
27056 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27057 # to get the SysV transport functions.
27058 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27059 # needs -lnsl.
27060 # The nsl library prevents programs from opening the X display
27061 # on Irix 5.2, according to T.E. Dickey.
27062 # The functions gethostbyname, getservbyname, and inet_addr are
27063 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027064 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027065if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027066
cristy3ed852e2009-09-05 21:47:34 +000027067fi
27068
cristy3ed852e2009-09-05 21:47:34 +000027069 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027071$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027072if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027073 $as_echo_n "(cached) " >&6
27074else
27075 ac_check_lib_save_LIBS=$LIBS
27076LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027078/* end confdefs.h. */
27079
27080/* Override any GCC internal prototype to avoid an error.
27081 Use char because int might match the return type of a GCC
27082 builtin and then its argument prototype would still apply. */
27083#ifdef __cplusplus
27084extern "C"
27085#endif
27086char gethostbyname ();
27087int
27088main ()
27089{
27090return gethostbyname ();
27091 ;
27092 return 0;
27093}
27094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027095if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027096 ac_cv_lib_nsl_gethostbyname=yes
27097else
cristy8b350f62009-11-15 23:12:43 +000027098 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027099fi
cristy8b350f62009-11-15 23:12:43 +000027100rm -f core conftest.err conftest.$ac_objext \
27101 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027102LIBS=$ac_check_lib_save_LIBS
27103fi
cristy8b350f62009-11-15 23:12:43 +000027104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027105$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027106if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27108fi
27109
27110 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027113if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027114 $as_echo_n "(cached) " >&6
27115else
27116 ac_check_lib_save_LIBS=$LIBS
27117LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027119/* end confdefs.h. */
27120
27121/* Override any GCC internal prototype to avoid an error.
27122 Use char because int might match the return type of a GCC
27123 builtin and then its argument prototype would still apply. */
27124#ifdef __cplusplus
27125extern "C"
27126#endif
27127char gethostbyname ();
27128int
27129main ()
27130{
27131return gethostbyname ();
27132 ;
27133 return 0;
27134}
27135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027136if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027137 ac_cv_lib_bsd_gethostbyname=yes
27138else
cristy8b350f62009-11-15 23:12:43 +000027139 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027140fi
cristy8b350f62009-11-15 23:12:43 +000027141rm -f core conftest.err conftest.$ac_objext \
27142 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027143LIBS=$ac_check_lib_save_LIBS
27144fi
cristy8b350f62009-11-15 23:12:43 +000027145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027146$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027147if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27149fi
27150
27151 fi
27152 fi
27153
27154 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27155 # socket/setsockopt and other routines are undefined under SCO ODT
27156 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27157 # on later versions), says Simon Leinen: it contains gethostby*
27158 # variants that don't use the name server (or something). -lsocket
27159 # must be given before -lnsl if both are needed. We assume that
27160 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027161 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027162if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027163
cristy3ed852e2009-09-05 21:47:34 +000027164fi
27165
cristy3ed852e2009-09-05 21:47:34 +000027166 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027169if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 $as_echo_n "(cached) " >&6
27171else
27172 ac_check_lib_save_LIBS=$LIBS
27173LIBS="-lsocket $X_EXTRA_LIBS $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 connect ();
27184int
27185main ()
27186{
27187return connect ();
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_socket_connect=yes
27194else
cristy8b350f62009-11-15 23:12:43 +000027195 ac_cv_lib_socket_connect=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_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027202$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027203if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27205fi
27206
27207 fi
27208
27209 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027210 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027211if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027212
cristy3ed852e2009-09-05 21:47:34 +000027213fi
27214
cristy3ed852e2009-09-05 21:47:34 +000027215 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027217$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027218if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027219 $as_echo_n "(cached) " >&6
27220else
27221 ac_check_lib_save_LIBS=$LIBS
27222LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027224/* end confdefs.h. */
27225
27226/* Override any GCC internal prototype to avoid an error.
27227 Use char because int might match the return type of a GCC
27228 builtin and then its argument prototype would still apply. */
27229#ifdef __cplusplus
27230extern "C"
27231#endif
27232char remove ();
27233int
27234main ()
27235{
27236return remove ();
27237 ;
27238 return 0;
27239}
27240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027242 ac_cv_lib_posix_remove=yes
27243else
cristy8b350f62009-11-15 23:12:43 +000027244 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027245fi
cristy8b350f62009-11-15 23:12:43 +000027246rm -f core conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248LIBS=$ac_check_lib_save_LIBS
27249fi
cristy8b350f62009-11-15 23:12:43 +000027250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027252if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27254fi
27255
27256 fi
27257
27258 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027259 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027260if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027261
cristy3ed852e2009-09-05 21:47:34 +000027262fi
27263
cristy3ed852e2009-09-05 21:47:34 +000027264 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027266$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027267if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 $as_echo_n "(cached) " >&6
27269else
27270 ac_check_lib_save_LIBS=$LIBS
27271LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027273/* end confdefs.h. */
27274
27275/* Override any GCC internal prototype to avoid an error.
27276 Use char because int might match the return type of a GCC
27277 builtin and then its argument prototype would still apply. */
27278#ifdef __cplusplus
27279extern "C"
27280#endif
27281char shmat ();
27282int
27283main ()
27284{
27285return shmat ();
27286 ;
27287 return 0;
27288}
27289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 ac_cv_lib_ipc_shmat=yes
27292else
cristy8b350f62009-11-15 23:12:43 +000027293 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027294fi
cristy8b350f62009-11-15 23:12:43 +000027295rm -f core conftest.err conftest.$ac_objext \
27296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027297LIBS=$ac_check_lib_save_LIBS
27298fi
cristy8b350f62009-11-15 23:12:43 +000027299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027300$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027301if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027302 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27303fi
27304
27305 fi
27306 fi
27307
27308 # Check for libraries that X11R6 Xt/Xaw programs need.
27309 ac_save_LDFLAGS=$LDFLAGS
27310 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27311 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27312 # check for ICE first), but we must link in the order -lSM -lICE or
27313 # we get undefined symbols. So assume we have SM if we have ICE.
27314 # These have to be linked with before -lX11, unlike the other
27315 # libraries we check for below, so use a different variable.
27316 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027318$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027319if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027320 $as_echo_n "(cached) " >&6
27321else
27322 ac_check_lib_save_LIBS=$LIBS
27323LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027325/* end confdefs.h. */
27326
27327/* Override any GCC internal prototype to avoid an error.
27328 Use char because int might match the return type of a GCC
27329 builtin and then its argument prototype would still apply. */
27330#ifdef __cplusplus
27331extern "C"
27332#endif
27333char IceConnectionNumber ();
27334int
27335main ()
27336{
27337return IceConnectionNumber ();
27338 ;
27339 return 0;
27340}
27341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 ac_cv_lib_ICE_IceConnectionNumber=yes
27344else
cristy8b350f62009-11-15 23:12:43 +000027345 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027346fi
cristy8b350f62009-11-15 23:12:43 +000027347rm -f core conftest.err conftest.$ac_objext \
27348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027349LIBS=$ac_check_lib_save_LIBS
27350fi
cristy8b350f62009-11-15 23:12:43 +000027351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027352$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027353if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027354 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27355fi
27356
27357 LDFLAGS=$ac_save_LDFLAGS
27358
27359fi
27360
27361if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27363$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027365$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027366 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27367$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027368 LDFLAGS="$LDFLAGS $X_LIBS"
27369 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27370 LIBS="$X11_LIBS $LIBS"
27371 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27372
27373
cristy8b350f62009-11-15 23:12:43 +000027374$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027375
27376 #
27377 # Check for X11 shared memory extension
27378 #
27379 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027380 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027381if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 have_shmctl='yes'
27383fi
27384
27385 if test "$have_shmctl" != 'yes'; then
27386 PERSIST_LIBS=$LIBS
27387 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027389/* end confdefs.h. */
27390
27391/* Override any GCC internal prototype to avoid an error.
27392 Use char because int might match the return type of a GCC
27393 builtin and then its argument prototype would still apply. */
27394#ifdef __cplusplus
27395extern "C"
27396#endif
27397char shmctl ();
27398int
27399main ()
27400{
27401return shmctl ();
27402 ;
27403 return 0;
27404}
27405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027407 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027408fi
cristy8b350f62009-11-15 23:12:43 +000027409rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411 LIBS=$PERSIST_LIBS
27412 fi
27413
27414 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027416$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027417if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027418 $as_echo_n "(cached) " >&6
27419else
27420 ac_check_lib_save_LIBS=$LIBS
27421LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027423/* end confdefs.h. */
27424
27425/* Override any GCC internal prototype to avoid an error.
27426 Use char because int might match the return type of a GCC
27427 builtin and then its argument prototype would still apply. */
27428#ifdef __cplusplus
27429extern "C"
27430#endif
27431char XShmAttach ();
27432int
27433main ()
27434{
27435return XShmAttach ();
27436 ;
27437 return 0;
27438}
27439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027440if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027441 ac_cv_lib_Xext_XShmAttach=yes
27442else
cristy8b350f62009-11-15 23:12:43 +000027443 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027444fi
cristy8b350f62009-11-15 23:12:43 +000027445rm -f core conftest.err conftest.$ac_objext \
27446 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027447LIBS=$ac_check_lib_save_LIBS
27448fi
cristy8b350f62009-11-15 23:12:43 +000027449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027450$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027451if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027452 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027453$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027454
27455fi
27456
27457 fi
27458
27459 #
27460 # Check for X11 shape extension
27461 #
cristy8b350f62009-11-15 23:12:43 +000027462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027463$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027464if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027465 $as_echo_n "(cached) " >&6
27466else
27467 ac_check_lib_save_LIBS=$LIBS
27468LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027470/* end confdefs.h. */
27471
27472/* Override any GCC internal prototype to avoid an error.
27473 Use char because int might match the return type of a GCC
27474 builtin and then its argument prototype would still apply. */
27475#ifdef __cplusplus
27476extern "C"
27477#endif
27478char XShapeCombineMask ();
27479int
27480main ()
27481{
27482return XShapeCombineMask ();
27483 ;
27484 return 0;
27485}
27486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 ac_cv_lib_Xext_XShapeCombineMask=yes
27489else
cristy8b350f62009-11-15 23:12:43 +000027490 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027491fi
cristy8b350f62009-11-15 23:12:43 +000027492rm -f core conftest.err conftest.$ac_objext \
27493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027494LIBS=$ac_check_lib_save_LIBS
27495fi
cristy8b350f62009-11-15 23:12:43 +000027496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027497$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027498if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027499 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027500$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027501
27502fi
27503
cristy8b350f62009-11-15 23:12:43 +000027504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027505$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027506if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027507 $as_echo_n "(cached) " >&6
27508else
27509 ac_check_lib_save_LIBS=$LIBS
27510LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027512/* end confdefs.h. */
27513
27514/* Override any GCC internal prototype to avoid an error.
27515 Use char because int might match the return type of a GCC
27516 builtin and then its argument prototype would still apply. */
27517#ifdef __cplusplus
27518extern "C"
27519#endif
27520char XtSetEventDispatcher ();
27521int
27522main ()
27523{
27524return XtSetEventDispatcher ();
27525 ;
27526 return 0;
27527}
27528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27531else
cristy8b350f62009-11-15 23:12:43 +000027532 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027533fi
cristy8b350f62009-11-15 23:12:43 +000027534rm -f core conftest.err conftest.$ac_objext \
27535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027536LIBS=$ac_check_lib_save_LIBS
27537fi
cristy8b350f62009-11-15 23:12:43 +000027538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027539$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027540if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027541 XT_LIBS='-lXt'
27542fi
27543
27544 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27545fi
27546if test "$no_x" != 'yes'; then
27547 have_x='yes'
27548else
27549 have_x='no'
27550fi
cristy73bd4a52010-10-05 11:24:23 +000027551 if test "$have_x" = 'yes'; then
27552 X11_DELEGATE_TRUE=
27553 X11_DELEGATE_FALSE='#'
27554else
27555 X11_DELEGATE_TRUE='#'
27556 X11_DELEGATE_FALSE=
27557fi
27558
cristy3ed852e2009-09-05 21:47:34 +000027559
27560
27561
27562
27563#
27564# Check for ZLIB
27565#
27566
27567# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027568if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027569 withval=$with_zlib; with_zlib=$withval
27570else
27571 with_zlib='yes'
27572fi
27573
27574
27575if test "$with_zlib" != 'yes'; then
27576 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27577fi
27578
27579have_zlib='no'
27580ZLIB_LIBS=''
27581if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027582 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27583$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027586 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27587$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027588 ZLIB_LIBS=''
27589 failed=0
27590 passed=0
cristy8b350f62009-11-15 23:12:43 +000027591 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027592if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027593 passed=`expr $passed + 1`
27594else
27595 failed=`expr $failed + 1`
27596fi
27597
27598
cristy8b350f62009-11-15 23:12:43 +000027599 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027600if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027601 passed=`expr $passed + 1`
27602else
27603 failed=`expr $failed + 1`
27604fi
27605
27606
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027609if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 $as_echo_n "(cached) " >&6
27611else
27612 ac_check_lib_save_LIBS=$LIBS
27613LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027615/* end confdefs.h. */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char compress ();
27624int
27625main ()
27626{
27627return compress ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 ac_cv_lib_z_compress=yes
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027636fi
cristy8b350f62009-11-15 23:12:43 +000027637rm -f core conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027639LIBS=$ac_check_lib_save_LIBS
27640fi
cristy8b350f62009-11-15 23:12:43 +000027641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027642$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027643if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 passed=`expr $passed + 1`
27645else
27646 failed=`expr $failed + 1`
27647fi
27648
cristy8b350f62009-11-15 23:12:43 +000027649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027651if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 $as_echo_n "(cached) " >&6
27653else
27654 ac_check_lib_save_LIBS=$LIBS
27655LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657/* end confdefs.h. */
27658
27659/* Override any GCC internal prototype to avoid an error.
27660 Use char because int might match the return type of a GCC
27661 builtin and then its argument prototype would still apply. */
27662#ifdef __cplusplus
27663extern "C"
27664#endif
27665char uncompress ();
27666int
27667main ()
27668{
27669return uncompress ();
27670 ;
27671 return 0;
27672}
27673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 ac_cv_lib_z_uncompress=yes
27676else
cristy8b350f62009-11-15 23:12:43 +000027677 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027678fi
cristy8b350f62009-11-15 23:12:43 +000027679rm -f core conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027681LIBS=$ac_check_lib_save_LIBS
27682fi
cristy8b350f62009-11-15 23:12:43 +000027683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027685if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 passed=`expr $passed + 1`
27687else
27688 failed=`expr $failed + 1`
27689fi
27690
cristy8b350f62009-11-15 23:12:43 +000027691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027693if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 $as_echo_n "(cached) " >&6
27695else
27696 ac_check_lib_save_LIBS=$LIBS
27697LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027699/* end confdefs.h. */
27700
27701/* Override any GCC internal prototype to avoid an error.
27702 Use char because int might match the return type of a GCC
27703 builtin and then its argument prototype would still apply. */
27704#ifdef __cplusplus
27705extern "C"
27706#endif
27707char deflate ();
27708int
27709main ()
27710{
27711return deflate ();
27712 ;
27713 return 0;
27714}
27715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027716if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027717 ac_cv_lib_z_deflate=yes
27718else
cristy8b350f62009-11-15 23:12:43 +000027719 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027720fi
cristy8b350f62009-11-15 23:12:43 +000027721rm -f core conftest.err conftest.$ac_objext \
27722 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027723LIBS=$ac_check_lib_save_LIBS
27724fi
cristy8b350f62009-11-15 23:12:43 +000027725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027726$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027727if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027728 passed=`expr $passed + 1`
27729else
27730 failed=`expr $failed + 1`
27731fi
27732
cristy8b350f62009-11-15 23:12:43 +000027733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027734$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027735if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027736 $as_echo_n "(cached) " >&6
27737else
27738 ac_check_lib_save_LIBS=$LIBS
27739LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027741/* end confdefs.h. */
27742
27743/* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27746#ifdef __cplusplus
27747extern "C"
27748#endif
27749char inflate ();
27750int
27751main ()
27752{
27753return inflate ();
27754 ;
27755 return 0;
27756}
27757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027759 ac_cv_lib_z_inflate=yes
27760else
cristy8b350f62009-11-15 23:12:43 +000027761 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027762fi
cristy8b350f62009-11-15 23:12:43 +000027763rm -f core conftest.err conftest.$ac_objext \
27764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027765LIBS=$ac_check_lib_save_LIBS
27766fi
cristy8b350f62009-11-15 23:12:43 +000027767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027769if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027770 passed=`expr $passed + 1`
27771else
27772 failed=`expr $failed + 1`
27773fi
27774
cristy8b350f62009-11-15 23:12:43 +000027775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027777if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 $as_echo_n "(cached) " >&6
27779else
27780 ac_check_lib_save_LIBS=$LIBS
27781LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027783/* end confdefs.h. */
27784
27785/* Override any GCC internal prototype to avoid an error.
27786 Use char because int might match the return type of a GCC
27787 builtin and then its argument prototype would still apply. */
27788#ifdef __cplusplus
27789extern "C"
27790#endif
27791char gzseek ();
27792int
27793main ()
27794{
27795return gzseek ();
27796 ;
27797 return 0;
27798}
27799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027800if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027801 ac_cv_lib_z_gzseek=yes
27802else
cristy8b350f62009-11-15 23:12:43 +000027803 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027804fi
cristy8b350f62009-11-15 23:12:43 +000027805rm -f core conftest.err conftest.$ac_objext \
27806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027807LIBS=$ac_check_lib_save_LIBS
27808fi
cristy8b350f62009-11-15 23:12:43 +000027809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027810$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027811if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 passed=`expr $passed + 1`
27813else
27814 failed=`expr $failed + 1`
27815fi
27816
cristy8b350f62009-11-15 23:12:43 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027819if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027820 $as_echo_n "(cached) " >&6
27821else
27822 ac_check_lib_save_LIBS=$LIBS
27823LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027825/* end confdefs.h. */
27826
27827/* Override any GCC internal prototype to avoid an error.
27828 Use char because int might match the return type of a GCC
27829 builtin and then its argument prototype would still apply. */
27830#ifdef __cplusplus
27831extern "C"
27832#endif
27833char gztell ();
27834int
27835main ()
27836{
27837return gztell ();
27838 ;
27839 return 0;
27840}
27841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027842if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 ac_cv_lib_z_gztell=yes
27844else
cristy8b350f62009-11-15 23:12:43 +000027845 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027846fi
cristy8b350f62009-11-15 23:12:43 +000027847rm -f core conftest.err conftest.$ac_objext \
27848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027849LIBS=$ac_check_lib_save_LIBS
27850fi
cristy8b350f62009-11-15 23:12:43 +000027851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027852$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027853if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027854 passed=`expr $passed + 1`
27855else
27856 failed=`expr $failed + 1`
27857fi
27858
cristy8b350f62009-11-15 23:12:43 +000027859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027860$as_echo_n "checking if ZLIB package is complete... " >&6; }
27861 if test $passed -gt 0; then
27862 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027863 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27864$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027865 have_zlib='no (failed tests)'
27866 else
27867 ZLIB_LIBS='-lz'
27868 LIBS="$ZLIB_LIBS $LIBS"
27869
cristy8b350f62009-11-15 23:12:43 +000027870$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027871
cristy09b53e12011-10-14 12:47:22 +000027872 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27873$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027874 have_zlib='yes'
27875 fi
27876 else
cristy09b53e12011-10-14 12:47:22 +000027877 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27878$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027879 fi
27880fi
cristy73bd4a52010-10-05 11:24:23 +000027881 if test "$have_zlib" = 'yes'; then
27882 ZLIB_DELEGATE_TRUE=
27883 ZLIB_DELEGATE_FALSE='#'
27884else
27885 ZLIB_DELEGATE_TRUE='#'
27886 ZLIB_DELEGATE_FALSE=
27887fi
27888
cristy3ed852e2009-09-05 21:47:34 +000027889
27890
27891#
27892# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27893#
27894LIB_DL=''
27895if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027897$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027898if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 $as_echo_n "(cached) " >&6
27900else
27901 ac_check_lib_save_LIBS=$LIBS
27902LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027904/* end confdefs.h. */
27905
27906/* Override any GCC internal prototype to avoid an error.
27907 Use char because int might match the return type of a GCC
27908 builtin and then its argument prototype would still apply. */
27909#ifdef __cplusplus
27910extern "C"
27911#endif
27912char dlopen ();
27913int
27914main ()
27915{
27916return dlopen ();
27917 ;
27918 return 0;
27919}
27920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027921if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027922 ac_cv_lib_dl_dlopen=yes
27923else
cristy8b350f62009-11-15 23:12:43 +000027924 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027925fi
cristy8b350f62009-11-15 23:12:43 +000027926rm -f core conftest.err conftest.$ac_objext \
27927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928LIBS=$ac_check_lib_save_LIBS
27929fi
cristy8b350f62009-11-15 23:12:43 +000027930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027931$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027932if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027933 LIB_DL='-ldl'
27934fi
27935
27936 LIBS="$LIB_DL $LIBS"
27937fi
27938
27939
27940
27941#
27942# Check for Autotrace delegate library.
27943#
27944
27945# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027946if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027947 withval=$with_autotrace; with_autotrace=$withval
27948else
27949 with_autotrace='no'
27950fi
27951
27952
27953if test "$with_autotrace" != 'yes'; then
27954 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27955fi
27956
27957have_autotrace='no'
27958AUTOTRACE_CFLAGS=""
27959AUTOTRACE_LIBS=""
27960AUTOTRACE_PKG=""
27961if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27963$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027964
27965pkg_failed=no
27966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27967$as_echo_n "checking for AUTOTRACE... " >&6; }
27968
27969if test -n "$AUTOTRACE_CFLAGS"; then
27970 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27971 elif test -n "$PKG_CONFIG"; then
27972 if test -n "$PKG_CONFIG" && \
27973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27974 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27975 ac_status=$?
27976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27977 test $ac_status = 0; }; then
27978 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27979else
27980 pkg_failed=yes
27981fi
27982 else
27983 pkg_failed=untried
27984fi
27985if test -n "$AUTOTRACE_LIBS"; then
27986 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27987 elif test -n "$PKG_CONFIG"; then
27988 if test -n "$PKG_CONFIG" && \
27989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27990 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27991 ac_status=$?
27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27993 test $ac_status = 0; }; then
27994 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27995else
27996 pkg_failed=yes
27997fi
27998 else
27999 pkg_failed=untried
28000fi
28001
28002
28003
28004if test $pkg_failed = yes; then
28005
28006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28007 _pkg_short_errors_supported=yes
28008else
28009 _pkg_short_errors_supported=no
28010fi
28011 if test $_pkg_short_errors_supported = yes; then
28012 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28013 else
28014 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28015 fi
28016 # Put the nasty error message in config.log where it belongs
28017 echo "$AUTOTRACE_PKG_ERRORS" >&5
28018
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28020$as_echo "no" >&6; }
28021 have_autotrace=no
28022elif test $pkg_failed = untried; then
28023 have_autotrace=no
28024else
28025 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28026 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28028$as_echo "yes" >&6; }
28029 have_autotrace=yes
28030fi
cristy09b53e12011-10-14 12:47:22 +000028031 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28032$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028033fi
28034
28035if test "$have_autotrace" = 'yes'; then
28036 failed=0
28037
cristy8b350f62009-11-15 23:12:43 +000028038$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028039
28040 if test "$with_modules" = 'no'; then
28041 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28042 fi
28043fi
28044
cristy73bd4a52010-10-05 11:24:23 +000028045 if test "$have_autotrace" = 'yes'; then
28046 AUTOTRACE_DELEGATE_TRUE=
28047 AUTOTRACE_DELEGATE_FALSE='#'
28048else
28049 AUTOTRACE_DELEGATE_TRUE='#'
28050 AUTOTRACE_DELEGATE_FALSE=
28051fi
28052
cristy3ed852e2009-09-05 21:47:34 +000028053
28054
28055
28056
28057#
28058# Check for Display Postscript delegate library.
28059#
28060
28061# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028062if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 withval=$with_dps; with_dps=$withval
28064else
28065 with_dps='yes'
28066fi
28067
28068
28069if test "$with_dps" != 'yes'; then
28070 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28071fi
28072
28073have_dps='no'
28074DPS_LIBS=''
28075if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028076 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28077$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028080 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28081$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028082 failed=0
28083 passed=0
28084 PERSIST_CPPFLAGS="$CPPFLAGS"
28085 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028086 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 +000028087if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028088 passed=`expr $passed + 1`
28089else
28090 failed=`expr $failed + 1`
28091fi
28092
28093
28094 # DPS issues:
28095 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28096 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28097 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28098 # ImageMagick itself doesn't use -lXt.
28099 have_libdps='no'
28100 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028102$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028103if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 $as_echo_n "(cached) " >&6
28105else
28106 ac_check_lib_save_LIBS=$LIBS
28107LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028109/* end confdefs.h. */
28110
28111/* Override any GCC internal prototype to avoid an error.
28112 Use char because int might match the return type of a GCC
28113 builtin and then its argument prototype would still apply. */
28114#ifdef __cplusplus
28115extern "C"
28116#endif
28117char DPSInitialize ();
28118int
28119main ()
28120{
28121return DPSInitialize ();
28122 ;
28123 return 0;
28124}
28125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028126if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028127 ac_cv_lib_dps_DPSInitialize=yes
28128else
cristy8b350f62009-11-15 23:12:43 +000028129 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028130fi
cristy8b350f62009-11-15 23:12:43 +000028131rm -f core conftest.err conftest.$ac_objext \
28132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133LIBS=$ac_check_lib_save_LIBS
28134fi
cristy8b350f62009-11-15 23:12:43 +000028135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028136$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028137if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028138 have_libdps='yes'
28139else
28140 have_libdps='no'
28141fi
28142
28143 if test "$have_libdps" != 'yes'; then
28144 # Unset cache variable so we can try again.
28145 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028147$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028148if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028149 $as_echo_n "(cached) " >&6
28150else
28151 ac_check_lib_save_LIBS=$LIBS
28152LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028154/* end confdefs.h. */
28155
28156/* Override any GCC internal prototype to avoid an error.
28157 Use char because int might match the return type of a GCC
28158 builtin and then its argument prototype would still apply. */
28159#ifdef __cplusplus
28160extern "C"
28161#endif
28162char DPSInitialize ();
28163int
28164main ()
28165{
28166return DPSInitialize ();
28167 ;
28168 return 0;
28169}
28170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028171if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028172 ac_cv_lib_dps_DPSInitialize=yes
28173else
cristy8b350f62009-11-15 23:12:43 +000028174 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028175fi
cristy8b350f62009-11-15 23:12:43 +000028176rm -f core conftest.err conftest.$ac_objext \
28177 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028178LIBS=$ac_check_lib_save_LIBS
28179fi
cristy8b350f62009-11-15 23:12:43 +000028180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028181$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028182if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028183 have_libdps='yes'
28184else
28185 have_libdps='no'
28186fi
28187
28188 if test "$have_libdps" = 'yes'; then
28189 LIBDPS_XT='-lXt'
28190 fi
28191 fi
28192 if test "$have_libdps" = 'yes'; then
28193 passed=`expr $passed + 1`
28194 else
28195 failed=`expr $failed + 1`
28196 fi
cristy8b350f62009-11-15 23:12:43 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028198$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028199if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028200 $as_echo_n "(cached) " >&6
28201else
28202 ac_check_lib_save_LIBS=$LIBS
28203LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028205/* end confdefs.h. */
28206
28207/* Override any GCC internal prototype to avoid an error.
28208 Use char because int might match the return type of a GCC
28209 builtin and then its argument prototype would still apply. */
28210#ifdef __cplusplus
28211extern "C"
28212#endif
28213char XDPSPixelsPerPoint ();
28214int
28215main ()
28216{
28217return XDPSPixelsPerPoint ();
28218 ;
28219 return 0;
28220}
28221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28224else
cristy8b350f62009-11-15 23:12:43 +000028225 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028226fi
cristy8b350f62009-11-15 23:12:43 +000028227rm -f core conftest.err conftest.$ac_objext \
28228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028229LIBS=$ac_check_lib_save_LIBS
28230fi
cristy8b350f62009-11-15 23:12:43 +000028231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028232$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028233if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 passed=`expr $passed + 1`
28235else
28236 failed=`expr $failed + 1`
28237fi
28238
cristy8b350f62009-11-15 23:12:43 +000028239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028240$as_echo_n "checking if DPS package is complete... " >&6; }
28241 if test $passed -gt 0; then
28242 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028243 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28244$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028245 have_dps='no (failed tests)'
28246 CPPFLAGS="$PERSIST_CPPFLAGS"
28247 else
28248 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28249 LIBS="$DPS_LIBS $LIBS"
28250
cristy8b350f62009-11-15 23:12:43 +000028251$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028252
cristy09b53e12011-10-14 12:47:22 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28254$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028255 have_dps='yes'
28256 fi
28257 else
cristy09b53e12011-10-14 12:47:22 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28259$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028260 CPPFLAGS=$PERSIST_CPPFLAGS
28261 fi
28262fi
cristy73bd4a52010-10-05 11:24:23 +000028263 if test "$have_dps" = 'yes'; then
28264 DPS_DELEGATE_TRUE=
28265 DPS_DELEGATE_FALSE='#'
28266else
28267 DPS_DELEGATE_TRUE='#'
28268 DPS_DELEGATE_FALSE=
28269fi
28270
cristy3ed852e2009-09-05 21:47:34 +000028271
28272
28273
28274#
28275# Check for DJVU delegate library.
28276#
28277
28278# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028279if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028280 withval=$with_djvu; with_djvu=$withval
28281else
28282 with_djvu='yes'
28283fi
28284
28285
28286if test "$with_djvu" != 'yes'; then
28287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28288fi
28289
28290have_djvu='no'
28291DJVU_LIBS=''
28292if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028293 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28294$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028296$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028297 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28298$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028299 failed=0
28300 passed=0
cristy8b350f62009-11-15 23:12:43 +000028301 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 +000028302if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028303 passed=`expr $passed + 1`
28304else
28305 failed=`expr $failed + 1`
28306fi
28307
28308
cristy8b350f62009-11-15 23:12:43 +000028309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028311if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 $as_echo_n "(cached) " >&6
28313else
28314 ac_check_lib_save_LIBS=$LIBS
28315LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028317/* end confdefs.h. */
28318
28319/* Override any GCC internal prototype to avoid an error.
28320 Use char because int might match the return type of a GCC
28321 builtin and then its argument prototype would still apply. */
28322#ifdef __cplusplus
28323extern "C"
28324#endif
28325char ddjvu_context_create ();
28326int
28327main ()
28328{
28329return ddjvu_context_create ();
28330 ;
28331 return 0;
28332}
28333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28336else
cristy8b350f62009-11-15 23:12:43 +000028337 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028338fi
cristy8b350f62009-11-15 23:12:43 +000028339rm -f core conftest.err conftest.$ac_objext \
28340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028341LIBS=$ac_check_lib_save_LIBS
28342fi
cristy8b350f62009-11-15 23:12:43 +000028343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028344$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028345if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028346 passed=`expr $passed + 1`
28347else
28348 failed=`expr $failed + 1`
28349fi
28350
cristy8b350f62009-11-15 23:12:43 +000028351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo_n "checking if DJVU package is complete... " >&6; }
28353 if test $passed -gt 0; then
28354 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28356$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028357 have_djvu='no (failed tests)'
28358 else
28359 DJVU_LIBS='-ldjvulibre'
28360 LIBS="$DJVU_LIBS $LIBS"
28361
cristy8b350f62009-11-15 23:12:43 +000028362$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028363
cristy09b53e12011-10-14 12:47:22 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28365$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028366 have_djvu='yes'
28367 fi
28368 else
cristy09b53e12011-10-14 12:47:22 +000028369 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28370$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028371 fi
28372fi
cristy73bd4a52010-10-05 11:24:23 +000028373 if test "$have_djvu" = 'yes'; then
28374 DJVU_DELEGATE_TRUE=
28375 DJVU_DELEGATE_FALSE='#'
28376else
28377 DJVU_DELEGATE_TRUE='#'
28378 DJVU_DELEGATE_FALSE=
28379fi
28380
cristy3ed852e2009-09-05 21:47:34 +000028381
28382
28383
28384#
cristy430a7312010-01-21 20:44:04 +000028385# Set DejaVu font directory.
28386#
28387
28388# Check whether --with-dejavu-font-dir was given.
28389if test "${with_dejavu_font_dir+set}" = set; then :
28390 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28391else
28392 with_dejavu_font_dir='default'
28393fi
28394
28395
28396if test "$with_dejavu_font_dir" != 'default'; then
28397 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28398fi
28399
28400
28401#
cristy3ed852e2009-09-05 21:47:34 +000028402# Check for FFTW delegate library.
28403#
28404
28405# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028406if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 withval=$with_fftw; with_fftw=$withval
28408else
28409 with_fftw='yes'
28410fi
28411
28412
28413if test "$with_fftw" != 'yes'; then
28414 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28415fi
28416
cristy81beccd2011-10-03 18:17:24 +000028417have_fftw='no'
28418FFTW_LIBS=''
28419if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028420 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28421$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28423$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28425$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028426 failed=0
28427 passed=0
28428 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28429if test "x$ac_cv_header_fftw3_h" = xyes; then :
28430 passed=`expr $passed + 1`
28431else
28432 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028433fi
28434
cristy81beccd2011-10-03 18:17:24 +000028435
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28437$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28438if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28439 $as_echo_n "(cached) " >&6
28440else
28441 ac_check_lib_save_LIBS=$LIBS
28442LIBS="-lfftw3 $LIBS"
28443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444/* end confdefs.h. */
28445
28446/* Override any GCC internal prototype to avoid an error.
28447 Use char because int might match the return type of a GCC
28448 builtin and then its argument prototype would still apply. */
28449#ifdef __cplusplus
28450extern "C"
28451#endif
28452char fftw_execute ();
28453int
28454main ()
28455{
28456return fftw_execute ();
28457 ;
28458 return 0;
28459}
28460_ACEOF
28461if ac_fn_c_try_link "$LINENO"; then :
28462 ac_cv_lib_fftw3_fftw_execute=yes
28463else
28464 ac_cv_lib_fftw3_fftw_execute=no
28465fi
28466rm -f core conftest.err conftest.$ac_objext \
28467 conftest$ac_exeext conftest.$ac_ext
28468LIBS=$ac_check_lib_save_LIBS
28469fi
28470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28471$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28472if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28473 passed=`expr $passed + 1`
28474else
28475 failed=`expr $failed + 1`
28476fi
28477
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28479$as_echo_n "checking if FFTW package is complete... " >&6; }
28480 if test $passed -gt 0; then
28481 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028482 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28483$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028484 have_fftw='no (failed tests)'
28485 else
28486 FFTW_LIBS='-lfftw3'
28487 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028488
cristy8b350f62009-11-15 23:12:43 +000028489$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028490
cristy09b53e12011-10-14 12:47:22 +000028491 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28492$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028493 have_fftw='yes'
28494 fi
28495 else
cristy09b53e12011-10-14 12:47:22 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28497$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028498 fi
28499fi
cristy73bd4a52010-10-05 11:24:23 +000028500 if test "$have_fftw" = 'yes'; then
28501 FFTW_DELEGATE_TRUE=
28502 FFTW_DELEGATE_FALSE='#'
28503else
28504 FFTW_DELEGATE_TRUE='#'
28505 FFTW_DELEGATE_FALSE=
28506fi
28507
cristy3ed852e2009-09-05 21:47:34 +000028508
28509
28510
28511#
28512# Check for FlashPIX delegate library.
28513#
28514
28515# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028516if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028517 withval=$with_fpx; with_fpx=$withval
28518else
28519 with_fpx='yes'
28520fi
28521
28522
28523if test "$with_fpx" != 'yes'; then
28524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28525fi
28526
28527have_fpx='no'
28528FPX_LIBS=''
28529if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028530 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28531$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028534 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28535$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028536 failed=0
28537 passed=0
28538 ac_ext=cpp
28539ac_cpp='$CXXCPP $CPPFLAGS'
28540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28543
28544
cristy8b350f62009-11-15 23:12:43 +000028545ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028546if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028547 passed=`expr $passed + 1`
28548else
28549 failed=`expr $failed + 1`
28550fi
28551
28552
cristy8b350f62009-11-15 23:12:43 +000028553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028554$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028555if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028556 $as_echo_n "(cached) " >&6
28557else
28558 ac_check_lib_save_LIBS=$LIBS
28559LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028561/* end confdefs.h. */
28562
28563/* Override any GCC internal prototype to avoid an error.
28564 Use char because int might match the return type of a GCC
28565 builtin and then its argument prototype would still apply. */
28566#ifdef __cplusplus
28567extern "C"
28568#endif
28569char FPX_OpenImageByFilename ();
28570int
28571main ()
28572{
28573return FPX_OpenImageByFilename ();
28574 ;
28575 return 0;
28576}
28577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028578if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028579 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28580else
cristy8b350f62009-11-15 23:12:43 +000028581 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028582fi
cristy8b350f62009-11-15 23:12:43 +000028583rm -f core conftest.err conftest.$ac_objext \
28584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028585LIBS=$ac_check_lib_save_LIBS
28586fi
cristy8b350f62009-11-15 23:12:43 +000028587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028588$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028589if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028590 passed=`expr $passed + 1`
28591else
28592 failed=`expr $failed + 1`
28593fi
28594
28595 ac_ext=c
28596ac_cpp='$CPP $CPPFLAGS'
28597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28599ac_compiler_gnu=$ac_cv_c_compiler_gnu
28600
cristy8b350f62009-11-15 23:12:43 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028602$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28603 if test $passed -gt 0; then
28604 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028605 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28606$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028607 have_fpx='no (failed tests)'
28608 else
28609 FPX_LIBS='-lfpx'
28610
cristy8b350f62009-11-15 23:12:43 +000028611$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028612
cristy09b53e12011-10-14 12:47:22 +000028613 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28614$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028615 have_fpx='yes'
28616 PERLMAINCC="$CXX"
28617 fi
28618 else
cristy09b53e12011-10-14 12:47:22 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28620$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028621 fi
28622fi
cristy73bd4a52010-10-05 11:24:23 +000028623 if test "$have_fpx" = 'yes'; then
28624 FPX_DELEGATE_TRUE=
28625 FPX_DELEGATE_FALSE='#'
28626else
28627 FPX_DELEGATE_TRUE='#'
28628 FPX_DELEGATE_FALSE=
28629fi
28630
cristy3ed852e2009-09-05 21:47:34 +000028631
28632
28633
28634#
28635# Check for fontconfig delegate library.
28636#
28637
28638# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028639if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028640 withval=$with_fontconfig; with_fontconfig=$withval
28641else
28642 with_fontconfig=$have_x
28643fi
28644
28645
28646if test "$with_fontconfig" != 'yes'; then
28647 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28648fi
28649
28650have_fontconfig='no'
28651FONTCONFIG_CFLAGS=""
28652FONTCONFIG_LIBS=""
28653FONTCONFIG_PKG=""
28654if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028655 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28656$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028657
28658pkg_failed=no
28659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28660$as_echo_n "checking for FONTCONFIG... " >&6; }
28661
28662if test -n "$FONTCONFIG_CFLAGS"; then
28663 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28664 elif test -n "$PKG_CONFIG"; then
28665 if test -n "$PKG_CONFIG" && \
28666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28667 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28668 ac_status=$?
28669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28670 test $ac_status = 0; }; then
28671 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28672else
28673 pkg_failed=yes
28674fi
28675 else
28676 pkg_failed=untried
28677fi
28678if test -n "$FONTCONFIG_LIBS"; then
28679 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28680 elif test -n "$PKG_CONFIG"; then
28681 if test -n "$PKG_CONFIG" && \
28682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28683 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28684 ac_status=$?
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; then
28687 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28688else
28689 pkg_failed=yes
28690fi
28691 else
28692 pkg_failed=untried
28693fi
28694
28695
28696
28697if test $pkg_failed = yes; then
28698
28699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28700 _pkg_short_errors_supported=yes
28701else
28702 _pkg_short_errors_supported=no
28703fi
28704 if test $_pkg_short_errors_supported = yes; then
28705 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28706 else
28707 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28708 fi
28709 # Put the nasty error message in config.log where it belongs
28710 echo "$FONTCONFIG_PKG_ERRORS" >&5
28711
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28713$as_echo "no" >&6; }
28714 have_fontconfig=no
28715elif test $pkg_failed = untried; then
28716 have_fontconfig=no
28717else
28718 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28719 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28721$as_echo "yes" >&6; }
28722 have_fontconfig=yes
28723fi
cristy09b53e12011-10-14 12:47:22 +000028724 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28725$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028726fi
28727
28728if test "$have_fontconfig" = 'yes'; then
28729
cristy8b350f62009-11-15 23:12:43 +000028730$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028731
cristyd09bcf92010-03-25 03:04:45 +000028732 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028733 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028734 fi
cristy3ed852e2009-09-05 21:47:34 +000028735fi
28736
cristy73bd4a52010-10-05 11:24:23 +000028737 if test "$have_fontconfig" = 'yes'; then
28738 FONTCONFIG_DELEGATE_TRUE=
28739 FONTCONFIG_DELEGATE_FALSE='#'
28740else
28741 FONTCONFIG_DELEGATE_TRUE='#'
28742 FONTCONFIG_DELEGATE_FALSE=
28743fi
28744
cristy3ed852e2009-09-05 21:47:34 +000028745
28746
28747
28748
28749#
cristy81beccd2011-10-03 18:17:24 +000028750# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028751#
28752
28753# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028754if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028755 withval=$with_freetype; with_freetype=$withval
28756else
28757 with_freetype='yes'
28758fi
28759
28760
cristy81beccd2011-10-03 18:17:24 +000028761
cristy3ed852e2009-09-05 21:47:34 +000028762if test "$with_freetype" != 'yes'; then
28763 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28764fi
28765
cristy81beccd2011-10-03 18:17:24 +000028766have_freetype='no'
28767FREETYPE_LIBS=''
28768if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028769 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28770$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28772$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028773 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28774$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028775 failed=0
28776 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028777 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028778 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028779 freetype_config=''
28780 # Allow the user to specify the location of freetype.
28781 if test "$with_freetype" != 'yes'; then
28782 if test -x "${with_freetype}/bin/freetype-config"; then
28783 freetype_config="${with_freetype}/bin/freetype-config"
28784 elif test -x "${with_freetype}"; then
28785 freetype_config=${with_freetype}
28786 fi
28787 fi
28788 if test -z "$freetype_config"; then
28789 # Extract the first word of "freetype-config", so it can be a program name with args.
28790set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28792$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028793if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028794 $as_echo_n "(cached) " >&6
28795else
cristy98ca0f52011-10-08 23:19:10 +000028796 case $freetype_config in
28797 [\\/]* | ?:[\\/]*)
28798 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28799 ;;
28800 *)
28801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028802for as_dir in $PATH
28803do
28804 IFS=$as_save_IFS
28805 test -z "$as_dir" && as_dir=.
28806 for ac_exec_ext in '' $ac_executable_extensions; do
28807 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 +000028808 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28810 break 2
28811 fi
28812done
28813 done
28814IFS=$as_save_IFS
28815
cristy98ca0f52011-10-08 23:19:10 +000028816 ;;
28817esac
cristy81beccd2011-10-03 18:17:24 +000028818fi
cristy98ca0f52011-10-08 23:19:10 +000028819freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028820if test -n "$freetype_config"; then
28821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28822$as_echo "$freetype_config" >&6; }
28823else
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28825$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028826fi
28827
cristy98ca0f52011-10-08 23:19:10 +000028828 fi
28829 if test -n "$freetype_config"; then
28830 freetype_prefix=`${freetype_config} --prefix`
28831 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28832 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28833 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028834 fi
28835
28836 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028838$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28839if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28840 $as_echo_n "(cached) " >&6
28841else
28842 ac_check_lib_save_LIBS=$LIBS
28843LIBS="-lfreetype $LIBS"
28844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28845/* end confdefs.h. */
28846
28847/* Override any GCC internal prototype to avoid an error.
28848 Use char because int might match the return type of a GCC
28849 builtin and then its argument prototype would still apply. */
28850#ifdef __cplusplus
28851extern "C"
28852#endif
28853char FT_Init_FreeType ();
28854int
28855main ()
28856{
28857return FT_Init_FreeType ();
28858 ;
28859 return 0;
28860}
28861_ACEOF
28862if ac_fn_c_try_link "$LINENO"; then :
28863 ac_cv_lib_freetype_FT_Init_FreeType=yes
28864else
28865 ac_cv_lib_freetype_FT_Init_FreeType=no
28866fi
28867rm -f core conftest.err conftest.$ac_objext \
28868 conftest$ac_exeext conftest.$ac_ext
28869LIBS=$ac_check_lib_save_LIBS
28870fi
28871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28872$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28873if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28874 FREETYPE_LIBS='-lfreetype'
28875fi
28876
cristy98ca0f52011-10-08 23:19:10 +000028877 if test "$FREETYPE_LIBS" != ''; then
28878 passed=`expr $passed + 1`
28879 else
28880 failed=`expr $failed + 1`
28881 LDFLAGS="$PERSIST_LDFLAGS"
28882 fi
cristy81beccd2011-10-03 18:17:24 +000028883 fi
28884
28885 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28886if test "x$ac_cv_header_ft2build_h" = xyes; then :
28887 FT2BUILD_H='#include <ft2build.h>'
28888else
28889 ft2build=''
28890fi
28891
28892
28893 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28894"
28895if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28896 have_freetype_h='yes'
28897else
28898 have_freetype_h='no'
28899fi
28900
28901
cristy98ca0f52011-10-08 23:19:10 +000028902 if test "$have_freetype_h" = 'yes'; then
28903 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028904 else
cristy98ca0f52011-10-08 23:19:10 +000028905 failed=`expr $failed + 1`
28906 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028907 fi
28908
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28910$as_echo_n "checking if FreeType package is complete... " >&6; }
28911 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028912 if test $failed -gt 0; then
28913 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028914 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28915$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028916 have_freetype='no (failed tests)'
28917 else
28918 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028919
cristy8b350f62009-11-15 23:12:43 +000028920$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028921
cristy98ca0f52011-10-08 23:19:10 +000028922 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028923
28924$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28925
cristy81beccd2011-10-03 18:17:24 +000028926 fi
cristy09b53e12011-10-14 12:47:22 +000028927 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28928$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028929 have_freetype='yes'
28930 fi
cristy81beccd2011-10-03 18:17:24 +000028931 else
cristy09b53e12011-10-14 12:47:22 +000028932 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28933$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028934 fi
28935fi
cristy73bd4a52010-10-05 11:24:23 +000028936 if test "$have_freetype" = 'yes'; then
28937 FREETYPE_DELEGATE_TRUE=
28938 FREETYPE_DELEGATE_FALSE='#'
28939else
28940 FREETYPE_DELEGATE_TRUE='#'
28941 FREETYPE_DELEGATE_FALSE=
28942fi
28943
cristy3ed852e2009-09-05 21:47:34 +000028944
28945
28946
cristy3ed852e2009-09-05 21:47:34 +000028947#
28948# Check for Ghostscript library or framework.
28949#
28950# Test for iapi.h & test for gsapi_new_instance in -lgs
28951# or -framework Ghostscript
28952
28953
28954# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028955if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028956 withval=$with_gslib; with_gslib=$withval
28957else
28958 with_gslib='no'
28959fi
28960
28961
cristyb7931f12009-09-25 10:22:21 +000028962gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028963if test "$with_gslib" != 'yes'; then
28964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28965fi
28966
28967have_gslib='no'
28968GS_LIBS=''
28969if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28971$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028973$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28975$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028976 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028977 failed=0
28978 passed=0
cristy8b350f62009-11-15 23:12:43 +000028979 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 +000028980if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028981 passed=`expr $passed + 1`
28982else
28983 failed=`expr $failed + 1`
28984fi
28985
28986
cristy8b350f62009-11-15 23:12:43 +000028987 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 +000028988if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028989 passed=`expr $passed + 1`
28990else
28991 failed=`expr $failed + 1`
28992fi
28993
28994
cristy73bd4a52010-10-05 11:24:23 +000028995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28996$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028997if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028998 $as_echo_n "(cached) " >&6
28999else
29000 ac_check_framework_save_LIBS=$LIBS
29001LIBS="-framework Ghostscript $LIBS"
29002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29003/* end confdefs.h. */
29004
29005/* Override any GCC internal prototype to avoid an error.
29006 Use char because int might match the return type of a GCC
29007 builtin and then its argument prototype would still apply. */
29008#ifdef __cplusplus
29009extern "C"
29010#endif
29011char gsapi_new_instance ();
29012int
29013main ()
29014{
29015return gsapi_new_instance ();
29016 ;
29017 return 0;
29018}
29019_ACEOF
29020if ac_fn_c_try_link "$LINENO"; then :
29021 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29022else
29023 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29024fi
29025rm -f core conftest.err conftest.$ac_objext \
29026 conftest$ac_exeext conftest.$ac_ext
29027LIBS=$ac_check_framework_save_LIBS
29028fi
29029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29030$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29031if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29032 framework=`expr $framework + 1`
29033else
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029035$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029036if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029037 $as_echo_n "(cached) " >&6
29038else
29039 ac_check_lib_save_LIBS=$LIBS
29040LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029042/* end confdefs.h. */
29043
29044/* Override any GCC internal prototype to avoid an error.
29045 Use char because int might match the return type of a GCC
29046 builtin and then its argument prototype would still apply. */
29047#ifdef __cplusplus
29048extern "C"
29049#endif
29050char gsapi_new_instance ();
29051int
29052main ()
29053{
29054return gsapi_new_instance ();
29055 ;
29056 return 0;
29057}
29058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029059if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029060 ac_cv_lib_gs_gsapi_new_instance=yes
29061else
cristy8b350f62009-11-15 23:12:43 +000029062 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029063fi
cristy8b350f62009-11-15 23:12:43 +000029064rm -f core conftest.err conftest.$ac_objext \
29065 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029066LIBS=$ac_check_lib_save_LIBS
29067fi
cristy8b350f62009-11-15 23:12:43 +000029068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029069$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029070if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029071 passed=`expr $passed + 1`
29072else
29073 failed=`expr $failed + 1`
29074fi
cristy73bd4a52010-10-05 11:24:23 +000029075
29076fi
cristy8b350f62009-11-15 23:12:43 +000029077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029078$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29079 if test $passed -gt 0; then
29080 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29082$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029083 have_gslib='no (failed tests)'
29084 else
29085 if test $framework -gt 0; then
29086 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029087 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029088 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29089$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029090 else
cristy09b53e12011-10-14 12:47:22 +000029091 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29092$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029093 GS_LIBS='-lgs'
29094 fi
29095 LIBS="$GS_LIBS $LIBS"
29096
cristy8b350f62009-11-15 23:12:43 +000029097$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029098
29099 have_gslib='yes'
29100 fi
29101 else
cristy09b53e12011-10-14 12:47:22 +000029102 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29103$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029104 fi
29105fi
cristy73bd4a52010-10-05 11:24:23 +000029106 if test "$have_gslib" = 'yes'; then
29107 GS_DELEGATE_TRUE=
29108 GS_DELEGATE_FALSE='#'
29109else
29110 GS_DELEGATE_TRUE='#'
29111 GS_DELEGATE_FALSE=
29112fi
29113
cristy3ed852e2009-09-05 21:47:34 +000029114
29115
29116# Set default font search path
29117
29118# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029119if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029120 withval=$with_fontpath; with_fontpath=$withval
29121else
29122 with_fontpath=''
29123fi
29124
29125
29126if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29127 with_fontpath=''
29128else
29129
29130cat >>confdefs.h <<_ACEOF
29131#define MAGICK_FONT_PATH "$with_fontpath"
29132_ACEOF
29133
29134fi
29135if test "$with_fontpath=" != ''; then
29136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29137fi
29138
29139# Set Ghostscript font directory
29140
29141# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029142if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029143 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29144else
29145 with_gs_font_dir='default'
29146fi
29147
29148
29149if test "$with_gs_font_dir" != 'default'; then
29150 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29151fi
29152
29153
29154#
29155# Check for GVC delegate library.
29156#
29157
29158# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029159if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029160 withval=$with_gvc; with_gvc=$withval
29161else
29162 with_gvc='yes'
29163fi
29164
29165
29166if test "$with_gvc" != 'yes'; then
29167 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29168fi
29169
29170GVC_PKG=""
29171if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29173$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029174
29175pkg_failed=no
29176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29177$as_echo_n "checking for GVC... " >&6; }
29178
29179if test -n "$GVC_CFLAGS"; then
29180 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29181 elif test -n "$PKG_CONFIG"; then
29182 if test -n "$PKG_CONFIG" && \
29183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29184 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29185 ac_status=$?
29186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29187 test $ac_status = 0; }; then
29188 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29189else
29190 pkg_failed=yes
29191fi
29192 else
29193 pkg_failed=untried
29194fi
29195if test -n "$GVC_LIBS"; then
29196 pkg_cv_GVC_LIBS="$GVC_LIBS"
29197 elif test -n "$PKG_CONFIG"; then
29198 if test -n "$PKG_CONFIG" && \
29199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29200 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29201 ac_status=$?
29202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29203 test $ac_status = 0; }; then
29204 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29205else
29206 pkg_failed=yes
29207fi
29208 else
29209 pkg_failed=untried
29210fi
29211
29212
29213
29214if test $pkg_failed = yes; then
29215
29216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29217 _pkg_short_errors_supported=yes
29218else
29219 _pkg_short_errors_supported=no
29220fi
29221 if test $_pkg_short_errors_supported = yes; then
29222 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29223 else
29224 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29225 fi
29226 # Put the nasty error message in config.log where it belongs
29227 echo "$GVC_PKG_ERRORS" >&5
29228
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29230$as_echo "no" >&6; }
29231 have_gvc=no
29232elif test $pkg_failed = untried; then
29233 have_gvc=no
29234else
29235 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29236 GVC_LIBS=$pkg_cv_GVC_LIBS
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29238$as_echo "yes" >&6; }
29239 have_gvc=yes
29240fi
cristy09b53e12011-10-14 12:47:22 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29242$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029243fi
29244
29245if test "$have_gvc" = 'yes'; then
29246
cristy8b350f62009-11-15 23:12:43 +000029247$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029248
29249 if test "$with_modules" = 'no'; then
29250 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29251 fi
29252fi
29253
cristy73bd4a52010-10-05 11:24:23 +000029254 if test "$have_gvc" = 'yes'; then
29255 GVC_DELEGATE_TRUE=
29256 GVC_DELEGATE_FALSE='#'
29257else
29258 GVC_DELEGATE_TRUE='#'
29259 GVC_DELEGATE_FALSE=
29260fi
29261
cristy3ed852e2009-09-05 21:47:34 +000029262
29263
29264
29265
29266#
29267# Check for JBIG delegate library.
29268#
29269
29270
29271# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029272if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029273 withval=$with_jbig; with_jbig=$withval
29274else
29275 with_jbig='yes'
29276fi
29277
29278
29279have_jbig='no'
29280JBIG_LIBS=''
29281if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29283$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029285$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029286 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29287$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029288 failed=0
29289 passed=0
cristy8b350f62009-11-15 23:12:43 +000029290 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029291if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029292 passed=`expr $passed + 1`
29293else
29294 failed=`expr $failed + 1`
29295fi
29296
29297
cristy8b350f62009-11-15 23:12:43 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029299$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029300if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029301 $as_echo_n "(cached) " >&6
29302else
29303 ac_check_lib_save_LIBS=$LIBS
29304LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029306/* end confdefs.h. */
29307
29308/* Override any GCC internal prototype to avoid an error.
29309 Use char because int might match the return type of a GCC
29310 builtin and then its argument prototype would still apply. */
29311#ifdef __cplusplus
29312extern "C"
29313#endif
29314char jbg_dec_init ();
29315int
29316main ()
29317{
29318return jbg_dec_init ();
29319 ;
29320 return 0;
29321}
29322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029324 ac_cv_lib_jbig_jbg_dec_init=yes
29325else
cristy8b350f62009-11-15 23:12:43 +000029326 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029327fi
cristy8b350f62009-11-15 23:12:43 +000029328rm -f core conftest.err conftest.$ac_objext \
29329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029330LIBS=$ac_check_lib_save_LIBS
29331fi
cristy8b350f62009-11-15 23:12:43 +000029332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029333$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029334if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029335 passed=`expr $passed + 1`
29336else
29337 failed=`expr $failed + 1`
29338fi
29339
cristy8b350f62009-11-15 23:12:43 +000029340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029341$as_echo_n "checking if JBIG package is complete... " >&6; }
29342 if test $passed -gt 0; then
29343 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029344 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29345$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029346 have_jbig='no (failed tests)'
29347 else
29348 JBIG_LIBS='-ljbig'
29349 LIBS="$JBIG_LIBS $LIBS"
29350
cristy8b350f62009-11-15 23:12:43 +000029351$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029352
cristy09b53e12011-10-14 12:47:22 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29354$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029355 have_jbig='yes'
29356 fi
29357 else
cristy09b53e12011-10-14 12:47:22 +000029358 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29359$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029360 fi
29361fi
cristy73bd4a52010-10-05 11:24:23 +000029362 if test "$have_jbig" = 'yes'; then
29363 JBIG_DELEGATE_TRUE=
29364 JBIG_DELEGATE_FALSE='#'
29365else
29366 JBIG_DELEGATE_TRUE='#'
29367 JBIG_DELEGATE_FALSE=
29368fi
29369
cristy3ed852e2009-09-05 21:47:34 +000029370
29371
29372
29373#
29374# Check for JPEG delegate library.
29375#
29376
29377# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029378if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029379 withval=$with_jpeg; with_jpeg=$withval
29380else
29381 with_jpeg='yes'
29382fi
29383
29384
29385if test "$with_jpeg" != 'yes'; then
29386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29387fi
29388
29389have_jpeg='no'
29390JPEG_LIBS=''
29391if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29393$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029395$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29397$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029398 failed=0
29399 passed=0
cristy8b350f62009-11-15 23:12:43 +000029400 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029401if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029402 passed=`expr $passed + 1`
29403else
29404 failed=`expr $failed + 1`
29405fi
29406
29407
cristy8b350f62009-11-15 23:12:43 +000029408 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029409if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029410 passed=`expr $passed + 1`
29411else
29412 failed=`expr $failed + 1`
29413fi
29414
29415
cristy8b350f62009-11-15 23:12:43 +000029416 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029417if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029418 passed=`expr $passed + 1`
29419else
29420 failed=`expr $failed + 1`
29421fi
29422
29423
cristy8b350f62009-11-15 23:12:43 +000029424 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029425if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029426 passed=`expr $passed + 1`
29427else
29428 failed=`expr $failed + 1`
29429fi
29430
29431
cristy8b350f62009-11-15 23:12:43 +000029432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029433$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029434if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029435 $as_echo_n "(cached) " >&6
29436else
29437 ac_check_lib_save_LIBS=$LIBS
29438LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029440/* end confdefs.h. */
29441
29442/* Override any GCC internal prototype to avoid an error.
29443 Use char because int might match the return type of a GCC
29444 builtin and then its argument prototype would still apply. */
29445#ifdef __cplusplus
29446extern "C"
29447#endif
29448char jpeg_read_header ();
29449int
29450main ()
29451{
29452return jpeg_read_header ();
29453 ;
29454 return 0;
29455}
29456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029457if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029458 ac_cv_lib_jpeg_jpeg_read_header=yes
29459else
cristy8b350f62009-11-15 23:12:43 +000029460 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029461fi
cristy8b350f62009-11-15 23:12:43 +000029462rm -f core conftest.err conftest.$ac_objext \
29463 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029464LIBS=$ac_check_lib_save_LIBS
29465fi
cristy8b350f62009-11-15 23:12:43 +000029466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029467$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029468if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029469 passed=`expr $passed + 1`
29470else
29471 failed=`expr $failed + 1`
29472fi
29473
29474
29475# Test for compatible JPEG library
29476if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029478$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029479if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029480 $as_echo_n "(cached) " >&6
29481else
cristy8b350f62009-11-15 23:12:43 +000029482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029483/* end confdefs.h. */
29484#include <stdio.h>
29485#include <stdlib.h>
29486#include <jpeglib.h>
29487
29488int
29489main ()
29490{
29491
29492#if JPEG_LIB_VERSION < 62
29493#error IJG JPEG library must be version 6b or newer!
29494#endif
29495return 0;
29496
29497 ;
29498 return 0;
29499}
29500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029501if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029502 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29503else
cristy8b350f62009-11-15 23:12:43 +000029504 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029505fi
cristy3ed852e2009-09-05 21:47:34 +000029506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29507fi
cristy8b350f62009-11-15 23:12:43 +000029508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029509$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29510fi
cristy8b350f62009-11-15 23:12:43 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029512$as_echo_n "checking if JPEG package is complete... " >&6; }
29513 if test $passed -gt 0; then
29514 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029515 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29516$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029517 have_jpeg='no (failed tests)'
29518 else
29519 JPEG_LIBS='-ljpeg'
29520 LIBS="$JPEG_LIBS $LIBS"
29521
cristy8b350f62009-11-15 23:12:43 +000029522$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029523
cristy09b53e12011-10-14 12:47:22 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29525$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029526 have_jpeg='yes'
29527 fi
29528 else
cristy09b53e12011-10-14 12:47:22 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29530$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029531 fi
29532fi
cristy73bd4a52010-10-05 11:24:23 +000029533 if test "$have_jpeg" = 'yes'; then
29534 JPEG_DELEGATE_TRUE=
29535 JPEG_DELEGATE_FALSE='#'
29536else
29537 JPEG_DELEGATE_TRUE='#'
29538 JPEG_DELEGATE_FALSE=
29539fi
29540
cristy3ed852e2009-09-05 21:47:34 +000029541
29542
29543
29544#
29545# Check for JPEG Version 2 delegate library.
29546#
29547
29548# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029549if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 withval=$with_jp2; with_jp2=$withval
29551else
29552 with_jp2='yes'
29553fi
29554
29555
29556if test "$with_jp2" != 'yes'; then
29557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29558fi
29559
29560have_jp2='no'
29561JP2_LIBS=''
29562if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29564$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029566$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029567 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29568$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029569 failed=0
29570 passed=0
cristy8b350f62009-11-15 23:12:43 +000029571 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 +000029572if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029573 passed=`expr $passed + 1`
29574else
29575 failed=`expr $failed + 1`
29576fi
29577
29578
cristy8b350f62009-11-15 23:12:43 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029580$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029581if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 $as_echo_n "(cached) " >&6
29583else
29584 ac_check_lib_save_LIBS=$LIBS
29585LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029587/* end confdefs.h. */
29588
29589/* Override any GCC internal prototype to avoid an error.
29590 Use char because int might match the return type of a GCC
29591 builtin and then its argument prototype would still apply. */
29592#ifdef __cplusplus
29593extern "C"
29594#endif
29595char jas_stream_fopen ();
29596int
29597main ()
29598{
29599return jas_stream_fopen ();
29600 ;
29601 return 0;
29602}
29603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029605 ac_cv_lib_jasper_jas_stream_fopen=yes
29606else
cristy8b350f62009-11-15 23:12:43 +000029607 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029608fi
cristy8b350f62009-11-15 23:12:43 +000029609rm -f core conftest.err conftest.$ac_objext \
29610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029611LIBS=$ac_check_lib_save_LIBS
29612fi
cristy8b350f62009-11-15 23:12:43 +000029613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029614$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029615if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029616 passed=`expr $passed + 1`
29617else
29618 failed=`expr $failed + 1`
29619fi
29620
cristy8b350f62009-11-15 23:12:43 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29623 if test $passed -gt 0; then
29624 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029625 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29626$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029627 have_jp2='no (failed tests)'
29628 else
29629 JP2_LIBS='-ljasper'
29630 LIBS="$JP2_LIBS $LIBS"
29631
cristy8b350f62009-11-15 23:12:43 +000029632$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029633
cristy09b53e12011-10-14 12:47:22 +000029634 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29635$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029636 have_jp2='yes'
29637 fi
29638 else
cristy09b53e12011-10-14 12:47:22 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29640$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029641 fi
29642fi
cristy73bd4a52010-10-05 11:24:23 +000029643 if test "$have_jp2" = 'yes'; then
29644 JP2_DELEGATE_TRUE=
29645 JP2_DELEGATE_FALSE='#'
29646else
29647 JP2_DELEGATE_TRUE='#'
29648 JP2_DELEGATE_FALSE=
29649fi
29650
cristy3ed852e2009-09-05 21:47:34 +000029651
29652
29653
29654#
29655# Check for LCMS delegate library.
29656#
cristy71203402010-06-18 13:12:03 +000029657# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029658
29659# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029660if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 withval=$with_lcms; with_lcms=$withval
29662else
29663 with_lcms='yes'
29664fi
29665
cristy71203402010-06-18 13:12:03 +000029666if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029667 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29668fi
29669
cristy71203402010-06-18 13:12:03 +000029670# Disable LCMS2.
29671
29672# Check whether --with-lcms2 was given.
29673if test "${with_lcms2+set}" = set; then :
29674 withval=$with_lcms2; with_lcms2=$withval
29675else
29676 with_lcms2='yes'
29677fi
29678
29679if test "$with_lcms2" != 'yes' ; then
29680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29681fi
29682
29683have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029684LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029685if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029686 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29687$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29689$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029690 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29691$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029692 failed=0
29693 passed=0
29694 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029695
29696 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029697 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029698if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029699 have_lcms_header='yes'
29700fi
29701
29702
29703 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029704
29705$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29706
cristy71203402010-06-18 13:12:03 +000029707 passed=`expr $passed + 1`
29708 fi
29709
29710 # Check for <lcms2/lcms2.h)
29711 if test "$have_lcms_header" != 'yes'; then
29712 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 +000029713if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029714 have_lcms_header='yes'
29715fi
29716
29717
cristy71203402010-06-18 13:12:03 +000029718 if test "$have_lcms_header" = 'yes'; then
29719 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029720
cristy71203402010-06-18 13:12:03 +000029721$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029722
cristy71203402010-06-18 13:12:03 +000029723 fi
cristyd09bcf92010-03-25 03:04:45 +000029724 fi
cristy71203402010-06-18 13:12:03 +000029725
29726 # Failed to find lcms header?
29727 if test "$have_lcms_header" != 'yes'; then
29728 failed=`expr $failed + 1`
29729 fi
29730
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29732$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029733if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029734 $as_echo_n "(cached) " >&6
29735else
29736 ac_check_lib_save_LIBS=$LIBS
29737LIBS="-llcms2 $LIBS"
29738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29739/* end confdefs.h. */
29740
29741/* Override any GCC internal prototype to avoid an error.
29742 Use char because int might match the return type of a GCC
29743 builtin and then its argument prototype would still apply. */
29744#ifdef __cplusplus
29745extern "C"
29746#endif
cristy71203402010-06-18 13:12:03 +000029747char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029748int
29749main ()
29750{
cristy71203402010-06-18 13:12:03 +000029751return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029752 ;
29753 return 0;
29754}
29755_ACEOF
29756if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029757 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029758else
cristy71203402010-06-18 13:12:03 +000029759 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029760fi
29761rm -f core conftest.err conftest.$ac_objext \
29762 conftest$ac_exeext conftest.$ac_ext
29763LIBS=$ac_check_lib_save_LIBS
29764fi
cristy71203402010-06-18 13:12:03 +000029765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29766$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029767if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029768 passed=`expr $passed + 1`
29769else
29770 failed=`expr $failed + 1`
29771fi
29772
cristy71203402010-06-18 13:12:03 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29774$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029775 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029776 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029777 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29778$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029779 have_lcms2='no (failed tests)'
29780 else
29781 LCMS_LIBS='-llcms2'
29782 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29784$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029785 have_lcms2='yes'
29786 fi
cristyd09bcf92010-03-25 03:04:45 +000029787 else
cristy09b53e12011-10-14 12:47:22 +000029788 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29789$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029790 fi
29791fi
29792
cristy71203402010-06-18 13:12:03 +000029793#
29794# Check for LCMS v1 (1.11 or later)
29795#
29796if test $have_lcms2 = 'yes'; then
29797 with_lcms='no'
29798fi
29799
29800have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029801if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29803$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29805$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29807$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029808 failed=0
29809 passed=0
29810 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029811
29812 # Check for <lcms.h>
29813 if test "$have_lcms_header" != 'yes'; then
29814 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029815if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029816 have_lcms_header='yes'
29817fi
29818
29819
cristy71203402010-06-18 13:12:03 +000029820 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029821 passed=`expr $passed + 1`
29822
cristy8b350f62009-11-15 23:12:43 +000029823$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029824
cristy71203402010-06-18 13:12:03 +000029825 fi
29826 fi
29827
29828 # Check for <lcms/lcms.h>
29829 if test "$have_lcms_header" != 'yes'; then
29830 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 +000029831if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029832 have_lcms_header='yes'
29833fi
29834
29835
cristy71203402010-06-18 13:12:03 +000029836 if test "$have_lcms_header" = 'yes'; then
29837 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029838
cristy8b350f62009-11-15 23:12:43 +000029839$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029840
cristy71203402010-06-18 13:12:03 +000029841 fi
cristy3ed852e2009-09-05 21:47:34 +000029842 fi
cristy71203402010-06-18 13:12:03 +000029843
29844 # Failed to find lcms header?
29845 if test "$have_lcms_header" != 'yes'; then
29846 failed=`expr $failed + 1`
29847 fi
29848
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29850$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029851if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029852 $as_echo_n "(cached) " >&6
29853else
29854 ac_check_lib_save_LIBS=$LIBS
29855LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029857/* end confdefs.h. */
29858
29859/* Override any GCC internal prototype to avoid an error.
29860 Use char because int might match the return type of a GCC
29861 builtin and then its argument prototype would still apply. */
29862#ifdef __cplusplus
29863extern "C"
29864#endif
cristy71203402010-06-18 13:12:03 +000029865char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029866int
29867main ()
29868{
cristy71203402010-06-18 13:12:03 +000029869return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029870 ;
29871 return 0;
29872}
29873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029874if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029875 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029876else
cristy71203402010-06-18 13:12:03 +000029877 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029878fi
cristy8b350f62009-11-15 23:12:43 +000029879rm -f core conftest.err conftest.$ac_objext \
29880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029881LIBS=$ac_check_lib_save_LIBS
29882fi
cristy71203402010-06-18 13:12:03 +000029883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29884$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029885if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029886 passed=`expr $passed + 1`
29887else
29888 failed=`expr $failed + 1`
29889fi
29890
cristy8b350f62009-11-15 23:12:43 +000029891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029892$as_echo_n "checking if LCMS package is complete... " >&6; }
29893 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029894 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29896$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029897 have_lcms='no (failed tests)'
29898 else
29899 LCMS_LIBS='-llcms'
29900 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29902$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029903 have_lcms='yes'
29904 fi
cristy3ed852e2009-09-05 21:47:34 +000029905 else
cristy09b53e12011-10-14 12:47:22 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29907$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029908 fi
29909fi
cristy71203402010-06-18 13:12:03 +000029910
cristy73bd4a52010-10-05 11:24:23 +000029911 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29912 LCMS_DELEGATE_TRUE=
29913 LCMS_DELEGATE_FALSE='#'
29914else
29915 LCMS_DELEGATE_TRUE='#'
29916 LCMS_DELEGATE_FALSE=
29917fi
29918
cristy71203402010-06-18 13:12:03 +000029919if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29920
29921$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29922
29923fi
29924
cristy3ed852e2009-09-05 21:47:34 +000029925
29926
29927
29928#
29929# Check for the LQR (Liquid Rescale) delegate library.
29930#
29931
29932# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029933if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 withval=$with_lqr; with_lqr=$withval
29935else
29936 with_lqr='yes'
29937fi
29938
29939
29940if test "$with_lqr" != 'yes'; then
29941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29942fi
29943
29944have_lqr='no'
29945LQR_CFLAGS=""
29946LQR_LIBS=""
29947LQR_PKG=""
29948if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29950$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029951
29952pkg_failed=no
29953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29954$as_echo_n "checking for LQR... " >&6; }
29955
29956if test -n "$LQR_CFLAGS"; then
29957 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29958 elif test -n "$PKG_CONFIG"; then
29959 if test -n "$PKG_CONFIG" && \
29960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29961 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29962 ac_status=$?
29963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29964 test $ac_status = 0; }; then
29965 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29966else
29967 pkg_failed=yes
29968fi
29969 else
29970 pkg_failed=untried
29971fi
29972if test -n "$LQR_LIBS"; then
29973 pkg_cv_LQR_LIBS="$LQR_LIBS"
29974 elif test -n "$PKG_CONFIG"; then
29975 if test -n "$PKG_CONFIG" && \
29976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29977 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29978 ac_status=$?
29979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29980 test $ac_status = 0; }; then
29981 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29982else
29983 pkg_failed=yes
29984fi
29985 else
29986 pkg_failed=untried
29987fi
29988
29989
29990
29991if test $pkg_failed = yes; then
29992
29993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29994 _pkg_short_errors_supported=yes
29995else
29996 _pkg_short_errors_supported=no
29997fi
29998 if test $_pkg_short_errors_supported = yes; then
29999 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30000 else
30001 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30002 fi
30003 # Put the nasty error message in config.log where it belongs
30004 echo "$LQR_PKG_ERRORS" >&5
30005
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30007$as_echo "no" >&6; }
30008 have_lqr=no
30009elif test $pkg_failed = untried; then
30010 have_lqr=no
30011else
30012 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30013 LQR_LIBS=$pkg_cv_LQR_LIBS
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30015$as_echo "yes" >&6; }
30016 have_lqr=yes
30017fi
cristy09b53e12011-10-14 12:47:22 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30019$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030020fi
30021
30022if test "$have_lqr" = 'yes'; then
30023
cristy8b350f62009-11-15 23:12:43 +000030024$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030025
30026 CFLAGS="$LQR_CFLAGS $CFLAGS"
30027fi
30028
cristy73bd4a52010-10-05 11:24:23 +000030029 if test "$have_lqr" = 'yes'; then
30030 LQR_DELEGATE_TRUE=
30031 LQR_DELEGATE_FALSE='#'
30032else
30033 LQR_DELEGATE_TRUE='#'
30034 LQR_DELEGATE_FALSE=
30035fi
30036
cristy3ed852e2009-09-05 21:47:34 +000030037
30038
30039
30040
cristy81beccd2011-10-03 18:17:24 +000030041# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030042
30043# Check whether --with-lzma was given.
30044if test "${with_lzma+set}" = set; then :
30045 withval=$with_lzma; with_lzma=$withval
30046else
30047 with_lzma='yes'
30048fi
30049
cristy81beccd2011-10-03 18:17:24 +000030050if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030051 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30052fi
30053
cristyb94e5002011-11-14 13:20:10 +000030054LZMA_PKG=""
30055if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030056 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30057$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030058
30059pkg_failed=no
30060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030061$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030062
30063if test -n "$LZMA_CFLAGS"; then
30064 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30065 elif test -n "$PKG_CONFIG"; then
30066 if test -n "$PKG_CONFIG" && \
30067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30068 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30069 ac_status=$?
30070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30071 test $ac_status = 0; }; then
30072 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30073else
30074 pkg_failed=yes
30075fi
30076 else
30077 pkg_failed=untried
30078fi
30079if test -n "$LZMA_LIBS"; then
30080 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30081 elif test -n "$PKG_CONFIG"; then
30082 if test -n "$PKG_CONFIG" && \
30083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30084 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30085 ac_status=$?
30086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30087 test $ac_status = 0; }; then
30088 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30089else
30090 pkg_failed=yes
30091fi
30092 else
30093 pkg_failed=untried
30094fi
30095
30096
30097
30098if test $pkg_failed = yes; then
30099
30100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30101 _pkg_short_errors_supported=yes
30102else
30103 _pkg_short_errors_supported=no
30104fi
30105 if test $_pkg_short_errors_supported = yes; then
30106 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30107 else
30108 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30109 fi
30110 # Put the nasty error message in config.log where it belongs
30111 echo "$LZMA_PKG_ERRORS" >&5
30112
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30114$as_echo "no" >&6; }
30115 have_lzma=no
30116elif test $pkg_failed = untried; then
30117 have_lzma=no
30118else
30119 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30120 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30122$as_echo "yes" >&6; }
30123 have_lzma=yes
30124fi
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030126$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030127fi
30128
cristyb94e5002011-11-14 13:20:10 +000030129if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030130
30131$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30132
cristyb94e5002011-11-14 13:20:10 +000030133 if test "$with_modules" = 'no'; then
30134 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030135 fi
cristyfbb0ef02010-12-19 02:32:11 +000030136fi
cristyb94e5002011-11-14 13:20:10 +000030137
cristyfbb0ef02010-12-19 02:32:11 +000030138 if test "$have_lzma" = 'yes'; then
30139 LZMA_DELEGATE_TRUE=
30140 LZMA_DELEGATE_FALSE='#'
30141else
30142 LZMA_DELEGATE_TRUE='#'
30143 LZMA_DELEGATE_FALSE=
30144fi
30145
30146
30147
30148
cristyb94e5002011-11-14 13:20:10 +000030149
cristy3ed852e2009-09-05 21:47:34 +000030150#
30151# Check for the OpenEXR delegate library.
30152#
30153
30154# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030155if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030156 withval=$with_openexr; with_openexr=$withval
30157else
30158 with_openexr='yes'
30159fi
30160
30161
30162if test "$with_openexr" != 'yes'; then
30163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30164fi
30165
30166have_openexr='no'
30167OPENEXR_CFLAGS=""
30168OPENEXR_LIBS=""
30169OPENEXR_PKG=""
30170if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030171 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30172$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030173
30174pkg_failed=no
30175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30176$as_echo_n "checking for OPENEXR... " >&6; }
30177
30178if test -n "$OPENEXR_CFLAGS"; then
30179 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30180 elif test -n "$PKG_CONFIG"; then
30181 if test -n "$PKG_CONFIG" && \
30182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30183 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30184 ac_status=$?
30185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30186 test $ac_status = 0; }; then
30187 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30188else
30189 pkg_failed=yes
30190fi
30191 else
30192 pkg_failed=untried
30193fi
30194if test -n "$OPENEXR_LIBS"; then
30195 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30196 elif test -n "$PKG_CONFIG"; then
30197 if test -n "$PKG_CONFIG" && \
30198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30199 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30200 ac_status=$?
30201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30202 test $ac_status = 0; }; then
30203 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30204else
30205 pkg_failed=yes
30206fi
30207 else
30208 pkg_failed=untried
30209fi
30210
30211
30212
30213if test $pkg_failed = yes; then
30214
30215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30216 _pkg_short_errors_supported=yes
30217else
30218 _pkg_short_errors_supported=no
30219fi
30220 if test $_pkg_short_errors_supported = yes; then
30221 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30222 else
30223 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30224 fi
30225 # Put the nasty error message in config.log where it belongs
30226 echo "$OPENEXR_PKG_ERRORS" >&5
30227
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30229$as_echo "no" >&6; }
30230 have_openexr=no
30231elif test $pkg_failed = untried; then
30232 have_openexr=no
30233else
30234 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30235 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30237$as_echo "yes" >&6; }
30238 have_openexr=yes
30239fi
cristy09b53e12011-10-14 12:47:22 +000030240 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30241$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030242fi
30243
30244if test "$have_openexr" = 'yes'; then
30245
cristy8b350f62009-11-15 23:12:43 +000030246$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030247
30248 if test "$with_modules" = 'no'; then
30249 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30250 fi
30251fi
30252
cristy73bd4a52010-10-05 11:24:23 +000030253 if test "$have_openexr" = 'yes'; then
30254 OPENEXR_DELEGATE_TRUE=
30255 OPENEXR_DELEGATE_FALSE='#'
30256else
30257 OPENEXR_DELEGATE_TRUE='#'
30258 OPENEXR_DELEGATE_FALSE=
30259fi
30260
cristy3ed852e2009-09-05 21:47:34 +000030261
30262
30263
30264
30265#
cristy41cbe8a2011-10-27 01:35:18 +000030266# Check for PANGO delegate library.
30267#
30268
30269# Check whether --with-pango was given.
30270if test "${with_pango+set}" = set; then :
30271 withval=$with_pango; with_pango=$withval
30272else
30273 with_pango=$have_x
30274fi
30275
30276
30277if test "$with_pango" != 'yes'; then
30278 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30279fi
30280
30281have_pango='no'
30282have_pangoft2='no'
30283PANGO_CFLAGS=""
30284PANGO_LIBS=""
30285PANGO_PKG=""
30286if test "x$with_pango" = "xyes"; then
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30288$as_echo "-------------------------------------------------------------" >&6; }
30289
30290pkg_failed=no
30291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30292$as_echo_n "checking for PANGO... " >&6; }
30293
30294if test -n "$PANGO_CFLAGS"; then
30295 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30296 elif test -n "$PKG_CONFIG"; then
30297 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30299 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030300 ac_status=$?
30301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30302 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030303 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030304else
30305 pkg_failed=yes
30306fi
30307 else
30308 pkg_failed=untried
30309fi
30310if test -n "$PANGO_LIBS"; then
30311 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30312 elif test -n "$PKG_CONFIG"; then
30313 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30315 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030316 ac_status=$?
30317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30318 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030319 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030320else
30321 pkg_failed=yes
30322fi
30323 else
30324 pkg_failed=untried
30325fi
30326
30327
30328
30329if test $pkg_failed = yes; then
30330
30331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30332 _pkg_short_errors_supported=yes
30333else
30334 _pkg_short_errors_supported=no
30335fi
30336 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030337 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030338 else
cristy2542fc62011-12-06 17:50:25 +000030339 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030340 fi
30341 # Put the nasty error message in config.log where it belongs
30342 echo "$PANGO_PKG_ERRORS" >&5
30343
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30345$as_echo "no" >&6; }
30346 have_pangoft2=no
30347elif test $pkg_failed = untried; then
30348 have_pangoft2=no
30349else
30350 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30351 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30353$as_echo "yes" >&6; }
30354 have_pangoft2=yes
30355fi
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30357$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030358
30359pkg_failed=no
30360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30361$as_echo_n "checking for PANGO... " >&6; }
30362
30363if test -n "$PANGO_CFLAGS"; then
30364 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30365 elif test -n "$PKG_CONFIG"; then
30366 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30368 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030369 ac_status=$?
30370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30371 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030372 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030373else
30374 pkg_failed=yes
30375fi
30376 else
30377 pkg_failed=untried
30378fi
30379if test -n "$PANGO_LIBS"; then
30380 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30381 elif test -n "$PKG_CONFIG"; then
30382 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30384 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030385 ac_status=$?
30386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30387 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030388 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030389else
30390 pkg_failed=yes
30391fi
30392 else
30393 pkg_failed=untried
30394fi
30395
30396
30397
30398if test $pkg_failed = yes; then
30399
30400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30401 _pkg_short_errors_supported=yes
30402else
30403 _pkg_short_errors_supported=no
30404fi
30405 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030406 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030407 else
cristy2542fc62011-12-06 17:50:25 +000030408 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030409 fi
30410 # Put the nasty error message in config.log where it belongs
30411 echo "$PANGO_PKG_ERRORS" >&5
30412
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30414$as_echo "no" >&6; }
30415 have_pango=no
30416elif test $pkg_failed = untried; then
30417 have_pango=no
30418else
30419 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30420 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30422$as_echo "yes" >&6; }
30423 have_pango=yes
30424fi
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30426$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030427fi
30428
30429if test "$have_pango" = 'yes'; then
30430
30431$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30432
30433 if test "$with_modules" = 'no'; then
30434 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30435 fi
30436fi
30437
30438if test "$have_pangoft2" = 'yes'; then
30439
30440$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30441
30442 if test "$with_modules" = 'no'; then
30443 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30444 fi
30445fi
30446
30447 if test "$have_pango" = 'yes'; then
30448 PANGO_DELEGATE_TRUE=
30449 PANGO_DELEGATE_FALSE='#'
30450else
30451 PANGO_DELEGATE_TRUE='#'
30452 PANGO_DELEGATE_FALSE=
30453fi
30454
30455 if test "$have_pangoft2" = 'yes'; then
30456 PANGOFT2_DELEGATE_TRUE=
30457 PANGOFT2_DELEGATE_FALSE='#'
30458else
30459 PANGOFT2_DELEGATE_TRUE='#'
30460 PANGOFT2_DELEGATE_FALSE=
30461fi
30462
30463
30464
30465
30466
30467#
cristy3ed852e2009-09-05 21:47:34 +000030468# Check for PNG delegate library.
30469#
30470
30471# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030472if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030473 withval=$with_png; with_png=$withval
30474else
30475 with_png='yes'
30476fi
30477
30478
30479if test "$with_png" != 'yes'; then
30480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30481fi
30482
cristy81beccd2011-10-03 18:17:24 +000030483have_png='no'
30484PNG_LIBS=''
30485
30486if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30488$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30490$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030491 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30492$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030493 failed=0
30494 passed=0
30495 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30496if test "x$ac_cv_header_png_h" = xyes; then :
30497 passed=`expr $passed + 1`
30498else
30499 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030500fi
30501
cristy81beccd2011-10-03 18:17:24 +000030502
30503
30504 if test $passed -gt 0; then
30505 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030506 if test "$have_png" = 'no' ; then
30507 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030508 pnglib='png'
30509 else
30510 pnglib="png1${var}"
30511 fi
30512
30513# Test for compatible LIBPNG library
30514 failed=0
30515 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030516 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030517 if test "${pnglib}" != 'png' ; then
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30519$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30521/* end confdefs.h. */
30522#include <stdio.h>
30523#include <stdlib.h>
30524#include <png.h>
30525
30526int
30527main ()
30528{
30529
30530#if PNG_LIBPNG_VER_MINOR != ${var}
30531#error LIBPNG library must be version 1${var}!
30532Kaboom, Kaboom
30533#endif
30534return 0;
30535
30536 ;
30537 return 0;
30538}
30539_ACEOF
30540if ac_fn_c_try_compile "$LINENO"; then :
30541 ac_cv_libpng_ok='yes'
30542else
30543 ac_cv_libpng_ok='no'
30544fi
30545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30546 if test "$ac_cv_libpng_ok" = 'yes' ; then
30547 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030548 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30549$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030550 else
30551 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30553$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030554 fi
30555 else
30556 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030557 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30558$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030559 fi
30560 fi
30561
30562 if test $passed -gt 0 -a $failed -le 0; then
30563 if test "1${var}" = '15' ; then
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30565$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30566if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30567 $as_echo_n "(cached) " >&6
30568else
30569 ac_check_lib_save_LIBS=$LIBS
30570LIBS="-lpng15 $LIBS"
30571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30572/* end confdefs.h. */
30573
30574/* Override any GCC internal prototype to avoid an error.
30575 Use char because int might match the return type of a GCC
30576 builtin and then its argument prototype would still apply. */
30577#ifdef __cplusplus
30578extern "C"
30579#endif
30580char png_get_io_ptr ();
30581int
30582main ()
30583{
30584return png_get_io_ptr ();
30585 ;
30586 return 0;
30587}
30588_ACEOF
30589if ac_fn_c_try_link "$LINENO"; then :
30590 ac_cv_lib_png15_png_get_io_ptr=yes
30591else
30592 ac_cv_lib_png15_png_get_io_ptr=no
30593fi
30594rm -f core conftest.err conftest.$ac_objext \
30595 conftest$ac_exeext conftest.$ac_ext
30596LIBS=$ac_check_lib_save_LIBS
30597fi
30598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30599$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30600if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30601 passed=`expr $passed + 1`
30602else
30603 failed=`expr $failed + 1`
30604fi
30605
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30607$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30608if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30609 $as_echo_n "(cached) " >&6
30610else
30611 ac_check_lib_save_LIBS=$LIBS
30612LIBS="-lpng15 $LIBS"
30613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30614/* end confdefs.h. */
30615
30616/* Override any GCC internal prototype to avoid an error.
30617 Use char because int might match the return type of a GCC
30618 builtin and then its argument prototype would still apply. */
30619#ifdef __cplusplus
30620extern "C"
30621#endif
30622char png_longjmp ();
30623int
30624main ()
30625{
30626return png_longjmp ();
30627 ;
30628 return 0;
30629}
30630_ACEOF
30631if ac_fn_c_try_link "$LINENO"; then :
30632 ac_cv_lib_png15_png_longjmp=yes
30633else
30634 ac_cv_lib_png15_png_longjmp=no
30635fi
30636rm -f core conftest.err conftest.$ac_objext \
30637 conftest$ac_exeext conftest.$ac_ext
30638LIBS=$ac_check_lib_save_LIBS
30639fi
30640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30641$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30642if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30643 passed=`expr $passed + 1`
30644else
30645 failed=`expr $failed + 1`
30646fi
30647
30648 fi
30649 if test "1${var}" = '14' ; then
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30651$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30652if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30653 $as_echo_n "(cached) " >&6
30654else
30655 ac_check_lib_save_LIBS=$LIBS
30656LIBS="-lpng14 $LIBS"
30657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30658/* end confdefs.h. */
30659
30660/* Override any GCC internal prototype to avoid an error.
30661 Use char because int might match the return type of a GCC
30662 builtin and then its argument prototype would still apply. */
30663#ifdef __cplusplus
30664extern "C"
30665#endif
30666char png_get_io_ptr ();
30667int
30668main ()
30669{
30670return png_get_io_ptr ();
30671 ;
30672 return 0;
30673}
30674_ACEOF
30675if ac_fn_c_try_link "$LINENO"; then :
30676 ac_cv_lib_png14_png_get_io_ptr=yes
30677else
30678 ac_cv_lib_png14_png_get_io_ptr=no
30679fi
30680rm -f core conftest.err conftest.$ac_objext \
30681 conftest$ac_exeext conftest.$ac_ext
30682LIBS=$ac_check_lib_save_LIBS
30683fi
30684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30685$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30686if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30687 passed=`expr $passed + 1`
30688else
30689 failed=`expr $failed + 1`
30690fi
30691
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30693$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30694if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30695 $as_echo_n "(cached) " >&6
30696else
30697 ac_check_lib_save_LIBS=$LIBS
30698LIBS="-lpng14 $LIBS"
30699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30700/* end confdefs.h. */
30701
30702/* Override any GCC internal prototype to avoid an error.
30703 Use char because int might match the return type of a GCC
30704 builtin and then its argument prototype would still apply. */
30705#ifdef __cplusplus
30706extern "C"
30707#endif
30708char png_get_io_state ();
30709int
30710main ()
30711{
30712return png_get_io_state ();
30713 ;
30714 return 0;
30715}
30716_ACEOF
30717if ac_fn_c_try_link "$LINENO"; then :
30718 ac_cv_lib_png14_png_get_io_state=yes
30719else
30720 ac_cv_lib_png14_png_get_io_state=no
30721fi
30722rm -f core conftest.err conftest.$ac_objext \
30723 conftest$ac_exeext conftest.$ac_ext
30724LIBS=$ac_check_lib_save_LIBS
30725fi
30726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30727$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30728if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30729 passed=`expr $passed + 1`
30730else
30731 failed=`expr $failed + 1`
30732fi
30733
30734 fi
30735 if test "1${var}" = '12' ; then
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30737$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30738if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30739 $as_echo_n "(cached) " >&6
30740else
30741 ac_check_lib_save_LIBS=$LIBS
30742LIBS="-lpng12 $LIBS"
30743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30744/* end confdefs.h. */
30745
30746/* Override any GCC internal prototype to avoid an error.
30747 Use char because int might match the return type of a GCC
30748 builtin and then its argument prototype would still apply. */
30749#ifdef __cplusplus
30750extern "C"
30751#endif
30752char png_get_io_ptr ();
30753int
30754main ()
30755{
30756return png_get_io_ptr ();
30757 ;
30758 return 0;
30759}
30760_ACEOF
30761if ac_fn_c_try_link "$LINENO"; then :
30762 ac_cv_lib_png12_png_get_io_ptr=yes
30763else
30764 ac_cv_lib_png12_png_get_io_ptr=no
30765fi
30766rm -f core conftest.err conftest.$ac_objext \
30767 conftest$ac_exeext conftest.$ac_ext
30768LIBS=$ac_check_lib_save_LIBS
30769fi
30770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30771$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30772if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30773 passed=`expr $passed + 1`
30774else
30775 failed=`expr $failed + 1`
30776fi
30777
30778 fi
30779 if test "1${var}" = '1' ; then
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30781$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30782if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30783 $as_echo_n "(cached) " >&6
30784else
30785 ac_check_lib_save_LIBS=$LIBS
30786LIBS="-lpng $LIBS"
30787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30788/* end confdefs.h. */
30789
30790/* Override any GCC internal prototype to avoid an error.
30791 Use char because int might match the return type of a GCC
30792 builtin and then its argument prototype would still apply. */
30793#ifdef __cplusplus
30794extern "C"
30795#endif
30796char png_get_io_ptr ();
30797int
30798main ()
30799{
30800return png_get_io_ptr ();
30801 ;
30802 return 0;
30803}
30804_ACEOF
30805if ac_fn_c_try_link "$LINENO"; then :
30806 ac_cv_lib_png_png_get_io_ptr=yes
30807else
30808 ac_cv_lib_png_png_get_io_ptr=no
30809fi
30810rm -f core conftest.err conftest.$ac_objext \
30811 conftest$ac_exeext conftest.$ac_ext
30812LIBS=$ac_check_lib_save_LIBS
30813fi
30814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30815$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30816if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30817 passed=`expr $passed + 1`
30818else
30819 failed=`expr $failed + 1`
30820fi
30821
30822 fi
30823 if test $passed -gt 0 -a $failed -le 0 ; then
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30825$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30826 if test $passed -gt 0 ; then
30827 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030828 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30829$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030830 have_png='no (failed tests)'
30831 else
30832 PNG_LIBS="-l${pnglib}"
30833 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030834
cristy8b350f62009-11-15 23:12:43 +000030835$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030836
cristy09b53e12011-10-14 12:47:22 +000030837 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30838$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030839 have_png='yes'
30840 fi
30841 fi
30842 fi
30843 fi
30844 fi
30845 done
30846 fi
cristy3ed852e2009-09-05 21:47:34 +000030847fi
cristy64877302011-08-23 19:10:31 +000030848
cristy73bd4a52010-10-05 11:24:23 +000030849 if test "$have_png" = 'yes'; then
30850 PNG_DELEGATE_TRUE=
30851 PNG_DELEGATE_FALSE='#'
30852else
30853 PNG_DELEGATE_TRUE='#'
30854 PNG_DELEGATE_FALSE=
30855fi
30856
cristy3ed852e2009-09-05 21:47:34 +000030857
cristy50d3f5c2011-09-10 20:09:06 +000030858
cristy3ed852e2009-09-05 21:47:34 +000030859
30860
30861#
30862# Check for RSVG delegate library.
30863#
30864
30865# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030866if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030867 withval=$with_rsvg; with_rsvg=$withval
30868else
30869 with_rsvg=$have_x
30870fi
30871
30872
30873if test "$with_rsvg" != 'yes'; then
30874 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30875fi
30876
30877have_rsvg='no'
30878have_cairo='no'
30879RSVG_CFLAGS=""
30880RSVG_LIBS=""
30881RSVG_PKG=""
30882if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030883 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30884$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030885
30886pkg_failed=no
30887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30888$as_echo_n "checking for RSVG... " >&6; }
30889
30890if test -n "$RSVG_CFLAGS"; then
30891 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30892 elif test -n "$PKG_CONFIG"; then
30893 if test -n "$PKG_CONFIG" && \
30894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30895 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30896 ac_status=$?
30897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30898 test $ac_status = 0; }; then
30899 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30900else
30901 pkg_failed=yes
30902fi
30903 else
30904 pkg_failed=untried
30905fi
30906if test -n "$RSVG_LIBS"; then
30907 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30908 elif test -n "$PKG_CONFIG"; then
30909 if test -n "$PKG_CONFIG" && \
30910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30911 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30912 ac_status=$?
30913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30914 test $ac_status = 0; }; then
30915 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30916else
30917 pkg_failed=yes
30918fi
30919 else
30920 pkg_failed=untried
30921fi
30922
30923
30924
30925if test $pkg_failed = yes; then
30926
30927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30928 _pkg_short_errors_supported=yes
30929else
30930 _pkg_short_errors_supported=no
30931fi
30932 if test $_pkg_short_errors_supported = yes; then
30933 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30934 else
30935 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30936 fi
30937 # Put the nasty error message in config.log where it belongs
30938 echo "$RSVG_PKG_ERRORS" >&5
30939
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30941$as_echo "no" >&6; }
30942 have_rsvg=no
30943elif test $pkg_failed = untried; then
30944 have_rsvg=no
30945else
30946 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30947 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30949$as_echo "yes" >&6; }
30950 have_rsvg=yes
30951fi
cristy09b53e12011-10-14 12:47:22 +000030952 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30953$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030954
30955pkg_failed=no
30956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30957$as_echo_n "checking for CAIRO_SVG... " >&6; }
30958
30959if test -n "$CAIRO_SVG_CFLAGS"; then
30960 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30961 elif test -n "$PKG_CONFIG"; then
30962 if test -n "$PKG_CONFIG" && \
30963 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30964 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30965 ac_status=$?
30966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30967 test $ac_status = 0; }; then
30968 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30969else
30970 pkg_failed=yes
30971fi
30972 else
30973 pkg_failed=untried
30974fi
30975if test -n "$CAIRO_SVG_LIBS"; then
30976 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30977 elif test -n "$PKG_CONFIG"; then
30978 if test -n "$PKG_CONFIG" && \
30979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30980 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30981 ac_status=$?
30982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30983 test $ac_status = 0; }; then
30984 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30985else
30986 pkg_failed=yes
30987fi
30988 else
30989 pkg_failed=untried
30990fi
30991
30992
30993
30994if test $pkg_failed = yes; then
30995
30996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30997 _pkg_short_errors_supported=yes
30998else
30999 _pkg_short_errors_supported=no
31000fi
31001 if test $_pkg_short_errors_supported = yes; then
31002 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31003 else
31004 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31005 fi
31006 # Put the nasty error message in config.log where it belongs
31007 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31008
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31010$as_echo "no" >&6; }
31011 have_cairo=no
31012elif test $pkg_failed = untried; then
31013 have_cairo=no
31014else
31015 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31016 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31018$as_echo "yes" >&6; }
31019 have_cairo=yes
31020fi
cristy09b53e12011-10-14 12:47:22 +000031021 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31022$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031023fi
31024
31025if test "$have_rsvg" = 'yes'; then
31026
cristy8b350f62009-11-15 23:12:43 +000031027$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031028
31029 if test "$with_modules" = 'no'; then
31030 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31031 fi
31032fi
31033
31034if test "$have_cairo" = 'yes'; then
31035
cristy8b350f62009-11-15 23:12:43 +000031036$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031037
31038 if test "$with_modules" = 'no'; then
31039 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31040 fi
31041fi
31042
cristy73bd4a52010-10-05 11:24:23 +000031043 if test "$have_rsvg" = 'yes'; then
31044 RSVG_DELEGATE_TRUE=
31045 RSVG_DELEGATE_FALSE='#'
31046else
31047 RSVG_DELEGATE_TRUE='#'
31048 RSVG_DELEGATE_FALSE=
31049fi
31050
31051 if test "$have_cairo" = 'yes'; then
31052 CAIRO_DELEGATE_TRUE=
31053 CAIRO_DELEGATE_FALSE='#'
31054else
31055 CAIRO_DELEGATE_TRUE='#'
31056 CAIRO_DELEGATE_FALSE=
31057fi
31058
cristy3ed852e2009-09-05 21:47:34 +000031059
31060
31061
31062
31063#
31064# Check for TIFF delegate library.
31065#
31066
31067# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031068if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031069 withval=$with_tiff; with_tiff=$withval
31070else
31071 with_tiff='yes'
31072fi
31073
31074
31075if test "$with_tiff" != 'yes'; then
31076 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31077fi
31078
31079have_tiff='no'
31080TIFF_LIBS=''
31081if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31083$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031086 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31087$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031088 failed=0
31089 passed=0
cristy8b350f62009-11-15 23:12:43 +000031090 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031091if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031092 passed=`expr $passed + 1`
31093else
31094 failed=`expr $failed + 1`
31095fi
31096
31097
cristy8b350f62009-11-15 23:12:43 +000031098 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031099if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031100 passed=`expr $passed + 1`
31101else
31102 failed=`expr $failed + 1`
31103fi
31104
31105
cristy8b350f62009-11-15 23:12:43 +000031106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031107$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031108if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031109 $as_echo_n "(cached) " >&6
31110else
31111 ac_check_lib_save_LIBS=$LIBS
31112LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031114/* end confdefs.h. */
31115
31116/* Override any GCC internal prototype to avoid an error.
31117 Use char because int might match the return type of a GCC
31118 builtin and then its argument prototype would still apply. */
31119#ifdef __cplusplus
31120extern "C"
31121#endif
31122char TIFFOpen ();
31123int
31124main ()
31125{
31126return TIFFOpen ();
31127 ;
31128 return 0;
31129}
31130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031132 ac_cv_lib_tiff_TIFFOpen=yes
31133else
cristy8b350f62009-11-15 23:12:43 +000031134 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031135fi
cristy8b350f62009-11-15 23:12:43 +000031136rm -f core conftest.err conftest.$ac_objext \
31137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031138LIBS=$ac_check_lib_save_LIBS
31139fi
cristy8b350f62009-11-15 23:12:43 +000031140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031141$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031142if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031143 passed=`expr $passed + 1`
31144else
31145 failed=`expr $failed + 1`
31146fi
31147
cristy8b350f62009-11-15 23:12:43 +000031148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031149$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031150if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031151 $as_echo_n "(cached) " >&6
31152else
31153 ac_check_lib_save_LIBS=$LIBS
31154LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031156/* end confdefs.h. */
31157
31158/* Override any GCC internal prototype to avoid an error.
31159 Use char because int might match the return type of a GCC
31160 builtin and then its argument prototype would still apply. */
31161#ifdef __cplusplus
31162extern "C"
31163#endif
31164char TIFFClientOpen ();
31165int
31166main ()
31167{
31168return TIFFClientOpen ();
31169 ;
31170 return 0;
31171}
31172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031173if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031174 ac_cv_lib_tiff_TIFFClientOpen=yes
31175else
cristy8b350f62009-11-15 23:12:43 +000031176 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031177fi
cristy8b350f62009-11-15 23:12:43 +000031178rm -f core conftest.err conftest.$ac_objext \
31179 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031180LIBS=$ac_check_lib_save_LIBS
31181fi
cristy8b350f62009-11-15 23:12:43 +000031182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031184if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031185 passed=`expr $passed + 1`
31186else
31187 failed=`expr $failed + 1`
31188fi
31189
cristy8b350f62009-11-15 23:12:43 +000031190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031191$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031192if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031193 $as_echo_n "(cached) " >&6
31194else
31195 ac_check_lib_save_LIBS=$LIBS
31196LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031198/* end confdefs.h. */
31199
31200/* Override any GCC internal prototype to avoid an error.
31201 Use char because int might match the return type of a GCC
31202 builtin and then its argument prototype would still apply. */
31203#ifdef __cplusplus
31204extern "C"
31205#endif
31206char TIFFIsByteSwapped ();
31207int
31208main ()
31209{
31210return TIFFIsByteSwapped ();
31211 ;
31212 return 0;
31213}
31214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031216 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31217else
cristy8b350f62009-11-15 23:12:43 +000031218 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031219fi
cristy8b350f62009-11-15 23:12:43 +000031220rm -f core conftest.err conftest.$ac_objext \
31221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031222LIBS=$ac_check_lib_save_LIBS
31223fi
cristy8b350f62009-11-15 23:12:43 +000031224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031225$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031226if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031227 passed=`expr $passed + 1`
31228else
31229 failed=`expr $failed + 1`
31230fi
31231
cristy8b350f62009-11-15 23:12:43 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031234if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031235 $as_echo_n "(cached) " >&6
31236else
31237 ac_check_lib_save_LIBS=$LIBS
31238LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031240/* end confdefs.h. */
31241
31242/* Override any GCC internal prototype to avoid an error.
31243 Use char because int might match the return type of a GCC
31244 builtin and then its argument prototype would still apply. */
31245#ifdef __cplusplus
31246extern "C"
31247#endif
31248char TIFFReadRGBATile ();
31249int
31250main ()
31251{
31252return TIFFReadRGBATile ();
31253 ;
31254 return 0;
31255}
31256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031258 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31259else
cristy8b350f62009-11-15 23:12:43 +000031260 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031261fi
cristy8b350f62009-11-15 23:12:43 +000031262rm -f core conftest.err conftest.$ac_objext \
31263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031264LIBS=$ac_check_lib_save_LIBS
31265fi
cristy8b350f62009-11-15 23:12:43 +000031266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031267$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031268if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031269 passed=`expr $passed + 1`
31270else
31271 failed=`expr $failed + 1`
31272fi
31273
cristy8b350f62009-11-15 23:12:43 +000031274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031275$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031276if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031277 $as_echo_n "(cached) " >&6
31278else
31279 ac_check_lib_save_LIBS=$LIBS
31280LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031282/* end confdefs.h. */
31283
31284/* Override any GCC internal prototype to avoid an error.
31285 Use char because int might match the return type of a GCC
31286 builtin and then its argument prototype would still apply. */
31287#ifdef __cplusplus
31288extern "C"
31289#endif
31290char TIFFReadRGBAStrip ();
31291int
31292main ()
31293{
31294return TIFFReadRGBAStrip ();
31295 ;
31296 return 0;
31297}
31298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031300 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31301else
cristy8b350f62009-11-15 23:12:43 +000031302 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031303fi
cristy8b350f62009-11-15 23:12:43 +000031304rm -f core conftest.err conftest.$ac_objext \
31305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031306LIBS=$ac_check_lib_save_LIBS
31307fi
cristy8b350f62009-11-15 23:12:43 +000031308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031309$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031310if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031311 passed=`expr $passed + 1`
31312else
31313 failed=`expr $failed + 1`
31314fi
31315
cristy8b350f62009-11-15 23:12:43 +000031316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031317$as_echo_n "checking if TIFF package is complete... " >&6; }
31318 if test $passed -gt 0; then
31319 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031320 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31321$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031322 have_tiff='no (failed tests)'
31323 else
31324 TIFF_LIBS='-ltiff'
31325 LIBS="$TIFF_LIBS $LIBS"
31326
cristy8b350f62009-11-15 23:12:43 +000031327$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031328
cristy09b53e12011-10-14 12:47:22 +000031329 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31330$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031331 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031332 for ac_header in tiffconf.h
31333do :
31334 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031335if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031336 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031337#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031338_ACEOF
31339
31340fi
31341
31342done
31343
cristy8b350f62009-11-15 23:12:43 +000031344 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031345 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31346 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31347 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031348do :
31349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31350ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031351if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031352 cat >>confdefs.h <<_ACEOF
31353#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31354_ACEOF
31355
31356fi
31357done
31358
31359 fi
31360 else
cristy09b53e12011-10-14 12:47:22 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31362$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031363 fi
31364fi
cristy73bd4a52010-10-05 11:24:23 +000031365 if test "$have_tiff" = 'yes'; then
31366 TIFF_DELEGATE_TRUE=
31367 TIFF_DELEGATE_FALSE='#'
31368else
31369 TIFF_DELEGATE_TRUE='#'
31370 TIFF_DELEGATE_FALSE=
31371fi
31372
cristy3ed852e2009-09-05 21:47:34 +000031373
31374
31375
31376#
cristyb1860752011-03-14 00:27:46 +000031377# Check for WEBP delegate library.
31378#
31379
31380# Check whether --with-webp was given.
31381if test "${with_webp+set}" = set; then :
31382 withval=$with_webp; with_webp=$withval
31383else
31384 with_webp='yes'
31385fi
31386
31387
31388if test "$with_webp" != 'yes'; then
31389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31390fi
31391
31392have_webp='no'
31393WEBP_LIBS=''
31394if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031395 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31396$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31398$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031399 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31400$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031401 failed=0
31402 passed=0
31403 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31404if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31405 passed=`expr $passed + 1`
31406else
31407 failed=`expr $failed + 1`
31408fi
31409
31410
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31412$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31413if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31414 $as_echo_n "(cached) " >&6
31415else
31416 ac_check_lib_save_LIBS=$LIBS
31417LIBS="-lwebp $LIBS"
31418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31419/* end confdefs.h. */
31420
31421/* Override any GCC internal prototype to avoid an error.
31422 Use char because int might match the return type of a GCC
31423 builtin and then its argument prototype would still apply. */
31424#ifdef __cplusplus
31425extern "C"
31426#endif
31427char WebPDecodeRGB ();
31428int
31429main ()
31430{
31431return WebPDecodeRGB ();
31432 ;
31433 return 0;
31434}
31435_ACEOF
31436if ac_fn_c_try_link "$LINENO"; then :
31437 ac_cv_lib_webp_WebPDecodeRGB=yes
31438else
31439 ac_cv_lib_webp_WebPDecodeRGB=no
31440fi
31441rm -f core conftest.err conftest.$ac_objext \
31442 conftest$ac_exeext conftest.$ac_ext
31443LIBS=$ac_check_lib_save_LIBS
31444fi
31445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31446$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31447if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31448 passed=`expr $passed + 1`
31449else
31450 failed=`expr $failed + 1`
31451fi
31452
31453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31454$as_echo_n "checking if WEBP package is complete... " >&6; }
31455 if test $passed -gt 0; then
31456 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31458$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031459 have_webp='no (failed tests)'
31460 else
31461 WEBP_LIBS='-lwebp'
31462 LIBS="$WEBP_LIBS $LIBS"
31463
31464$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31465
cristy09b53e12011-10-14 12:47:22 +000031466 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31467$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031468 have_webp='yes'
31469 fi
31470 else
cristy09b53e12011-10-14 12:47:22 +000031471 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31472$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031473 fi
31474fi
31475 if test "$have_webp" = 'yes'; then
31476 WEBP_DELEGATE_TRUE=
31477 WEBP_DELEGATE_FALSE='#'
31478else
31479 WEBP_DELEGATE_TRUE='#'
31480 WEBP_DELEGATE_FALSE=
31481fi
31482
31483
31484
31485
31486#
cristy3ed852e2009-09-05 21:47:34 +000031487# Set Windows font directory.
31488#
31489
31490# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031491if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031492 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31493else
31494 with_windows_font_dir=''
31495fi
31496
31497if test "$with_windows_font_dir" != '' ; then
31498 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31499fi
31500
31501
31502#
31503# Check for WMF delegate library.
31504#
31505
31506# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031507if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031508 withval=$with_wmf; with_wmf=$withval
31509else
cristy8d63d1d2010-01-06 20:38:37 +000031510 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031511fi
31512
31513
31514if test "$with_wmf" != 'yes'; then
31515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31516fi
31517
31518have_wmf='no'
31519WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031520if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031521 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31522$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031524$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031525 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31526$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031527 failed=0
31528 passed=0
31529 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31530if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31531 passed=`expr $passed + 1`
31532else
31533 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031534fi
31535
31536
glennrp33e524b2011-08-24 17:41:57 +000031537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31538$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31539if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031540 $as_echo_n "(cached) " >&6
31541else
31542 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031543LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031545/* end confdefs.h. */
31546
31547/* Override any GCC internal prototype to avoid an error.
31548 Use char because int might match the return type of a GCC
31549 builtin and then its argument prototype would still apply. */
31550#ifdef __cplusplus
31551extern "C"
31552#endif
glennrp33e524b2011-08-24 17:41:57 +000031553char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031554int
31555main ()
31556{
glennrp33e524b2011-08-24 17:41:57 +000031557return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031558 ;
31559 return 0;
31560}
31561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031562if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031563 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031564else
glennrp33e524b2011-08-24 17:41:57 +000031565 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031566fi
cristy8b350f62009-11-15 23:12:43 +000031567rm -f core conftest.err conftest.$ac_objext \
31568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031569LIBS=$ac_check_lib_save_LIBS
31570fi
glennrp33e524b2011-08-24 17:41:57 +000031571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31572$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31573if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31574 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031575else
glennrp33e524b2011-08-24 17:41:57 +000031576 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031577fi
31578
glennrp33e524b2011-08-24 17:41:57 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31580$as_echo_n "checking if WMF package is complete... " >&6; }
31581 if test $passed -gt 0; then
31582 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31584$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031585 have_wmf='no (failed tests)'
31586 else
31587 WMF_LIBS='-lwmf -lwmflite'
31588 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031589
cristy8b350f62009-11-15 23:12:43 +000031590$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031591
cristy09b53e12011-10-14 12:47:22 +000031592 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31593$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031594 have_wmf='yes'
31595 fi
31596 else
cristy09b53e12011-10-14 12:47:22 +000031597 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31598$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031599 fi
cristy3ed852e2009-09-05 21:47:34 +000031600fi
cristy73bd4a52010-10-05 11:24:23 +000031601 if test "$have_wmf" = 'yes'; then
31602 WMF_DELEGATE_TRUE=
31603 WMF_DELEGATE_FALSE='#'
31604else
31605 WMF_DELEGATE_TRUE='#'
31606 WMF_DELEGATE_FALSE=
31607fi
31608
cristy3ed852e2009-09-05 21:47:34 +000031609
31610
31611
cristy81beccd2011-10-03 18:17:24 +000031612
31613
cristy3ed852e2009-09-05 21:47:34 +000031614#
31615# Check for XML delegate library.
31616#
31617
31618# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031619if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031620 withval=$with_xml; with_xml=$withval
31621else
cristy81beccd2011-10-03 18:17:24 +000031622 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031623fi
31624
31625
cristy81beccd2011-10-03 18:17:24 +000031626if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031627 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31628fi
31629
cristy81beccd2011-10-03 18:17:24 +000031630have_xml='no'
31631XML_LIBS=''
31632if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31634$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31636$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031637 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31638$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031639 PERSIST_LDFLAGS=$LDFLAGS
31640 PERSIST_CPPFLAGS=$CPPFLAGS
31641 xml2_config=''
31642 # Extract the first word of "xml2-config", so it can be a program name with args.
31643set dummy xml2-config; ac_word=$2
31644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31645$as_echo_n "checking for $ac_word... " >&6; }
31646if ${ac_cv_path_xml2_config+:} false; then :
31647 $as_echo_n "(cached) " >&6
31648else
31649 case $xml2_config in
31650 [\\/]* | ?:[\\/]*)
31651 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31652 ;;
31653 *)
31654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31655for as_dir in $PATH
31656do
31657 IFS=$as_save_IFS
31658 test -z "$as_dir" && as_dir=.
31659 for ac_exec_ext in '' $ac_executable_extensions; do
31660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31661 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31663 break 2
31664 fi
31665done
31666 done
31667IFS=$as_save_IFS
31668
31669 ;;
31670esac
31671fi
31672xml2_config=$ac_cv_path_xml2_config
31673if test -n "$xml2_config"; then
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31675$as_echo "$xml2_config" >&6; }
31676else
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031679fi
31680
cristy81beccd2011-10-03 18:17:24 +000031681 if test -n "$xml2_config"; then
31682 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31683 # the shared library installed under /usr/lib, whereas the package
31684 # installs itself under $prefix/libxml and $prefix/lib.
31685 xml2_prefix=`xml2-config --prefix`
31686 if test -d "${xml2_prefix}/include/libxml2"; then
31687 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31688 fi
31689 if test "${xml2_prefix}" != '/usr'; then
31690 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31691 fi
31692 fi
31693 failed=0
31694 passed=0
31695 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31696if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31697 passed=`expr $passed + 1`
31698else
31699 failed=`expr $failed + 1`
31700fi
31701
31702
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31704$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31705if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31706 $as_echo_n "(cached) " >&6
31707else
31708 ac_check_lib_save_LIBS=$LIBS
31709LIBS="-lxml2 $LIBS"
31710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31711/* end confdefs.h. */
31712
31713/* Override any GCC internal prototype to avoid an error.
31714 Use char because int might match the return type of a GCC
31715 builtin and then its argument prototype would still apply. */
31716#ifdef __cplusplus
31717extern "C"
31718#endif
31719char xmlSAXVersion ();
31720int
31721main ()
31722{
31723return xmlSAXVersion ();
31724 ;
31725 return 0;
31726}
31727_ACEOF
31728if ac_fn_c_try_link "$LINENO"; then :
31729 ac_cv_lib_xml2_xmlSAXVersion=yes
31730else
31731 ac_cv_lib_xml2_xmlSAXVersion=no
31732fi
31733rm -f core conftest.err conftest.$ac_objext \
31734 conftest$ac_exeext conftest.$ac_ext
31735LIBS=$ac_check_lib_save_LIBS
31736fi
31737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31738$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31739if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31740 passed=`expr $passed + 1`
31741else
31742 failed=`expr $failed + 1`
31743fi
31744
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31746$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31747if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31748 $as_echo_n "(cached) " >&6
31749else
31750 ac_check_lib_save_LIBS=$LIBS
31751LIBS="-lxml2 $LIBS"
31752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31753/* end confdefs.h. */
31754
31755/* Override any GCC internal prototype to avoid an error.
31756 Use char because int might match the return type of a GCC
31757 builtin and then its argument prototype would still apply. */
31758#ifdef __cplusplus
31759extern "C"
31760#endif
31761char xmlParseChunk ();
31762int
31763main ()
31764{
31765return xmlParseChunk ();
31766 ;
31767 return 0;
31768}
31769_ACEOF
31770if ac_fn_c_try_link "$LINENO"; then :
31771 ac_cv_lib_xml2_xmlParseChunk=yes
31772else
31773 ac_cv_lib_xml2_xmlParseChunk=no
31774fi
31775rm -f core conftest.err conftest.$ac_objext \
31776 conftest$ac_exeext conftest.$ac_ext
31777LIBS=$ac_check_lib_save_LIBS
31778fi
31779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31780$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31781if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31782 passed=`expr $passed + 1`
31783else
31784 failed=`expr $failed + 1`
31785fi
31786
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31788$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31789if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31790 $as_echo_n "(cached) " >&6
31791else
31792 ac_check_lib_save_LIBS=$LIBS
31793LIBS="-lxml2 $LIBS"
31794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31795/* end confdefs.h. */
31796
31797/* Override any GCC internal prototype to avoid an error.
31798 Use char because int might match the return type of a GCC
31799 builtin and then its argument prototype would still apply. */
31800#ifdef __cplusplus
31801extern "C"
31802#endif
31803char xmlCreatePushParserCtxt ();
31804int
31805main ()
31806{
31807return xmlCreatePushParserCtxt ();
31808 ;
31809 return 0;
31810}
31811_ACEOF
31812if ac_fn_c_try_link "$LINENO"; then :
31813 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31814else
31815 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31816fi
31817rm -f core conftest.err conftest.$ac_objext \
31818 conftest$ac_exeext conftest.$ac_ext
31819LIBS=$ac_check_lib_save_LIBS
31820fi
31821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31822$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31823if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31824 passed=`expr $passed + 1`
31825else
31826 failed=`expr $failed + 1`
31827fi
31828
31829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31830$as_echo_n "checking if XML package is complete... " >&6; }
31831 if test $passed -gt 0; then
31832 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031833 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31834$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031835 have_xml='no (failed tests)'
31836 LDFLAGS="$PERSIST_LDFLAGS"
31837 CPPFLAGS="$PERSIST_CPPFLAGS"
31838 else
31839 XML_LIBS='-lxml2'
31840 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031841
cristy8b350f62009-11-15 23:12:43 +000031842$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031843
cristy09b53e12011-10-14 12:47:22 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31845$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031846 have_xml='yes'
31847 fi
31848 else
cristy09b53e12011-10-14 12:47:22 +000031849 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31850$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031851 fi
31852fi
cristy73bd4a52010-10-05 11:24:23 +000031853 if test "$have_xml" = 'yes'; then
31854 XML_DELEGATE_TRUE=
31855 XML_DELEGATE_FALSE='#'
31856else
31857 XML_DELEGATE_TRUE='#'
31858 XML_DELEGATE_FALSE=
31859fi
31860
cristy3ed852e2009-09-05 21:47:34 +000031861
31862
31863
31864# Substitute compiler name to build/link PerlMagick
31865#
31866
31867
31868#
31869# Configure install Paths
31870#
cristy7def36a2011-10-28 19:04:41 +000031871
cristy2a11bef2011-10-28 18:33:11 +000031872# Path to ImageMagick header files
31873INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031874INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31875DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031876case "${build_os}" in
31877 mingw* )
31878 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31879 ;;
31880esac
31881
31882cat >>confdefs.h <<_ACEOF
31883#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31884_ACEOF
31885
31886
cristy3ed852e2009-09-05 21:47:34 +000031887
31888# Subdirectory under lib to place ImageMagick lib files
31889LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31890
31891cat >>confdefs.h <<_ACEOF
31892#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31893_ACEOF
31894
31895
31896# Path to ImageMagick bin directory
31897EXECUTABLE_PATH="${BIN_DIR}"
31898DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31899case "${build_os}" in
31900 mingw* )
31901 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31902 ;;
31903esac
31904
31905cat >>confdefs.h <<_ACEOF
31906#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31907_ACEOF
31908
31909
31910
31911# Path to ImageMagick lib
31912LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31913DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31914case "${build_os}" in
31915 mingw* )
31916 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31917 ;;
31918esac
31919
31920cat >>confdefs.h <<_ACEOF
31921#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31922_ACEOF
31923
31924
31925
cristy3ed852e2009-09-05 21:47:34 +000031926#
31927# Subdirectory under lib to place ImageMagick coder module files
31928CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31929
31930cat >>confdefs.h <<_ACEOF
31931#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31932_ACEOF
31933
31934CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31935DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31936case "${build_os}" in
31937 mingw* )
31938 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31939 ;;
31940esac
31941
31942cat >>confdefs.h <<_ACEOF
31943#define CODER_PATH "$DEFINE_CODER_PATH"
31944_ACEOF
31945
31946
31947
31948#
31949# Subdirectory under lib to place ImageMagick filter module files
31950FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31951
31952cat >>confdefs.h <<_ACEOF
31953#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31954_ACEOF
31955
31956FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31957DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31958case "${build_os}" in
31959 mingw* )
31960 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31961 ;;
31962esac
31963
31964cat >>confdefs.h <<_ACEOF
31965#define FILTER_PATH "$DEFINE_FILTER_PATH"
31966_ACEOF
31967
31968
31969
31970#
31971# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031972DOCUMENTATION_RELATIVE_PATH=""
31973DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31974DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031975case "${build_os}" in
31976 mingw* )
31977 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31978 ;;
31979esac
31980
31981cat >>confdefs.h <<_ACEOF
31982#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31983_ACEOF
31984
31985
31986
cristy2a11bef2011-10-28 18:33:11 +000031987# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000031988CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031989
31990cat >>confdefs.h <<_ACEOF
31991#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31992_ACEOF
31993
cristy7def36a2011-10-28 19:04:41 +000031994CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000031995DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31996case "${build_os}" in
31997 mingw* )
31998 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31999 ;;
32000esac
32001
32002cat >>confdefs.h <<_ACEOF
32003#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32004_ACEOF
32005
32006
32007
cristy2a11bef2011-10-28 18:33:11 +000032008# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032009SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032010
32011cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032012#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032013_ACEOF
32014
cristy670aa3c2011-11-03 00:54:00 +000032015SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032016DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032017case "${build_os}" in
32018 mingw* )
cristy4f820712011-04-01 12:35:43 +000032019 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032020 ;;
32021esac
32022
32023cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032024#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032025_ACEOF
32026
32027
32028
cristy408ebcd2011-11-14 01:36:57 +000032029# Subdirectory to place architecture-dependent configuration files
32030SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032031
32032cat >>confdefs.h <<_ACEOF
32033#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32034_ACEOF
32035
cristy408ebcd2011-11-14 01:36:57 +000032036SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32037DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032038case "${build_os}" in
32039 mingw* )
32040 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32041 ;;
32042esac
32043
32044cat >>confdefs.h <<_ACEOF
32045#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32046_ACEOF
32047
32048
32049
cristy3ed852e2009-09-05 21:47:34 +000032050#
32051# program_transform_name is formed for use in a Makefile, so create a
32052# modified version for use in a shell script.
32053configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32054
32055# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032056{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32057$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032059$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032060{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32061$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032062AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032063BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032064BZIPDelegateDefault='bzip2'
32065BrowseDelegateDefault='xdg-open'
32066CGMDecodeDelegateDefault='ralcgm'
32067CatDelegateDefault='cat'
32068DNGDecodeDelegateDefault='ufraw-batch'
32069GVCDecodeDelegateDefault='dot'
32070DVIDecodeDelegateDefault='dvips'
32071EchoDelegateDefault='echo'
32072EditorDelegateDefault='xterm'
32073FIGDecodeDelegateDefault='fig2dev'
32074ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32075DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32076MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32077GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032078HPGLDecodeDelegateDefault='hp2xx'
32079HTMLDecodeDelegateDefault='html2ps'
32080ILBMDecodeDelegateDefault='ilbmtoppm'
32081ILBMEncodeDelegateDefault='ppmtoilbm'
32082LPDelegateDefault='lp'
32083LPRDelegateDefault='lpr'
32084LZWDecodeDelegateDefault='uncompress'
32085LZWEncodeDelegateDefault='compress'
32086LaunchDelegateDefault='gimp'
32087MANDelegateDefault='groff'
32088MPEGDecodeDelegateDefault='ffmpeg'
32089MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032090MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032091MVDelegateDefault='mv'
32092PCLDelegateDefault='pcl6'
32093PGPDecodeDelegateDefault='pgpv'
32094POVDelegateDefault='povray'
32095if test "$native_win32_build" = 'yes'; then
32096 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032097elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032098 PSDelegateDefault='gsc'
32099else
32100 PSDelegateDefault='gs'
32101fi
32102RLEEncodeDelegateDefault='rawtorle'
32103RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032104RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032105SCANDecodeDelegateDefault='scanimage'
32106TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032107UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032108WMFDecodeDelegateDefault='wmf2eps'
32109WWWDecodeDelegateDefault='curl'
32110XPSDelegateDefault='gxps'
32111ZipDelegateDefault='gzip'
32112
32113# Search for delegates
32114# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32115set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032118if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032119 $as_echo_n "(cached) " >&6
32120else
32121 case $AutotraceDecodeDelegate in
32122 [\\/]* | ?:[\\/]*)
32123 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32124 ;;
32125 *)
32126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32127for as_dir in $PATH
32128do
32129 IFS=$as_save_IFS
32130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32133 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032135 break 2
32136 fi
32137done
cristy8b350f62009-11-15 23:12:43 +000032138 done
cristy3ed852e2009-09-05 21:47:34 +000032139IFS=$as_save_IFS
32140
32141 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32142 ;;
32143esac
32144fi
32145AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32146if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032148$as_echo "$AutotraceDecodeDelegate" >&6; }
32149else
cristy8b350f62009-11-15 23:12:43 +000032150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032151$as_echo "no" >&6; }
32152fi
32153
32154
cristy3ed852e2009-09-05 21:47:34 +000032155# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32156set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032159if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032160 $as_echo_n "(cached) " >&6
32161else
32162 case $BlenderDecodeDelegate in
32163 [\\/]* | ?:[\\/]*)
32164 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32165 ;;
32166 *)
32167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32168for as_dir in $PATH
32169do
32170 IFS=$as_save_IFS
32171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32174 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032176 break 2
32177 fi
32178done
cristy8b350f62009-11-15 23:12:43 +000032179 done
cristy3ed852e2009-09-05 21:47:34 +000032180IFS=$as_save_IFS
32181
32182 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32183 ;;
32184esac
32185fi
32186BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32187if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032189$as_echo "$BlenderDecodeDelegate" >&6; }
32190else
cristy8b350f62009-11-15 23:12:43 +000032191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192$as_echo "no" >&6; }
32193fi
32194
32195
32196# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32197set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032200if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032201 $as_echo_n "(cached) " >&6
32202else
32203 case $BZIPDelegate in
32204 [\\/]* | ?:[\\/]*)
32205 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32206 ;;
32207 *)
32208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32209for as_dir in $PATH
32210do
32211 IFS=$as_save_IFS
32212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32215 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032217 break 2
32218 fi
32219done
cristy8b350f62009-11-15 23:12:43 +000032220 done
cristy3ed852e2009-09-05 21:47:34 +000032221IFS=$as_save_IFS
32222
32223 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32224 ;;
32225esac
32226fi
32227BZIPDelegate=$ac_cv_path_BZIPDelegate
32228if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032230$as_echo "$BZIPDelegate" >&6; }
32231else
cristy8b350f62009-11-15 23:12:43 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233$as_echo "no" >&6; }
32234fi
32235
32236
32237# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32238set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032241if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032242 $as_echo_n "(cached) " >&6
32243else
32244 case $BrowseDelegate in
32245 [\\/]* | ?:[\\/]*)
32246 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32247 ;;
32248 *)
32249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32250for as_dir in $PATH
32251do
32252 IFS=$as_save_IFS
32253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32256 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032258 break 2
32259 fi
32260done
cristy8b350f62009-11-15 23:12:43 +000032261 done
cristy3ed852e2009-09-05 21:47:34 +000032262IFS=$as_save_IFS
32263
32264 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32265 ;;
32266esac
32267fi
32268BrowseDelegate=$ac_cv_path_BrowseDelegate
32269if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo "$BrowseDelegate" >&6; }
32272else
cristy8b350f62009-11-15 23:12:43 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo "no" >&6; }
32275fi
32276
32277
32278# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32279set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032282if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032283 $as_echo_n "(cached) " >&6
32284else
32285 case $CGMDecodeDelegate in
32286 [\\/]* | ?:[\\/]*)
32287 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32288 ;;
32289 *)
32290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32291for as_dir in $PATH
32292do
32293 IFS=$as_save_IFS
32294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32297 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032299 break 2
32300 fi
32301done
cristy8b350f62009-11-15 23:12:43 +000032302 done
cristy3ed852e2009-09-05 21:47:34 +000032303IFS=$as_save_IFS
32304
32305 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32306 ;;
32307esac
32308fi
32309CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32310if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312$as_echo "$CGMDecodeDelegate" >&6; }
32313else
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo "no" >&6; }
32316fi
32317
32318
32319# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32320set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032323if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032324 $as_echo_n "(cached) " >&6
32325else
32326 case $CatDelegate in
32327 [\\/]* | ?:[\\/]*)
32328 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32329 ;;
32330 *)
32331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32332for as_dir in $PATH
32333do
32334 IFS=$as_save_IFS
32335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32338 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032340 break 2
32341 fi
32342done
cristy8b350f62009-11-15 23:12:43 +000032343 done
cristy3ed852e2009-09-05 21:47:34 +000032344IFS=$as_save_IFS
32345
32346 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32347 ;;
32348esac
32349fi
32350CatDelegate=$ac_cv_path_CatDelegate
32351if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353$as_echo "$CatDelegate" >&6; }
32354else
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo "no" >&6; }
32357fi
32358
32359
32360# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32361set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032364if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032365 $as_echo_n "(cached) " >&6
32366else
32367 case $DNGDecodeDelegate in
32368 [\\/]* | ?:[\\/]*)
32369 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32370 ;;
32371 *)
32372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32373for as_dir in $PATH
32374do
32375 IFS=$as_save_IFS
32376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32379 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032381 break 2
32382 fi
32383done
cristy8b350f62009-11-15 23:12:43 +000032384 done
cristy3ed852e2009-09-05 21:47:34 +000032385IFS=$as_save_IFS
32386
32387 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32388 ;;
32389esac
32390fi
32391DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32392if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032394$as_echo "$DNGDecodeDelegate" >&6; }
32395else
cristy8b350f62009-11-15 23:12:43 +000032396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397$as_echo "no" >&6; }
32398fi
32399
32400
32401# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32402set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032405if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032406 $as_echo_n "(cached) " >&6
32407else
32408 case $GVCDecodeDelegate in
32409 [\\/]* | ?:[\\/]*)
32410 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32411 ;;
32412 *)
32413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32414for as_dir in $PATH
32415do
32416 IFS=$as_save_IFS
32417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32420 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032422 break 2
32423 fi
32424done
cristy8b350f62009-11-15 23:12:43 +000032425 done
cristy3ed852e2009-09-05 21:47:34 +000032426IFS=$as_save_IFS
32427
32428 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32429 ;;
32430esac
32431fi
32432GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32433if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032435$as_echo "$GVCDecodeDelegate" >&6; }
32436else
cristy8b350f62009-11-15 23:12:43 +000032437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438$as_echo "no" >&6; }
32439fi
32440
32441
32442# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32443set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032446if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032447 $as_echo_n "(cached) " >&6
32448else
32449 case $DVIDecodeDelegate in
32450 [\\/]* | ?:[\\/]*)
32451 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32452 ;;
32453 *)
32454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32455for as_dir in $PATH
32456do
32457 IFS=$as_save_IFS
32458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32461 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032463 break 2
32464 fi
32465done
cristy8b350f62009-11-15 23:12:43 +000032466 done
cristy3ed852e2009-09-05 21:47:34 +000032467IFS=$as_save_IFS
32468
32469 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32470 ;;
32471esac
32472fi
32473DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32474if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476$as_echo "$DVIDecodeDelegate" >&6; }
32477else
cristy8b350f62009-11-15 23:12:43 +000032478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479$as_echo "no" >&6; }
32480fi
32481
32482
32483# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32484set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032487if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032488 $as_echo_n "(cached) " >&6
32489else
32490 case $EchoDelegate in
32491 [\\/]* | ?:[\\/]*)
32492 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32493 ;;
32494 *)
32495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32496for as_dir in $PATH
32497do
32498 IFS=$as_save_IFS
32499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32502 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032504 break 2
32505 fi
32506done
cristy8b350f62009-11-15 23:12:43 +000032507 done
cristy3ed852e2009-09-05 21:47:34 +000032508IFS=$as_save_IFS
32509
32510 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32511 ;;
32512esac
32513fi
32514EchoDelegate=$ac_cv_path_EchoDelegate
32515if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517$as_echo "$EchoDelegate" >&6; }
32518else
cristy8b350f62009-11-15 23:12:43 +000032519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520$as_echo "no" >&6; }
32521fi
32522
32523
32524# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32525set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032528if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032529 $as_echo_n "(cached) " >&6
32530else
32531 case $EditorDelegate in
32532 [\\/]* | ?:[\\/]*)
32533 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32534 ;;
32535 *)
32536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32537for as_dir in $PATH
32538do
32539 IFS=$as_save_IFS
32540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32543 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032545 break 2
32546 fi
32547done
cristy8b350f62009-11-15 23:12:43 +000032548 done
cristy3ed852e2009-09-05 21:47:34 +000032549IFS=$as_save_IFS
32550
32551 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32552 ;;
32553esac
32554fi
32555EditorDelegate=$ac_cv_path_EditorDelegate
32556if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558$as_echo "$EditorDelegate" >&6; }
32559else
cristy8b350f62009-11-15 23:12:43 +000032560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561$as_echo "no" >&6; }
32562fi
32563
32564
32565# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32566set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032569if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032570 $as_echo_n "(cached) " >&6
32571else
32572 case $FIGDecodeDelegate in
32573 [\\/]* | ?:[\\/]*)
32574 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32575 ;;
32576 *)
32577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32578for as_dir in $PATH
32579do
32580 IFS=$as_save_IFS
32581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32584 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586 break 2
32587 fi
32588done
cristy8b350f62009-11-15 23:12:43 +000032589 done
cristy3ed852e2009-09-05 21:47:34 +000032590IFS=$as_save_IFS
32591
32592 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32593 ;;
32594esac
32595fi
32596FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32597if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599$as_echo "$FIGDecodeDelegate" >&6; }
32600else
cristy8b350f62009-11-15 23:12:43 +000032601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo "no" >&6; }
32603fi
32604
32605
32606# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32607set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032610if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032611 $as_echo_n "(cached) " >&6
32612else
32613 case $ConvertDelegate in
32614 [\\/]* | ?:[\\/]*)
32615 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32616 ;;
32617 *)
32618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32619for as_dir in $PATH
32620do
32621 IFS=$as_save_IFS
32622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32625 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627 break 2
32628 fi
32629done
cristy8b350f62009-11-15 23:12:43 +000032630 done
cristy3ed852e2009-09-05 21:47:34 +000032631IFS=$as_save_IFS
32632
32633 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32634 ;;
32635esac
32636fi
32637ConvertDelegate=$ac_cv_path_ConvertDelegate
32638if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640$as_echo "$ConvertDelegate" >&6; }
32641else
cristy8b350f62009-11-15 23:12:43 +000032642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo "no" >&6; }
32644fi
32645
32646
32647# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32648set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032650$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032651if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032652 $as_echo_n "(cached) " >&6
32653else
32654 case $DisplayDelegate in
32655 [\\/]* | ?:[\\/]*)
32656 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32657 ;;
32658 *)
32659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32660for as_dir in $PATH
32661do
32662 IFS=$as_save_IFS
32663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32666 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668 break 2
32669 fi
32670done
cristy8b350f62009-11-15 23:12:43 +000032671 done
cristy3ed852e2009-09-05 21:47:34 +000032672IFS=$as_save_IFS
32673
32674 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32675 ;;
32676esac
32677fi
32678DisplayDelegate=$ac_cv_path_DisplayDelegate
32679if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032681$as_echo "$DisplayDelegate" >&6; }
32682else
cristy8b350f62009-11-15 23:12:43 +000032683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo "no" >&6; }
32685fi
32686
32687
32688# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32689set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032692if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032693 $as_echo_n "(cached) " >&6
32694else
32695 case $MogrifyDelegate in
32696 [\\/]* | ?:[\\/]*)
32697 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32698 ;;
32699 *)
32700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32701for as_dir in $PATH
32702do
32703 IFS=$as_save_IFS
32704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32707 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709 break 2
32710 fi
32711done
cristy8b350f62009-11-15 23:12:43 +000032712 done
cristy3ed852e2009-09-05 21:47:34 +000032713IFS=$as_save_IFS
32714
32715 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32716 ;;
32717esac
32718fi
32719MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32720if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032722$as_echo "$MogrifyDelegate" >&6; }
32723else
cristy8b350f62009-11-15 23:12:43 +000032724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725$as_echo "no" >&6; }
32726fi
32727
32728
32729# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32730set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032733if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032734 $as_echo_n "(cached) " >&6
32735else
32736 case $GnuplotDecodeDelegate in
32737 [\\/]* | ?:[\\/]*)
32738 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32739 ;;
32740 *)
32741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32742for as_dir in $PATH
32743do
32744 IFS=$as_save_IFS
32745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32748 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750 break 2
32751 fi
32752done
cristy8b350f62009-11-15 23:12:43 +000032753 done
cristy3ed852e2009-09-05 21:47:34 +000032754IFS=$as_save_IFS
32755
32756 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32757 ;;
32758esac
32759fi
32760GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32761if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo "$GnuplotDecodeDelegate" >&6; }
32764else
cristy8b350f62009-11-15 23:12:43 +000032765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo "no" >&6; }
32767fi
32768
32769
cristy3ed852e2009-09-05 21:47:34 +000032770# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32771set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032774if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032775 $as_echo_n "(cached) " >&6
32776else
32777 case $HPGLDecodeDelegate in
32778 [\\/]* | ?:[\\/]*)
32779 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32780 ;;
32781 *)
32782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32783for as_dir in $PATH
32784do
32785 IFS=$as_save_IFS
32786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32789 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791 break 2
32792 fi
32793done
cristy8b350f62009-11-15 23:12:43 +000032794 done
cristy3ed852e2009-09-05 21:47:34 +000032795IFS=$as_save_IFS
32796
32797 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32798 ;;
32799esac
32800fi
32801HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32802if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804$as_echo "$HPGLDecodeDelegate" >&6; }
32805else
cristy8b350f62009-11-15 23:12:43 +000032806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032807$as_echo "no" >&6; }
32808fi
32809
32810
32811# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32812set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032815if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032816 $as_echo_n "(cached) " >&6
32817else
32818 case $HTMLDecodeDelegate in
32819 [\\/]* | ?:[\\/]*)
32820 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32821 ;;
32822 *)
32823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32824for as_dir in $PATH
32825do
32826 IFS=$as_save_IFS
32827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32830 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832 break 2
32833 fi
32834done
cristy8b350f62009-11-15 23:12:43 +000032835 done
cristy3ed852e2009-09-05 21:47:34 +000032836IFS=$as_save_IFS
32837
32838 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32839 ;;
32840esac
32841fi
32842HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32843if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845$as_echo "$HTMLDecodeDelegate" >&6; }
32846else
cristy8b350f62009-11-15 23:12:43 +000032847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032848$as_echo "no" >&6; }
32849fi
32850
32851
32852# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32853set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032856if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032857 $as_echo_n "(cached) " >&6
32858else
32859 case $ILBMDecodeDelegate in
32860 [\\/]* | ?:[\\/]*)
32861 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32862 ;;
32863 *)
32864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32865for as_dir in $PATH
32866do
32867 IFS=$as_save_IFS
32868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32871 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032873 break 2
32874 fi
32875done
cristy8b350f62009-11-15 23:12:43 +000032876 done
cristy3ed852e2009-09-05 21:47:34 +000032877IFS=$as_save_IFS
32878
32879 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32880 ;;
32881esac
32882fi
32883ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32884if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886$as_echo "$ILBMDecodeDelegate" >&6; }
32887else
cristy8b350f62009-11-15 23:12:43 +000032888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "no" >&6; }
32890fi
32891
32892
32893# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32894set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032897if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032898 $as_echo_n "(cached) " >&6
32899else
32900 case $ILBMEncodeDelegate in
32901 [\\/]* | ?:[\\/]*)
32902 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32903 ;;
32904 *)
32905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32906for as_dir in $PATH
32907do
32908 IFS=$as_save_IFS
32909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32912 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914 break 2
32915 fi
32916done
cristy8b350f62009-11-15 23:12:43 +000032917 done
cristy3ed852e2009-09-05 21:47:34 +000032918IFS=$as_save_IFS
32919
32920 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32921 ;;
32922esac
32923fi
32924ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32925if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo "$ILBMEncodeDelegate" >&6; }
32928else
cristy8b350f62009-11-15 23:12:43 +000032929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo "no" >&6; }
32931fi
32932
32933
32934# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32935set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032938if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032939 $as_echo_n "(cached) " >&6
32940else
32941 case $LPDelegate in
32942 [\\/]* | ?:[\\/]*)
32943 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32944 ;;
32945 *)
32946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32947for as_dir in $PATH
32948do
32949 IFS=$as_save_IFS
32950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32953 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955 break 2
32956 fi
32957done
cristy8b350f62009-11-15 23:12:43 +000032958 done
cristy3ed852e2009-09-05 21:47:34 +000032959IFS=$as_save_IFS
32960
32961 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32962 ;;
32963esac
32964fi
32965LPDelegate=$ac_cv_path_LPDelegate
32966if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968$as_echo "$LPDelegate" >&6; }
32969else
cristy8b350f62009-11-15 23:12:43 +000032970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032971$as_echo "no" >&6; }
32972fi
32973
32974
32975# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32976set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032979if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032980 $as_echo_n "(cached) " >&6
32981else
32982 case $LPRDelegate in
32983 [\\/]* | ?:[\\/]*)
32984 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32985 ;;
32986 *)
32987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32988for as_dir in $PATH
32989do
32990 IFS=$as_save_IFS
32991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32994 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996 break 2
32997 fi
32998done
cristy8b350f62009-11-15 23:12:43 +000032999 done
cristy3ed852e2009-09-05 21:47:34 +000033000IFS=$as_save_IFS
33001
33002 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33003 ;;
33004esac
33005fi
33006LPRDelegate=$ac_cv_path_LPRDelegate
33007if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo "$LPRDelegate" >&6; }
33010else
cristy8b350f62009-11-15 23:12:43 +000033011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo "no" >&6; }
33013fi
33014
33015
33016# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33017set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033020if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033021 $as_echo_n "(cached) " >&6
33022else
33023 case $LZWDecodeDelegate in
33024 [\\/]* | ?:[\\/]*)
33025 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33026 ;;
33027 *)
33028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33029for as_dir in $PATH
33030do
33031 IFS=$as_save_IFS
33032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33035 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037 break 2
33038 fi
33039done
cristy8b350f62009-11-15 23:12:43 +000033040 done
cristy3ed852e2009-09-05 21:47:34 +000033041IFS=$as_save_IFS
33042
33043 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33044 ;;
33045esac
33046fi
33047LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33048if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033050$as_echo "$LZWDecodeDelegate" >&6; }
33051else
cristy8b350f62009-11-15 23:12:43 +000033052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053$as_echo "no" >&6; }
33054fi
33055
33056
33057# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33058set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033061if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033062 $as_echo_n "(cached) " >&6
33063else
33064 case $LZWEncodeDelegate in
33065 [\\/]* | ?:[\\/]*)
33066 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33067 ;;
33068 *)
33069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33070for as_dir in $PATH
33071do
33072 IFS=$as_save_IFS
33073 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33076 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078 break 2
33079 fi
33080done
cristy8b350f62009-11-15 23:12:43 +000033081 done
cristy3ed852e2009-09-05 21:47:34 +000033082IFS=$as_save_IFS
33083
33084 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33085 ;;
33086esac
33087fi
33088LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33089if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "$LZWEncodeDelegate" >&6; }
33092else
cristy8b350f62009-11-15 23:12:43 +000033093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094$as_echo "no" >&6; }
33095fi
33096
33097
33098# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33099set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033101$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033102if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033103 $as_echo_n "(cached) " >&6
33104else
33105 case $LaunchDelegate in
33106 [\\/]* | ?:[\\/]*)
33107 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33108 ;;
33109 *)
33110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33111for as_dir in $PATH
33112do
33113 IFS=$as_save_IFS
33114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33117 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119 break 2
33120 fi
33121done
cristy8b350f62009-11-15 23:12:43 +000033122 done
cristy3ed852e2009-09-05 21:47:34 +000033123IFS=$as_save_IFS
33124
33125 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33126 ;;
33127esac
33128fi
33129LaunchDelegate=$ac_cv_path_LaunchDelegate
33130if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132$as_echo "$LaunchDelegate" >&6; }
33133else
cristy8b350f62009-11-15 23:12:43 +000033134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135$as_echo "no" >&6; }
33136fi
33137
33138
33139# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33140set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033142$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033143if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033144 $as_echo_n "(cached) " >&6
33145else
33146 case $MANDelegate in
33147 [\\/]* | ?:[\\/]*)
33148 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33149 ;;
33150 *)
33151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33152for as_dir in $PATH
33153do
33154 IFS=$as_save_IFS
33155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33158 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160 break 2
33161 fi
33162done
cristy8b350f62009-11-15 23:12:43 +000033163 done
cristy3ed852e2009-09-05 21:47:34 +000033164IFS=$as_save_IFS
33165
33166 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33167 ;;
33168esac
33169fi
33170MANDelegate=$ac_cv_path_MANDelegate
33171if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033173$as_echo "$MANDelegate" >&6; }
33174else
cristy8b350f62009-11-15 23:12:43 +000033175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176$as_echo "no" >&6; }
33177fi
33178
33179
33180# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33181set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033184if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033185 $as_echo_n "(cached) " >&6
33186else
33187 case $MPEGDecodeDelegate in
33188 [\\/]* | ?:[\\/]*)
33189 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33190 ;;
33191 *)
33192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33193for as_dir in $PATH
33194do
33195 IFS=$as_save_IFS
33196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33199 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201 break 2
33202 fi
33203done
cristy8b350f62009-11-15 23:12:43 +000033204 done
cristy3ed852e2009-09-05 21:47:34 +000033205IFS=$as_save_IFS
33206
33207 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33208 ;;
33209esac
33210fi
33211MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33212if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214$as_echo "$MPEGDecodeDelegate" >&6; }
33215else
cristy8b350f62009-11-15 23:12:43 +000033216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217$as_echo "no" >&6; }
33218fi
33219
33220
33221# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33222set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033225if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033226 $as_echo_n "(cached) " >&6
33227else
33228 case $MPEGEncodeDelegate in
33229 [\\/]* | ?:[\\/]*)
33230 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33231 ;;
33232 *)
33233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33234for as_dir in $PATH
33235do
33236 IFS=$as_save_IFS
33237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33240 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242 break 2
33243 fi
33244done
cristy8b350f62009-11-15 23:12:43 +000033245 done
cristy3ed852e2009-09-05 21:47:34 +000033246IFS=$as_save_IFS
33247
33248 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33249 ;;
33250esac
33251fi
33252MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33253if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255$as_echo "$MPEGEncodeDelegate" >&6; }
33256else
cristy8b350f62009-11-15 23:12:43 +000033257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258$as_echo "no" >&6; }
33259fi
33260
33261
cristy935c86e2010-06-05 23:50:07 +000033262# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33263set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033266if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033267 $as_echo_n "(cached) " >&6
33268else
33269 case $MrSIDDecodeDelegate in
33270 [\\/]* | ?:[\\/]*)
33271 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33272 ;;
33273 *)
33274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33275for as_dir in $PATH
33276do
33277 IFS=$as_save_IFS
33278 test -z "$as_dir" && as_dir=.
33279 for ac_exec_ext in '' $ac_executable_extensions; do
33280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33281 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33283 break 2
33284 fi
33285done
33286 done
33287IFS=$as_save_IFS
33288
33289 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33290 ;;
33291esac
33292fi
33293MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33294if test -n "$MrSIDDecodeDelegate"; then
33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33296$as_echo "$MrSIDDecodeDelegate" >&6; }
33297else
33298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33299$as_echo "no" >&6; }
33300fi
33301
33302
cristy3ed852e2009-09-05 21:47:34 +000033303# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33304set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033307if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033308 $as_echo_n "(cached) " >&6
33309else
33310 case $MVDelegate in
33311 [\\/]* | ?:[\\/]*)
33312 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33313 ;;
33314 *)
33315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33316for as_dir in $PATH
33317do
33318 IFS=$as_save_IFS
33319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33322 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324 break 2
33325 fi
33326done
cristy8b350f62009-11-15 23:12:43 +000033327 done
cristy3ed852e2009-09-05 21:47:34 +000033328IFS=$as_save_IFS
33329
33330 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33331 ;;
33332esac
33333fi
33334MVDelegate=$ac_cv_path_MVDelegate
33335if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo "$MVDelegate" >&6; }
33338else
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "no" >&6; }
33341fi
33342
33343
33344# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33345set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033347$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033348if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033349 $as_echo_n "(cached) " >&6
33350else
33351 case $PCLDelegate in
33352 [\\/]* | ?:[\\/]*)
33353 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33354 ;;
33355 *)
33356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33357for as_dir in $PATH
33358do
33359 IFS=$as_save_IFS
33360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33363 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365 break 2
33366 fi
33367done
cristy8b350f62009-11-15 23:12:43 +000033368 done
cristy3ed852e2009-09-05 21:47:34 +000033369IFS=$as_save_IFS
33370
33371 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33372 ;;
33373esac
33374fi
33375PCLDelegate=$ac_cv_path_PCLDelegate
33376if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378$as_echo "$PCLDelegate" >&6; }
33379else
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "no" >&6; }
33382fi
33383
33384
33385# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33386set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033389if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033390 $as_echo_n "(cached) " >&6
33391else
33392 case $PGPDecodeDelegate in
33393 [\\/]* | ?:[\\/]*)
33394 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33395 ;;
33396 *)
33397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33398for as_dir in $PATH
33399do
33400 IFS=$as_save_IFS
33401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33404 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033406 break 2
33407 fi
33408done
cristy8b350f62009-11-15 23:12:43 +000033409 done
cristy3ed852e2009-09-05 21:47:34 +000033410IFS=$as_save_IFS
33411
33412 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33413 ;;
33414esac
33415fi
33416PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33417if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033419$as_echo "$PGPDecodeDelegate" >&6; }
33420else
cristy8b350f62009-11-15 23:12:43 +000033421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422$as_echo "no" >&6; }
33423fi
33424
33425
33426# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33427set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033430if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033431 $as_echo_n "(cached) " >&6
33432else
33433 case $POVDelegate in
33434 [\\/]* | ?:[\\/]*)
33435 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33436 ;;
33437 *)
33438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33439for as_dir in $PATH
33440do
33441 IFS=$as_save_IFS
33442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33445 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447 break 2
33448 fi
33449done
cristy8b350f62009-11-15 23:12:43 +000033450 done
cristy3ed852e2009-09-05 21:47:34 +000033451IFS=$as_save_IFS
33452
33453 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33454 ;;
33455esac
33456fi
33457POVDelegate=$ac_cv_path_POVDelegate
33458if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460$as_echo "$POVDelegate" >&6; }
33461else
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "no" >&6; }
33464fi
33465
33466
33467for ac_prog in gsx gsc "$PSDelegateDefault"
33468do
33469 # Extract the first word of "$ac_prog", so it can be a program name with args.
33470set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033473if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033474 $as_echo_n "(cached) " >&6
33475else
33476 case $PSDelegate in
33477 [\\/]* | ?:[\\/]*)
33478 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33479 ;;
33480 *)
33481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33482for as_dir in $PATH
33483do
33484 IFS=$as_save_IFS
33485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33488 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490 break 2
33491 fi
33492done
cristy8b350f62009-11-15 23:12:43 +000033493 done
cristy3ed852e2009-09-05 21:47:34 +000033494IFS=$as_save_IFS
33495
33496 ;;
33497esac
33498fi
33499PSDelegate=$ac_cv_path_PSDelegate
33500if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo "$PSDelegate" >&6; }
33503else
cristy8b350f62009-11-15 23:12:43 +000033504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505$as_echo "no" >&6; }
33506fi
33507
33508
33509 test -n "$PSDelegate" && break
33510done
33511test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33512
33513# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33514set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033517if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033518 $as_echo_n "(cached) " >&6
33519else
33520 case $RLEEncodeDelegate in
33521 [\\/]* | ?:[\\/]*)
33522 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33523 ;;
33524 *)
33525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33526for as_dir in $PATH
33527do
33528 IFS=$as_save_IFS
33529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33532 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033534 break 2
33535 fi
33536done
cristy8b350f62009-11-15 23:12:43 +000033537 done
cristy3ed852e2009-09-05 21:47:34 +000033538IFS=$as_save_IFS
33539
33540 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33541 ;;
33542esac
33543fi
33544RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33545if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo "$RLEEncodeDelegate" >&6; }
33548else
cristy8b350f62009-11-15 23:12:43 +000033549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550$as_echo "no" >&6; }
33551fi
33552
33553
33554# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33555set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033558if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033559 $as_echo_n "(cached) " >&6
33560else
33561 case $RMDelegate in
33562 [\\/]* | ?:[\\/]*)
33563 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33564 ;;
33565 *)
33566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33567for as_dir in $PATH
33568do
33569 IFS=$as_save_IFS
33570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33573 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033575 break 2
33576 fi
33577done
cristy8b350f62009-11-15 23:12:43 +000033578 done
cristy3ed852e2009-09-05 21:47:34 +000033579IFS=$as_save_IFS
33580
33581 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33582 ;;
33583esac
33584fi
33585RMDelegate=$ac_cv_path_RMDelegate
33586if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo "$RMDelegate" >&6; }
33589else
cristy8b350f62009-11-15 23:12:43 +000033590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591$as_echo "no" >&6; }
33592fi
33593
33594
cristy4689cf02010-02-17 21:15:45 +000033595# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33596set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033599if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033600 $as_echo_n "(cached) " >&6
33601else
33602 case $RSVGDecodeDelegate in
33603 [\\/]* | ?:[\\/]*)
33604 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33605 ;;
33606 *)
33607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33608for as_dir in $PATH
33609do
33610 IFS=$as_save_IFS
33611 test -z "$as_dir" && as_dir=.
33612 for ac_exec_ext in '' $ac_executable_extensions; do
33613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33614 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33616 break 2
33617 fi
33618done
33619 done
33620IFS=$as_save_IFS
33621
33622 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33623 ;;
33624esac
33625fi
33626RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33627if test -n "$RSVGDecodeDelegate"; then
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33629$as_echo "$RSVGDecodeDelegate" >&6; }
33630else
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33632$as_echo "no" >&6; }
33633fi
33634
33635
cristy3ed852e2009-09-05 21:47:34 +000033636# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33637set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033640if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033641 $as_echo_n "(cached) " >&6
33642else
33643 case $SCANDecodeDelegate in
33644 [\\/]* | ?:[\\/]*)
33645 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33646 ;;
33647 *)
33648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33649for as_dir in $PATH
33650do
33651 IFS=$as_save_IFS
33652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33655 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657 break 2
33658 fi
33659done
cristy8b350f62009-11-15 23:12:43 +000033660 done
cristy3ed852e2009-09-05 21:47:34 +000033661IFS=$as_save_IFS
33662
33663 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33664 ;;
33665esac
33666fi
33667SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33668if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "$SCANDecodeDelegate" >&6; }
33671else
cristy8b350f62009-11-15 23:12:43 +000033672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033673$as_echo "no" >&6; }
33674fi
33675
33676
33677# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33678set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033681if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033682 $as_echo_n "(cached) " >&6
33683else
33684 case $TXTDelegate in
33685 [\\/]* | ?:[\\/]*)
33686 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33687 ;;
33688 *)
33689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33690for as_dir in $PATH
33691do
33692 IFS=$as_save_IFS
33693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33696 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698 break 2
33699 fi
33700done
cristy8b350f62009-11-15 23:12:43 +000033701 done
cristy3ed852e2009-09-05 21:47:34 +000033702IFS=$as_save_IFS
33703
33704 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33705 ;;
33706esac
33707fi
33708TXTDelegate=$ac_cv_path_TXTDelegate
33709if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033711$as_echo "$TXTDelegate" >&6; }
33712else
cristy8b350f62009-11-15 23:12:43 +000033713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714$as_echo "no" >&6; }
33715fi
33716
33717
cristy5ac9ac82010-07-29 13:24:24 +000033718# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33719set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033722if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033723 $as_echo_n "(cached) " >&6
33724else
33725 case $UniconvertorDelegate in
33726 [\\/]* | ?:[\\/]*)
33727 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33728 ;;
33729 *)
33730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33731for as_dir in $PATH
33732do
33733 IFS=$as_save_IFS
33734 test -z "$as_dir" && as_dir=.
33735 for ac_exec_ext in '' $ac_executable_extensions; do
33736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33737 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33739 break 2
33740 fi
33741done
33742 done
33743IFS=$as_save_IFS
33744
33745 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33746 ;;
33747esac
33748fi
33749UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33750if test -n "$UniconvertorDelegate"; then
33751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33752$as_echo "$UniconvertorDelegate" >&6; }
33753else
33754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33755$as_echo "no" >&6; }
33756fi
33757
33758
cristy3ed852e2009-09-05 21:47:34 +000033759# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33760set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033763if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033764 $as_echo_n "(cached) " >&6
33765else
33766 case $WMFDecodeDelegate in
33767 [\\/]* | ?:[\\/]*)
33768 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33769 ;;
33770 *)
33771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33772for as_dir in $PATH
33773do
33774 IFS=$as_save_IFS
33775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33778 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780 break 2
33781 fi
33782done
cristy8b350f62009-11-15 23:12:43 +000033783 done
cristy3ed852e2009-09-05 21:47:34 +000033784IFS=$as_save_IFS
33785
33786 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33787 ;;
33788esac
33789fi
33790WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33791if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "$WMFDecodeDelegate" >&6; }
33794else
cristy8b350f62009-11-15 23:12:43 +000033795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796$as_echo "no" >&6; }
33797fi
33798
33799
33800# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33801set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033803$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033804if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033805 $as_echo_n "(cached) " >&6
33806else
33807 case $WWWDecodeDelegate in
33808 [\\/]* | ?:[\\/]*)
33809 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33810 ;;
33811 *)
33812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33813for as_dir in $PATH
33814do
33815 IFS=$as_save_IFS
33816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33819 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033821 break 2
33822 fi
33823done
cristy8b350f62009-11-15 23:12:43 +000033824 done
cristy3ed852e2009-09-05 21:47:34 +000033825IFS=$as_save_IFS
33826
33827 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33828 ;;
33829esac
33830fi
33831WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33832if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo "$WWWDecodeDelegate" >&6; }
33835else
cristy8b350f62009-11-15 23:12:43 +000033836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837$as_echo "no" >&6; }
33838fi
33839
33840
33841# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33842set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033845if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033846 $as_echo_n "(cached) " >&6
33847else
33848 case $XPSDelegate in
33849 [\\/]* | ?:[\\/]*)
33850 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33851 ;;
33852 *)
33853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33854for as_dir in $PATH
33855do
33856 IFS=$as_save_IFS
33857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33860 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033862 break 2
33863 fi
33864done
cristy8b350f62009-11-15 23:12:43 +000033865 done
cristy3ed852e2009-09-05 21:47:34 +000033866IFS=$as_save_IFS
33867
33868 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33869 ;;
33870esac
33871fi
33872XPSDelegate=$ac_cv_path_XPSDelegate
33873if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo "$XPSDelegate" >&6; }
33876else
cristy8b350f62009-11-15 23:12:43 +000033877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033878$as_echo "no" >&6; }
33879fi
33880
33881
33882# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33883set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033886if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033887 $as_echo_n "(cached) " >&6
33888else
33889 case $ZipDelegate in
33890 [\\/]* | ?:[\\/]*)
33891 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33892 ;;
33893 *)
33894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33895for as_dir in $PATH
33896do
33897 IFS=$as_save_IFS
33898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33901 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903 break 2
33904 fi
33905done
cristy8b350f62009-11-15 23:12:43 +000033906 done
cristy3ed852e2009-09-05 21:47:34 +000033907IFS=$as_save_IFS
33908
33909 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33910 ;;
33911esac
33912fi
33913ZipDelegate=$ac_cv_path_ZipDelegate
33914if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "$ZipDelegate" >&6; }
33917else
cristy8b350f62009-11-15 23:12:43 +000033918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033919$as_echo "no" >&6; }
33920fi
33921
33922
33923
33924# Prefer lpr to lp; lp needs options tacked on.
33925if test "$LPRDelegate" != no; then
33926 PrintDelegate="$LPRDelegate"
33927else
33928 PrintDelegate="$LPDelegate -c -s"
33929fi
33930
33931
33932# Installed ImageMagick utiltity paths
33933ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33934DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33935MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33936
33937# Set delegate booleans
33938have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33939have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33940have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33941have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33942have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033943have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033944have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33945have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033946have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33947have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33948
33949#
33950# Test for font directories
33951#
33952type_include_files=''
33953
cristy430a7312010-01-21 20:44:04 +000033954# Dejavu fonts.
33955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33956$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33957dejavu_font_dir=''
33958if test "${with_dejavu_font_dir}" != 'default'; then
33959 dejavu_font_dir="${with_dejavu_font_dir}/"
33960else
33961 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33962 if test -f "${font_dir}DejaVuSerif.ttf"; then
33963 dejavu_font_dir="${font_dir}"
33964 break 1
33965 fi
33966 done
33967fi
33968if test "${dejavu_font_dir}x" != 'x'; then
33969 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033970 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33971$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033972else
cristy09b53e12011-10-14 12:47:22 +000033973 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33974$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033975fi
33976
33977
cristy3ed852e2009-09-05 21:47:34 +000033978# Windows
33979windows_font_dir=''
33980if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33981 windows_font_dir="${with_windows_font_dir}/"
33982fi
cristy430a7312010-01-21 20:44:04 +000033983if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033984 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33985 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33986 fi
33987 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33988 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33989 fi
33990 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33991 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33992 fi
33993fi
cristy430a7312010-01-21 20:44:04 +000033994if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033995 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33996fi
33997
33998
33999# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034001$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34002ghostscript_font_dir=''
34003if test "${with_gs_font_dir}" != 'default'; then
34004 ghostscript_font_dir="${with_gs_font_dir}/"
34005else
34006 if test "${native_win32_build}" = 'yes'; then
34007 # Native Windows Build
34008 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34009 if test -f "${font_dir}a010013l.pfb"; then
34010 ghostscript_font_dir="$font_dir"
34011 break 1
34012 fi
34013 done
34014 if test "${PSDelegate}" != 'gswin32c'; then
34015 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34016 fi
34017 else
34018 # Linux / Mac OS X / Unix Build
34019 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
34020 if test -f "${font_dir}a010013l.pfb"; then
34021 ghostscript_font_dir="${font_dir}"
34022 break 1
34023 fi
34024 done
34025 if test "${ghostscript_font_dir}x" = 'x'; then
34026 if test "$PSDelegate" != 'gs'; then
34027 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34028 fi
34029 fi
34030 fi
34031fi
34032if test "${ghostscript_font_dir}x" != 'x'; then
34033 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034034 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34035$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034036else
cristy09b53e12011-10-14 12:47:22 +000034037 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34038$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034039fi
34040
34041case "${build_os}" in
34042 mingw* )
34043 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34044 ;;
34045esac
34046
34047
34048
34049#
34050# Handle case where user doesn't want frozen paths
34051#
34052if test "$with_frozenpaths" != 'yes'; then
34053 # Re-set delegate definitions to default (no paths)
34054 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034055 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34056 BZIPDelegate="$BZIPDelegateDefault"
34057 BrowseDelegate="$BrowseDelegateDefault"
34058 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34059 CatDelegate="$CatDelegateDefault"
34060 ConvertDelegate="$ConvertDelegateDefault"
34061 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34062 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34063 EchoDelegate="$EchoDelegateDefault"
34064 EditorDelegate="$EditorDelegateDefault"
34065 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34066 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34067 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34068 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34069 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34070 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34071 LPDelegate="$LPDelegateDefault"
34072 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34073 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34074 LaunchDelegate="$LaunchDelegateDefault"
34075 MANDelegate="$MANDelegateDefault"
34076 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34077 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034078 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034079 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34080 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034081 PCLDelegate="$PCLDelegateDefault"
34082 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34083 POVDelegate="$POVDelegateDefault"
34084 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034085 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34086 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034087 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034088 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34089 ShowImageDelegate="$ShowImageDelegateDefault"
34090 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034091 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034092 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34093 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34094 XPSDelegate="$XPSDelegateDefault"
34095 ZipDelegate="$ZipDelegateDefault"
34096fi
34097
34098# Delegate substitutions
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141#
34142# RPM support.
34143#
34144RPM=''
34145for ac_prog in gnutar gtar tar
34146do
34147 # Extract the first word of "$ac_prog", so it can be a program name with args.
34148set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034151if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034152 $as_echo_n "(cached) " >&6
34153else
34154 if test -n "$TAR"; then
34155 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34156else
34157as_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_prog_TAR="$ac_prog"
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
34172fi
34173fi
34174TAR=$ac_cv_prog_TAR
34175if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177$as_echo "$TAR" >&6; }
34178else
cristy8b350f62009-11-15 23:12:43 +000034179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180$as_echo "no" >&6; }
34181fi
34182
34183
34184 test -n "$TAR" && break
34185done
34186
34187for ac_prog in perl
34188do
34189 # Extract the first word of "$ac_prog", so it can be a program name with args.
34190set dummy $ac_prog; 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_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034194 $as_echo_n "(cached) " >&6
34195else
34196 if test -n "$PERL"; then
34197 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34198else
34199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34200for as_dir in $PATH
34201do
34202 IFS=$as_save_IFS
34203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34206 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034208 break 2
34209 fi
34210done
cristy8b350f62009-11-15 23:12:43 +000034211 done
cristy3ed852e2009-09-05 21:47:34 +000034212IFS=$as_save_IFS
34213
34214fi
34215fi
34216PERL=$ac_cv_prog_PERL
34217if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034219$as_echo "$PERL" >&6; }
34220else
cristy8b350f62009-11-15 23:12:43 +000034221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034222$as_echo "no" >&6; }
34223fi
34224
34225
34226 test -n "$PERL" && break
34227done
34228
34229for ac_prog in rpmbuild rpm
34230do
34231 # Extract the first word of "$ac_prog", so it can be a program name with args.
34232set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034235if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034236 $as_echo_n "(cached) " >&6
34237else
34238 if test -n "$RPM"; then
34239 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34240else
34241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34242for as_dir in $PATH
34243do
34244 IFS=$as_save_IFS
34245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34248 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034250 break 2
34251 fi
34252done
cristy8b350f62009-11-15 23:12:43 +000034253 done
cristy3ed852e2009-09-05 21:47:34 +000034254IFS=$as_save_IFS
34255
34256fi
34257fi
34258RPM=$ac_cv_prog_RPM
34259if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034261$as_echo "$RPM" >&6; }
34262else
cristy8b350f62009-11-15 23:12:43 +000034263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264$as_echo "no" >&6; }
34265fi
34266
34267
34268 test -n "$RPM" && break
34269done
34270
34271
cristy73bd4a52010-10-05 11:24:23 +000034272ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34273
34274
34275AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34276
34277
34278AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34279
34280
34281AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34282
34283
34284 if test "x$RPM" != "x" ; then
34285 RPM_DELEGATE_TRUE=
34286 RPM_DELEGATE_FALSE='#'
34287else
34288 RPM_DELEGATE_TRUE='#'
34289 RPM_DELEGATE_FALSE=
34290fi
34291
cristy3ed852e2009-09-05 21:47:34 +000034292
34293#
34294# 7ZIP support (http://p7zip.sourceforge.net/)
34295#
34296P7ZIP=''
34297for ac_prog in 7za
34298do
34299 # Extract the first word of "$ac_prog", so it can be a program name with args.
34300set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034303if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034304 $as_echo_n "(cached) " >&6
34305else
34306 if test -n "$P7ZIP"; then
34307 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34308else
34309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34310for as_dir in $PATH
34311do
34312 IFS=$as_save_IFS
34313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34316 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034318 break 2
34319 fi
34320done
cristy8b350f62009-11-15 23:12:43 +000034321 done
cristy3ed852e2009-09-05 21:47:34 +000034322IFS=$as_save_IFS
34323
34324fi
34325fi
34326P7ZIP=$ac_cv_prog_P7ZIP
34327if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034329$as_echo "$P7ZIP" >&6; }
34330else
cristy8b350f62009-11-15 23:12:43 +000034331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034332$as_echo "no" >&6; }
34333fi
34334
34335
34336 test -n "$P7ZIP" && break
34337done
34338
34339
cristy73bd4a52010-10-05 11:24:23 +000034340 if test "x$P7ZIP" != "x" ; then
34341 P7ZIP_DELEGATE_TRUE=
34342 P7ZIP_DELEGATE_FALSE='#'
34343else
34344 P7ZIP_DELEGATE_TRUE='#'
34345 P7ZIP_DELEGATE_FALSE=
34346fi
34347
cristy3ed852e2009-09-05 21:47:34 +000034348
34349#
34350# ZIP support (http://www.info-zip.org/Zip.html)
34351#
34352ZIP=''
34353for ac_prog in zip
34354do
34355 # Extract the first word of "$ac_prog", so it can be a program name with args.
34356set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034359if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034360 $as_echo_n "(cached) " >&6
34361else
34362 if test -n "$ZIP"; then
34363 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34364else
34365as_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_prog_ZIP="$ac_prog"
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
34380fi
34381fi
34382ZIP=$ac_cv_prog_ZIP
34383if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034385$as_echo "$ZIP" >&6; }
34386else
cristy8b350f62009-11-15 23:12:43 +000034387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034388$as_echo "no" >&6; }
34389fi
34390
34391
34392 test -n "$ZIP" && break
34393done
34394
34395
cristy73bd4a52010-10-05 11:24:23 +000034396 if test "x$ZIP" != "x" ; then
34397 ZIP_DELEGATE_TRUE=
34398 ZIP_DELEGATE_FALSE='#'
34399else
34400 ZIP_DELEGATE_TRUE='#'
34401 ZIP_DELEGATE_FALSE=
34402fi
34403
cristy3ed852e2009-09-05 21:47:34 +000034404
34405#
34406# GhostPCL related configuration.
34407#
34408PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034409PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034410PCLMonoDevice=pbmraw
34411if test -z "$PCLVersion"; then
34412 PCLVersion='unknown'
34413fi
34414if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034415 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34416$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034418$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034419 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34420$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034421 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034423$as_echo_n "checking for pcl color device... " >&6; }
34424 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34425 :
34426 else
34427 PCLColorDevice=ppmraw
34428 fi
cristy09b53e12011-10-14 12:47:22 +000034429 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34430$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034431
34432 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034434$as_echo_n "checking for pcl CMYK device... " >&6; }
34435 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34436 :
34437 else
34438 PCLCMYKDevice=$PCLColorDevice
34439 fi
cristy09b53e12011-10-14 12:47:22 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34441$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034442
34443 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034445$as_echo_n "checking for pcl mono device... " >&6; }
34446 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34447 :
34448 else
34449 PCLMonoDevice=$PCLColorDevice
34450 fi
cristy09b53e12011-10-14 12:47:22 +000034451 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34452$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034453fi
34454
34455
34456
34457
34458
34459
34460#
34461# GhostXPS related configuration.
34462#
34463XPSColorDevice=ppmraw
34464XPSCMYKDevice=bmpsep8
34465XPSMonoDevice=pbmraw
34466if test -z "$XPSVersion"; then
34467 XPSVersion='unknown'
34468fi
34469if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034470 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34471$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034473$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034474 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34475$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034476 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034478$as_echo_n "checking for xps color device... " >&6; }
34479 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34480 :
34481 else
34482 XPSColorDevice=ppmraw
34483 fi
cristy09b53e12011-10-14 12:47:22 +000034484 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34485$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034486
34487 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034489$as_echo_n "checking for xps CMYK device... " >&6; }
34490 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34491 :
34492 else
34493 XPSCMYKDevice=$XPSColorDevice
34494 fi
cristy09b53e12011-10-14 12:47:22 +000034495 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34496$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034497
34498 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034500$as_echo_n "checking for xps mono device... " >&6; }
34501 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34502 :
34503 else
34504 XPSMonoDevice=$XPSColorDevice
34505 fi
cristy09b53e12011-10-14 12:47:22 +000034506 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34507$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034508fi
34509
34510
34511
34512
34513
34514
34515#
34516# Ghostscript related configuration.
34517#
cristya97426c2011-02-04 01:41:27 +000034518GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034519GSColorDevice=pnmraw
34520GSCMYKDevice=pam
34521GSMonoDevice=pbmraw
34522GSPDFDevice=pdfwrite
34523GSPSDevice=pswrite
34524GSEPSDevice=epswrite
34525GSVersion='unknown'
34526if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034527 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34528$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034530$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034531 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34532$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034534$as_echo_n "checking for Ghostscript version... " >&6; }
34535 if GSVersion=`$PSDelegate --version`; then
34536 :
34537 else
34538 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34539 fi
cristy09b53e12011-10-14 12:47:22 +000034540 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34541$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034542
34543 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034545$as_echo_n "checking for gs alpha device... " >&6; }
34546 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34547 :
34548 else
34549 GSAlphaDevice=pnmraw
34550 fi
cristy09b53e12011-10-14 12:47:22 +000034551 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34552$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034553
34554 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034556$as_echo_n "checking for gs color device... " >&6; }
34557 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34558 :
34559 else
34560 GSColorDevice=pnmraw
34561 fi
cristy09b53e12011-10-14 12:47:22 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34563$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034564
34565 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034567$as_echo_n "checking for gs CMYK device... " >&6; }
34568 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34569 :
34570 else
34571 GSCMYKDevice=bmpsep8
34572 fi
cristy09b53e12011-10-14 12:47:22 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34574$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034575
34576 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034578$as_echo_n "checking for gs mono device... " >&6; }
34579 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34580 :
34581 else
34582 GSMonoDevice=$GSColorDevice
34583 fi
cristy09b53e12011-10-14 12:47:22 +000034584 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34585$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034586
34587 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034589$as_echo_n "checking for gs PDF writing device... " >&6; }
34590 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34591 :
34592 else
34593 GSPDFDevice=nodevice
34594 fi
cristy09b53e12011-10-14 12:47:22 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34596$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034597
34598 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034600$as_echo_n "checking for gs PS writing device... " >&6; }
34601 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34602 :
34603 else
34604 GSPSDevice=nodevice
34605 fi
cristy09b53e12011-10-14 12:47:22 +000034606 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34607$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034608
34609 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034611$as_echo_n "checking for gs EPS writing device... " >&6; }
34612 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34613 :
34614 else
34615 GSEPSDevice=nodevice
34616 fi
cristy09b53e12011-10-14 12:47:22 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34618$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034619fi
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630#
34631# PerlMagick-related configuration
34632#
34633
34634# Look for PERL if PerlMagick requested
34635# If name/path of desired PERL interpreter is specified, look for that one first
34636have_perl='no'
34637if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034638 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34639$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034641$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034642 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34643$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034644 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034647if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034648 $as_echo_n "(cached) " >&6
34649else
34650 ac_cv_path_PERL="$with_perl"
34651fi
cristy8b350f62009-11-15 23:12:43 +000034652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034653$as_echo "$ac_cv_path_PERL" >&6; };
34654 PERL=$ac_cv_path_PERL
34655 have_perl="$ac_cv_path_PERL"
34656 else
34657 for ac_prog in perl perl5
34658do
34659 # Extract the first word of "$ac_prog", so it can be a program name with args.
34660set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034663if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034664 $as_echo_n "(cached) " >&6
34665else
34666 case $PERL in
34667 [\\/]* | ?:[\\/]*)
34668 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34669 ;;
34670 *)
34671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34672for as_dir in $PATH
34673do
34674 IFS=$as_save_IFS
34675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34678 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034680 break 2
34681 fi
34682done
cristy8b350f62009-11-15 23:12:43 +000034683 done
cristy3ed852e2009-09-05 21:47:34 +000034684IFS=$as_save_IFS
34685
34686 ;;
34687esac
34688fi
34689PERL=$ac_cv_path_PERL
34690if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034692$as_echo "$PERL" >&6; }
34693else
cristy8b350f62009-11-15 23:12:43 +000034694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695$as_echo "no" >&6; }
34696fi
34697
34698
34699 test -n "$PERL" && break
34700done
34701 if test "$ac_cv_path_PERL"; then
34702 have_perl="$ac_cv_path_PERL"
34703 fi
34704 fi
34705fi
34706
cristy949301e2010-01-06 01:38:40 +000034707if test "$with_perl" != 'yes' ; then
34708 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34709fi
34710
34711PERL_SUPPORTS_DESTDIR='no'
34712
cristy3ed852e2009-09-05 21:47:34 +000034713with_perl_static='no'
34714with_perl_dynamic='no'
34715if test "$have_perl" != 'no'; then
34716 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34717 with_perl_static='yes'
34718 fi
34719 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34720 with_perl_dynamic='yes'
34721 fi
34722 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034723
34724
34725
34726
34727 if test -n "$PERL"; then :
34728
34729 ax_perl_version="5.8.1"
34730
34731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34732$as_echo_n "checking for perl version... " >&6; }
34733
34734 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34735
34736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34737$as_echo "$perl_version" >&6; }
34738
34739 PERL_VERSION=$perl_version
34740
34741
34742
34743
34744
34745 # Used to indicate true or false condition
34746 ax_compare_version=false
34747
34748 # Convert the two version strings to be compared into a format that
34749 # allows a simple string comparison. The end result is that a version
34750 # string of the form 1.12.5-r617 will be converted to the form
34751 # 0001001200050617. In other words, each number is zero padded to four
34752 # digits, and non digits are removed.
34753
34754 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34755 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34756 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34757 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34758 -e 's/[^0-9]//g'`
34759
34760
34761 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34762 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34763 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34764 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34765 -e 's/[^0-9]//g'`
34766
34767
34768 ax_compare_version=`echo "x$ax_compare_version_A
34769x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34770
34771
34772
34773 if test "$ax_compare_version" = "true" ; then
34774
34775 :
34776 PERL_SUPPORTS_DESTDIR='yes'
34777
34778 else
34779 :
34780 PERL_SUPPORTS_DESTDIR='no'
34781
34782 fi
34783
34784
34785else
34786
34787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34788$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34789 PERL_SUPPORTS_DESTDIR='no'
34790
cristy3ed852e2009-09-05 21:47:34 +000034791fi
cristy73bd4a52010-10-05 11:24:23 +000034792
34793fi
34794 if test "$have_perl" != 'no'; then
34795 WITH_PERL_TRUE=
34796 WITH_PERL_FALSE='#'
34797else
34798 WITH_PERL_TRUE='#'
34799 WITH_PERL_FALSE=
34800fi
34801
34802 if test $with_perl_static = 'yes'; then
34803 WITH_PERL_STATIC_TRUE=
34804 WITH_PERL_STATIC_FALSE='#'
34805else
34806 WITH_PERL_STATIC_TRUE='#'
34807 WITH_PERL_STATIC_FALSE=
34808fi
34809
34810 if test $with_perl_dynamic = 'yes'; then
34811 WITH_PERL_DYNAMIC_TRUE=
34812 WITH_PERL_DYNAMIC_FALSE='#'
34813else
34814 WITH_PERL_DYNAMIC_TRUE='#'
34815 WITH_PERL_DYNAMIC_FALSE=
34816fi
34817
cristy3ed852e2009-09-05 21:47:34 +000034818
34819
34820# Determine path to pick up MagickCore library from for use with building PerlMagick
34821MAGICKCORE_PATH="${LIB_DIR}"
34822if test $with_perl_static = 'yes'; then
34823 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34824 libtool_objdir=$objdir
34825
34826 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034827 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034828fi
34829
34830
34831# Create a simple string containing format names for all delegate libraries
34832DELEGATES=''
34833if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34834if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34835if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34836if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34837if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34838if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34839if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34840if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34841if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34842if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34843if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34844if test "$have_jpeg" = 'yes'; then
34845 DELEGATES="$DELEGATES jpeg";
34846 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34847fi
34848if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034849if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034850if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34851if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034852if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034853if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34854if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34855if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34856if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34857if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34858if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34859if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34860if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34861if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34862
34863
34864
34865#
34866# Handle special compiler flags
34867#
34868
34869# Add '-p' if prof source profiling support enabled
34870if test "$enable_prof" = 'yes'; then
34871 CFLAGS="-p $CFLAGS"
34872 CXXFLAGS="-p $CXXFLAGS"
34873 LDFLAGS="-p $LDFLAGS"
34874fi
34875
34876# Add '-pg' if gprof source profiling support enabled
34877if test "$enable_gprof" = 'yes'; then
34878 CFLAGS="-pg $CFLAGS"
34879 CXXFLAGS="-pg $CXXFLAGS"
34880 LDFLAGS="-pg $LDFLAGS"
34881fi
34882
34883# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34884# This is a gcc-specific feature
34885if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034888if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034889 $as_echo_n "(cached) " >&6
34890else
34891 ac_check_lib_save_LIBS=$LIBS
34892LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034894/* end confdefs.h. */
34895
34896/* Override any GCC internal prototype to avoid an error.
34897 Use char because int might match the return type of a GCC
34898 builtin and then its argument prototype would still apply. */
34899#ifdef __cplusplus
34900extern "C"
34901#endif
34902char _gcov_init ();
34903int
34904main ()
34905{
34906return _gcov_init ();
34907 ;
34908 return 0;
34909}
34910_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034911if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034912 ac_cv_lib_gcov__gcov_init=yes
34913else
cristy8b350f62009-11-15 23:12:43 +000034914 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034915fi
cristy8b350f62009-11-15 23:12:43 +000034916rm -f core conftest.err conftest.$ac_objext \
34917 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034918LIBS=$ac_check_lib_save_LIBS
34919fi
cristy8b350f62009-11-15 23:12:43 +000034920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034921$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034922if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034923 cat >>confdefs.h <<_ACEOF
34924#define HAVE_LIBGCOV 1
34925_ACEOF
34926
34927 LIBS="-lgcov $LIBS"
34928
34929fi
34930
cristy8b350f62009-11-15 23:12:43 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034932$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034933if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034934 $as_echo_n "(cached) " >&6
34935else
34936 ac_check_lib_save_LIBS=$LIBS
34937LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034939/* end confdefs.h. */
34940
34941/* Override any GCC internal prototype to avoid an error.
34942 Use char because int might match the return type of a GCC
34943 builtin and then its argument prototype would still apply. */
34944#ifdef __cplusplus
34945extern "C"
34946#endif
34947char __gcov_init ();
34948int
34949main ()
34950{
34951return __gcov_init ();
34952 ;
34953 return 0;
34954}
34955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034957 ac_cv_lib_gcov___gcov_init=yes
34958else
cristy8b350f62009-11-15 23:12:43 +000034959 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034960fi
cristy8b350f62009-11-15 23:12:43 +000034961rm -f core conftest.err conftest.$ac_objext \
34962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034963LIBS=$ac_check_lib_save_LIBS
34964fi
cristy8b350f62009-11-15 23:12:43 +000034965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034966$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034967if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034968 cat >>confdefs.h <<_ACEOF
34969#define HAVE_LIBGCOV 1
34970_ACEOF
34971
34972 LIBS="-lgcov $LIBS"
34973
34974fi
34975
34976 case "$target_os" in
34977 darwin*)
34978 OSX_GCOV_LDFLAG="-Wl,-single_module"
34979 ;;
34980 *)
34981 OSX_GCOV_LDFLAG=""
34982 ;;
34983 esac
34984
34985 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34986 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34987 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34988fi
34989
34990#
34991# Build library dependency list for libMagickCore
34992#
34993
34994MAGICK_LIBLTDL='' # Libltdl for build
34995MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34996MAGICK_LTDLDEPS='' # extra libltdl dependencies
34997if test "$with_ltdl" != 'no'
34998then
34999 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35000 MAGICK_API_LIBLTDL='-lltdl'
35001 fi
35002 MAGICK_LIBLTDL=${LIBLTDL}
35003 MAGICK_LTDLDEPS=${LTDLDEPS}
35004fi
35005
35006
35007
35008if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035009 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 +000035010else
cristy41cbe8a2011-10-27 01:35:18 +000035011 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 +000035012fi
35013
35014
35015#
35016# Remove extraneous spaces from output variables (asthetic)
35017#
35018X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35019X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35020X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35021X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35022
35023CC=`echo $CC | sed -e 's/ */ /g'`
35024CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35025CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35026CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35027DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35028DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35029LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35030TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35031MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35032#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35033
35034# Pass only user-provided LIBS as "global" libraries
35035LIBS=$USER_LIBS
35036
35037#AC_SUBST(CPPFLAGS)
35038
35039#AC_SUBST(LDFLAGS)
35040#AC_SUBST(X_PRE_LIBS)
35041#AC_SUBST(X_LIBS)
35042#AC_SUBST(X_EXTRA_LIBS)
35043
35044MAGICK_CFLAGS=$CFLAGS
35045MAGICK_CXXFLAGS="$CXXFLAGS"
35046MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35047MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35048MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35049MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35050
35051
35052
35053
35054
35055
35056
35057
cristyfd9dcd42010-08-08 18:07:02 +000035058
cristy3ed852e2009-09-05 21:47:34 +000035059# Set configured scripts to executable.
35060ac_config_commands="$ac_config_commands default"
35061
35062ac_config_commands="$ac_config_commands MagickCore-config.in"
35063
cristy3ed852e2009-09-05 21:47:34 +000035064ac_config_commands="$ac_config_commands MagickWand-config.in"
35065
cristy3ed852e2009-09-05 21:47:34 +000035066ac_config_commands="$ac_config_commands Magick++-config.in"
35067
35068ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35069
35070
cristy09b53e12011-10-14 12:47:22 +000035071{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35072$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35073{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35074$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035075cat >confcache <<\_ACEOF
35076# This file is a shell script that caches the results of configure
35077# tests run on this system so they can be shared between configure
35078# scripts and configure runs, see configure's option --config-cache.
35079# It is not useful on other systems. If it contains results you don't
35080# want to keep, you may remove or edit it.
35081#
35082# config.status only pays attention to the cache file if you give it
35083# the --recheck option to rerun configure.
35084#
35085# `ac_cv_env_foo' variables (set or unset) will be overridden when
35086# loading this file, other *unset* `ac_cv_foo' will be assigned the
35087# following values.
35088
35089_ACEOF
35090
35091# The following way of writing the cache mishandles newlines in values,
35092# but we know of no workaround that is simple, portable, and efficient.
35093# So, we kill variables containing newlines.
35094# Ultrix sh set writes to stderr and can't be redirected directly,
35095# and sets the high bit in the cache file unless we assign to the vars.
35096(
35097 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35098 eval ac_val=\$$ac_var
35099 case $ac_val in #(
35100 *${as_nl}*)
35101 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35104 esac
35105 case $ac_var in #(
35106 _ | IFS | as_nl) ;; #(
35107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035108 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035109 esac ;;
35110 esac
35111 done
35112
35113 (set) 2>&1 |
35114 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35115 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035116 # `set' does not quote correctly, so add quotes: double-quote
35117 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035118 sed -n \
35119 "s/'/'\\\\''/g;
35120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35121 ;; #(
35122 *)
35123 # `set' quotes correctly as required by POSIX, so do not add quotes.
35124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35125 ;;
35126 esac |
35127 sort
35128) |
35129 sed '
35130 /^ac_cv_env_/b end
35131 t clear
35132 :clear
35133 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35134 t end
35135 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35136 :end' >>confcache
35137if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35138 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035139 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035140 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035141$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035142 if test ! -f "$cache_file" || test -h "$cache_file"; then
35143 cat confcache >"$cache_file"
35144 else
35145 case $cache_file in #(
35146 */* | ?:*)
35147 mv -f confcache "$cache_file"$$ &&
35148 mv -f "$cache_file"$$ "$cache_file" ;; #(
35149 *)
35150 mv -f confcache "$cache_file" ;;
35151 esac
35152 fi
35153 fi
cristy3ed852e2009-09-05 21:47:34 +000035154 else
cristy8b350f62009-11-15 23:12:43 +000035155 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035156$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35157 fi
35158fi
35159rm -f confcache
35160
35161test "x$prefix" = xNONE && prefix=$ac_default_prefix
35162# Let make expand exec_prefix.
35163test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35164
35165DEFS=-DHAVE_CONFIG_H
35166
35167ac_libobjs=
35168ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035169U=
cristy3ed852e2009-09-05 21:47:34 +000035170for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35171 # 1. Remove the extension, and $U if already installed.
35172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35173 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35175 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035176 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35177 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035178done
35179LIBOBJS=$ac_libobjs
35180
35181LTLIBOBJS=$ac_ltlibobjs
35182
35183
cristy73bd4a52010-10-05 11:24:23 +000035184 if test -n "$EXEEXT"; then
35185 am__EXEEXT_TRUE=
35186 am__EXEEXT_FALSE='#'
35187else
35188 am__EXEEXT_TRUE='#'
35189 am__EXEEXT_FALSE=
35190fi
cristy3ed852e2009-09-05 21:47:34 +000035191
cristy73bd4a52010-10-05 11:24:23 +000035192if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035193 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035194Usually this means the macro was only invoked conditionally." "$LINENO" 5
35195fi
35196if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035197 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035198Usually this means the macro was only invoked conditionally." "$LINENO" 5
35199fi
35200if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035201 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035202Usually this means the macro was only invoked conditionally." "$LINENO" 5
35203fi
35204if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035205 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035206Usually this means the macro was only invoked conditionally." "$LINENO" 5
35207fi
35208if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035209 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035210Usually this means the macro was only invoked conditionally." "$LINENO" 5
35211fi
35212if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035213 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035214Usually this means the macro was only invoked conditionally." "$LINENO" 5
35215fi
35216if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035217 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035218Usually this means the macro was only invoked conditionally." "$LINENO" 5
35219fi
35220if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035221 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035222Usually this means the macro was only invoked conditionally." "$LINENO" 5
35223fi
cristy73bd4a52010-10-05 11:24:23 +000035224if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035225 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035226Usually this means the macro was only invoked conditionally." "$LINENO" 5
35227fi
35228if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035229 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035230Usually this means the macro was only invoked conditionally." "$LINENO" 5
35231fi
35232LT_CONFIG_H=config/config.h
35233
35234 _ltdl_libobjs=
35235 _ltdl_ltlibobjs=
35236 if test -n "$_LT_LIBOBJS"; then
35237 # Remove the extension.
35238 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35239 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35240 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35241 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35242 done
35243 fi
35244 ltdl_LIBOBJS=$_ltdl_libobjs
35245
35246 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35247
35248
35249if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035250 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035251Usually this means the macro was only invoked conditionally." "$LINENO" 5
35252fi
35253if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035254 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035255Usually this means the macro was only invoked conditionally." "$LINENO" 5
35256fi
35257if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035258 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035259Usually this means the macro was only invoked conditionally." "$LINENO" 5
35260fi
35261if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035262 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035263Usually this means the macro was only invoked conditionally." "$LINENO" 5
35264fi
35265
35266if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035267 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035268Usually this means the macro was only invoked conditionally." "$LINENO" 5
35269fi
35270if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035271 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035272Usually this means the macro was only invoked conditionally." "$LINENO" 5
35273fi
35274if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035275 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035276Usually this means the macro was only invoked conditionally." "$LINENO" 5
35277fi
35278if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035279 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035280Usually this means the macro was only invoked conditionally." "$LINENO" 5
35281fi
35282if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035283 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035284Usually this means the macro was only invoked conditionally." "$LINENO" 5
35285fi
35286if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035287 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035288Usually this means the macro was only invoked conditionally." "$LINENO" 5
35289fi
35290if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035291 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035292Usually this means the macro was only invoked conditionally." "$LINENO" 5
35293fi
35294if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035295 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035296Usually this means the macro was only invoked conditionally." "$LINENO" 5
35297fi
35298if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035299 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035300Usually this means the macro was only invoked conditionally." "$LINENO" 5
35301fi
35302if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035303 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035304Usually this means the macro was only invoked conditionally." "$LINENO" 5
35305fi
35306if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035307 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035308Usually this means the macro was only invoked conditionally." "$LINENO" 5
35309fi
35310if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035311 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035312Usually this means the macro was only invoked conditionally." "$LINENO" 5
35313fi
35314if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035315 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035316Usually this means the macro was only invoked conditionally." "$LINENO" 5
35317fi
35318if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035319 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035320Usually this means the macro was only invoked conditionally." "$LINENO" 5
35321fi
35322if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035323 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035324Usually this means the macro was only invoked conditionally." "$LINENO" 5
35325fi
35326if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035327 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035328Usually this means the macro was only invoked conditionally." "$LINENO" 5
35329fi
35330if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035331 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035332Usually this means the macro was only invoked conditionally." "$LINENO" 5
35333fi
35334if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035335 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035336Usually this means the macro was only invoked conditionally." "$LINENO" 5
35337fi
35338if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035339 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035340Usually this means the macro was only invoked conditionally." "$LINENO" 5
35341fi
35342if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035343 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035344Usually this means the macro was only invoked conditionally." "$LINENO" 5
35345fi
cristyfbb0ef02010-12-19 02:32:11 +000035346if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35347 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35348Usually this means the macro was only invoked conditionally." "$LINENO" 5
35349fi
cristy73bd4a52010-10-05 11:24:23 +000035350if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035351 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035352Usually this means the macro was only invoked conditionally." "$LINENO" 5
35353fi
cristy41cbe8a2011-10-27 01:35:18 +000035354if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35355 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35356Usually this means the macro was only invoked conditionally." "$LINENO" 5
35357fi
35358if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35359 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35360Usually this means the macro was only invoked conditionally." "$LINENO" 5
35361fi
cristy73bd4a52010-10-05 11:24:23 +000035362if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035363 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035364Usually this means the macro was only invoked conditionally." "$LINENO" 5
35365fi
35366if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035367 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035368Usually this means the macro was only invoked conditionally." "$LINENO" 5
35369fi
35370if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035371 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035372Usually this means the macro was only invoked conditionally." "$LINENO" 5
35373fi
35374if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035375 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035376Usually this means the macro was only invoked conditionally." "$LINENO" 5
35377fi
cristyb1860752011-03-14 00:27:46 +000035378if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35379 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35380Usually this means the macro was only invoked conditionally." "$LINENO" 5
35381fi
cristy73bd4a52010-10-05 11:24:23 +000035382if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035383 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035384Usually this means the macro was only invoked conditionally." "$LINENO" 5
35385fi
35386if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035387 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035388Usually this means the macro was only invoked conditionally." "$LINENO" 5
35389fi
35390if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035391 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035392Usually this means the macro was only invoked conditionally." "$LINENO" 5
35393fi
35394if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035395 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035396Usually this means the macro was only invoked conditionally." "$LINENO" 5
35397fi
35398if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035399 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035400Usually this means the macro was only invoked conditionally." "$LINENO" 5
35401fi
35402if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035403 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035404Usually this means the macro was only invoked conditionally." "$LINENO" 5
35405fi
35406if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035407 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035408Usually this means the macro was only invoked conditionally." "$LINENO" 5
35409fi
35410if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035411 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035412Usually this means the macro was only invoked conditionally." "$LINENO" 5
35413fi
cristy3ed852e2009-09-05 21:47:34 +000035414
cristyda16f162011-02-19 23:52:17 +000035415: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035416ac_write_fail=0
35417ac_clean_files_save=$ac_clean_files
35418ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035420$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035421as_write_fail=0
35422cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035423#! $SHELL
35424# Generated by $as_me.
35425# Run this file to recreate the current configuration.
35426# Compiler output produced by configure, useful for debugging
35427# configure, is in config.log if it exists.
35428
35429debug=false
35430ac_cs_recheck=false
35431ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035432
cristy8b350f62009-11-15 23:12:43 +000035433SHELL=\${CONFIG_SHELL-$SHELL}
35434export SHELL
35435_ASEOF
35436cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35437## -------------------- ##
35438## M4sh Initialization. ##
35439## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035440
35441# Be more Bourne compatible
35442DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035444 emulate sh
35445 NULLCMD=:
35446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35447 # is contrary to our usage. Disable this feature.
35448 alias -g '${1+"$@"}'='"$@"'
35449 setopt NO_GLOB_SUBST
35450else
cristy8b350f62009-11-15 23:12:43 +000035451 case `(set -o) 2>/dev/null` in #(
35452 *posix*) :
35453 set -o posix ;; #(
35454 *) :
35455 ;;
cristy3ed852e2009-09-05 21:47:34 +000035456esac
cristy3ed852e2009-09-05 21:47:34 +000035457fi
35458
35459
cristy3ed852e2009-09-05 21:47:34 +000035460as_nl='
35461'
35462export as_nl
35463# Printing a long string crashes Solaris 7 /usr/bin/printf.
35464as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35465as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035467# Prefer a ksh shell builtin over an external printf program on Solaris,
35468# but without wasting forks for bash or zsh.
35469if test -z "$BASH_VERSION$ZSH_VERSION" \
35470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35471 as_echo='print -r --'
35472 as_echo_n='print -rn --'
35473elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035474 as_echo='printf %s\n'
35475 as_echo_n='printf %s'
35476else
35477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35479 as_echo_n='/usr/ucb/echo -n'
35480 else
35481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35482 as_echo_n_body='eval
35483 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035484 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035485 *"$as_nl"*)
35486 expr "X$arg" : "X\\(.*\\)$as_nl";
35487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35488 esac;
35489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35490 '
35491 export as_echo_n_body
35492 as_echo_n='sh -c $as_echo_n_body as_echo'
35493 fi
35494 export as_echo_body
35495 as_echo='sh -c $as_echo_body as_echo'
35496fi
35497
35498# The user is always right.
35499if test "${PATH_SEPARATOR+set}" != set; then
35500 PATH_SEPARATOR=:
35501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35503 PATH_SEPARATOR=';'
35504 }
35505fi
35506
cristy3ed852e2009-09-05 21:47:34 +000035507
35508# IFS
35509# We need space, tab and new line, in precisely that order. Quoting is
35510# there to prevent editors from complaining about space-tab.
35511# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35512# splitting by setting IFS to empty value.)
35513IFS=" "" $as_nl"
35514
35515# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035516as_myself=
cristy8b350f62009-11-15 23:12:43 +000035517case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035518 *[\\/]* ) as_myself=$0 ;;
35519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35520for as_dir in $PATH
35521do
35522 IFS=$as_save_IFS
35523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35525 done
cristy3ed852e2009-09-05 21:47:34 +000035526IFS=$as_save_IFS
35527
35528 ;;
35529esac
35530# We did not find ourselves, most probably we were run as `sh COMMAND'
35531# in which case we are not to be found in the path.
35532if test "x$as_myself" = x; then
35533 as_myself=$0
35534fi
35535if test ! -f "$as_myself"; then
35536 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035537 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035538fi
35539
cristy8b350f62009-11-15 23:12:43 +000035540# Unset variables that we do not need and which cause bugs (e.g. in
35541# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35542# suppresses any "Segmentation fault" message there. '((' could
35543# trigger a bug in pdksh 5.2.14.
35544for as_var in BASH_ENV ENV MAIL MAILPATH
35545do eval test x\${$as_var+set} = xset \
35546 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035547done
35548PS1='$ '
35549PS2='> '
35550PS4='+ '
35551
35552# NLS nuisances.
35553LC_ALL=C
35554export LC_ALL
35555LANGUAGE=C
35556export LANGUAGE
35557
cristy8b350f62009-11-15 23:12:43 +000035558# CDPATH.
35559(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35560
35561
cristy98dddb52010-11-04 00:30:15 +000035562# as_fn_error STATUS ERROR [LINENO LOG_FD]
35563# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035564# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35565# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035566# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035567as_fn_error ()
35568{
cristy98dddb52010-11-04 00:30:15 +000035569 as_status=$1; test $as_status -eq 0 && as_status=1
35570 if test "$4"; then
35571 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35572 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035573 fi
cristy98dddb52010-11-04 00:30:15 +000035574 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035575 as_fn_exit $as_status
35576} # as_fn_error
35577
35578
35579# as_fn_set_status STATUS
35580# -----------------------
35581# Set $? to STATUS, without forking.
35582as_fn_set_status ()
35583{
35584 return $1
35585} # as_fn_set_status
35586
35587# as_fn_exit STATUS
35588# -----------------
35589# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35590as_fn_exit ()
35591{
35592 set +e
35593 as_fn_set_status $1
35594 exit $1
35595} # as_fn_exit
35596
35597# as_fn_unset VAR
35598# ---------------
35599# Portably unset VAR.
35600as_fn_unset ()
35601{
35602 { eval $1=; unset $1;}
35603}
35604as_unset=as_fn_unset
35605# as_fn_append VAR VALUE
35606# ----------------------
35607# Append the text in VALUE to the end of the definition contained in VAR. Take
35608# advantage of any shell optimizations that allow amortized linear growth over
35609# repeated appends, instead of the typical quadratic growth present in naive
35610# implementations.
35611if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35612 eval 'as_fn_append ()
35613 {
35614 eval $1+=\$2
35615 }'
35616else
35617 as_fn_append ()
35618 {
35619 eval $1=\$$1\$2
35620 }
35621fi # as_fn_append
35622
35623# as_fn_arith ARG...
35624# ------------------
35625# Perform arithmetic evaluation on the ARGs, and store the result in the
35626# global $as_val. Take advantage of shells that can avoid forks. The arguments
35627# must be portable across $(()) and expr.
35628if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35629 eval 'as_fn_arith ()
35630 {
35631 as_val=$(( $* ))
35632 }'
35633else
35634 as_fn_arith ()
35635 {
35636 as_val=`expr "$@" || test $? -eq 1`
35637 }
35638fi # as_fn_arith
35639
35640
cristy3ed852e2009-09-05 21:47:34 +000035641if expr a : '\(a\)' >/dev/null 2>&1 &&
35642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35643 as_expr=expr
35644else
35645 as_expr=false
35646fi
35647
35648if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35649 as_basename=basename
35650else
35651 as_basename=false
35652fi
35653
cristy8b350f62009-11-15 23:12:43 +000035654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35655 as_dirname=dirname
35656else
35657 as_dirname=false
35658fi
cristy3ed852e2009-09-05 21:47:34 +000035659
cristy3ed852e2009-09-05 21:47:34 +000035660as_me=`$as_basename -- "$0" ||
35661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35662 X"$0" : 'X\(//\)$' \| \
35663 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35664$as_echo X/"$0" |
35665 sed '/^.*\/\([^/][^/]*\)\/*$/{
35666 s//\1/
35667 q
35668 }
35669 /^X\/\(\/\/\)$/{
35670 s//\1/
35671 q
35672 }
35673 /^X\/\(\/\).*/{
35674 s//\1/
35675 q
35676 }
35677 s/.*/./; q'`
35678
cristy8b350f62009-11-15 23:12:43 +000035679# Avoid depending upon Character Ranges.
35680as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35682as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35683as_cr_digits='0123456789'
35684as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035685
35686ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035687case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035688-n*)
cristy8b350f62009-11-15 23:12:43 +000035689 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035690 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035691 xy) ECHO_C='\c';;
35692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35693 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035694 esac;;
35695*)
35696 ECHO_N='-n';;
35697esac
cristy3ed852e2009-09-05 21:47:34 +000035698
35699rm -f conf$$ conf$$.exe conf$$.file
35700if test -d conf$$.dir; then
35701 rm -f conf$$.dir/conf$$.file
35702else
35703 rm -f conf$$.dir
35704 mkdir conf$$.dir 2>/dev/null
35705fi
35706if (echo >conf$$.file) 2>/dev/null; then
35707 if ln -s conf$$.file conf$$ 2>/dev/null; then
35708 as_ln_s='ln -s'
35709 # ... but there are two gotchas:
35710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35712 # In both cases, we have to default to `cp -p'.
35713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35714 as_ln_s='cp -p'
35715 elif ln conf$$.file conf$$ 2>/dev/null; then
35716 as_ln_s=ln
35717 else
35718 as_ln_s='cp -p'
35719 fi
35720else
35721 as_ln_s='cp -p'
35722fi
35723rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35724rmdir conf$$.dir 2>/dev/null
35725
cristy8b350f62009-11-15 23:12:43 +000035726
35727# as_fn_mkdir_p
35728# -------------
35729# Create "$as_dir" as a directory, including parents if necessary.
35730as_fn_mkdir_p ()
35731{
35732
35733 case $as_dir in #(
35734 -*) as_dir=./$as_dir;;
35735 esac
35736 test -d "$as_dir" || eval $as_mkdir_p || {
35737 as_dirs=
35738 while :; do
35739 case $as_dir in #(
35740 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35741 *) as_qdir=$as_dir;;
35742 esac
35743 as_dirs="'$as_qdir' $as_dirs"
35744 as_dir=`$as_dirname -- "$as_dir" ||
35745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35746 X"$as_dir" : 'X\(//\)[^/]' \| \
35747 X"$as_dir" : 'X\(//\)$' \| \
35748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35749$as_echo X"$as_dir" |
35750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35751 s//\1/
35752 q
35753 }
35754 /^X\(\/\/\)[^/].*/{
35755 s//\1/
35756 q
35757 }
35758 /^X\(\/\/\)$/{
35759 s//\1/
35760 q
35761 }
35762 /^X\(\/\).*/{
35763 s//\1/
35764 q
35765 }
35766 s/.*/./; q'`
35767 test -d "$as_dir" && break
35768 done
35769 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035770 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035771
35772
35773} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035774if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035775 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035776else
35777 test -d ./-p && rmdir ./-p
35778 as_mkdir_p=false
35779fi
35780
35781if test -x / >/dev/null 2>&1; then
35782 as_test_x='test -x'
35783else
35784 if ls -dL / >/dev/null 2>&1; then
35785 as_ls_L_option=L
35786 else
35787 as_ls_L_option=
35788 fi
35789 as_test_x='
35790 eval sh -c '\''
35791 if test -d "$1"; then
35792 test -d "$1/.";
35793 else
cristy8b350f62009-11-15 23:12:43 +000035794 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035795 -*)set "./$1";;
35796 esac;
cristy8b350f62009-11-15 23:12:43 +000035797 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035798 ???[sx]*):;;*)false;;esac;fi
35799 '\'' sh
35800 '
35801fi
35802as_executable_p=$as_test_x
35803
35804# Sed expression to map a string onto a valid CPP name.
35805as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35806
35807# Sed expression to map a string onto a valid variable name.
35808as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35809
35810
35811exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035812## ----------------------------------- ##
35813## Main body of $CONFIG_STATUS script. ##
35814## ----------------------------------- ##
35815_ASEOF
35816test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035817
cristy8b350f62009-11-15 23:12:43 +000035818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35819# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035820# report actual input values of CONFIG_FILES etc. instead of their
35821# values after options handling.
35822ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035823This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035824generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035825
35826 CONFIG_FILES = $CONFIG_FILES
35827 CONFIG_HEADERS = $CONFIG_HEADERS
35828 CONFIG_LINKS = $CONFIG_LINKS
35829 CONFIG_COMMANDS = $CONFIG_COMMANDS
35830 $ $0 $@
35831
35832on `(hostname || uname -n) 2>/dev/null | sed 1q`
35833"
35834
35835_ACEOF
35836
35837case $ac_config_files in *"
35838"*) set x $ac_config_files; shift; ac_config_files=$*;;
35839esac
35840
35841case $ac_config_headers in *"
35842"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35843esac
35844
35845
35846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35847# Files that config.status was made for.
35848config_files="$ac_config_files"
35849config_headers="$ac_config_headers"
35850config_commands="$ac_config_commands"
35851
35852_ACEOF
35853
35854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35855ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035856\`$as_me' instantiates files and other configuration actions
35857from templates according to the current configuration. Unless the files
35858and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035859
cristy8b350f62009-11-15 23:12:43 +000035860Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035861
35862 -h, --help print this help, then exit
35863 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035864 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035865 -q, --quiet, --silent
35866 do not print progress messages
35867 -d, --debug don't remove temporary files
35868 --recheck update $as_me by reconfiguring in the same conditions
35869 --file=FILE[:TEMPLATE]
35870 instantiate the configuration file FILE
35871 --header=FILE[:TEMPLATE]
35872 instantiate the configuration header FILE
35873
35874Configuration files:
35875$config_files
35876
35877Configuration headers:
35878$config_headers
35879
35880Configuration commands:
35881$config_commands
35882
cristy8b350f62009-11-15 23:12:43 +000035883Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035884
35885_ACEOF
35886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035887ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035888ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035889ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035890configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035891 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035892
cristy98dddb52010-11-04 00:30:15 +000035893Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035894This config.status script is free software; the Free Software Foundation
35895gives unlimited permission to copy, distribute and modify it."
35896
35897ac_pwd='$ac_pwd'
35898srcdir='$srcdir'
35899INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035900MKDIR_P='$MKDIR_P'
35901AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035902test -n "\$AWK" || AWK=awk
35903_ACEOF
35904
35905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35906# The default lists apply if the user does not specify any file.
35907ac_need_defaults=:
35908while test $# != 0
35909do
35910 case $1 in
cristyda16f162011-02-19 23:52:17 +000035911 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35914 ac_shift=:
35915 ;;
cristyda16f162011-02-19 23:52:17 +000035916 --*=)
35917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35918 ac_optarg=
35919 ac_shift=:
35920 ;;
cristy3ed852e2009-09-05 21:47:34 +000035921 *)
35922 ac_option=$1
35923 ac_optarg=$2
35924 ac_shift=shift
35925 ;;
35926 esac
35927
35928 case $ac_option in
35929 # Handling of the options.
35930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35931 ac_cs_recheck=: ;;
35932 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35933 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035934 --config | --confi | --conf | --con | --co | --c )
35935 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035936 --debug | --debu | --deb | --de | --d | -d )
35937 debug=: ;;
35938 --file | --fil | --fi | --f )
35939 $ac_shift
35940 case $ac_optarg in
35941 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035942 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035943 esac
cristy8b350f62009-11-15 23:12:43 +000035944 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035945 ac_need_defaults=false;;
35946 --header | --heade | --head | --hea )
35947 $ac_shift
35948 case $ac_optarg in
35949 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35950 esac
cristy8b350f62009-11-15 23:12:43 +000035951 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035952 ac_need_defaults=false;;
35953 --he | --h)
35954 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035955 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035956Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035957 --help | --hel | -h )
35958 $as_echo "$ac_cs_usage"; exit ;;
35959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35961 ac_cs_silent=: ;;
35962
35963 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035964 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035965Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035966
cristy8b350f62009-11-15 23:12:43 +000035967 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035968 ac_need_defaults=false ;;
35969
35970 esac
35971 shift
35972done
35973
35974ac_configure_extra_args=
35975
35976if $ac_cs_silent; then
35977 exec 6>/dev/null
35978 ac_configure_extra_args="$ac_configure_extra_args --silent"
35979fi
35980
35981_ACEOF
35982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35983if \$ac_cs_recheck; then
35984 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35985 shift
35986 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35987 CONFIG_SHELL='$SHELL'
35988 export CONFIG_SHELL
35989 exec "\$@"
35990fi
35991
35992_ACEOF
35993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35994exec 5>>config.log
35995{
35996 echo
35997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35998## Running $as_me. ##
35999_ASBOX
36000 $as_echo "$ac_log"
36001} >&5
36002
36003_ACEOF
36004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036005#
36006# INIT-COMMANDS
36007#
36008PACKAGE="$PACKAGE"
36009AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36010
36011
36012# The HP-UX ksh and POSIX shell print the target directory to stdout
36013# if CDPATH is set.
36014(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36015
36016sed_quote_subst='$sed_quote_subst'
36017double_quote_subst='$double_quote_subst'
36018delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036019SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36020Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36021GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36022EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36023FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36024SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36025ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36026LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36027macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36028macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36029AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36030DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36031OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36032enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36033enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36034pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36035enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36036host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36037host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36038host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36039build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36040build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36041build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36042NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36043LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36044max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36045ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36046exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36047lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36048lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36049lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036050lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36051lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036052reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36053reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36054deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36055file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036056file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36057want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36058sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036059AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36060AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036061archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036062STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36063RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36064old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36065old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36066old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36067lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36068CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36069CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36070compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36071GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36072lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36073lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36074lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36075lt_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 +000036076nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36077lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036078objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36079MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36080lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036081lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036082lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036083lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36084lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36085need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036086MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036087DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36088NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36089LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36090OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36091OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36092libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36093shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36094extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36095archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36096enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36097export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36098whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36099compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36100old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36101old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36102archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36103archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36104module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36105module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36106with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36107allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36108no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36109hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36110hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36111hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36112hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36113hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36114hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36115hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36116hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36117inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36118link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036119always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36120export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36121exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36122include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36123prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036124postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036125file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36126variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36127need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36128need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36129version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36130runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36131shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36132shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36133libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36134library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36135soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36136install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36137postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36138postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36139finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36140finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36141hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36142sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36143sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36144hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36145enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36146enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36147enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36148old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36149striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36150compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36151predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36152postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36153predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36154postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36155compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36156LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36157reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36158reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36159old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36160compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36161GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36162lt_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 +000036163lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036164lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036165lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36166lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36167archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36168enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36169export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36170whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36171compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36172old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36173old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36174archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36175archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36176module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36177module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36178with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36179allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36180no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36181hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36182hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36183hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36184hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36185hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36186hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36187hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36188hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36189inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36190link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036191always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36192export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36193exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36194include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36195prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036196postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036197file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36198hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36199compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36200predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36201postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36202predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36203postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36204compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036205
36206LTCC='$LTCC'
36207LTCFLAGS='$LTCFLAGS'
36208compiler='$compiler_DEFAULT'
36209
cristy0c60a692010-11-04 01:09:47 +000036210# A function that is used when there is no print builtin or printf.
36211func_fallback_echo ()
36212{
36213 eval 'cat <<_LTECHO_EOF
36214\$1
36215_LTECHO_EOF'
36216}
36217
cristy73bd4a52010-10-05 11:24:23 +000036218# Quote evaled strings.
36219for var in SED \
36220GREP \
36221EGREP \
36222FGREP \
cristy0c60a692010-11-04 01:09:47 +000036223SHELL \
36224ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036225LD \
cristy0c60a692010-11-04 01:09:47 +000036226AS \
36227DLLTOOL \
36228OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000036229NM \
36230LN_S \
36231lt_SP2NL \
36232lt_NL2SP \
36233reload_flag \
36234deplibs_check_method \
36235file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036236file_magic_glob \
36237want_nocaseglob \
36238sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036239AR \
36240AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036241archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036242STRIP \
36243RANLIB \
36244CC \
36245CFLAGS \
36246compiler \
36247lt_cv_sys_global_symbol_pipe \
36248lt_cv_sys_global_symbol_to_cdecl \
36249lt_cv_sys_global_symbol_to_c_name_address \
36250lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036251nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036252lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036253lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036254lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036255lt_prog_compiler_static \
36256lt_cv_prog_compiler_c_o \
36257need_locks \
cristyda16f162011-02-19 23:52:17 +000036258MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036259DSYMUTIL \
36260NMEDIT \
36261LIPO \
36262OTOOL \
36263OTOOL64 \
36264shrext_cmds \
36265export_dynamic_flag_spec \
36266whole_archive_flag_spec \
36267compiler_needs_object \
36268with_gnu_ld \
36269allow_undefined_flag \
36270no_undefined_flag \
36271hardcode_libdir_flag_spec \
36272hardcode_libdir_flag_spec_ld \
36273hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036274exclude_expsyms \
36275include_expsyms \
36276file_list_spec \
36277variables_saved_for_relink \
36278libname_spec \
36279library_names_spec \
36280soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036281install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036282finish_eval \
36283old_striplib \
36284striplib \
36285compiler_lib_search_dirs \
36286predep_objects \
36287postdep_objects \
36288predeps \
36289postdeps \
36290compiler_lib_search_path \
36291LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036292reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036293compiler_CXX \
36294lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036295lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036296lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036297lt_prog_compiler_static_CXX \
36298lt_cv_prog_compiler_c_o_CXX \
36299export_dynamic_flag_spec_CXX \
36300whole_archive_flag_spec_CXX \
36301compiler_needs_object_CXX \
36302with_gnu_ld_CXX \
36303allow_undefined_flag_CXX \
36304no_undefined_flag_CXX \
36305hardcode_libdir_flag_spec_CXX \
36306hardcode_libdir_flag_spec_ld_CXX \
36307hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036308exclude_expsyms_CXX \
36309include_expsyms_CXX \
36310file_list_spec_CXX \
36311compiler_lib_search_dirs_CXX \
36312predep_objects_CXX \
36313postdep_objects_CXX \
36314predeps_CXX \
36315postdeps_CXX \
36316compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036317 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036318 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036319 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036320 ;;
36321 *)
36322 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36323 ;;
36324 esac
36325done
36326
36327# Double-quote double-evaled strings.
36328for var in reload_cmds \
36329old_postinstall_cmds \
36330old_postuninstall_cmds \
36331old_archive_cmds \
36332extract_expsyms_cmds \
36333old_archive_from_new_cmds \
36334old_archive_from_expsyms_cmds \
36335archive_cmds \
36336archive_expsym_cmds \
36337module_cmds \
36338module_expsym_cmds \
36339export_symbols_cmds \
36340prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036341postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036342postinstall_cmds \
36343postuninstall_cmds \
36344finish_cmds \
36345sys_lib_search_path_spec \
36346sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036347reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036348old_archive_cmds_CXX \
36349old_archive_from_new_cmds_CXX \
36350old_archive_from_expsyms_cmds_CXX \
36351archive_cmds_CXX \
36352archive_expsym_cmds_CXX \
36353module_cmds_CXX \
36354module_expsym_cmds_CXX \
36355export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036356prelink_cmds_CXX \
36357postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036358 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036359 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036361 ;;
36362 *)
36363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36364 ;;
36365 esac
36366done
36367
cristy73bd4a52010-10-05 11:24:23 +000036368ac_aux_dir='$ac_aux_dir'
36369xsi_shell='$xsi_shell'
36370lt_shell_append='$lt_shell_append'
36371
36372# See if we are running on zsh, and set the options which allow our
36373# commands through without removal of \ escapes INIT.
36374if test -n "\${ZSH_VERSION+set}" ; then
36375 setopt NO_GLOB_SUBST
36376fi
36377
36378
36379 PACKAGE='$PACKAGE'
36380 VERSION='$VERSION'
36381 TIMESTAMP='$TIMESTAMP'
36382 RM='$RM'
36383 ofile='$ofile'
36384
36385
36386
36387
36388
36389
cristy3ed852e2009-09-05 21:47:34 +000036390_ACEOF
36391
36392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36393
36394# Handling of arguments.
36395for ac_config_target in $ac_config_targets
36396do
36397 case $ac_config_target in
36398 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036399 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036400 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36401 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36402 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36403 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36404 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036405 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036406 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36407 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36408 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36409 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36410 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036411 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036412 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36413 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036414 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36415 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36416 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036417 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36418 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36419 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36420 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36421 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36422 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36423 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36424 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36425 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36426 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36427 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36428 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36429 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36430 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36431 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36432 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36433 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036434 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36435 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036436 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36437 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036438 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36439 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036440 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036441 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36442 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36443
cristy98dddb52010-11-04 00:30:15 +000036444 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036445 esac
36446done
36447
36448
36449# If the user did not use the arguments to specify the items to instantiate,
36450# then the envvar interface is used. Set only those that are not.
36451# We use the long form for the default assignment because of an extremely
36452# bizarre bug on SunOS 4.1.3.
36453if $ac_need_defaults; then
36454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36457fi
36458
36459# Have a temporary directory for convenience. Make it in the build tree
36460# simply because there is no reason against having it here, and in addition,
36461# creating and moving files from /tmp can sometimes cause problems.
36462# Hook for its removal unless debugging.
36463# Note that there is a small window in which the directory will not be cleaned:
36464# after its creation but before its name has been assigned to `$tmp'.
36465$debug ||
36466{
cristyda16f162011-02-19 23:52:17 +000036467 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036468 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036469 : "${ac_tmp:=$tmp}"
36470 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036471' 0
cristy8b350f62009-11-15 23:12:43 +000036472 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036473}
36474# Create a (secure) tmp directory for tmp files.
36475
36476{
36477 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036478 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036479} ||
36480{
36481 tmp=./conf$$-$RANDOM
36482 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036483} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036484ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036485
36486# Set up the scripts for CONFIG_FILES section.
36487# No need to generate them if there are no CONFIG_FILES.
36488# This happens for instance with `./config.status config.h'.
36489if test -n "$CONFIG_FILES"; then
36490
36491
cristy8b350f62009-11-15 23:12:43 +000036492ac_cr=`echo X | tr X '\015'`
36493# On cygwin, bash can eat \r inside `` if the user requested igncr.
36494# But we know of no other shell where ac_cr would be empty at this
36495# point, so we can use a bashism as a fallback.
36496if test "x$ac_cr" = x; then
36497 eval ac_cr=\$\'\\r\'
36498fi
cristy3ed852e2009-09-05 21:47:34 +000036499ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36500if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036501 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036502else
36503 ac_cs_awk_cr=$ac_cr
36504fi
36505
cristyda16f162011-02-19 23:52:17 +000036506echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036507_ACEOF
36508
36509
36510{
36511 echo "cat >conf$$subs.awk <<_ACEOF" &&
36512 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36513 echo "_ACEOF"
36514} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36516ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036517ac_delim='%!_!# '
36518for ac_last_try in false false false false false :; do
36519 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036521
36522 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36523 if test $ac_delim_n = $ac_delim_num; then
36524 break
36525 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036527 else
36528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36529 fi
36530done
36531rm -f conf$$subs.sh
36532
36533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036534cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036535_ACEOF
36536sed -n '
36537h
36538s/^/S["/; s/!.*/"]=/
36539p
36540g
36541s/^[^!]*!//
36542:repl
36543t repl
36544s/'"$ac_delim"'$//
36545t delim
36546:nl
36547h
cristycd4c5312009-11-22 01:19:08 +000036548s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036549t more1
36550s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36551p
36552n
36553b repl
36554:more1
36555s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36556p
36557g
36558s/.\{148\}//
36559t nl
36560:delim
36561h
cristycd4c5312009-11-22 01:19:08 +000036562s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036563t more2
36564s/["\\]/\\&/g; s/^/"/; s/$/"/
36565p
36566b
36567:more2
36568s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36569p
36570g
36571s/.\{148\}//
36572t delim
36573' <conf$$subs.awk | sed '
36574/^[^""]/{
36575 N
36576 s/\n//
36577}
36578' >>$CONFIG_STATUS || ac_write_fail=1
36579rm -f conf$$subs.awk
36580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36581_ACAWK
cristyda16f162011-02-19 23:52:17 +000036582cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036583 for (key in S) S_is_set[key] = 1
36584 FS = ""
36585
36586}
36587{
36588 line = $ 0
36589 nfields = split(line, field, "@")
36590 substed = 0
36591 len = length(field[1])
36592 for (i = 2; i < nfields; i++) {
36593 key = field[i]
36594 keylen = length(key)
36595 if (S_is_set[key]) {
36596 value = S[key]
36597 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36598 len += length(value) + length(field[++i])
36599 substed = 1
36600 } else
36601 len += 1 + keylen
36602 }
36603
36604 print line
36605}
36606
36607_ACAWK
36608_ACEOF
36609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36610if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36611 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36612else
36613 cat
cristyda16f162011-02-19 23:52:17 +000036614fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036615 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036616_ACEOF
36617
cristy98dddb52010-11-04 00:30:15 +000036618# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36619# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036620# trailing colons and then remove the whole line if VPATH becomes empty
36621# (actually we leave an empty line to preserve line numbers).
36622if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036623 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36624h
36625s///
36626s/^/:/
36627s/[ ]*$/:/
36628s/:\$(srcdir):/:/g
36629s/:\${srcdir}:/:/g
36630s/:@srcdir@:/:/g
36631s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036632s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036633x
36634s/\(=[ ]*\).*/\1/
36635G
36636s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036637s/^[^=]*=[ ]*$//
36638}'
36639fi
36640
36641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36642fi # test -n "$CONFIG_FILES"
36643
36644# Set up the scripts for CONFIG_HEADERS section.
36645# No need to generate them if there are no CONFIG_HEADERS.
36646# This happens for instance with `./config.status Makefile'.
36647if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036648cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036649BEGIN {
36650_ACEOF
36651
36652# Transform confdefs.h into an awk script `defines.awk', embedded as
36653# here-document in config.status, that substitutes the proper values into
36654# config.h.in to produce config.h.
36655
36656# Create a delimiter string that does not exist in confdefs.h, to ease
36657# handling of long lines.
36658ac_delim='%!_!# '
36659for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036660 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36661 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036662 break
36663 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036664 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036665 else
36666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36667 fi
36668done
36669
36670# For the awk script, D is an array of macro values keyed by name,
36671# likewise P contains macro parameters if any. Preserve backslash
36672# newline sequences.
36673
36674ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36675sed -n '
36676s/.\{148\}/&'"$ac_delim"'/g
36677t rset
36678:rset
36679s/^[ ]*#[ ]*define[ ][ ]*/ /
36680t def
36681d
36682:def
36683s/\\$//
36684t bsnl
36685s/["\\]/\\&/g
36686s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36687D["\1"]=" \3"/p
36688s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36689d
36690:bsnl
36691s/["\\]/\\&/g
36692s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36693D["\1"]=" \3\\\\\\n"\\/p
36694t cont
36695s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36696t cont
36697d
36698:cont
36699n
36700s/.\{148\}/&'"$ac_delim"'/g
36701t clear
36702:clear
36703s/\\$//
36704t bsnlc
36705s/["\\]/\\&/g; s/^/"/; s/$/"/p
36706d
36707:bsnlc
36708s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36709b cont
36710' <confdefs.h | sed '
36711s/'"$ac_delim"'/"\\\
36712"/g' >>$CONFIG_STATUS || ac_write_fail=1
36713
36714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36715 for (key in D) D_is_set[key] = 1
36716 FS = ""
36717}
36718/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36719 line = \$ 0
36720 split(line, arg, " ")
36721 if (arg[1] == "#") {
36722 defundef = arg[2]
36723 mac1 = arg[3]
36724 } else {
36725 defundef = substr(arg[1], 2)
36726 mac1 = arg[2]
36727 }
36728 split(mac1, mac2, "(") #)
36729 macro = mac2[1]
36730 prefix = substr(line, 1, index(line, defundef) - 1)
36731 if (D_is_set[macro]) {
36732 # Preserve the white space surrounding the "#".
36733 print prefix "define", macro P[macro] D[macro]
36734 next
36735 } else {
36736 # Replace #undef with comments. This is necessary, for example,
36737 # in the case of _POSIX_SOURCE, which is predefined and required
36738 # on some systems where configure will not decide to define it.
36739 if (defundef == "undef") {
36740 print "/*", prefix defundef, macro, "*/"
36741 next
36742 }
36743 }
36744}
36745{ print }
36746_ACAWK
36747_ACEOF
36748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036749 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036750fi # test -n "$CONFIG_HEADERS"
36751
36752
36753eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36754shift
36755for ac_tag
36756do
36757 case $ac_tag in
36758 :[FHLC]) ac_mode=$ac_tag; continue;;
36759 esac
36760 case $ac_mode$ac_tag in
36761 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036762 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036763 :[FH]-) ac_tag=-:-;;
36764 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36765 esac
36766 ac_save_IFS=$IFS
36767 IFS=:
36768 set x $ac_tag
36769 IFS=$ac_save_IFS
36770 shift
36771 ac_file=$1
36772 shift
36773
36774 case $ac_mode in
36775 :L) ac_source=$1;;
36776 :[FH])
36777 ac_file_inputs=
36778 for ac_f
36779 do
36780 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036781 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036782 *) # Look for the file first in the build tree, then in the source tree
36783 # (if the path is not absolute). The absolute path cannot be DOS-style,
36784 # because $ac_f cannot contain `:'.
36785 test -f "$ac_f" ||
36786 case $ac_f in
36787 [\\/$]*) false;;
36788 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36789 esac ||
cristy98dddb52010-11-04 00:30:15 +000036790 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036791 esac
36792 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036793 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036794 done
36795
36796 # Let's still pretend it is `configure' which instantiates (i.e., don't
36797 # use $as_me), people would be surprised to read:
36798 # /* config.h. Generated by config.status. */
36799 configure_input='Generated from '`
36800 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36801 `' by configure.'
36802 if test x"$ac_file" != x-; then
36803 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036805$as_echo "$as_me: creating $ac_file" >&6;}
36806 fi
36807 # Neutralize special characters interpreted by sed in replacement strings.
36808 case $configure_input in #(
36809 *\&* | *\|* | *\\* )
36810 ac_sed_conf_input=`$as_echo "$configure_input" |
36811 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36812 *) ac_sed_conf_input=$configure_input;;
36813 esac
36814
36815 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036816 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036818 esac
36819 ;;
36820 esac
36821
36822 ac_dir=`$as_dirname -- "$ac_file" ||
36823$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36824 X"$ac_file" : 'X\(//\)[^/]' \| \
36825 X"$ac_file" : 'X\(//\)$' \| \
36826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36827$as_echo X"$ac_file" |
36828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36829 s//\1/
36830 q
36831 }
36832 /^X\(\/\/\)[^/].*/{
36833 s//\1/
36834 q
36835 }
36836 /^X\(\/\/\)$/{
36837 s//\1/
36838 q
36839 }
36840 /^X\(\/\).*/{
36841 s//\1/
36842 q
36843 }
36844 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036845 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036846 ac_builddir=.
36847
36848case "$ac_dir" in
36849.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36850*)
36851 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36852 # A ".." for each directory in $ac_dir_suffix.
36853 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36854 case $ac_top_builddir_sub in
36855 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36856 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36857 esac ;;
36858esac
36859ac_abs_top_builddir=$ac_pwd
36860ac_abs_builddir=$ac_pwd$ac_dir_suffix
36861# for backward compatibility:
36862ac_top_builddir=$ac_top_build_prefix
36863
36864case $srcdir in
36865 .) # We are building in place.
36866 ac_srcdir=.
36867 ac_top_srcdir=$ac_top_builddir_sub
36868 ac_abs_top_srcdir=$ac_pwd ;;
36869 [\\/]* | ?:[\\/]* ) # Absolute name.
36870 ac_srcdir=$srcdir$ac_dir_suffix;
36871 ac_top_srcdir=$srcdir
36872 ac_abs_top_srcdir=$srcdir ;;
36873 *) # Relative name.
36874 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36875 ac_top_srcdir=$ac_top_build_prefix$srcdir
36876 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36877esac
36878ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36879
36880
36881 case $ac_mode in
36882 :F)
36883 #
36884 # CONFIG_FILE
36885 #
36886
36887 case $INSTALL in
36888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36889 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36890 esac
cristy73bd4a52010-10-05 11:24:23 +000036891 ac_MKDIR_P=$MKDIR_P
36892 case $MKDIR_P in
36893 [\\/$]* | ?:[\\/]* ) ;;
36894 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36895 esac
cristy3ed852e2009-09-05 21:47:34 +000036896_ACEOF
36897
36898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36899# If the template does not know about datarootdir, expand it.
36900# FIXME: This hack should be removed a few years after 2.60.
36901ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036902ac_sed_dataroot='
36903/datarootdir/ {
36904 p
36905 q
36906}
36907/@datadir@/p
36908/@docdir@/p
36909/@infodir@/p
36910/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036911/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036912case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36913*datarootdir*) ac_datarootdir_seen=yes;;
36914*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036916$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36917_ACEOF
36918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36919 ac_datarootdir_hack='
36920 s&@datadir@&$datadir&g
36921 s&@docdir@&$docdir&g
36922 s&@infodir@&$infodir&g
36923 s&@localedir@&$localedir&g
36924 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036925 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036926esac
36927_ACEOF
36928
36929# Neutralize VPATH when `$srcdir' = `.'.
36930# Shell code in configure.ac might set extrasub.
36931# FIXME: do we really want to maintain this feature?
36932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36933ac_sed_extra="$ac_vpsub
36934$extrasub
36935_ACEOF
36936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36937:t
36938/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36939s|@configure_input@|$ac_sed_conf_input|;t t
36940s&@top_builddir@&$ac_top_builddir_sub&;t t
36941s&@top_build_prefix@&$ac_top_build_prefix&;t t
36942s&@srcdir@&$ac_srcdir&;t t
36943s&@abs_srcdir@&$ac_abs_srcdir&;t t
36944s&@top_srcdir@&$ac_top_srcdir&;t t
36945s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36946s&@builddir@&$ac_builddir&;t t
36947s&@abs_builddir@&$ac_abs_builddir&;t t
36948s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36949s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036950s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036951$ac_datarootdir_hack
36952"
cristyda16f162011-02-19 23:52:17 +000036953eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36954 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036955
36956test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036957 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36958 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36959 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036961which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036962$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036963which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036964
cristyda16f162011-02-19 23:52:17 +000036965 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036966 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036967 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36968 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036969 esac \
cristy98dddb52010-11-04 00:30:15 +000036970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036971 ;;
36972 :H)
36973 #
36974 # CONFIG_HEADER
36975 #
36976 if test x"$ac_file" != x-; then
36977 {
36978 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036979 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36980 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036982 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036983 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036984$as_echo "$as_me: $ac_file is unchanged" >&6;}
36985 else
36986 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036987 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036989 fi
36990 else
36991 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036992 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036993 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036994 fi
cristy73bd4a52010-10-05 11:24:23 +000036995# Compute "$ac_file"'s index in $config_headers.
36996_am_arg="$ac_file"
36997_am_stamp_count=1
36998for _am_header in $config_headers :; do
36999 case $_am_header in
37000 $_am_arg | $_am_arg:* )
37001 break ;;
37002 * )
37003 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37004 esac
37005done
37006echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37007$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37008 X"$_am_arg" : 'X\(//\)[^/]' \| \
37009 X"$_am_arg" : 'X\(//\)$' \| \
37010 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37011$as_echo X"$_am_arg" |
37012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37013 s//\1/
37014 q
37015 }
37016 /^X\(\/\/\)[^/].*/{
37017 s//\1/
37018 q
37019 }
37020 /^X\(\/\/\)$/{
37021 s//\1/
37022 q
37023 }
37024 /^X\(\/\).*/{
37025 s//\1/
37026 q
37027 }
37028 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037029 ;;
37030
cristy8b350f62009-11-15 23:12:43 +000037031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037032$as_echo "$as_me: executing $ac_file commands" >&6;}
37033 ;;
37034 esac
37035
37036
37037 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037038 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037039ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37040ac_prefix_conf_PKG=`echo MagickCore`
37041ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37042ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37043ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37044if test ".$ac_prefix_conf_INP" = "."; then
37045 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37046 case "$ac_file" in
37047 *.h) ac_prefix_conf_INP=$ac_file ;;
37048 *)
37049 esac
37050 test ".$ac_prefix_conf_INP" != "." && break
37051 done
37052fi
37053if test ".$ac_prefix_conf_INP" = "."; then
37054 case "$ac_prefix_conf_OUT" in
37055 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37056 ;;
37057 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37058 ;;
37059 *) ac_prefix_conf_INP=config.h
37060 ;;
37061 esac
37062fi
37063if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037064 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037065else
37066 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37067 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37068 fi fi
37069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37070$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37071 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037072 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37073 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37074 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37075 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37076 $as_echo "#endif/" >> conftest.prefix
37077 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37078 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37079 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037080 # now executing _script on _DEF input to create _OUT output file
37081 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37082 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37083 echo ' ' >>$tmp/pconfig.h
37084 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37085
37086 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37087 echo ' ' >>$tmp/pconfig.h
37088 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37089 echo "#endif" >>$tmp/pconfig.h
37090 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37091 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37092$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37093 else
37094 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37095$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37096 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37097 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37098 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37099$as_echo X"$ac_prefix_conf_OUT" |
37100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37101 s//\1/
37102 q
37103 }
37104 /^X\(\/\/\)[^/].*/{
37105 s//\1/
37106 q
37107 }
37108 /^X\(\/\/\)$/{
37109 s//\1/
37110 q
37111 }
37112 /^X\(\/\).*/{
37113 s//\1/
37114 q
37115 }
37116 s/.*/./; q'`
37117 as_dir="$ac_dir"; as_fn_mkdir_p
37118 rm -f "$ac_prefix_conf_OUT"
37119 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37120 fi
37121 cp conftest.prefix _configs.sed
37122 else
cristy98dddb52010-11-04 00:30:15 +000037123 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 +000037124 fi
37125 rm -f conftest.*
37126fi
37127 ;;
37128 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37129 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37130 # are listed without --file. Let's play safe and only enable the eval
37131 # if we detect the quoting.
37132 case $CONFIG_FILES in
37133 *\'*) eval set x "$CONFIG_FILES" ;;
37134 *) set x $CONFIG_FILES ;;
37135 esac
37136 shift
37137 for mf
37138 do
37139 # Strip MF so we end up with the name of the file.
37140 mf=`echo "$mf" | sed -e 's/:.*$//'`
37141 # Check whether this is an Automake generated Makefile or not.
37142 # We used to match only the files named `Makefile.in', but
37143 # some people rename them; so instead we look at the file content.
37144 # Grep'ing the first line is not enough: some people post-process
37145 # each Makefile.in and add a new line on top of each file to say so.
37146 # Grep'ing the whole file is not good either: AIX grep has a line
37147 # limit of 2048, but all sed's we know have understand at least 4000.
37148 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37149 dirpart=`$as_dirname -- "$mf" ||
37150$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37151 X"$mf" : 'X\(//\)[^/]' \| \
37152 X"$mf" : 'X\(//\)$' \| \
37153 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37154$as_echo X"$mf" |
37155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37156 s//\1/
37157 q
37158 }
37159 /^X\(\/\/\)[^/].*/{
37160 s//\1/
37161 q
37162 }
37163 /^X\(\/\/\)$/{
37164 s//\1/
37165 q
37166 }
37167 /^X\(\/\).*/{
37168 s//\1/
37169 q
37170 }
37171 s/.*/./; q'`
37172 else
37173 continue
37174 fi
37175 # Extract the definition of DEPDIR, am__include, and am__quote
37176 # from the Makefile without running `make'.
37177 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37178 test -z "$DEPDIR" && continue
37179 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37180 test -z "am__include" && continue
37181 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37182 # When using ansi2knr, U may be empty or an underscore; expand it
37183 U=`sed -n 's/^U = //p' < "$mf"`
37184 # Find all dependency output files, they are included files with
37185 # $(DEPDIR) in their names. We invoke sed twice because it is the
37186 # simplest approach to changing $(DEPDIR) to its actual value in the
37187 # expansion.
37188 for file in `sed -n "
37189 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37190 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37191 # Make sure the directory exists.
37192 test -f "$dirpart/$file" && continue
37193 fdir=`$as_dirname -- "$file" ||
37194$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37195 X"$file" : 'X\(//\)[^/]' \| \
37196 X"$file" : 'X\(//\)$' \| \
37197 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37198$as_echo X"$file" |
37199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37200 s//\1/
37201 q
37202 }
37203 /^X\(\/\/\)[^/].*/{
37204 s//\1/
37205 q
37206 }
37207 /^X\(\/\/\)$/{
37208 s//\1/
37209 q
37210 }
37211 /^X\(\/\).*/{
37212 s//\1/
37213 q
37214 }
37215 s/.*/./; q'`
37216 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37217 # echo "creating $dirpart/$file"
37218 echo '# dummy' > "$dirpart/$file"
37219 done
37220 done
37221}
37222 ;;
37223 "libtool":C)
37224
37225 # See if we are running on zsh, and set the options which allow our
37226 # commands through without removal of \ escapes.
37227 if test -n "${ZSH_VERSION+set}" ; then
37228 setopt NO_GLOB_SUBST
37229 fi
37230
37231 cfgfile="${ofile}T"
37232 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37233 $RM "$cfgfile"
37234
37235 cat <<_LT_EOF >> "$cfgfile"
37236#! $SHELL
37237
37238# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37239# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37240# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37241# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37242#
37243# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000037244# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37245# Inc.
cristy73bd4a52010-10-05 11:24:23 +000037246# Written by Gordon Matzigkeit, 1996
37247#
37248# This file is part of GNU Libtool.
37249#
37250# GNU Libtool is free software; you can redistribute it and/or
37251# modify it under the terms of the GNU General Public License as
37252# published by the Free Software Foundation; either version 2 of
37253# the License, or (at your option) any later version.
37254#
37255# As a special exception to the GNU General Public License,
37256# if you distribute this file as part of a program or library that
37257# is built using GNU Libtool, you may include this file under the
37258# same distribution terms that you use for the rest of that program.
37259#
37260# GNU Libtool is distributed in the hope that it will be useful,
37261# but WITHOUT ANY WARRANTY; without even the implied warranty of
37262# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37263# GNU General Public License for more details.
37264#
37265# You should have received a copy of the GNU General Public License
37266# along with GNU Libtool; see the file COPYING. If not, a copy
37267# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37268# obtained by writing to the Free Software Foundation, Inc.,
37269# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37270
37271
37272# The names of the tagged configurations supported by this script.
37273available_tags="CXX "
37274
37275# ### BEGIN LIBTOOL CONFIG
37276
37277# A sed program that does not truncate output.
37278SED=$lt_SED
37279
37280# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37281Xsed="\$SED -e 1s/^X//"
37282
37283# A grep program that handles long lines.
37284GREP=$lt_GREP
37285
37286# An ERE matcher.
37287EGREP=$lt_EGREP
37288
37289# A literal string matcher.
37290FGREP=$lt_FGREP
37291
cristy0c60a692010-11-04 01:09:47 +000037292# Shell to use when invoking shell scripts.
37293SHELL=$lt_SHELL
37294
37295# An echo program that protects backslashes.
37296ECHO=$lt_ECHO
37297
cristy73bd4a52010-10-05 11:24:23 +000037298# Which release of libtool.m4 was used?
37299macro_version=$macro_version
37300macro_revision=$macro_revision
37301
37302# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037303AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037304
37305# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037306DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037307
37308# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037309OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037310
37311# Whether or not to build shared libraries.
37312build_libtool_libs=$enable_shared
37313
37314# Whether or not to build static libraries.
37315build_old_libs=$enable_static
37316
37317# What type of objects to build.
37318pic_mode=$pic_mode
37319
37320# Whether or not to optimize for fast installation.
37321fast_install=$enable_fast_install
37322
37323# The host system.
37324host_alias=$host_alias
37325host=$host
37326host_os=$host_os
37327
37328# The build system.
37329build_alias=$build_alias
37330build=$build
37331build_os=$build_os
37332
37333# A BSD- or MS-compatible name lister.
37334NM=$lt_NM
37335
37336# Whether we need soft or hard links.
37337LN_S=$lt_LN_S
37338
37339# What is the maximum length of a command?
37340max_cmd_len=$max_cmd_len
37341
37342# Object file suffix (normally "o").
37343objext=$ac_objext
37344
37345# Executable file suffix (normally "").
37346exeext=$exeext
37347
37348# whether the shell understands "unset".
37349lt_unset=$lt_unset
37350
37351# turn spaces into newlines.
37352SP2NL=$lt_lt_SP2NL
37353
37354# turn newlines into spaces.
37355NL2SP=$lt_lt_NL2SP
37356
cristyda16f162011-02-19 23:52:17 +000037357# convert \$build file names to \$host format.
37358to_host_file_cmd=$lt_cv_to_host_file_cmd
37359
37360# convert \$build files to toolchain format.
37361to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37362
cristy73bd4a52010-10-05 11:24:23 +000037363# Method to check whether dependent libraries are shared objects.
37364deplibs_check_method=$lt_deplibs_check_method
37365
cristyda16f162011-02-19 23:52:17 +000037366# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037367file_magic_cmd=$lt_file_magic_cmd
37368
cristyda16f162011-02-19 23:52:17 +000037369# How to find potential files when deplibs_check_method = "file_magic".
37370file_magic_glob=$lt_file_magic_glob
37371
37372# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37373want_nocaseglob=$lt_want_nocaseglob
37374
37375# Command to associate shared and link libraries.
37376sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37377
cristy73bd4a52010-10-05 11:24:23 +000037378# The archiver.
37379AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037380
37381# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037382AR_FLAGS=$lt_AR_FLAGS
37383
cristyda16f162011-02-19 23:52:17 +000037384# How to feed a file listing to the archiver.
37385archiver_list_spec=$lt_archiver_list_spec
37386
cristy73bd4a52010-10-05 11:24:23 +000037387# A symbol stripping program.
37388STRIP=$lt_STRIP
37389
37390# Commands used to install an old-style archive.
37391RANLIB=$lt_RANLIB
37392old_postinstall_cmds=$lt_old_postinstall_cmds
37393old_postuninstall_cmds=$lt_old_postuninstall_cmds
37394
cristy0c60a692010-11-04 01:09:47 +000037395# Whether to use a lock for old archive extraction.
37396lock_old_archive_extraction=$lock_old_archive_extraction
37397
cristy73bd4a52010-10-05 11:24:23 +000037398# A C compiler.
37399LTCC=$lt_CC
37400
37401# LTCC compiler flags.
37402LTCFLAGS=$lt_CFLAGS
37403
37404# Take the output of nm and produce a listing of raw symbols and C names.
37405global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37406
37407# Transform the output of nm in a proper C declaration.
37408global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37409
37410# Transform the output of nm in a C name address pair.
37411global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37412
37413# Transform the output of nm in a C name address pair when lib prefix is needed.
37414global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37415
cristyda16f162011-02-19 23:52:17 +000037416# Specify filename containing input files for \$NM.
37417nm_file_list_spec=$lt_nm_file_list_spec
37418
37419# The root where to search for dependent libraries,and in which our libraries should be installed.
37420lt_sysroot=$lt_sysroot
37421
cristy73bd4a52010-10-05 11:24:23 +000037422# The name of the directory that contains temporary libtool files.
37423objdir=$objdir
37424
cristy73bd4a52010-10-05 11:24:23 +000037425# Used to examine libraries when file_magic_cmd begins with "file".
37426MAGIC_CMD=$MAGIC_CMD
37427
37428# Must we lock files when doing compilation?
37429need_locks=$lt_need_locks
37430
cristyda16f162011-02-19 23:52:17 +000037431# Manifest tool.
37432MANIFEST_TOOL=$lt_MANIFEST_TOOL
37433
cristy73bd4a52010-10-05 11:24:23 +000037434# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37435DSYMUTIL=$lt_DSYMUTIL
37436
37437# Tool to change global to local symbols on Mac OS X.
37438NMEDIT=$lt_NMEDIT
37439
37440# Tool to manipulate fat objects and archives on Mac OS X.
37441LIPO=$lt_LIPO
37442
37443# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37444OTOOL=$lt_OTOOL
37445
37446# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37447OTOOL64=$lt_OTOOL64
37448
37449# Old archive suffix (normally "a").
37450libext=$libext
37451
37452# Shared library suffix (normally ".so").
37453shrext_cmds=$lt_shrext_cmds
37454
37455# The commands to extract the exported symbol list from a shared archive.
37456extract_expsyms_cmds=$lt_extract_expsyms_cmds
37457
37458# Variables whose values should be saved in libtool wrapper scripts and
37459# restored at link time.
37460variables_saved_for_relink=$lt_variables_saved_for_relink
37461
37462# Do we need the "lib" prefix for modules?
37463need_lib_prefix=$need_lib_prefix
37464
37465# Do we need a version for libraries?
37466need_version=$need_version
37467
37468# Library versioning type.
37469version_type=$version_type
37470
37471# Shared library runtime path variable.
37472runpath_var=$runpath_var
37473
37474# Shared library path variable.
37475shlibpath_var=$shlibpath_var
37476
37477# Is shlibpath searched before the hard-coded library search path?
37478shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37479
37480# Format of library name prefix.
37481libname_spec=$lt_libname_spec
37482
37483# List of archive names. First name is the real one, the rest are links.
37484# The last name is the one that the linker finds with -lNAME
37485library_names_spec=$lt_library_names_spec
37486
37487# The coded name of the library, if different from the real name.
37488soname_spec=$lt_soname_spec
37489
cristy0c60a692010-11-04 01:09:47 +000037490# Permission mode override for installation of shared libraries.
37491install_override_mode=$lt_install_override_mode
37492
cristy73bd4a52010-10-05 11:24:23 +000037493# Command to use after installation of a shared archive.
37494postinstall_cmds=$lt_postinstall_cmds
37495
37496# Command to use after uninstallation of a shared archive.
37497postuninstall_cmds=$lt_postuninstall_cmds
37498
37499# Commands used to finish a libtool library installation in a directory.
37500finish_cmds=$lt_finish_cmds
37501
37502# As "finish_cmds", except a single script fragment to be evaled but
37503# not shown.
37504finish_eval=$lt_finish_eval
37505
37506# Whether we should hardcode library paths into libraries.
37507hardcode_into_libs=$hardcode_into_libs
37508
37509# Compile-time system search path for libraries.
37510sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37511
37512# Run-time system search path for libraries.
37513sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37514
37515# Whether dlopen is supported.
37516dlopen_support=$enable_dlopen
37517
37518# Whether dlopen of programs is supported.
37519dlopen_self=$enable_dlopen_self
37520
37521# Whether dlopen of statically linked programs is supported.
37522dlopen_self_static=$enable_dlopen_self_static
37523
37524# Commands to strip libraries.
37525old_striplib=$lt_old_striplib
37526striplib=$lt_striplib
37527
37528
37529# The linker used to build libraries.
37530LD=$lt_LD
37531
cristy0c60a692010-11-04 01:09:47 +000037532# How to create reloadable object files.
37533reload_flag=$lt_reload_flag
37534reload_cmds=$lt_reload_cmds
37535
cristy73bd4a52010-10-05 11:24:23 +000037536# Commands used to build an old-style archive.
37537old_archive_cmds=$lt_old_archive_cmds
37538
37539# A language specific compiler.
37540CC=$lt_compiler
37541
37542# Is the compiler the GNU compiler?
37543with_gcc=$GCC
37544
37545# Compiler flag to turn off builtin functions.
37546no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37547
cristy73bd4a52010-10-05 11:24:23 +000037548# Additional compiler flags for building library objects.
37549pic_flag=$lt_lt_prog_compiler_pic
37550
cristyda16f162011-02-19 23:52:17 +000037551# How to pass a linker flag through the compiler.
37552wl=$lt_lt_prog_compiler_wl
37553
cristy73bd4a52010-10-05 11:24:23 +000037554# Compiler flag to prevent dynamic linking.
37555link_static_flag=$lt_lt_prog_compiler_static
37556
37557# Does compiler simultaneously support -c and -o options?
37558compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37559
37560# Whether or not to add -lc for building shared libraries.
37561build_libtool_need_lc=$archive_cmds_need_lc
37562
37563# Whether or not to disallow shared libs when runtime libs are static.
37564allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37565
37566# Compiler flag to allow reflexive dlopens.
37567export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37568
37569# Compiler flag to generate shared objects directly from archives.
37570whole_archive_flag_spec=$lt_whole_archive_flag_spec
37571
37572# Whether the compiler copes with passing no objects directly.
37573compiler_needs_object=$lt_compiler_needs_object
37574
37575# Create an old-style archive from a shared archive.
37576old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37577
37578# Create a temporary old-style archive to link instead of a shared archive.
37579old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37580
37581# Commands used to build a shared archive.
37582archive_cmds=$lt_archive_cmds
37583archive_expsym_cmds=$lt_archive_expsym_cmds
37584
37585# Commands used to build a loadable module if different from building
37586# a shared archive.
37587module_cmds=$lt_module_cmds
37588module_expsym_cmds=$lt_module_expsym_cmds
37589
37590# Whether we are building with GNU ld or not.
37591with_gnu_ld=$lt_with_gnu_ld
37592
37593# Flag that allows shared libraries with undefined symbols to be built.
37594allow_undefined_flag=$lt_allow_undefined_flag
37595
37596# Flag that enforces no undefined symbols.
37597no_undefined_flag=$lt_no_undefined_flag
37598
37599# Flag to hardcode \$libdir into a binary during linking.
37600# This must work even if \$libdir does not exist
37601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37602
37603# If ld is used when linking, flag to hardcode \$libdir into a binary
37604# during linking. This must work even if \$libdir does not exist.
37605hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37606
37607# Whether we need a single "-rpath" flag with a separated argument.
37608hardcode_libdir_separator=$lt_hardcode_libdir_separator
37609
37610# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37611# DIR into the resulting binary.
37612hardcode_direct=$hardcode_direct
37613
37614# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37615# DIR into the resulting binary and the resulting library dependency is
37616# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37617# library is relocated.
37618hardcode_direct_absolute=$hardcode_direct_absolute
37619
37620# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37621# into the resulting binary.
37622hardcode_minus_L=$hardcode_minus_L
37623
37624# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37625# into the resulting binary.
37626hardcode_shlibpath_var=$hardcode_shlibpath_var
37627
37628# Set to "yes" if building a shared library automatically hardcodes DIR
37629# into the library and all subsequent libraries and executables linked
37630# against it.
37631hardcode_automatic=$hardcode_automatic
37632
37633# Set to yes if linker adds runtime paths of dependent libraries
37634# to runtime path list.
37635inherit_rpath=$inherit_rpath
37636
37637# Whether libtool must link a program against all its dependency libraries.
37638link_all_deplibs=$link_all_deplibs
37639
cristy73bd4a52010-10-05 11:24:23 +000037640# Set to "yes" if exported symbols are required.
37641always_export_symbols=$always_export_symbols
37642
37643# The commands to list exported symbols.
37644export_symbols_cmds=$lt_export_symbols_cmds
37645
37646# Symbols that should not be listed in the preloaded symbols.
37647exclude_expsyms=$lt_exclude_expsyms
37648
37649# Symbols that must always be exported.
37650include_expsyms=$lt_include_expsyms
37651
37652# Commands necessary for linking programs (against libraries) with templates.
37653prelink_cmds=$lt_prelink_cmds
37654
cristyda16f162011-02-19 23:52:17 +000037655# Commands necessary for finishing linking programs.
37656postlink_cmds=$lt_postlink_cmds
37657
cristy73bd4a52010-10-05 11:24:23 +000037658# Specify filename containing input files.
37659file_list_spec=$lt_file_list_spec
37660
37661# How to hardcode a shared library path into an executable.
37662hardcode_action=$hardcode_action
37663
37664# The directories searched by this compiler when creating a shared library.
37665compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37666
37667# Dependencies to place before and after the objects being linked to
37668# create a shared library.
37669predep_objects=$lt_predep_objects
37670postdep_objects=$lt_postdep_objects
37671predeps=$lt_predeps
37672postdeps=$lt_postdeps
37673
37674# The library search path used internally by the compiler when linking
37675# a shared library.
37676compiler_lib_search_path=$lt_compiler_lib_search_path
37677
37678# ### END LIBTOOL CONFIG
37679
37680_LT_EOF
37681
37682 case $host_os in
37683 aix3*)
37684 cat <<\_LT_EOF >> "$cfgfile"
37685# AIX sometimes has problems with the GCC collect2 program. For some
37686# reason, if we set the COLLECT_NAMES environment variable, the problems
37687# vanish in a puff of smoke.
37688if test "X${COLLECT_NAMES+set}" != Xset; then
37689 COLLECT_NAMES=
37690 export COLLECT_NAMES
37691fi
37692_LT_EOF
37693 ;;
37694 esac
37695
37696
37697ltmain="$ac_aux_dir/ltmain.sh"
37698
37699
37700 # We use sed instead of cat because bash on DJGPP gets confused if
37701 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37702 # text mode, it properly converts lines to CR/LF. This bash problem
37703 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037704 sed '$q' "$ltmain" >> "$cfgfile" \
37705 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037706
cristyda16f162011-02-19 23:52:17 +000037707 if test x"$xsi_shell" = xyes; then
37708 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37709func_dirname ()\
37710{\
37711\ case ${1} in\
37712\ */*) func_dirname_result="${1%/*}${2}" ;;\
37713\ * ) func_dirname_result="${3}" ;;\
37714\ esac\
37715} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37716 && mv -f "$cfgfile.tmp" "$cfgfile" \
37717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37718test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037719
37720
cristyda16f162011-02-19 23:52:17 +000037721 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37722func_basename ()\
37723{\
37724\ func_basename_result="${1##*/}"\
37725} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37726 && mv -f "$cfgfile.tmp" "$cfgfile" \
37727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37728test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037729
37730
cristyda16f162011-02-19 23:52:17 +000037731 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37732func_dirname_and_basename ()\
37733{\
37734\ case ${1} in\
37735\ */*) func_dirname_result="${1%/*}${2}" ;;\
37736\ * ) func_dirname_result="${3}" ;;\
37737\ esac\
37738\ func_basename_result="${1##*/}"\
37739} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37740 && mv -f "$cfgfile.tmp" "$cfgfile" \
37741 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37742test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037743
cristyda16f162011-02-19 23:52:17 +000037744
37745 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37746func_stripname ()\
37747{\
37748\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37749\ # positional parameters, so assign one to ordinary parameter first.\
37750\ func_stripname_result=${3}\
37751\ func_stripname_result=${func_stripname_result#"${1}"}\
37752\ func_stripname_result=${func_stripname_result%"${2}"}\
37753} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37754 && mv -f "$cfgfile.tmp" "$cfgfile" \
37755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37756test 0 -eq $? || _lt_function_replace_fail=:
37757
37758
37759 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37760func_split_long_opt ()\
37761{\
37762\ func_split_long_opt_name=${1%%=*}\
37763\ func_split_long_opt_arg=${1#*=}\
37764} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37765 && mv -f "$cfgfile.tmp" "$cfgfile" \
37766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37767test 0 -eq $? || _lt_function_replace_fail=:
37768
37769
37770 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37771func_split_short_opt ()\
37772{\
37773\ func_split_short_opt_arg=${1#??}\
37774\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37775} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37776 && mv -f "$cfgfile.tmp" "$cfgfile" \
37777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37778test 0 -eq $? || _lt_function_replace_fail=:
37779
37780
37781 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37782func_lo2o ()\
37783{\
37784\ case ${1} in\
37785\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37786\ *) func_lo2o_result=${1} ;;\
37787\ esac\
37788} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37789 && mv -f "$cfgfile.tmp" "$cfgfile" \
37790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37791test 0 -eq $? || _lt_function_replace_fail=:
37792
37793
37794 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37795func_xform ()\
37796{\
37797 func_xform_result=${1%.*}.lo\
37798} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37799 && mv -f "$cfgfile.tmp" "$cfgfile" \
37800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37801test 0 -eq $? || _lt_function_replace_fail=:
37802
37803
37804 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37805func_arith ()\
37806{\
37807 func_arith_result=$(( $* ))\
37808} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37809 && mv -f "$cfgfile.tmp" "$cfgfile" \
37810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37811test 0 -eq $? || _lt_function_replace_fail=:
37812
37813
37814 sed -e '/^func_len ()$/,/^} # func_len /c\
37815func_len ()\
37816{\
37817 func_len_result=${#1}\
37818} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37819 && mv -f "$cfgfile.tmp" "$cfgfile" \
37820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37821test 0 -eq $? || _lt_function_replace_fail=:
37822
37823fi
37824
37825if test x"$lt_shell_append" = xyes; then
37826 sed -e '/^func_append ()$/,/^} # func_append /c\
37827func_append ()\
37828{\
37829 eval "${1}+=\\${2}"\
37830} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37831 && mv -f "$cfgfile.tmp" "$cfgfile" \
37832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37833test 0 -eq $? || _lt_function_replace_fail=:
37834
37835
37836 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37837func_append_quoted ()\
37838{\
37839\ func_quote_for_eval "${2}"\
37840\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37841} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37842 && mv -f "$cfgfile.tmp" "$cfgfile" \
37843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37844test 0 -eq $? || _lt_function_replace_fail=:
37845
37846
37847 # Save a `func_append' function call where possible by direct use of '+='
37848 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37849 && mv -f "$cfgfile.tmp" "$cfgfile" \
37850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37851 test 0 -eq $? || _lt_function_replace_fail=:
37852else
37853 # Save a `func_append' function call even when '+=' is not available
37854 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37855 && mv -f "$cfgfile.tmp" "$cfgfile" \
37856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37857 test 0 -eq $? || _lt_function_replace_fail=:
37858fi
37859
37860if test x"$_lt_function_replace_fail" = x":"; then
37861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37862$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37863fi
37864
37865
37866 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037867 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37868 chmod +x "$ofile"
37869
37870
37871 cat <<_LT_EOF >> "$ofile"
37872
37873# ### BEGIN LIBTOOL TAG CONFIG: CXX
37874
37875# The linker used to build libraries.
37876LD=$lt_LD_CXX
37877
cristy0c60a692010-11-04 01:09:47 +000037878# How to create reloadable object files.
37879reload_flag=$lt_reload_flag_CXX
37880reload_cmds=$lt_reload_cmds_CXX
37881
cristy73bd4a52010-10-05 11:24:23 +000037882# Commands used to build an old-style archive.
37883old_archive_cmds=$lt_old_archive_cmds_CXX
37884
37885# A language specific compiler.
37886CC=$lt_compiler_CXX
37887
37888# Is the compiler the GNU compiler?
37889with_gcc=$GCC_CXX
37890
37891# Compiler flag to turn off builtin functions.
37892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37893
cristy73bd4a52010-10-05 11:24:23 +000037894# Additional compiler flags for building library objects.
37895pic_flag=$lt_lt_prog_compiler_pic_CXX
37896
cristyda16f162011-02-19 23:52:17 +000037897# How to pass a linker flag through the compiler.
37898wl=$lt_lt_prog_compiler_wl_CXX
37899
cristy73bd4a52010-10-05 11:24:23 +000037900# Compiler flag to prevent dynamic linking.
37901link_static_flag=$lt_lt_prog_compiler_static_CXX
37902
37903# Does compiler simultaneously support -c and -o options?
37904compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37905
37906# Whether or not to add -lc for building shared libraries.
37907build_libtool_need_lc=$archive_cmds_need_lc_CXX
37908
37909# Whether or not to disallow shared libs when runtime libs are static.
37910allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37911
37912# Compiler flag to allow reflexive dlopens.
37913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37914
37915# Compiler flag to generate shared objects directly from archives.
37916whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37917
37918# Whether the compiler copes with passing no objects directly.
37919compiler_needs_object=$lt_compiler_needs_object_CXX
37920
37921# Create an old-style archive from a shared archive.
37922old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37923
37924# Create a temporary old-style archive to link instead of a shared archive.
37925old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37926
37927# Commands used to build a shared archive.
37928archive_cmds=$lt_archive_cmds_CXX
37929archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37930
37931# Commands used to build a loadable module if different from building
37932# a shared archive.
37933module_cmds=$lt_module_cmds_CXX
37934module_expsym_cmds=$lt_module_expsym_cmds_CXX
37935
37936# Whether we are building with GNU ld or not.
37937with_gnu_ld=$lt_with_gnu_ld_CXX
37938
37939# Flag that allows shared libraries with undefined symbols to be built.
37940allow_undefined_flag=$lt_allow_undefined_flag_CXX
37941
37942# Flag that enforces no undefined symbols.
37943no_undefined_flag=$lt_no_undefined_flag_CXX
37944
37945# Flag to hardcode \$libdir into a binary during linking.
37946# This must work even if \$libdir does not exist
37947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37948
37949# If ld is used when linking, flag to hardcode \$libdir into a binary
37950# during linking. This must work even if \$libdir does not exist.
37951hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37952
37953# Whether we need a single "-rpath" flag with a separated argument.
37954hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37955
37956# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37957# DIR into the resulting binary.
37958hardcode_direct=$hardcode_direct_CXX
37959
37960# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37961# DIR into the resulting binary and the resulting library dependency is
37962# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37963# library is relocated.
37964hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37965
37966# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37967# into the resulting binary.
37968hardcode_minus_L=$hardcode_minus_L_CXX
37969
37970# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37971# into the resulting binary.
37972hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37973
37974# Set to "yes" if building a shared library automatically hardcodes DIR
37975# into the library and all subsequent libraries and executables linked
37976# against it.
37977hardcode_automatic=$hardcode_automatic_CXX
37978
37979# Set to yes if linker adds runtime paths of dependent libraries
37980# to runtime path list.
37981inherit_rpath=$inherit_rpath_CXX
37982
37983# Whether libtool must link a program against all its dependency libraries.
37984link_all_deplibs=$link_all_deplibs_CXX
37985
cristy73bd4a52010-10-05 11:24:23 +000037986# Set to "yes" if exported symbols are required.
37987always_export_symbols=$always_export_symbols_CXX
37988
37989# The commands to list exported symbols.
37990export_symbols_cmds=$lt_export_symbols_cmds_CXX
37991
37992# Symbols that should not be listed in the preloaded symbols.
37993exclude_expsyms=$lt_exclude_expsyms_CXX
37994
37995# Symbols that must always be exported.
37996include_expsyms=$lt_include_expsyms_CXX
37997
37998# Commands necessary for linking programs (against libraries) with templates.
37999prelink_cmds=$lt_prelink_cmds_CXX
38000
cristyda16f162011-02-19 23:52:17 +000038001# Commands necessary for finishing linking programs.
38002postlink_cmds=$lt_postlink_cmds_CXX
38003
cristy73bd4a52010-10-05 11:24:23 +000038004# Specify filename containing input files.
38005file_list_spec=$lt_file_list_spec_CXX
38006
38007# How to hardcode a shared library path into an executable.
38008hardcode_action=$hardcode_action_CXX
38009
38010# The directories searched by this compiler when creating a shared library.
38011compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38012
38013# Dependencies to place before and after the objects being linked to
38014# create a shared library.
38015predep_objects=$lt_predep_objects_CXX
38016postdep_objects=$lt_postdep_objects_CXX
38017predeps=$lt_predeps_CXX
38018postdeps=$lt_postdeps_CXX
38019
38020# The library search path used internally by the compiler when linking
38021# a shared library.
38022compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38023
38024# ### END LIBTOOL TAG CONFIG: CXX
38025_LT_EOF
38026
38027 ;;
cristy4c08aed2011-07-01 19:47:50 +000038028 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038029 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038030 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38031 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38032
38033 esac
38034done # for ac_tag
38035
38036
cristy8b350f62009-11-15 23:12:43 +000038037as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038038_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038039ac_clean_files=$ac_clean_files_save
38040
38041test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038042 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038043
38044
38045# configure is writing to config.log, and then calls config.status.
38046# config.status does its own redirection, appending to config.log.
38047# Unfortunately, on DOS this fails, as config.log is still kept open
38048# by configure, so config.status won't be able to write to it; its
38049# output is simply discarded. So we exec the FD to /dev/null,
38050# effectively closing config.log, so it can be properly (re)opened and
38051# appended to by config.status. When coming back to configure, we
38052# need to make the FD available again.
38053if test "$no_create" != yes; then
38054 ac_cs_success=:
38055 ac_config_status_args=
38056 test "$silent" = yes &&
38057 ac_config_status_args="$ac_config_status_args --quiet"
38058 exec 5>/dev/null
38059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38060 exec 5>>config.log
38061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38062 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038063 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038064fi
38065if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038067$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38068fi
38069
38070
38071rm -f magick-version
38072
cristy430a7312010-01-21 20:44:04 +000038073result_dejavu_font_dir='none'
38074if test "${dejavu_font_dir}x" != 'x'; then
38075 result_dejavu_font_dir=$dejavu_font_dir
38076fi
38077
cristy3ed852e2009-09-05 21:47:34 +000038078result_ghostscript_font_dir='none'
38079if test "${ghostscript_font_dir}x" != 'x'; then
38080 result_ghostscript_font_dir=$ghostscript_font_dir
38081fi
38082
38083result_windows_font_dir='none'
38084if test "${windows_font_dir}x" != 'x'; then
38085 result_windows_font_dir=${windows_font_dir}
38086fi
38087
cristy09b53e12011-10-14 12:47:22 +000038088{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038089ImageMagick is configured as follows. Please verify that this configuration
38090matches your expectations.
38091
38092Host system type: $host
38093Build system type: $build
38094
38095 Option Value
38096-------------------------------------------------------------------------------
38097Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38098Static libraries --enable-static=$enable_static $libtool_build_static_libs
38099Module support --with-modules=$with_modules $with_modules
38100GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38101Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38102High Dynamic Range Imagery
38103 --enable-hdri=$enable_hdri $enable_hdri
38104
38105Delegate Configuration:
38106BZLIB --with-bzlib=$with_bzlib $have_bzlib
38107Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038108Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038109DJVU --with-djvu=$with_djvu $have_djvu
38110DPS --with-dps=$with_dps $have_dps
38111FFTW --with-fftw=$with_fftw $have_fftw
38112FlashPIX --with-fpx=$with_fpx $have_fpx
38113FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38114FreeType --with-freetype=$with_freetype $have_freetype
38115GhostPCL None $PCLDelegate ($PCLVersion)
38116GhostXPS None $XPSDelegate ($XPSVersion)
38117Ghostscript None $PSDelegate ($GSVersion)
38118Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38119Ghostscript lib --with-gslib=$with_gslib $have_gslib
38120Graphviz --with-gvc=$with_gvc $have_gvc
38121JBIG --with-jbig=$with_jbig $have_jbig
38122JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38123JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038124LCMS v1 --with-lcms=$with_lcms $have_lcms
38125LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038126LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038127LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038128Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38129OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038130PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038131PERL --with-perl=$with_perl $have_perl
38132PNG --with-png=$with_png $have_png
38133RSVG --with-rsvg=$with_rsvg $have_rsvg
38134TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038135WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038136Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38137WMF --with-wmf=$with_wmf $have_wmf
38138X11 --with-x=$with_x $have_x
38139XML --with-xml=$with_xml $have_xml
38140ZLIB --with-zlib=$with_zlib $have_zlib
38141
38142X11 Configuration:
38143 X_CFLAGS = $X_CFLAGS
38144 X_PRE_LIBS = $X_PRE_LIBS
38145 X_LIBS = $X_LIBS
38146 X_EXTRA_LIBS = $X_EXTRA_LIBS
38147
38148Options used to compile and link:
38149 PREFIX = $PREFIX_DIR
38150 EXEC-PREFIX = $EXEC_PREFIX_DIR
38151 VERSION = $PACKAGE_VERSION
38152 CC = $CC
38153 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038154 CPPFLAGS = $MAGICK_CPPFLAGS
38155 PCFLAGS = $MAGICK_PCFLAGS
38156 DEFS = $DEFS
38157 LDFLAGS = $LDFLAGS
38158 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38159 LIBS = $MAGICK_LIBS
38160 CXX = $CXX
38161 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038162 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038163" >&5
cristy09b53e12011-10-14 12:47:22 +000038164$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038165ImageMagick is configured as follows. Please verify that this configuration
38166matches your expectations.
38167
38168Host system type: $host
38169Build system type: $build
38170
38171 Option Value
38172-------------------------------------------------------------------------------
38173Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38174Static libraries --enable-static=$enable_static $libtool_build_static_libs
38175Module support --with-modules=$with_modules $with_modules
38176GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38177Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38178High Dynamic Range Imagery
38179 --enable-hdri=$enable_hdri $enable_hdri
38180
38181Delegate Configuration:
38182BZLIB --with-bzlib=$with_bzlib $have_bzlib
38183Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038184Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038185DJVU --with-djvu=$with_djvu $have_djvu
38186DPS --with-dps=$with_dps $have_dps
38187FFTW --with-fftw=$with_fftw $have_fftw
38188FlashPIX --with-fpx=$with_fpx $have_fpx
38189FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38190FreeType --with-freetype=$with_freetype $have_freetype
38191GhostPCL None $PCLDelegate ($PCLVersion)
38192GhostXPS None $XPSDelegate ($XPSVersion)
38193Ghostscript None $PSDelegate ($GSVersion)
38194Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38195Ghostscript lib --with-gslib=$with_gslib $have_gslib
38196Graphviz --with-gvc=$with_gvc $have_gvc
38197JBIG --with-jbig=$with_jbig $have_jbig
38198JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38199JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038200LCMS v1 --with-lcms=$with_lcms $have_lcms
38201LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038202LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038203LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038204Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38205OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038206PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038207PERL --with-perl=$with_perl $have_perl
38208PNG --with-png=$with_png $have_png
38209RSVG --with-rsvg=$with_rsvg $have_rsvg
38210TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038211WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038212Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38213WMF --with-wmf=$with_wmf $have_wmf
38214X11 --with-x=$with_x $have_x
38215XML --with-xml=$with_xml $have_xml
38216ZLIB --with-zlib=$with_zlib $have_zlib
38217
38218X11 Configuration:
38219 X_CFLAGS = $X_CFLAGS
38220 X_PRE_LIBS = $X_PRE_LIBS
38221 X_LIBS = $X_LIBS
38222 X_EXTRA_LIBS = $X_EXTRA_LIBS
38223
38224Options used to compile and link:
38225 PREFIX = $PREFIX_DIR
38226 EXEC-PREFIX = $EXEC_PREFIX_DIR
38227 VERSION = $PACKAGE_VERSION
38228 CC = $CC
38229 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038230 CPPFLAGS = $MAGICK_CPPFLAGS
38231 PCFLAGS = $MAGICK_PCFLAGS
38232 DEFS = $DEFS
38233 LDFLAGS = $LDFLAGS
38234 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38235 LIBS = $MAGICK_LIBS
38236 CXX = $CXX
38237 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038238 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038239" >&6;}