blob: afef91e14a1d5104e6fd2541227aecd5095f7e78 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyda16f162011-02-19 23:52:17 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.6.7.
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'
576PACKAGE_TARNAME='ImageMagick'
cristy0805e062011-01-30 02:56:36 +0000577PACKAGE_VERSION='6.6.7'
578PACKAGE_STRING='ImageMagick 6.6.7'
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
582ac_unique_file="magick/MagickCore.h"
583ac_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
cristy23f7a922010-10-11 00:27:48 +0000684WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000685UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000686TXTDelegate
687SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000688RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000689RMDelegate
690RLEEncodeDelegate
691PSDelegate
692POVDelegate
693PGPDecodeDelegate
694PCLDelegate
695MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000696MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000697MPEGEncodeDelegate
698MPEGDecodeDelegate
699MANDelegate
700LaunchDelegate
701LZWEncodeDelegate
702LZWDecodeDelegate
703LPRDelegate
704LPDelegate
705ILBMEncodeDelegate
706ILBMDecodeDelegate
707HTMLDecodeDelegate
708HPGLDecodeDelegate
709HDRDecodeDelegate
710GnuplotDecodeDelegate
711MogrifyDelegate
712DisplayDelegate
713ConvertDelegate
714FIGDecodeDelegate
715EditorDelegate
716EchoDelegate
717DVIDecodeDelegate
718GVCDecodeDelegate
719DNGDecodeDelegate
720CatDelegate
721CGMDecodeDelegate
722BrowseDelegate
723BZIPDelegate
724BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725AutotraceDecodeDelegate
726SHARE_CONFIGURE_PATH
727SHARE_PATH
728DOCUMENTATION_PATH
729FILTER_PATH
730CODER_PATH
731CONFIGURE_PATH
732LIBRARY_PATH
733EXECUTABLE_PATH
734PERLMAINCC
735XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000736XML_DELEGATE_FALSE
737XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000738xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
838UINTPTR_T
839UINTMAX_T
840UINT64_T
841INT64_T
842UINT32_T
843INT32_T
844UINT16_T
845INT16_T
846UINT8_T
847INT8_T
848LIBRARY_EXTRA_CPPFLAGS
849MODULE_EXTRA_CPPFLAGS
850LIBSTDCLDFLAGS
851PERL_MAKE_OPTIONS
852QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000853MAINT
854MAINTAINER_MODE_FALSE
855MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856MAGICK_HDRI
857DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000858WITH_LTDL_FALSE
859WITH_LTDL_TRUE
860WITH_MODULES_FALSE
861WITH_MODULES_TRUE
862WITH_SHARED_LIBS_FALSE
863WITH_SHARED_LIBS_TRUE
864LTDLOPEN
865LT_CONFIG_H
866CONVENIENCE_LTDL_FALSE
867CONVENIENCE_LTDL_TRUE
868INSTALL_LTDL_FALSE
869INSTALL_LTDL_TRUE
870ARGZ_H
871sys_symbol_underscore
872LIBADD_DL
873LT_DLPREOPEN
874LIBADD_DLD_LINK
875LIBADD_SHL_LOAD
876LIBADD_DLOPEN
877LT_DLLOADERS
878INCLTDL
879LTDLINCL
880LTDLDEPS
881LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000882LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000883CXXCPP
884OTOOL64
885OTOOL
886LIPO
887NMEDIT
888DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000889MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000890RANLIB
cristyda16f162011-02-19 23:52:17 +0000891ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000892AR
893NM
894ac_ct_DUMPBIN
895DUMPBIN
896LIBTOOL
897OBJDUMP
898DLLTOOL
899AS
cristy3ed852e2009-09-05 21:47:34 +0000900LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000901CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000902CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000903OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000904PTHREAD_CFLAGS
905PTHREAD_LIBS
906PTHREAD_CC
907ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000908WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000909USING_CL_FALSE
910USING_CL_TRUE
911CYGWIN_BUILD_FALSE
912CYGWIN_BUILD_TRUE
913WIN32_NATIVE_BUILD_FALSE
914WIN32_NATIVE_BUILD_TRUE
915WINGDI32_DELEGATE_FALSE
916WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000917GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000918PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000919LN_S
cristy3ed852e2009-09-05 21:47:34 +0000920LD
cristy73bd4a52010-10-05 11:24:23 +0000921FGREP
922SED
923am__fastdepCXX_FALSE
924am__fastdepCXX_TRUE
925CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000926ac_ct_CXX
927CXXFLAGS
928CXX
cristya0b81c32010-01-22 02:54:33 +0000929EGREP
930GREP
931CPP
cristy73bd4a52010-10-05 11:24:23 +0000932am__fastdepCC_FALSE
933am__fastdepCC_TRUE
934CCDEPMODE
935AMDEPBACKSLASH
936AMDEP_FALSE
937AMDEP_TRUE
938am__quote
939am__include
940DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000941OBJEXT
942EXEEXT
943ac_ct_CC
944CPPFLAGS
945LDFLAGS
946CFLAGS
947CC
948DIRSEP
949MAGICK_FILTER_MODULE_PATH
950MAGICK_CONFIGURE_BUILD_PATH
951MAGICK_CONFIGURE_SRC_PATH
952MAGICK_CODER_MODULE_PATH
953MAN_DIR
954INFO_DIR
955PERSISTINCLUDE_DIR
956INCLUDE_DIR
957LIB_DIR
958LOCALSTATE_DIR
959SHAREDSTATE_DIR
960SYSCONF_DIR
961DATA_DIR
962LIBEXEC_DIR
963SBIN_DIR
964BIN_DIR
965EXEC_PREFIX_DIR
966PREFIX_DIR
967CONFIG_STATUS_DEPENDENCIES
968MAGICK_LIB_VERSION_NUMBER
969MAGICK_LIB_VERSION_TEXT
970MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000971AM_BACKSLASH
972AM_DEFAULT_VERBOSITY
973am__untar
974am__tar
975AMTAR
976am__leading_dot
977SET_MAKE
978AWK
979mkdir_p
980MKDIR_P
981INSTALL_STRIP_PROGRAM
982STRIP
983install_sh
984MAKEINFO
985AUTOHEADER
986AUTOMAKE
987AUTOCONF
988ACLOCAL
989VERSION
990PACKAGE
991CYGPATH_W
992am__isrc
993INSTALL_DATA
994INSTALL_SCRIPT
995INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000996PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000997PACKAGE_RELEASE_DATE
998PACKAGE_LIB_VERSION_NUMBER
999PACKAGE_LIB_VERSION
1000PACKAGE_CHANGE_DATE
1001PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001002MAGICK_LIBRARY_VERSION_INFO
1003MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001004MAGICK_LIBRARY_AGE
1005MAGICK_LIBRARY_REVISION
1006MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001007MAGICK_TARGET_OS
1008MAGICK_TARGET_VENDOR
1009MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001010target_os
1011target_vendor
1012target_cpu
1013target
1014host_os
1015host_vendor
1016host_cpu
1017host
1018build_os
1019build_vendor
1020build_cpu
1021build
1022CONFIGURE_ARGS
1023DISTCHECK_CONFIG_FLAGS
1024target_alias
1025host_alias
1026build_alias
1027LIBS
1028ECHO_T
1029ECHO_N
1030ECHO_C
1031DEFS
1032mandir
1033localedir
1034libdir
1035psdir
1036pdfdir
1037dvidir
1038htmldir
1039infodir
1040docdir
1041oldincludedir
1042includedir
1043localstatedir
1044sharedstatedir
1045sysconfdir
1046datadir
1047datarootdir
1048libexecdir
1049sbindir
1050bindir
1051program_transform_name
1052prefix
1053exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001054PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001055PACKAGE_BUGREPORT
1056PACKAGE_STRING
1057PACKAGE_VERSION
1058PACKAGE_TARNAME
1059PACKAGE_NAME
1060PATH_SEPARATOR
1061SHELL'
1062ac_subst_files=''
1063ac_user_opts='
1064enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001065enable_silent_rules
1066enable_dependency_tracking
1067with_gnu_ld
1068with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001069enable_bounds_checking
1070enable_osx_universal_binary
1071with_threads
1072enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001073enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001074enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001075enable_shared
1076enable_static
1077with_pic
1078enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001079with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001080enable_libtool_lock
1081with_included_ltdl
1082with_ltdl_include
1083with_ltdl_lib
1084enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001085with_modules
1086enable_delegate_build
1087enable_deprecated
1088enable_installed
1089enable_cipher
1090enable_embeddable
1091enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001092enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001093enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001094enable_ccmalloc
1095enable_efence
1096enable_prof
1097enable_gprof
1098enable_gcov
1099with_method_prefix
1100with_quantum_depth
1101with_cache
1102with_frozenpaths
1103with_magick_plus_plus
1104with_perl
1105with_perl_options
1106with_umem
1107with_libstdc
1108with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001109with_x
cristy3ed852e2009-09-05 21:47:34 +00001110with_zlib
1111with_autotrace
1112with_dps
1113with_djvu
cristy430a7312010-01-21 20:44:04 +00001114with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001115with_fftw
1116with_fpx
1117with_fontconfig
1118with_freetype
1119with_gslib
1120with_fontpath
1121with_gs_font_dir
1122with_gvc
1123with_jbig
1124with_jpeg
1125with_jp2
1126with_lcms
cristy71203402010-06-18 13:12:03 +00001127with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001128with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001129with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001130with_openexr
1131with_png
1132with_rsvg
1133with_tiff
1134with_windows_font_dir
1135with_wmf
1136with_xml
1137'
1138 ac_precious_vars='build_alias
1139host_alias
1140target_alias
1141CC
1142CFLAGS
1143LDFLAGS
1144LIBS
1145CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001146CPP
cristy3ed852e2009-09-05 21:47:34 +00001147CXX
1148CXXFLAGS
1149CCC
cristy73bd4a52010-10-05 11:24:23 +00001150PKG_CONFIG
1151CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001152XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001153AUTOTRACE_CFLAGS
1154AUTOTRACE_LIBS
1155FONTCONFIG_CFLAGS
1156FONTCONFIG_LIBS
1157GVC_CFLAGS
1158GVC_LIBS
1159LQR_CFLAGS
1160LQR_LIBS
1161OPENEXR_CFLAGS
1162OPENEXR_LIBS
1163RSVG_CFLAGS
1164RSVG_LIBS
1165CAIRO_SVG_CFLAGS
1166CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001167
1168
1169# Initialize some variables set by options.
1170ac_init_help=
1171ac_init_version=false
1172ac_unrecognized_opts=
1173ac_unrecognized_sep=
1174# The variables have the same names as the options, with
1175# dashes changed to underlines.
1176cache_file=/dev/null
1177exec_prefix=NONE
1178no_create=
1179no_recursion=
1180prefix=NONE
1181program_prefix=NONE
1182program_suffix=NONE
1183program_transform_name=s,x,x,
1184silent=
1185site=
1186srcdir=
1187verbose=
1188x_includes=NONE
1189x_libraries=NONE
1190
1191# Installation directory options.
1192# These are left unexpanded so users can "make install exec_prefix=/foo"
1193# and all the variables that are supposed to be based on exec_prefix
1194# by default will actually change.
1195# Use braces instead of parens because sh, perl, etc. also accept them.
1196# (The list follows the same order as the GNU Coding Standards.)
1197bindir='${exec_prefix}/bin'
1198sbindir='${exec_prefix}/sbin'
1199libexecdir='${exec_prefix}/libexec'
1200datarootdir='${prefix}/share'
1201datadir='${datarootdir}'
1202sysconfdir='${prefix}/etc'
1203sharedstatedir='${prefix}/com'
1204localstatedir='${prefix}/var'
1205includedir='${prefix}/include'
1206oldincludedir='/usr/include'
1207docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1208infodir='${datarootdir}/info'
1209htmldir='${docdir}'
1210dvidir='${docdir}'
1211pdfdir='${docdir}'
1212psdir='${docdir}'
1213libdir='${exec_prefix}/lib'
1214localedir='${datarootdir}/locale'
1215mandir='${datarootdir}/man'
1216
1217ac_prev=
1218ac_dashdash=
1219for ac_option
1220do
1221 # If the previous option needs an argument, assign it.
1222 if test -n "$ac_prev"; then
1223 eval $ac_prev=\$ac_option
1224 ac_prev=
1225 continue
1226 fi
1227
1228 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001229 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1230 *=) ac_optarg= ;;
1231 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001232 esac
1233
1234 # Accept the important Cygnus configure options, so we can diagnose typos.
1235
1236 case $ac_dashdash$ac_option in
1237 --)
1238 ac_dashdash=yes ;;
1239
1240 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1241 ac_prev=bindir ;;
1242 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1243 bindir=$ac_optarg ;;
1244
1245 -build | --build | --buil | --bui | --bu)
1246 ac_prev=build_alias ;;
1247 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1248 build_alias=$ac_optarg ;;
1249
1250 -cache-file | --cache-file | --cache-fil | --cache-fi \
1251 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1252 ac_prev=cache_file ;;
1253 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1254 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1255 cache_file=$ac_optarg ;;
1256
1257 --config-cache | -C)
1258 cache_file=config.cache ;;
1259
1260 -datadir | --datadir | --datadi | --datad)
1261 ac_prev=datadir ;;
1262 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1263 datadir=$ac_optarg ;;
1264
1265 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1266 | --dataroo | --dataro | --datar)
1267 ac_prev=datarootdir ;;
1268 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1269 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1270 datarootdir=$ac_optarg ;;
1271
1272 -disable-* | --disable-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001276 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"enable_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval enable_$ac_useropt=no ;;
1287
1288 -docdir | --docdir | --docdi | --doc | --do)
1289 ac_prev=docdir ;;
1290 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1291 docdir=$ac_optarg ;;
1292
1293 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1294 ac_prev=dvidir ;;
1295 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1296 dvidir=$ac_optarg ;;
1297
1298 -enable-* | --enable-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001302 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307"enable_$ac_useropt"
1308"*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval enable_$ac_useropt=\$ac_optarg ;;
1313
1314 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1315 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1316 | --exec | --exe | --ex)
1317 ac_prev=exec_prefix ;;
1318 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1319 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1320 | --exec=* | --exe=* | --ex=*)
1321 exec_prefix=$ac_optarg ;;
1322
1323 -gas | --gas | --ga | --g)
1324 # Obsolete; use --with-gas.
1325 with_gas=yes ;;
1326
1327 -help | --help | --hel | --he | -h)
1328 ac_init_help=long ;;
1329 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1330 ac_init_help=recursive ;;
1331 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1332 ac_init_help=short ;;
1333
1334 -host | --host | --hos | --ho)
1335 ac_prev=host_alias ;;
1336 -host=* | --host=* | --hos=* | --ho=*)
1337 host_alias=$ac_optarg ;;
1338
1339 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1340 ac_prev=htmldir ;;
1341 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1342 | --ht=*)
1343 htmldir=$ac_optarg ;;
1344
1345 -includedir | --includedir | --includedi | --included | --include \
1346 | --includ | --inclu | --incl | --inc)
1347 ac_prev=includedir ;;
1348 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1349 | --includ=* | --inclu=* | --incl=* | --inc=*)
1350 includedir=$ac_optarg ;;
1351
1352 -infodir | --infodir | --infodi | --infod | --info | --inf)
1353 ac_prev=infodir ;;
1354 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1355 infodir=$ac_optarg ;;
1356
1357 -libdir | --libdir | --libdi | --libd)
1358 ac_prev=libdir ;;
1359 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1360 libdir=$ac_optarg ;;
1361
1362 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1363 | --libexe | --libex | --libe)
1364 ac_prev=libexecdir ;;
1365 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1366 | --libexe=* | --libex=* | --libe=*)
1367 libexecdir=$ac_optarg ;;
1368
1369 -localedir | --localedir | --localedi | --localed | --locale)
1370 ac_prev=localedir ;;
1371 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1372 localedir=$ac_optarg ;;
1373
1374 -localstatedir | --localstatedir | --localstatedi | --localstated \
1375 | --localstate | --localstat | --localsta | --localst | --locals)
1376 ac_prev=localstatedir ;;
1377 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1378 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1379 localstatedir=$ac_optarg ;;
1380
1381 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1382 ac_prev=mandir ;;
1383 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1384 mandir=$ac_optarg ;;
1385
1386 -nfp | --nfp | --nf)
1387 # Obsolete; use --without-fp.
1388 with_fp=no ;;
1389
1390 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1391 | --no-cr | --no-c | -n)
1392 no_create=yes ;;
1393
1394 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1395 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1396 no_recursion=yes ;;
1397
1398 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1399 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1400 | --oldin | --oldi | --old | --ol | --o)
1401 ac_prev=oldincludedir ;;
1402 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1403 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1404 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1405 oldincludedir=$ac_optarg ;;
1406
1407 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1408 ac_prev=prefix ;;
1409 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1410 prefix=$ac_optarg ;;
1411
1412 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1413 | --program-pre | --program-pr | --program-p)
1414 ac_prev=program_prefix ;;
1415 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1416 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1417 program_prefix=$ac_optarg ;;
1418
1419 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1420 | --program-suf | --program-su | --program-s)
1421 ac_prev=program_suffix ;;
1422 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1423 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1424 program_suffix=$ac_optarg ;;
1425
1426 -program-transform-name | --program-transform-name \
1427 | --program-transform-nam | --program-transform-na \
1428 | --program-transform-n | --program-transform- \
1429 | --program-transform | --program-transfor \
1430 | --program-transfo | --program-transf \
1431 | --program-trans | --program-tran \
1432 | --progr-tra | --program-tr | --program-t)
1433 ac_prev=program_transform_name ;;
1434 -program-transform-name=* | --program-transform-name=* \
1435 | --program-transform-nam=* | --program-transform-na=* \
1436 | --program-transform-n=* | --program-transform-=* \
1437 | --program-transform=* | --program-transfor=* \
1438 | --program-transfo=* | --program-transf=* \
1439 | --program-trans=* | --program-tran=* \
1440 | --progr-tra=* | --program-tr=* | --program-t=*)
1441 program_transform_name=$ac_optarg ;;
1442
1443 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1444 ac_prev=pdfdir ;;
1445 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1446 pdfdir=$ac_optarg ;;
1447
1448 -psdir | --psdir | --psdi | --psd | --ps)
1449 ac_prev=psdir ;;
1450 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1451 psdir=$ac_optarg ;;
1452
1453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1454 | -silent | --silent | --silen | --sile | --sil)
1455 silent=yes ;;
1456
1457 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1458 ac_prev=sbindir ;;
1459 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1460 | --sbi=* | --sb=*)
1461 sbindir=$ac_optarg ;;
1462
1463 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1464 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1465 | --sharedst | --shareds | --shared | --share | --shar \
1466 | --sha | --sh)
1467 ac_prev=sharedstatedir ;;
1468 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1469 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1470 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1471 | --sha=* | --sh=*)
1472 sharedstatedir=$ac_optarg ;;
1473
1474 -site | --site | --sit)
1475 ac_prev=site ;;
1476 -site=* | --site=* | --sit=*)
1477 site=$ac_optarg ;;
1478
1479 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1480 ac_prev=srcdir ;;
1481 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1482 srcdir=$ac_optarg ;;
1483
1484 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1485 | --syscon | --sysco | --sysc | --sys | --sy)
1486 ac_prev=sysconfdir ;;
1487 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1488 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1489 sysconfdir=$ac_optarg ;;
1490
1491 -target | --target | --targe | --targ | --tar | --ta | --t)
1492 ac_prev=target_alias ;;
1493 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1494 target_alias=$ac_optarg ;;
1495
1496 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1497 verbose=yes ;;
1498
1499 -version | --version | --versio | --versi | --vers | -V)
1500 ac_init_version=: ;;
1501
1502 -with-* | --with-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001506 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511"with_$ac_useropt"
1512"*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval with_$ac_useropt=\$ac_optarg ;;
1517
1518 -without-* | --without-*)
1519 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1520 # Reject names that are not valid shell variable names.
1521 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001522 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001523 ac_useropt_orig=$ac_useropt
1524 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1525 case $ac_user_opts in
1526 *"
1527"with_$ac_useropt"
1528"*) ;;
1529 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1530 ac_unrecognized_sep=', ';;
1531 esac
1532 eval with_$ac_useropt=no ;;
1533
1534 --x)
1535 # Obsolete; use --with-x.
1536 with_x=yes ;;
1537
1538 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1539 | --x-incl | --x-inc | --x-in | --x-i)
1540 ac_prev=x_includes ;;
1541 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1542 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1543 x_includes=$ac_optarg ;;
1544
1545 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1546 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1547 ac_prev=x_libraries ;;
1548 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1549 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1550 x_libraries=$ac_optarg ;;
1551
cristy98dddb52010-11-04 00:30:15 +00001552 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1553Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001554 ;;
1555
1556 *=*)
1557 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1558 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001559 case $ac_envvar in #(
1560 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001561 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001562 esac
cristy3ed852e2009-09-05 21:47:34 +00001563 eval $ac_envvar=\$ac_optarg
1564 export $ac_envvar ;;
1565
1566 *)
1567 # FIXME: should be removed in autoconf 3.0.
1568 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1569 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1570 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001571 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001572 ;;
1573
1574 esac
1575done
1576
1577if test -n "$ac_prev"; then
1578 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001580fi
1581
1582if test -n "$ac_unrecognized_opts"; then
1583 case $enable_option_checking in
1584 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001585 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001586 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1587 esac
1588fi
1589
1590# Check all directory arguments for consistency.
1591for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1592 datadir sysconfdir sharedstatedir localstatedir includedir \
1593 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1594 libdir localedir mandir
1595do
1596 eval ac_val=\$$ac_var
1597 # Remove trailing slashes.
1598 case $ac_val in
1599 */ )
1600 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1601 eval $ac_var=\$ac_val;;
1602 esac
1603 # Be sure to have absolute directory names.
1604 case $ac_val in
1605 [\\/$]* | ?:[\\/]* ) continue;;
1606 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1607 esac
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001609done
1610
1611# There might be people who depend on the old broken behavior: `$host'
1612# used to hold the argument of --host etc.
1613# FIXME: To remove some day.
1614build=$build_alias
1615host=$host_alias
1616target=$target_alias
1617
1618# FIXME: To remove some day.
1619if test "x$host_alias" != x; then
1620 if test "x$build_alias" = x; then
1621 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001622 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1623 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001624 elif test "x$build_alias" != "x$host_alias"; then
1625 cross_compiling=yes
1626 fi
1627fi
1628
1629ac_tool_prefix=
1630test -n "$host_alias" && ac_tool_prefix=$host_alias-
1631
1632test "$silent" = yes && exec 6>/dev/null
1633
1634
1635ac_pwd=`pwd` && test -n "$ac_pwd" &&
1636ac_ls_di=`ls -di .` &&
1637ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001638 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001639test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001641
1642
1643# Find the source files, if location was not specified.
1644if test -z "$srcdir"; then
1645 ac_srcdir_defaulted=yes
1646 # Try the directory containing this script, then the parent directory.
1647 ac_confdir=`$as_dirname -- "$as_myself" ||
1648$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1649 X"$as_myself" : 'X\(//\)[^/]' \| \
1650 X"$as_myself" : 'X\(//\)$' \| \
1651 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1652$as_echo X"$as_myself" |
1653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1654 s//\1/
1655 q
1656 }
1657 /^X\(\/\/\)[^/].*/{
1658 s//\1/
1659 q
1660 }
1661 /^X\(\/\/\)$/{
1662 s//\1/
1663 q
1664 }
1665 /^X\(\/\).*/{
1666 s//\1/
1667 q
1668 }
1669 s/.*/./; q'`
1670 srcdir=$ac_confdir
1671 if test ! -r "$srcdir/$ac_unique_file"; then
1672 srcdir=..
1673 fi
1674else
1675 ac_srcdir_defaulted=no
1676fi
1677if test ! -r "$srcdir/$ac_unique_file"; then
1678 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001679 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001680fi
1681ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1682ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001683 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001684 pwd)`
1685# When building in place, set srcdir=.
1686if test "$ac_abs_confdir" = "$ac_pwd"; then
1687 srcdir=.
1688fi
1689# Remove unnecessary trailing slashes from srcdir.
1690# Double slashes in file names in object file debugging info
1691# mess up M-x gdb in Emacs.
1692case $srcdir in
1693*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1694esac
1695for ac_var in $ac_precious_vars; do
1696 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1697 eval ac_env_${ac_var}_value=\$${ac_var}
1698 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1699 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1700done
1701
1702#
1703# Report the --help message.
1704#
1705if test "$ac_init_help" = "long"; then
1706 # Omit some internal or obsolete options to make the list less imposing.
1707 # This message is too long to be a string in the A/UX 3.1 sh.
1708 cat <<_ACEOF
cristy0805e062011-01-30 02:56:36 +00001709\`configure' configures ImageMagick 6.6.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001710
1711Usage: $0 [OPTION]... [VAR=VALUE]...
1712
1713To assign environment variables (e.g., CC, CFLAGS...), specify them as
1714VAR=VALUE. See below for descriptions of some of the useful variables.
1715
1716Defaults for the options are specified in brackets.
1717
1718Configuration:
1719 -h, --help display this help and exit
1720 --help=short display options specific to this package
1721 --help=recursive display the short help of all the included packages
1722 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001723 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001724 --cache-file=FILE cache test results in FILE [disabled]
1725 -C, --config-cache alias for \`--cache-file=config.cache'
1726 -n, --no-create do not create output files
1727 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1728
1729Installation directories:
1730 --prefix=PREFIX install architecture-independent files in PREFIX
1731 [$ac_default_prefix]
1732 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1733 [PREFIX]
1734
1735By default, \`make install' will install all the files in
1736\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1737an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1738for instance \`--prefix=\$HOME'.
1739
1740For better control, use the options below.
1741
1742Fine tuning of the installation directories:
1743 --bindir=DIR user executables [EPREFIX/bin]
1744 --sbindir=DIR system admin executables [EPREFIX/sbin]
1745 --libexecdir=DIR program executables [EPREFIX/libexec]
1746 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1747 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1748 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1749 --libdir=DIR object code libraries [EPREFIX/lib]
1750 --includedir=DIR C header files [PREFIX/include]
1751 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1752 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1753 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1754 --infodir=DIR info documentation [DATAROOTDIR/info]
1755 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1756 --mandir=DIR man documentation [DATAROOTDIR/man]
1757 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1758 --htmldir=DIR html documentation [DOCDIR]
1759 --dvidir=DIR dvi documentation [DOCDIR]
1760 --pdfdir=DIR pdf documentation [DOCDIR]
1761 --psdir=DIR ps documentation [DOCDIR]
1762_ACEOF
1763
1764 cat <<\_ACEOF
1765
cristy73bd4a52010-10-05 11:24:23 +00001766Program names:
1767 --program-prefix=PREFIX prepend PREFIX to installed program names
1768 --program-suffix=SUFFIX append SUFFIX to installed program names
1769 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1770
cristy3ed852e2009-09-05 21:47:34 +00001771X features:
1772 --x-includes=DIR X include files are in DIR
1773 --x-libraries=DIR X library files are in DIR
1774
1775System types:
1776 --build=BUILD configure for building on BUILD [guessed]
1777 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1778 --target=TARGET configure for building compilers for TARGET [HOST]
1779_ACEOF
1780fi
1781
1782if test -n "$ac_init_help"; then
1783 case $ac_init_help in
cristy0805e062011-01-30 02:56:36 +00001784 short | recursive ) echo "Configuration of ImageMagick 6.6.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001785 esac
1786 cat <<\_ACEOF
1787
1788Optional Features:
1789 --disable-option-checking ignore unrecognized --enable/--with options
1790 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1791 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001792 --enable-silent-rules less verbose build output (undo: `make V=1')
1793 --disable-silent-rules verbose build output (undo: `make V=0')
1794 --disable-dependency-tracking speeds up one-time build
1795 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001796 --bounds-checking enable run-time bounds-checking
1797 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001798 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001799 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001800 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001802 --enable-shared[=PKGS] build shared libraries [default=yes]
1803 --enable-static[=PKGS] build static libraries [default=yes]
1804 --enable-fast-install[=PKGS]
1805 optimize for fast installation [default=yes]
1806 --disable-libtool-lock avoid locking (might break parallel builds)
1807 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001808 --enable-delegate-build look for delegate libraries in build directory
1809 --disable-deprecated exclude deprecated methods in MagickCore and
1810 MagickWand API's
1811 --disable-installed Formally install ImageMagick under PREFIX
1812 --disable-cipher disable enciphering and deciphering image pixels
1813 --enable-embeddable enable self-contained, embeddable,
1814 zero-configuration ImageMagick
1815 --enable-hdri accurately represent the wide range of intensity
1816 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001817 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001818 --enable-maintainer-mode enable make rules and dependencies not useful
1819 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001820 --enable-ccmalloc enable 'ccmalloc' memory debug support
1821 --enable-efence enable 'efence' memory debug support
1822 --enable-prof enable 'prof' profiling support
1823 --enable-gprof enable 'gprof' profiling support
1824 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001825 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001826
1827Optional Packages:
1828 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1829 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001830 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1831 --with-dmalloc use dmalloc, as in
1832 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001833 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001834 --with-pic try to use only PIC/non-PIC objects [default=use
1835 both]
cristyda16f162011-02-19 23:52:17 +00001836 --with-sysroot=DIR Search for dependent libraries within DIR
1837 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001838 --with-included-ltdl use the GNU ltdl sources included here
1839 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1840 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001841 --with-modules enable building dynamically loadable modules
1842 --with-method-prefix=PREFIX
1843 prefix MagickCore API methods
1844 --with-quantum-depth=DEPTH
1845 number of bits in a pixel quantum (default 16)
1846 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1847 memory)
1848 --with-frozenpaths freeze delegate paths
1849 --without-magick-plus-plus
1850 disable build/install of Magick++
1851 --with-perl enable build/install of PerlMagick
1852 --with-perl-options=OPTIONS
1853 options to pass on command-line when generating
1854 PerlMagick's build file
1855 --with-umem enable umem memory allocation library support
1856 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1857 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001858 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001859 --without-zlib disable ZLIB support
1860 --with-autotrace enable autotrace support
1861 --without-dps disable Display Postscript support
1862 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001863 --with-dejavu-font-dir=DIR
1864 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001865 --without-fftw disable FFTW support
1866 --without-fpx disable FlashPIX support
1867 --without-fontconfig disable fontconfig support
1868 --without-freetype disable Freetype support
1869 --without-gslib enable Ghostscript library support
1870 --with-fontpath=DIR prepend to default font search path
1871 --with-gs-font-dir=DIR Ghostscript font directory
1872 --without-gvc disable GVC support
1873 --without-jbig disable JBIG support
1874 --without-jpeg disable JPEG support
1875 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001876 --without-lcms disable lcms (v1.1X) support
1877 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001878 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001879 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001880 --without-openexr disable OpenEXR support
1881 --without-png disable PNG support
1882 --without-rsvg disable RSVG support
1883 --without-tiff disable TIFF support
1884 --with-windows-font-dir=DIR
1885 directory containing MS-Windows fonts
1886 --without-wmf disable WMF support
1887 --without-xml disable XML support
1888
1889Some influential environment variables:
1890 CC C compiler command
1891 CFLAGS C compiler flags
1892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1893 nonstandard directory <lib dir>
1894 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001895 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001896 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001897 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001898 CXX C++ compiler command
1899 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001900 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001901 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001902 XMKMF Path to xmkmf, Makefile generator for X Window System
1903 AUTOTRACE_CFLAGS
1904 C compiler flags for AUTOTRACE, overriding pkg-config
1905 AUTOTRACE_LIBS
1906 linker flags for AUTOTRACE, overriding pkg-config
1907 FONTCONFIG_CFLAGS
1908 C compiler flags for FONTCONFIG, overriding pkg-config
1909 FONTCONFIG_LIBS
1910 linker flags for FONTCONFIG, overriding pkg-config
1911 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1912 GVC_LIBS linker flags for GVC, overriding pkg-config
1913 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1914 LQR_LIBS linker flags for LQR, overriding pkg-config
1915 OPENEXR_CFLAGS
1916 C compiler flags for OPENEXR, overriding pkg-config
1917 OPENEXR_LIBS
1918 linker flags for OPENEXR, overriding pkg-config
1919 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1920 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1921 CAIRO_SVG_CFLAGS
1922 C compiler flags for CAIRO_SVG, overriding pkg-config
1923 CAIRO_SVG_LIBS
1924 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001925
1926Use these variables to override the choices made by `configure' or to help
1927it to find libraries and programs with nonstandard names/locations.
1928
1929Report bugs to <http://www.imagemagick.org>.
1930_ACEOF
1931ac_status=$?
1932fi
1933
1934if test "$ac_init_help" = "recursive"; then
1935 # If there are subdirs, report their specific --help.
1936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1937 test -d "$ac_dir" ||
1938 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1939 continue
1940 ac_builddir=.
1941
1942case "$ac_dir" in
1943.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1944*)
1945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1946 # A ".." for each directory in $ac_dir_suffix.
1947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1948 case $ac_top_builddir_sub in
1949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1951 esac ;;
1952esac
1953ac_abs_top_builddir=$ac_pwd
1954ac_abs_builddir=$ac_pwd$ac_dir_suffix
1955# for backward compatibility:
1956ac_top_builddir=$ac_top_build_prefix
1957
1958case $srcdir in
1959 .) # We are building in place.
1960 ac_srcdir=.
1961 ac_top_srcdir=$ac_top_builddir_sub
1962 ac_abs_top_srcdir=$ac_pwd ;;
1963 [\\/]* | ?:[\\/]* ) # Absolute name.
1964 ac_srcdir=$srcdir$ac_dir_suffix;
1965 ac_top_srcdir=$srcdir
1966 ac_abs_top_srcdir=$srcdir ;;
1967 *) # Relative name.
1968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1969 ac_top_srcdir=$ac_top_build_prefix$srcdir
1970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1971esac
1972ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1973
1974 cd "$ac_dir" || { ac_status=$?; continue; }
1975 # Check for guested configure.
1976 if test -f "$ac_srcdir/configure.gnu"; then
1977 echo &&
1978 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1979 elif test -f "$ac_srcdir/configure"; then
1980 echo &&
1981 $SHELL "$ac_srcdir/configure" --help=recursive
1982 else
1983 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1984 fi || ac_status=$?
1985 cd "$ac_pwd" || { ac_status=$?; break; }
1986 done
1987fi
1988
1989test -n "$ac_init_help" && exit $ac_status
1990if $ac_init_version; then
1991 cat <<\_ACEOF
cristy0805e062011-01-30 02:56:36 +00001992ImageMagick configure 6.6.7
cristyda16f162011-02-19 23:52:17 +00001993generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00001994
cristy98dddb52010-11-04 00:30:15 +00001995Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001996This configure script is free software; the Free Software Foundation
1997gives unlimited permission to copy, distribute and modify it.
1998_ACEOF
1999 exit
2000fi
cristy8b350f62009-11-15 23:12:43 +00002001
2002## ------------------------ ##
2003## Autoconf initialization. ##
2004## ------------------------ ##
2005
2006# ac_fn_c_try_compile LINENO
2007# --------------------------
2008# Try to compile conftest.$ac_ext, and return whether this succeeded.
2009ac_fn_c_try_compile ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext
2013 if { { ac_try="$ac_compile"
2014case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017esac
2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019$as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_compile") 2>conftest.err
2021 ac_status=$?
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2026 fi
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest.$ac_objext; then :
2032 ac_retval=0
2033else
2034 $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 ac_retval=1
2038fi
cristyda16f162011-02-19 23:52:17 +00002039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002040 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002041
2042} # ac_fn_c_try_compile
2043
cristy95646052009-11-28 23:05:30 +00002044# ac_fn_c_try_cpp LINENO
2045# ----------------------
2046# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_c_try_cpp ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 if { { ac_try="$ac_cpp conftest.$ac_ext"
2051case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054esac
2055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056$as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002065 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2067 test ! -s conftest.err
2068 }; then :
2069 ac_retval=0
2070else
2071 $as_echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=1
2075fi
cristyda16f162011-02-19 23:52:17 +00002076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002077 as_fn_set_status $ac_retval
2078
2079} # ac_fn_c_try_cpp
2080
cristy8b350f62009-11-15 23:12:43 +00002081# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2082# -------------------------------------------------------
2083# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2084# the include files in INCLUDES and setting the cache variable VAR
2085# accordingly.
2086ac_fn_c_check_header_mongrel ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002089 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002092if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002093 $as_echo_n "(cached) " >&6
2094fi
2095eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098else
2099 # Is the header compilable?
2100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2101$as_echo_n "checking $2 usability... " >&6; }
2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105#include <$2>
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_header_compiler=yes
2109else
2110 ac_header_compiler=no
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2114$as_echo "$ac_header_compiler" >&6; }
2115
2116# Is the header present?
2117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2118$as_echo_n "checking $2 presence... " >&6; }
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121#include <$2>
2122_ACEOF
2123if ac_fn_c_try_cpp "$LINENO"; then :
2124 ac_header_preproc=yes
2125else
2126 ac_header_preproc=no
2127fi
cristyda16f162011-02-19 23:52:17 +00002128rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2130$as_echo "$ac_header_preproc" >&6; }
2131
2132# So? What about this header?
2133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2134 yes:no: )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2136$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ;;
2140 no:yes:* )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2142$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2144$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2146$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2148$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002151( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002152## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002153## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002154 ) | sed "s/^/$as_me: WARNING: /" >&2
2155 ;;
2156esac
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002159if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002160 $as_echo_n "(cached) " >&6
2161else
2162 eval "$3=\$ac_header_compiler"
2163fi
2164eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166$as_echo "$ac_res" >&6; }
2167fi
cristyda16f162011-02-19 23:52:17 +00002168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002169
2170} # ac_fn_c_check_header_mongrel
2171
2172# ac_fn_c_try_run LINENO
2173# ----------------------
2174# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2175# that executables *can* be run.
2176ac_fn_c_try_run ()
2177{
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { { ac_try="$ac_link"
2180case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183esac
2184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185$as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>&5
2187 ac_status=$?
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2190 { { case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193esac
2194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195$as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_try") 2>&5
2197 ac_status=$?
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; }; }; then :
2200 ac_retval=0
2201else
2202 $as_echo "$as_me: program exited with status $ac_status" >&5
2203 $as_echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=$ac_status
2207fi
2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002210 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002211
2212} # ac_fn_c_try_run
2213
2214# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2215# -------------------------------------------------------
2216# Tests whether HEADER exists and can be compiled using the include files in
2217# INCLUDES, setting the cache variable VAR accordingly.
2218ac_fn_c_check_header_compile ()
2219{
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002223if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002224 $as_echo_n "(cached) " >&6
2225else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228$4
2229#include <$2>
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$3=yes"
2233else
2234 eval "$3=no"
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002242
2243} # ac_fn_c_check_header_compile
2244
cristya0b81c32010-01-22 02:54:33 +00002245# ac_fn_cxx_try_compile LINENO
2246# ----------------------------
2247# Try to compile conftest.$ac_ext, and return whether this succeeded.
2248ac_fn_cxx_try_compile ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext
2252 if { { ac_try="$ac_compile"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_compile") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2265 fi
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_cxx_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest.$ac_objext; then :
2271 ac_retval=0
2272else
2273 $as_echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 ac_retval=1
2277fi
cristyda16f162011-02-19 23:52:17 +00002278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002279 as_fn_set_status $ac_retval
2280
2281} # ac_fn_cxx_try_compile
2282
cristy8b350f62009-11-15 23:12:43 +00002283# ac_fn_c_try_link LINENO
2284# -----------------------
2285# Try to link conftest.$ac_ext, and return whether this succeeded.
2286ac_fn_c_try_link ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext conftest$ac_exeext
2290 if { { ac_try="$ac_link"
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_link") 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_c_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest$ac_exeext && {
2309 test "$cross_compiling" = yes ||
2310 $as_test_x conftest$ac_exeext
2311 }; then :
2312 ac_retval=0
2313else
2314 $as_echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317 ac_retval=1
2318fi
2319 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2320 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2321 # interfere with the next link command; also delete a directory that is
2322 # left behind by Apple's compiler. We do this before executing the actions.
2323 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002325 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002326
2327} # ac_fn_c_try_link
2328
cristy73bd4a52010-10-05 11:24:23 +00002329# ac_fn_c_check_func LINENO FUNC VAR
2330# ----------------------------------
2331# Tests whether FUNC exists, setting the cache variable VAR accordingly
2332ac_fn_c_check_func ()
2333{
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002337if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002338 $as_echo_n "(cached) " >&6
2339else
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341/* end confdefs.h. */
2342/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2344#define $2 innocuous_$2
2345
2346/* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char $2 (); below.
2348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2349 <limits.h> exists even on freestanding compilers. */
2350
2351#ifdef __STDC__
2352# include <limits.h>
2353#else
2354# include <assert.h>
2355#endif
2356
2357#undef $2
2358
2359/* Override any GCC internal prototype to avoid an error.
2360 Use char because int might match the return type of a GCC
2361 builtin and then its argument prototype would still apply. */
2362#ifdef __cplusplus
2363extern "C"
2364#endif
2365char $2 ();
2366/* The GNU C library defines this for functions which it implements
2367 to always fail with ENOSYS. Some functions are actually named
2368 something starting with __ and the normal name is an alias. */
2369#if defined __stub_$2 || defined __stub___$2
2370choke me
2371#endif
2372
2373int
2374main ()
2375{
2376return $2 ();
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381if ac_fn_c_try_link "$LINENO"; then :
2382 eval "$3=yes"
2383else
2384 eval "$3=no"
2385fi
2386rm -f core conftest.err conftest.$ac_objext \
2387 conftest$ac_exeext conftest.$ac_ext
2388fi
2389eval ac_res=\$$3
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2391$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002393
2394} # ac_fn_c_check_func
2395
2396# ac_fn_cxx_try_cpp LINENO
2397# ------------------------
2398# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2399ac_fn_cxx_try_cpp ()
2400{
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 if { { ac_try="$ac_cpp conftest.$ac_ext"
2403case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2408$as_echo "$ac_try_echo"; } >&5
2409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2410 ac_status=$?
2411 if test -s conftest.err; then
2412 grep -v '^ *+' conftest.err >conftest.er1
2413 cat conftest.er1 >&5
2414 mv -f conftest.er1 conftest.err
2415 fi
2416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002417 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002418 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2419 test ! -s conftest.err
2420 }; then :
2421 ac_retval=0
2422else
2423 $as_echo "$as_me: failed program was:" >&5
2424sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_retval=1
2427fi
cristyda16f162011-02-19 23:52:17 +00002428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002429 as_fn_set_status $ac_retval
2430
2431} # ac_fn_cxx_try_cpp
2432
2433# ac_fn_cxx_try_link LINENO
2434# -------------------------
2435# Try to link conftest.$ac_ext, and return whether this succeeded.
2436ac_fn_cxx_try_link ()
2437{
2438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439 rm -f conftest.$ac_objext conftest$ac_exeext
2440 if { { ac_try="$ac_link"
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_link") 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
2455 test $ac_status = 0; } && {
2456 test -z "$ac_cxx_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest$ac_exeext && {
2459 test "$cross_compiling" = yes ||
2460 $as_test_x conftest$ac_exeext
2461 }; then :
2462 ac_retval=0
2463else
2464 $as_echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 ac_retval=1
2468fi
2469 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2470 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2471 # interfere with the next link command; also delete a directory that is
2472 # left behind by Apple's compiler. We do this before executing the actions.
2473 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002475 as_fn_set_status $ac_retval
2476
2477} # ac_fn_cxx_try_link
2478
cristy98dddb52010-11-04 00:30:15 +00002479# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2480# ---------------------------------------------
2481# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2482# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002483ac_fn_c_check_decl ()
2484{
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002486 as_decl_name=`echo $2|sed 's/ *(.*//'`
2487 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2489$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002490if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002491 $as_echo_n "(cached) " >&6
2492else
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494/* end confdefs.h. */
2495$4
2496int
2497main ()
2498{
cristy98dddb52010-11-04 00:30:15 +00002499#ifndef $as_decl_name
2500#ifdef __cplusplus
2501 (void) $as_decl_use;
2502#else
2503 (void) $as_decl_name;
2504#endif
cristy73bd4a52010-10-05 11:24:23 +00002505#endif
2506
2507 ;
2508 return 0;
2509}
2510_ACEOF
2511if ac_fn_c_try_compile "$LINENO"; then :
2512 eval "$3=yes"
2513else
2514 eval "$3=no"
2515fi
2516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517fi
2518eval ac_res=\$$3
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2520$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002522
2523} # ac_fn_c_check_decl
2524
cristy8b350f62009-11-15 23:12:43 +00002525# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2526# -------------------------------------------
2527# Tests whether TYPE exists after having included INCLUDES, setting cache
2528# variable VAR accordingly.
2529ac_fn_c_check_type ()
2530{
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002534if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002535 $as_echo_n "(cached) " >&6
2536else
2537 eval "$3=no"
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539/* end confdefs.h. */
2540$4
2541int
2542main ()
2543{
2544if (sizeof ($2))
2545 return 0;
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550if ac_fn_c_try_compile "$LINENO"; then :
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552/* end confdefs.h. */
2553$4
2554int
2555main ()
2556{
2557if (sizeof (($2)))
2558 return 0;
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563if ac_fn_c_try_compile "$LINENO"; then :
2564
2565else
2566 eval "$3=yes"
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569fi
2570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571fi
2572eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002576
2577} # ac_fn_c_check_type
2578
cristy92703d82010-04-26 00:18:18 +00002579# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2580# ----------------------------------------------------
2581# Tries to find if the field MEMBER exists in type AGGR, after including
2582# INCLUDES, setting cache variable VAR accordingly.
2583ac_fn_c_check_member ()
2584{
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2587$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002588if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002589 $as_echo_n "(cached) " >&6
2590else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592/* end confdefs.h. */
2593$5
2594int
2595main ()
2596{
2597static $2 ac_aggr;
2598if (ac_aggr.$3)
2599return 0;
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604if ac_fn_c_try_compile "$LINENO"; then :
2605 eval "$4=yes"
2606else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608/* end confdefs.h. */
2609$5
2610int
2611main ()
2612{
2613static $2 ac_aggr;
2614if (sizeof ac_aggr.$3)
2615return 0;
2616 ;
2617 return 0;
2618}
2619_ACEOF
2620if ac_fn_c_try_compile "$LINENO"; then :
2621 eval "$4=yes"
2622else
2623 eval "$4=no"
2624fi
2625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629eval ac_res=\$$4
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002633
2634} # ac_fn_c_check_member
2635
cristy8b350f62009-11-15 23:12:43 +00002636# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2637# --------------------------------------------
2638# Tries to find the compile-time value of EXPR in a program that includes
2639# INCLUDES, setting VAR accordingly. Returns whether the value could be
2640# computed
2641ac_fn_c_compute_int ()
2642{
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 if test "$cross_compiling" = yes; then
2645 # Depending upon the size, compute the lo and hi bounds.
2646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648$4
2649int
2650main ()
2651{
2652static int test_array [1 - 2 * !(($2) >= 0)];
2653test_array [0] = 0
2654
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659if ac_fn_c_try_compile "$LINENO"; then :
2660 ac_lo=0 ac_mid=0
2661 while :; do
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2669test_array [0] = 0
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676 ac_hi=$ac_mid; break
2677else
2678 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2679 if test $ac_lo -le $ac_mid; then
2680 ac_lo= ac_hi=
2681 break
2682 fi
2683 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2684fi
2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 done
2687else
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689/* end confdefs.h. */
2690$4
2691int
2692main ()
2693{
2694static int test_array [1 - 2 * !(($2) < 0)];
2695test_array [0] = 0
2696
2697 ;
2698 return 0;
2699}
2700_ACEOF
2701if ac_fn_c_try_compile "$LINENO"; then :
2702 ac_hi=-1 ac_mid=-1
2703 while :; do
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705/* end confdefs.h. */
2706$4
2707int
2708main ()
2709{
2710static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2711test_array [0] = 0
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717if ac_fn_c_try_compile "$LINENO"; then :
2718 ac_lo=$ac_mid; break
2719else
2720 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2721 if test $ac_mid -le $ac_hi; then
2722 ac_lo= ac_hi=
2723 break
2724 fi
2725 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2726fi
2727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 done
2729else
2730 ac_lo= ac_hi=
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735# Binary search between lo and hi bounds.
2736while test "x$ac_lo" != "x$ac_hi"; do
2737 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h. */
2740$4
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2745test_array [0] = 0
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751if ac_fn_c_try_compile "$LINENO"; then :
2752 ac_hi=$ac_mid
2753else
2754 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2755fi
2756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757done
2758case $ac_lo in #((
2759?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2760'') ac_retval=1 ;;
2761esac
2762 else
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764/* end confdefs.h. */
2765$4
2766static long int longval () { return $2; }
2767static unsigned long int ulongval () { return $2; }
2768#include <stdio.h>
2769#include <stdlib.h>
2770int
2771main ()
2772{
2773
2774 FILE *f = fopen ("conftest.val", "w");
2775 if (! f)
2776 return 1;
2777 if (($2) < 0)
2778 {
2779 long int i = longval ();
2780 if (i != ($2))
2781 return 1;
2782 fprintf (f, "%ld", i);
2783 }
2784 else
2785 {
2786 unsigned long int i = ulongval ();
2787 if (i != ($2))
2788 return 1;
2789 fprintf (f, "%lu", i);
2790 }
2791 /* Do not output a trailing newline, as this causes \r\n confusion
2792 on some platforms. */
2793 return ferror (f) || fclose (f) != 0;
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799if ac_fn_c_try_run "$LINENO"; then :
2800 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2801else
2802 ac_retval=1
2803fi
2804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2805 conftest.$ac_objext conftest.beam conftest.$ac_ext
2806rm -f conftest.val
2807
2808 fi
cristyda16f162011-02-19 23:52:17 +00002809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002810 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002811
2812} # ac_fn_c_compute_int
2813
2814# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2815# ---------------------------------------------------------
2816# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2817# the include files in INCLUDES and setting the cache variable VAR
2818# accordingly.
2819ac_fn_cxx_check_header_mongrel ()
2820{
2821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002822 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002825if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002826 $as_echo_n "(cached) " >&6
2827fi
2828eval ac_res=\$$3
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2830$as_echo "$ac_res" >&6; }
2831else
2832 # Is the header compilable?
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2834$as_echo_n "checking $2 usability... " >&6; }
2835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h. */
2837$4
2838#include <$2>
2839_ACEOF
2840if ac_fn_cxx_try_compile "$LINENO"; then :
2841 ac_header_compiler=yes
2842else
2843 ac_header_compiler=no
2844fi
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2847$as_echo "$ac_header_compiler" >&6; }
2848
2849# Is the header present?
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2851$as_echo_n "checking $2 presence... " >&6; }
2852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853/* end confdefs.h. */
2854#include <$2>
2855_ACEOF
2856if ac_fn_cxx_try_cpp "$LINENO"; then :
2857 ac_header_preproc=yes
2858else
2859 ac_header_preproc=no
2860fi
cristyda16f162011-02-19 23:52:17 +00002861rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2863$as_echo "$ac_header_preproc" >&6; }
2864
2865# So? What about this header?
2866case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2867 yes:no: )
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2869$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2872 ;;
2873 no:yes:* )
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2875$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2877$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2879$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2881$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2883$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002884( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002885## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002886## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002887 ) | sed "s/^/$as_me: WARNING: /" >&2
2888 ;;
2889esac
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2891$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002892if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002893 $as_echo_n "(cached) " >&6
2894else
2895 eval "$3=\$ac_header_compiler"
2896fi
2897eval ac_res=\$$3
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2899$as_echo "$ac_res" >&6; }
2900fi
cristyda16f162011-02-19 23:52:17 +00002901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002902
2903} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002904cat >config.log <<_ACEOF
2905This file contains any messages produced by compilers while
2906running configure, to aid debugging if configure makes a mistake.
2907
cristy0805e062011-01-30 02:56:36 +00002908It was created by ImageMagick $as_me 6.6.7, which was
cristyda16f162011-02-19 23:52:17 +00002909generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002910
2911 $ $0 $@
2912
2913_ACEOF
2914exec 5>>config.log
2915{
2916cat <<_ASUNAME
2917## --------- ##
2918## Platform. ##
2919## --------- ##
2920
2921hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2922uname -m = `(uname -m) 2>/dev/null || echo unknown`
2923uname -r = `(uname -r) 2>/dev/null || echo unknown`
2924uname -s = `(uname -s) 2>/dev/null || echo unknown`
2925uname -v = `(uname -v) 2>/dev/null || echo unknown`
2926
2927/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2928/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2929
2930/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2931/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2932/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2933/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2934/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2935/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2936/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2937
2938_ASUNAME
2939
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002945 $as_echo "PATH: $as_dir"
2946 done
cristy3ed852e2009-09-05 21:47:34 +00002947IFS=$as_save_IFS
2948
2949} >&5
2950
2951cat >&5 <<_ACEOF
2952
2953
2954## ----------- ##
2955## Core tests. ##
2956## ----------- ##
2957
2958_ACEOF
2959
2960
2961# Keep a trace of the command line.
2962# Strip out --no-create and --no-recursion so they do not pile up.
2963# Strip out --silent because we don't want to record it for future runs.
2964# Also quote any args containing shell meta-characters.
2965# Make two passes to allow for proper duplicate-argument suppression.
2966ac_configure_args=
2967ac_configure_args0=
2968ac_configure_args1=
2969ac_must_keep_next=false
2970for ac_pass in 1 2
2971do
2972 for ac_arg
2973 do
2974 case $ac_arg in
2975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2977 | -silent | --silent | --silen | --sile | --sil)
2978 continue ;;
2979 *\'*)
2980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 esac
2982 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002984 2)
cristy8b350f62009-11-15 23:12:43 +00002985 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002986 if test $ac_must_keep_next = true; then
2987 ac_must_keep_next=false # Got value, back to normal.
2988 else
2989 case $ac_arg in
2990 *=* | --config-cache | -C | -disable-* | --disable-* \
2991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2993 | -with-* | --with-* | -without-* | --without-* | --x)
2994 case "$ac_configure_args0 " in
2995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2996 esac
2997 ;;
2998 -* ) ac_must_keep_next=true ;;
2999 esac
3000 fi
cristy8b350f62009-11-15 23:12:43 +00003001 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003002 ;;
3003 esac
3004 done
3005done
cristy8b350f62009-11-15 23:12:43 +00003006{ ac_configure_args0=; unset ac_configure_args0;}
3007{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003008
3009# When interrupted or exit'd, cleanup temporary files, and complete
3010# config.log. We remove comments because anyway the quotes in there
3011# would cause problems or look ugly.
3012# WARNING: Use '\'' to represent an apostrophe within the trap.
3013# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3014trap 'exit_status=$?
3015 # Save into config.log some information that might help in debugging.
3016 {
3017 echo
3018
cristy98dddb52010-11-04 00:30:15 +00003019 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003020## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003021## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003022 echo
3023 # The following way of writing the cache mishandles newlines in values,
3024(
3025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3026 eval ac_val=\$$ac_var
3027 case $ac_val in #(
3028 *${as_nl}*)
3029 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3032 esac
3033 case $ac_var in #(
3034 _ | IFS | as_nl) ;; #(
3035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003036 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003037 esac ;;
3038 esac
3039 done
3040 (set) 2>&1 |
3041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3042 *${as_nl}ac_space=\ *)
3043 sed -n \
3044 "s/'\''/'\''\\\\'\'''\''/g;
3045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3046 ;; #(
3047 *)
3048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3049 ;;
3050 esac |
3051 sort
3052)
3053 echo
3054
cristy98dddb52010-11-04 00:30:15 +00003055 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003056## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003057## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003058 echo
3059 for ac_var in $ac_subst_vars
3060 do
3061 eval ac_val=\$$ac_var
3062 case $ac_val in
3063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3064 esac
3065 $as_echo "$ac_var='\''$ac_val'\''"
3066 done | sort
3067 echo
3068
3069 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003070 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003071## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003072## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003073 echo
3074 for ac_var in $ac_subst_files
3075 do
3076 eval ac_val=\$$ac_var
3077 case $ac_val in
3078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3079 esac
3080 $as_echo "$ac_var='\''$ac_val'\''"
3081 done | sort
3082 echo
3083 fi
3084
3085 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003086 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003087## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003088## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003089 echo
3090 cat confdefs.h
3091 echo
3092 fi
3093 test "$ac_signal" != 0 &&
3094 $as_echo "$as_me: caught signal $ac_signal"
3095 $as_echo "$as_me: exit $exit_status"
3096 } >&5
3097 rm -f core *.core core.conftest.* &&
3098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3099 exit $exit_status
3100' 0
3101for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003103done
3104ac_signal=0
3105
3106# confdefs.h avoids OS command line length limits that DEFS can exceed.
3107rm -f -r conftest* confdefs.h
3108
cristy8b350f62009-11-15 23:12:43 +00003109$as_echo "/* confdefs.h */" > confdefs.h
3110
cristy3ed852e2009-09-05 21:47:34 +00003111# Predefined preprocessor variables.
3112
3113cat >>confdefs.h <<_ACEOF
3114#define PACKAGE_NAME "$PACKAGE_NAME"
3115_ACEOF
3116
cristy3ed852e2009-09-05 21:47:34 +00003117cat >>confdefs.h <<_ACEOF
3118#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3119_ACEOF
3120
cristy3ed852e2009-09-05 21:47:34 +00003121cat >>confdefs.h <<_ACEOF
3122#define PACKAGE_VERSION "$PACKAGE_VERSION"
3123_ACEOF
3124
cristy3ed852e2009-09-05 21:47:34 +00003125cat >>confdefs.h <<_ACEOF
3126#define PACKAGE_STRING "$PACKAGE_STRING"
3127_ACEOF
3128
cristy3ed852e2009-09-05 21:47:34 +00003129cat >>confdefs.h <<_ACEOF
3130#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3131_ACEOF
3132
cristy8b350f62009-11-15 23:12:43 +00003133cat >>confdefs.h <<_ACEOF
3134#define PACKAGE_URL "$PACKAGE_URL"
3135_ACEOF
3136
cristy3ed852e2009-09-05 21:47:34 +00003137
3138# Let the site file select an alternate cache file if it wants to.
3139# Prefer an explicitly selected file to automatically selected ones.
3140ac_site_file1=NONE
3141ac_site_file2=NONE
3142if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003143 # We do not want a PATH search for config.site.
3144 case $CONFIG_SITE in #((
3145 -*) ac_site_file1=./$CONFIG_SITE;;
3146 */*) ac_site_file1=$CONFIG_SITE;;
3147 *) ac_site_file1=./$CONFIG_SITE;;
3148 esac
cristy3ed852e2009-09-05 21:47:34 +00003149elif test "x$prefix" != xNONE; then
3150 ac_site_file1=$prefix/share/config.site
3151 ac_site_file2=$prefix/etc/config.site
3152else
3153 ac_site_file1=$ac_default_prefix/share/config.site
3154 ac_site_file2=$ac_default_prefix/etc/config.site
3155fi
3156for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3157do
3158 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003159 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003161$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3162 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003163 . "$ac_site_file" \
3164 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166as_fn_error $? "failed to load site script $ac_site_file
3167See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003168 fi
3169done
3170
3171if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003172 # Some versions of bash will fail to source /dev/null (special files
3173 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003176$as_echo "$as_me: loading cache $cache_file" >&6;}
3177 case $cache_file in
3178 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3179 *) . "./$cache_file";;
3180 esac
3181 fi
3182else
cristy8b350f62009-11-15 23:12:43 +00003183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003184$as_echo "$as_me: creating cache $cache_file" >&6;}
3185 >$cache_file
3186fi
3187
cristycd4c5312009-11-22 01:19:08 +00003188as_fn_append ac_header_list " stdlib.h"
3189as_fn_append ac_header_list " unistd.h"
3190as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003191# Check that the precious variables saved in the cache have kept the same
3192# value.
3193ac_cache_corrupted=false
3194for ac_var in $ac_precious_vars; do
3195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3196 eval ac_new_set=\$ac_env_${ac_var}_set
3197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3198 eval ac_new_val=\$ac_env_${ac_var}_value
3199 case $ac_old_set,$ac_new_set in
3200 set,)
cristy8b350f62009-11-15 23:12:43 +00003201 { $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 +00003202$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3203 ac_cache_corrupted=: ;;
3204 ,set)
cristy8b350f62009-11-15 23:12:43 +00003205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003206$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3207 ac_cache_corrupted=: ;;
3208 ,);;
3209 *)
3210 if test "x$ac_old_val" != "x$ac_new_val"; then
3211 # differences in whitespace do not lead to failure.
3212 ac_old_val_w=`echo x $ac_old_val`
3213 ac_new_val_w=`echo x $ac_new_val`
3214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003216$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3217 ac_cache_corrupted=:
3218 else
cristy8b350f62009-11-15 23:12:43 +00003219 { $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 +00003220$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3221 eval $ac_var=\$ac_old_val
3222 fi
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003226$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3227 fi;;
3228 esac
3229 # Pass precious variables to config.status.
3230 if test "$ac_new_set" = set; then
3231 case $ac_new_val in
3232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3233 *) ac_arg=$ac_var=$ac_new_val ;;
3234 esac
3235 case " $ac_configure_args " in
3236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003238 esac
3239 fi
3240done
3241if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003245$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003247fi
cristy8b350f62009-11-15 23:12:43 +00003248## -------------------- ##
3249## Main body of script. ##
3250## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003251
3252ac_ext=c
3253ac_cpp='$CPP $CPPFLAGS'
3254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257
3258
3259
3260ac_aux_dir=
3261for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003262 if test -f "$ac_dir/install-sh"; then
3263 ac_aux_dir=$ac_dir
3264 ac_install_sh="$ac_aux_dir/install-sh -c"
3265 break
3266 elif test -f "$ac_dir/install.sh"; then
3267 ac_aux_dir=$ac_dir
3268 ac_install_sh="$ac_aux_dir/install.sh -c"
3269 break
3270 elif test -f "$ac_dir/shtool"; then
3271 ac_aux_dir=$ac_dir
3272 ac_install_sh="$ac_aux_dir/shtool install -c"
3273 break
3274 fi
cristy3ed852e2009-09-05 21:47:34 +00003275done
3276if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003277 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003278fi
3279
3280# These three variables are undocumented and unsupported,
3281# and are intended to be withdrawn in a future Autoconf release.
3282# They can cause serious problems if a builder's source tree is in a directory
3283# whose full name contains unusual characters.
3284ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3285ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3286ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3287
3288
3289
3290
3291ac_config_headers="$ac_config_headers config/config.h"
3292
cristy24fc1fe2010-10-23 21:13:01 +00003293
cristy73bd4a52010-10-05 11:24:23 +00003294ac_config_commands="$ac_config_commands magick/magick-config.h"
3295
cristy430a7312010-01-21 20:44:04 +00003296ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003297
3298
3299#
3300# Save initial user-tunable values
3301#
3302USER_LIBS=$LIBS
3303for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3304 eval isset=\${$var+set}
3305 if test "$isset" = 'set'; then
3306 eval val=$`echo $var`
3307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3308 fi
3309done
3310
3311
3312CONFIGURE_ARGS="$0 ${ac_configure_args}"
3313
3314
3315# Source file containing package/library versioning information.
3316. ${srcdir}/version.sh
3317
cristy15a88782010-01-31 23:24:49 +00003318echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003319# Make sure we can run config.sub.
3320$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003321 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003322
cristy8b350f62009-11-15 23:12:43 +00003323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003324$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003325if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003326 $as_echo_n "(cached) " >&6
3327else
3328 ac_build_alias=$build_alias
3329test "x$ac_build_alias" = x &&
3330 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3331test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003332 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003333ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003334 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003335
3336fi
cristy8b350f62009-11-15 23:12:43 +00003337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo "$ac_cv_build" >&6; }
3339case $ac_cv_build in
3340*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003341*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003342esac
3343build=$ac_cv_build
3344ac_save_IFS=$IFS; IFS='-'
3345set x $ac_cv_build
3346shift
3347build_cpu=$1
3348build_vendor=$2
3349shift; shift
3350# Remember, the first character of IFS is used to create $*,
3351# except with old shells:
3352build_os=$*
3353IFS=$ac_save_IFS
3354case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3355
3356
cristy8b350f62009-11-15 23:12:43 +00003357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003359if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003360 $as_echo_n "(cached) " >&6
3361else
3362 if test "x$host_alias" = x; then
3363 ac_cv_host=$ac_cv_build
3364else
3365 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003366 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003367fi
3368
3369fi
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo "$ac_cv_host" >&6; }
3372case $ac_cv_host in
3373*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003374*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003375esac
3376host=$ac_cv_host
3377ac_save_IFS=$IFS; IFS='-'
3378set x $ac_cv_host
3379shift
3380host_cpu=$1
3381host_vendor=$2
3382shift; shift
3383# Remember, the first character of IFS is used to create $*,
3384# except with old shells:
3385host_os=$*
3386IFS=$ac_save_IFS
3387case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3388
3389
cristy8b350f62009-11-15 23:12:43 +00003390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003391$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003392if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003393 $as_echo_n "(cached) " >&6
3394else
3395 if test "x$target_alias" = x; then
3396 ac_cv_target=$ac_cv_host
3397else
3398 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003400fi
3401
3402fi
cristy8b350f62009-11-15 23:12:43 +00003403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404$as_echo "$ac_cv_target" >&6; }
3405case $ac_cv_target in
3406*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003407*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003408esac
3409target=$ac_cv_target
3410ac_save_IFS=$IFS; IFS='-'
3411set x $ac_cv_target
3412shift
3413target_cpu=$1
3414target_vendor=$2
3415shift; shift
3416# Remember, the first character of IFS is used to create $*,
3417# except with old shells:
3418target_os=$*
3419IFS=$ac_save_IFS
3420case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3421
3422
3423# The aliases save the names the user supplied, while $host etc.
3424# will get canonicalized.
3425test -n "$target_alias" &&
3426 test "$program_prefix$program_suffix$program_transform_name" = \
3427 NONENONEs,x,x, &&
3428 program_prefix=${target_alias}-
3429
cristy837d6dc2010-02-27 01:16:57 +00003430
3431
3432
3433
cristy3225a072010-04-17 01:47:28 +00003434MAGICK_TARGET_CPU=$target_cpu
3435
3436
3437MAGICK_TARGET_VENDOR=$target_vendor
3438
3439
3440MAGICK_TARGET_OS=$target_os
3441
3442
cristy3ed852e2009-09-05 21:47:34 +00003443# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003444MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3445
3446MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3447
cristy3ed852e2009-09-05 21:47:34 +00003448
3449
3450# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3452$as_echo_n "checking whether build environment is sane... " >&6; }
3453# Just in case
3454sleep 1
3455echo timestamp > conftest.file
3456# Reject unsafe characters in $srcdir or the absolute working directory
3457# name. Accept space and tab only in the latter.
3458am_lf='
3459'
3460case `pwd` in
3461 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003463esac
3464case $srcdir in
3465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003466 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003467esac
cristy3ed852e2009-09-05 21:47:34 +00003468
cristy73bd4a52010-10-05 11:24:23 +00003469# Do `set' in a subshell so we don't clobber the current shell's
3470# arguments. Must try -L first in case configure is actually a
3471# symlink; some systems play weird games with the mod time of symlinks
3472# (eg FreeBSD returns the mod time of the symlink's containing
3473# directory).
3474if (
3475 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3476 if test "$*" = "X"; then
3477 # -L didn't work.
3478 set X `ls -t "$srcdir/configure" conftest.file`
3479 fi
3480 rm -f conftest.file
3481 if test "$*" != "X $srcdir/configure conftest.file" \
3482 && test "$*" != "X conftest.file $srcdir/configure"; then
3483
3484 # If neither matched, then we have a broken ls. This can happen
3485 # if, for instance, CONFIG_SHELL is bash and it inherits a
3486 # broken ls alias from the environment. This has actually
3487 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003488 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003489alias in your environment" "$LINENO" 5
3490 fi
3491
3492 test "$2" = conftest.file
3493 )
3494then
3495 # Ok.
3496 :
3497else
cristy98dddb52010-11-04 00:30:15 +00003498 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003499Check your system clock" "$LINENO" 5
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3502$as_echo "yes" >&6; }
3503
3504am__api_version='1.11'
3505
3506# Find a good install program. We prefer a C program (faster),
3507# so one script is as good as another. But avoid the broken or
3508# incompatible versions:
3509# SysV /etc/install, /usr/sbin/install
3510# SunOS /usr/etc/install
3511# IRIX /sbin/install
3512# AIX /bin/install
3513# AmigaOS /C/install, which installs bootblocks on floppy discs
3514# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3515# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3516# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3517# OS/2's system install, which has a completely different semantic
3518# ./install, which can be erroneously created by make from ./install.sh.
3519# Reject install programs that cannot install multiple files.
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3521$as_echo_n "checking for a BSD-compatible install... " >&6; }
3522if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003523if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003524 $as_echo_n "(cached) " >&6
3525else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 # Account for people who put trailing slashes in PATH elements.
3532case $as_dir/ in #((
3533 ./ | .// | /[cC]/* | \
3534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3535 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3536 /usr/ucb/* ) ;;
3537 *)
3538 # OSF1 and SCO ODT 3.0 have their own names for install.
3539 # Don't use installbsd from OSF since it installs stuff as root
3540 # by default.
3541 for ac_prog in ginstall scoinst install; do
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3544 if test $ac_prog = install &&
3545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3546 # AIX install. It has an incompatible calling convention.
3547 :
3548 elif test $ac_prog = install &&
3549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550 # program-specific install script used by HP pwplus--don't use.
3551 :
3552 else
3553 rm -rf conftest.one conftest.two conftest.dir
3554 echo one > conftest.one
3555 echo two > conftest.two
3556 mkdir conftest.dir
3557 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3558 test -s conftest.one && test -s conftest.two &&
3559 test -s conftest.dir/conftest.one &&
3560 test -s conftest.dir/conftest.two
3561 then
3562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3563 break 3
3564 fi
3565 fi
3566 fi
3567 done
3568 done
3569 ;;
3570esac
3571
3572 done
3573IFS=$as_save_IFS
3574
3575rm -rf conftest.one conftest.two conftest.dir
3576
3577fi
3578 if test "${ac_cv_path_install+set}" = set; then
3579 INSTALL=$ac_cv_path_install
3580 else
3581 # As a last resort, use the slow shell script. Don't cache a
3582 # value for INSTALL within a source directory, because that will
3583 # break other packages using the cache if that directory is
3584 # removed, or if the value is a relative name.
3585 INSTALL=$ac_install_sh
3586 fi
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3589$as_echo "$INSTALL" >&6; }
3590
3591# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3592# It thinks the first close brace ends the variable substitution.
3593test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3594
3595test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3596
3597test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3598
3599test "$program_prefix" != NONE &&
3600 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3601# Use a double $ so make ignores it.
3602test "$program_suffix" != NONE &&
3603 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3604# Double any \ or $.
3605# By default was `s,x,x', remove it if useless.
3606ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3607program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3608
3609# expand $ac_aux_dir to an absolute path
3610am_aux_dir=`cd $ac_aux_dir && pwd`
3611
3612if test x"${MISSING+set}" != xset; then
3613 case $am_aux_dir in
3614 *\ * | *\ *)
3615 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3616 *)
3617 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3618 esac
3619fi
3620# Use eval to expand $SHELL
3621if eval "$MISSING --run true"; then
3622 am_missing_run="$MISSING --run "
3623else
3624 am_missing_run=
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3626$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3627fi
3628
3629if test x"${install_sh}" != xset; then
3630 case $am_aux_dir in
3631 *\ * | *\ *)
3632 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3633 *)
3634 install_sh="\${SHELL} $am_aux_dir/install-sh"
3635 esac
3636fi
3637
3638# Installed binaries are usually stripped using `strip' when the user
3639# run `make install-strip'. However `strip' might not be the right
3640# tool to use in cross-compilation environments, therefore Automake
3641# will honor the `STRIP' environment variable to overrule this program.
3642if test "$cross_compiling" != no; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3645set dummy ${ac_tool_prefix}strip; ac_word=$2
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003648if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003649 $as_echo_n "(cached) " >&6
3650else
3651 if test -n "$STRIP"; then
3652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665done
3666 done
3667IFS=$as_save_IFS
3668
3669fi
3670fi
3671STRIP=$ac_cv_prog_STRIP
3672if test -n "$STRIP"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3674$as_echo "$STRIP" >&6; }
3675else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677$as_echo "no" >&6; }
3678fi
3679
3680
3681fi
3682if test -z "$ac_cv_prog_STRIP"; then
3683 ac_ct_STRIP=$STRIP
3684 # Extract the first word of "strip", so it can be a program name with args.
3685set dummy strip; ac_word=$2
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003688if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003689 $as_echo_n "(cached) " >&6
3690else
3691 if test -n "$ac_ct_STRIP"; then
3692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_ac_ct_STRIP="strip"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706 done
3707IFS=$as_save_IFS
3708
3709fi
3710fi
3711ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3712if test -n "$ac_ct_STRIP"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3714$as_echo "$ac_ct_STRIP" >&6; }
3715else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717$as_echo "no" >&6; }
3718fi
3719
3720 if test "x$ac_ct_STRIP" = x; then
3721 STRIP=":"
3722 else
3723 case $cross_compiling:$ac_tool_warned in
3724yes:)
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727ac_tool_warned=yes ;;
3728esac
3729 STRIP=$ac_ct_STRIP
3730 fi
3731else
3732 STRIP="$ac_cv_prog_STRIP"
3733fi
3734
3735fi
3736INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3737
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3739$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3740if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003741 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003742 $as_echo_n "(cached) " >&6
3743else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_prog in mkdir gmkdir; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3752 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3753 'mkdir (GNU coreutils) '* | \
3754 'mkdir (coreutils) '* | \
3755 'mkdir (fileutils) '4.1*)
3756 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3757 break 3;;
3758 esac
3759 done
3760 done
3761 done
3762IFS=$as_save_IFS
3763
3764fi
3765
3766 test -d ./--version && rmdir ./--version
3767 if test "${ac_cv_path_mkdir+set}" = set; then
3768 MKDIR_P="$ac_cv_path_mkdir -p"
3769 else
3770 # As a last resort, use the slow shell script. Don't cache a
3771 # value for MKDIR_P within a source directory, because that will
3772 # break other packages using the cache if that directory is
3773 # removed, or if the value is a relative name.
3774 MKDIR_P="$ac_install_sh -d"
3775 fi
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3778$as_echo "$MKDIR_P" >&6; }
3779
3780mkdir_p="$MKDIR_P"
3781case $mkdir_p in
3782 [\\/$]* | ?:[\\/]*) ;;
3783 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3784esac
3785
3786for ac_prog in gawk mawk nawk awk
3787do
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789set dummy $ac_prog; ac_word=$2
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003792if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003793 $as_echo_n "(cached) " >&6
3794else
3795 if test -n "$AWK"; then
3796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3797else
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_AWK="$ac_prog"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809done
3810 done
3811IFS=$as_save_IFS
3812
3813fi
3814fi
3815AWK=$ac_cv_prog_AWK
3816if test -n "$AWK"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3818$as_echo "$AWK" >&6; }
3819else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821$as_echo "no" >&6; }
3822fi
3823
3824
3825 test -n "$AWK" && break
3826done
3827
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3829$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3830set x ${MAKE-make}
3831ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003832if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003833 $as_echo_n "(cached) " >&6
3834else
3835 cat >conftest.make <<\_ACEOF
3836SHELL = /bin/sh
3837all:
3838 @echo '@@@%%%=$(MAKE)=@@@%%%'
3839_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003840# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003841case `${MAKE-make} -f conftest.make 2>/dev/null` in
3842 *@@@%%%=?*=@@@%%%*)
3843 eval ac_cv_prog_make_${ac_make}_set=yes;;
3844 *)
3845 eval ac_cv_prog_make_${ac_make}_set=no;;
3846esac
3847rm -f conftest.make
3848fi
3849if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3851$as_echo "yes" >&6; }
3852 SET_MAKE=
3853else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856 SET_MAKE="MAKE=${MAKE-make}"
3857fi
3858
3859rm -rf .tst 2>/dev/null
3860mkdir .tst 2>/dev/null
3861if test -d .tst; then
3862 am__leading_dot=.
3863else
3864 am__leading_dot=_
3865fi
3866rmdir .tst 2>/dev/null
3867
3868if test "`cd $srcdir && pwd`" != "`pwd`"; then
3869 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3870 # is not polluted with repeated "-I."
3871 am__isrc=' -I$(srcdir)'
3872 # test to see if srcdir already configured
3873 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003874 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003875 fi
3876fi
3877
3878# test whether we have cygpath
3879if test -z "$CYGPATH_W"; then
3880 if (cygpath --version) >/dev/null 2>/dev/null; then
3881 CYGPATH_W='cygpath -w'
3882 else
3883 CYGPATH_W=echo
3884 fi
3885fi
3886
3887
3888# Define the identity of the package.
3889 PACKAGE=$PACKAGE_NAME
3890 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3891
3892
3893# Some tools Automake needs.
3894
3895ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3896
3897
3898AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3899
3900
3901AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3902
3903
3904AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3905
3906
3907MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3908
3909# We need awk for the "check" target. The system "awk" is bad on
3910# some platforms.
3911# Always define AMTAR for backward compatibility.
3912
3913AMTAR=${AMTAR-"${am_missing_run}tar"}
3914
3915am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3916
3917
3918
3919
3920
cristy3ed852e2009-09-05 21:47:34 +00003921
3922# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003923# Check whether --enable-silent-rules was given.
3924if test "${enable_silent_rules+set}" = set; then :
3925 enableval=$enable_silent_rules;
3926fi
3927
3928case $enable_silent_rules in
3929yes) AM_DEFAULT_VERBOSITY=0;;
3930no) AM_DEFAULT_VERBOSITY=1;;
3931*) AM_DEFAULT_VERBOSITY=0;;
3932esac
3933AM_BACKSLASH='\'
3934
cristy3ed852e2009-09-05 21:47:34 +00003935
3936MAGICK_LIB_VERSION="0x"
3937if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3938 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3939fi
3940MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3941if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3942 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3943fi
3944MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3945if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3946 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3947fi
3948MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3949
3950
3951# Definition used to define MagickLibVersionText in version.h
3952MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3953
3954
3955# Definition used to define MagickLibVersionNumber in version.h
3956MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3957
3958
3959# Regenerate config.status if ChangeLog or version.sh is updated.
3960CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3961
3962
3963PERLMAINCC=$CC
3964
3965MAGICK_CFLAGS=''
3966MAGICK_CPPFLAGS=$CPPFLAGS_USER
3967MAGICK_PCFLAGS=$CPPFLAGS_USER
3968MAGICK_LDFLAGS=''
3969MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003970MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003971
3972#
3973# Evaluate shell variable equivalents to Makefile directory variables
3974#
3975if test "x$prefix" = xNONE; then
3976 prefix=$ac_default_prefix
3977fi
3978# Let make expand exec_prefix.
3979if test "x$exec_prefix" = xNONE; then
3980 exec_prefix='${prefix}'
3981fi
3982
3983#
3984eval "eval PREFIX_DIR=${prefix}"
3985
3986eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3987
3988eval "eval BIN_DIR=$bindir"
3989
3990eval "eval SBIN_DIR=$sbindir"
3991
3992eval "eval LIBEXEC_DIR=$libexecdir"
3993
3994eval "eval DATA_DIR=$datadir"
3995
3996eval "eval SYSCONF_DIR=$sysconfdir"
3997
3998eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3999
4000eval "eval LOCALSTATE_DIR=$localstatedir"
4001
4002eval "eval LIB_DIR=$libdir"
4003
4004eval "eval INCLUDE_DIR=$includedir"
4005
4006eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4007
4008eval "eval INFO_DIR=$infodir"
4009
4010eval "eval MAN_DIR=$mandir"
4011
4012
4013# Get full paths to source and build directories
4014srcdirfull="`cd $srcdir && pwd`"
4015builddir="`pwd`"
4016
4017#
4018# Compute variables useful for running uninstalled software.
4019#
4020MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4021MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4022MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4023MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4024DIRSEP=':'
4025case "${build_os}" in
4026 mingw* )
4027 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4028 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4029 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4030 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4031 DIRSEP=';'
4032 ;;
4033esac
4034case "${host_os}" in
4035 mingw* )
4036 DIRSEP=';'
4037 ;;
4038esac
4039
4040
4041
4042
4043
4044
cristya0b81c32010-01-22 02:54:33 +00004045
4046#
4047# Enable OS features.
4048#
cristy73bd4a52010-10-05 11:24:23 +00004049DEPDIR="${am__leading_dot}deps"
4050
4051ac_config_commands="$ac_config_commands depfiles"
4052
4053
4054am_make=${MAKE-make}
4055cat > confinc << 'END'
4056am__doit:
4057 @echo this is the am__doit target
4058.PHONY: am__doit
4059END
4060# If we don't find an include directive, just comment out the code.
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4062$as_echo_n "checking for style of include used by $am_make... " >&6; }
4063am__include="#"
4064am__quote=
4065_am_result=none
4066# First try GNU make style include.
4067echo "include confinc" > confmf
4068# Ignore all kinds of additional output from `make'.
4069case `$am_make -s -f confmf 2> /dev/null` in #(
4070*the\ am__doit\ target*)
4071 am__include=include
4072 am__quote=
4073 _am_result=GNU
4074 ;;
4075esac
4076# Now try BSD make style include.
4077if test "$am__include" = "#"; then
4078 echo '.include "confinc"' > confmf
4079 case `$am_make -s -f confmf 2> /dev/null` in #(
4080 *the\ am__doit\ target*)
4081 am__include=.include
4082 am__quote="\""
4083 _am_result=BSD
4084 ;;
4085 esac
4086fi
4087
4088
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4090$as_echo "$_am_result" >&6; }
4091rm -f confinc confmf
4092
4093# Check whether --enable-dependency-tracking was given.
4094if test "${enable_dependency_tracking+set}" = set; then :
4095 enableval=$enable_dependency_tracking;
4096fi
4097
4098if test "x$enable_dependency_tracking" != xno; then
4099 am_depcomp="$ac_aux_dir/depcomp"
4100 AMDEPBACKSLASH='\'
4101fi
4102 if test "x$enable_dependency_tracking" != xno; then
4103 AMDEP_TRUE=
4104 AMDEP_FALSE='#'
4105else
4106 AMDEP_TRUE='#'
4107 AMDEP_FALSE=
4108fi
4109
4110
cristy3ed852e2009-09-05 21:47:34 +00004111ac_ext=c
4112ac_cpp='$CPP $CPPFLAGS'
4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4118set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004121if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004122 $as_echo_n "(cached) " >&6
4123else
4124 if test -n "$CC"; then
4125 ac_cv_prog_CC="$CC" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004136 break 2
4137 fi
4138done
cristy8b350f62009-11-15 23:12:43 +00004139 done
cristy3ed852e2009-09-05 21:47:34 +00004140IFS=$as_save_IFS
4141
4142fi
4143fi
4144CC=$ac_cv_prog_CC
4145if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004147$as_echo "$CC" >&6; }
4148else
cristy8b350f62009-11-15 23:12:43 +00004149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004150$as_echo "no" >&6; }
4151fi
4152
4153
4154fi
4155if test -z "$ac_cv_prog_CC"; then
4156 ac_ct_CC=$CC
4157 # Extract the first word of "gcc", so it can be a program name with args.
4158set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004160$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004161if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004162 $as_echo_n "(cached) " >&6
4163else
4164 if test -n "$ac_ct_CC"; then
4165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004176 break 2
4177 fi
4178done
cristy8b350f62009-11-15 23:12:43 +00004179 done
cristy3ed852e2009-09-05 21:47:34 +00004180IFS=$as_save_IFS
4181
4182fi
4183fi
4184ac_ct_CC=$ac_cv_prog_ac_ct_CC
4185if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004187$as_echo "$ac_ct_CC" >&6; }
4188else
cristy8b350f62009-11-15 23:12:43 +00004189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004190$as_echo "no" >&6; }
4191fi
4192
4193 if test "x$ac_ct_CC" = x; then
4194 CC=""
4195 else
4196 case $cross_compiling:$ac_tool_warned in
4197yes:)
cristy8b350f62009-11-15 23:12:43 +00004198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200ac_tool_warned=yes ;;
4201esac
4202 CC=$ac_ct_CC
4203 fi
4204else
4205 CC="$ac_cv_prog_CC"
4206fi
4207
4208if test -z "$CC"; then
4209 if test -n "$ac_tool_prefix"; then
4210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4211set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004214if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004215 $as_echo_n "(cached) " >&6
4216else
4217 if test -n "$CC"; then
4218 ac_cv_prog_CC="$CC" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004229 break 2
4230 fi
4231done
cristy8b350f62009-11-15 23:12:43 +00004232 done
cristy3ed852e2009-09-05 21:47:34 +00004233IFS=$as_save_IFS
4234
4235fi
4236fi
4237CC=$ac_cv_prog_CC
4238if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004240$as_echo "$CC" >&6; }
4241else
cristy8b350f62009-11-15 23:12:43 +00004242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004243$as_echo "no" >&6; }
4244fi
4245
4246
4247 fi
4248fi
4249if test -z "$CC"; then
4250 # Extract the first word of "cc", so it can be a program name with args.
4251set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004254if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004255 $as_echo_n "(cached) " >&6
4256else
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC="$CC" # Let the user override the test.
4259else
4260 ac_prog_rejected=no
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4269 ac_prog_rejected=yes
4270 continue
4271 fi
4272 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004274 break 2
4275 fi
4276done
cristy8b350f62009-11-15 23:12:43 +00004277 done
cristy3ed852e2009-09-05 21:47:34 +00004278IFS=$as_save_IFS
4279
4280if test $ac_prog_rejected = yes; then
4281 # We found a bogon in the path, so make sure we never use it.
4282 set dummy $ac_cv_prog_CC
4283 shift
4284 if test $# != 0; then
4285 # We chose a different compiler from the bogus one.
4286 # However, it has the same basename, so the bogon will be chosen
4287 # first if we set CC to just the basename; use the full file name.
4288 shift
4289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4290 fi
4291fi
4292fi
4293fi
4294CC=$ac_cv_prog_CC
4295if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004297$as_echo "$CC" >&6; }
4298else
cristy8b350f62009-11-15 23:12:43 +00004299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004300$as_echo "no" >&6; }
4301fi
4302
4303
4304fi
4305if test -z "$CC"; then
4306 if test -n "$ac_tool_prefix"; then
4307 for ac_prog in cl.exe
4308 do
4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004313if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004314 $as_echo_n "(cached) " >&6
4315else
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004328 break 2
4329 fi
4330done
cristy8b350f62009-11-15 23:12:43 +00004331 done
cristy3ed852e2009-09-05 21:47:34 +00004332IFS=$as_save_IFS
4333
4334fi
4335fi
4336CC=$ac_cv_prog_CC
4337if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339$as_echo "$CC" >&6; }
4340else
cristy8b350f62009-11-15 23:12:43 +00004341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004342$as_echo "no" >&6; }
4343fi
4344
4345
4346 test -n "$CC" && break
4347 done
4348fi
4349if test -z "$CC"; then
4350 ac_ct_CC=$CC
4351 for ac_prog in cl.exe
4352do
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004357if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004358 $as_echo_n "(cached) " >&6
4359else
4360 if test -n "$ac_ct_CC"; then
4361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372 break 2
4373 fi
4374done
cristy8b350f62009-11-15 23:12:43 +00004375 done
cristy3ed852e2009-09-05 21:47:34 +00004376IFS=$as_save_IFS
4377
4378fi
4379fi
4380ac_ct_CC=$ac_cv_prog_ac_ct_CC
4381if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383$as_echo "$ac_ct_CC" >&6; }
4384else
cristy8b350f62009-11-15 23:12:43 +00004385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004386$as_echo "no" >&6; }
4387fi
4388
4389
4390 test -n "$ac_ct_CC" && break
4391done
4392
4393 if test "x$ac_ct_CC" = x; then
4394 CC=""
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397yes:)
cristy8b350f62009-11-15 23:12:43 +00004398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400ac_tool_warned=yes ;;
4401esac
4402 CC=$ac_ct_CC
4403 fi
4404fi
4405
4406fi
4407
4408
cristy8b350f62009-11-15 23:12:43 +00004409test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004411as_fn_error $? "no acceptable C compiler found in \$PATH
4412See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004413
4414# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004415$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416set X $ac_compile
4417ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004418for ac_option in --version -v -V -qversion; do
4419 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004420case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
cristy8b350f62009-11-15 23:12:43 +00004424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004427 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004428 if test -s conftest.err; then
4429 sed '10a\
4430... rest of stderr output deleted ...
4431 10q' conftest.err >conftest.er1
4432 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004433 fi
cristycd4c5312009-11-22 01:19:08 +00004434 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }
4437done
cristy3ed852e2009-09-05 21:47:34 +00004438
cristy8b350f62009-11-15 23:12:43 +00004439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004440/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004441
cristy3ed852e2009-09-05 21:47:34 +00004442int
4443main ()
4444{
4445
4446 ;
4447 return 0;
4448}
4449_ACEOF
4450ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004451ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004452# Try to create an executable without -o first, disregard a.out.
4453# It will help us diagnose broken compilers, and finding out an intuition
4454# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4456$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004457ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4458
4459# The possible output files:
4460ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4461
4462ac_rmfiles=
4463for ac_file in $ac_files
4464do
4465 case $ac_file in
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4467 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4468 esac
4469done
4470rm -f $ac_rmfiles
4471
cristy8b350f62009-11-15 23:12:43 +00004472if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004473case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476esac
cristy8b350f62009-11-15 23:12:43 +00004477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004479 (eval "$ac_link_default") 2>&5
4480 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004483 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4484# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4485# in a Makefile. We should not override ac_cv_exeext if it was cached,
4486# so that the user can short-circuit this test for compilers unknown to
4487# Autoconf.
4488for ac_file in $ac_files ''
4489do
4490 test -f "$ac_file" || continue
4491 case $ac_file in
4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4493 ;;
4494 [ab].out )
4495 # We found the default executable, but exeext='' is most
4496 # certainly right.
4497 break;;
4498 *.* )
cristy8b350f62009-11-15 23:12:43 +00004499 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004500 then :; else
4501 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4502 fi
4503 # We set ac_cv_exeext here because the later test for it is not
4504 # safe: cross compilers may not add the suffix if given an `-o'
4505 # argument, so we may need to know it at that point already.
4506 # Even if this section looks crufty: it has the advantage of
4507 # actually working.
4508 break;;
4509 * )
4510 break;;
4511 esac
4512done
4513test "$ac_cv_exeext" = no && ac_cv_exeext=
4514
4515else
4516 ac_file=''
4517fi
cristy8b350f62009-11-15 23:12:43 +00004518if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520$as_echo "no" >&6; }
4521$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004522sed 's/^/| /' conftest.$ac_ext >&5
4523
cristy8b350f62009-11-15 23:12:43 +00004524{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004526as_fn_error 77 "C compiler cannot create executables
4527See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004528else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004531fi
cristycd4c5312009-11-22 01:19:08 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4533$as_echo_n "checking for C compiler default output file name... " >&6; }
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4535$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004536ac_exeext=$ac_cv_exeext
4537
cristycd4c5312009-11-22 01:19:08 +00004538rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004539ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004541$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004542if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004543case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
cristy8b350f62009-11-15 23:12:43 +00004547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004549 (eval "$ac_link") 2>&5
4550 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4554# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4555# work properly (i.e., refer to `conftest.exe'), while it won't with
4556# `rm'.
4557for ac_file in conftest.exe conftest conftest.*; do
4558 test -f "$ac_file" || continue
4559 case $ac_file in
4560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4562 break;;
4563 * ) break;;
4564 esac
4565done
4566else
cristy8b350f62009-11-15 23:12:43 +00004567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004569as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4570See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004571fi
cristycd4c5312009-11-22 01:19:08 +00004572rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "$ac_cv_exeext" >&6; }
4575
4576rm -f conftest.$ac_ext
4577EXEEXT=$ac_cv_exeext
4578ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h. */
4581#include <stdio.h>
4582int
4583main ()
4584{
4585FILE *f = fopen ("conftest.out", "w");
4586 return ferror (f) || fclose (f) != 0;
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592ac_clean_files="$ac_clean_files conftest.out"
4593# Check that the compiler produces executables we can run. If not, either
4594# the compiler is broken, or we cross compile.
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4596$as_echo_n "checking whether we are cross compiling... " >&6; }
4597if test "$cross_compiling" != yes; then
4598 { { ac_try="$ac_link"
4599case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
4603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4604$as_echo "$ac_try_echo"; } >&5
4605 (eval "$ac_link") 2>&5
4606 ac_status=$?
4607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }
4609 if { ac_try='./conftest$ac_cv_exeext'
4610 { { case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_try") 2>&5
4617 ac_status=$?
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }; }; then
4620 cross_compiling=no
4621 else
4622 if test "$cross_compiling" = maybe; then
4623 cross_compiling=yes
4624 else
4625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004627as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004628If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004629See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004630 fi
4631 fi
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4634$as_echo "$cross_compiling" >&6; }
4635
4636rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4637ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
cristy8b350f62009-11-15 23:12:43 +00004643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004644/* end confdefs.h. */
4645
4646int
4647main ()
4648{
4649
4650 ;
4651 return 0;
4652}
4653_ACEOF
4654rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004655if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004656case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
cristy8b350f62009-11-15 23:12:43 +00004660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004662 (eval "$ac_compile") 2>&5
4663 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004666 for ac_file in conftest.o conftest.obj conftest.*; do
4667 test -f "$ac_file" || continue;
4668 case $ac_file in
4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4670 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4671 break;;
4672 esac
4673done
4674else
4675 $as_echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
cristy8b350f62009-11-15 23:12:43 +00004678{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004680as_fn_error $? "cannot compute suffix of object files: cannot compile
4681See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004682fi
cristy3ed852e2009-09-05 21:47:34 +00004683rm -f conftest.$ac_cv_objext conftest.$ac_ext
4684fi
cristy8b350f62009-11-15 23:12:43 +00004685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo "$ac_cv_objext" >&6; }
4687OBJEXT=$ac_cv_objext
4688ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004691if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004692 $as_echo_n "(cached) " >&6
4693else
cristy8b350f62009-11-15 23:12:43 +00004694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004695/* end confdefs.h. */
4696
4697int
4698main ()
4699{
4700#ifndef __GNUC__
4701 choke me
4702#endif
4703
4704 ;
4705 return 0;
4706}
4707_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004708if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004709 ac_compiler_gnu=yes
4710else
cristy8b350f62009-11-15 23:12:43 +00004711 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004712fi
cristy3ed852e2009-09-05 21:47:34 +00004713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714ac_cv_c_compiler_gnu=$ac_compiler_gnu
4715
4716fi
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4719if test $ac_compiler_gnu = yes; then
4720 GCC=yes
4721else
4722 GCC=
4723fi
4724ac_test_CFLAGS=${CFLAGS+set}
4725ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004728if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004729 $as_echo_n "(cached) " >&6
4730else
4731 ac_save_c_werror_flag=$ac_c_werror_flag
4732 ac_c_werror_flag=yes
4733 ac_cv_prog_cc_g=no
4734 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004736/* end confdefs.h. */
4737
4738int
4739main ()
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004746if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004747 ac_cv_prog_cc_g=yes
4748else
cristy8b350f62009-11-15 23:12:43 +00004749 CFLAGS=""
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004751/* end confdefs.h. */
4752
4753int
4754main ()
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004761if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004762
cristy8b350f62009-11-15 23:12:43 +00004763else
4764 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004765 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004767/* end confdefs.h. */
4768
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004777if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004778 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004779fi
cristy3ed852e2009-09-05 21:47:34 +00004780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781fi
cristy3ed852e2009-09-05 21:47:34 +00004782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
cristy3ed852e2009-09-05 21:47:34 +00004784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786fi
cristy8b350f62009-11-15 23:12:43 +00004787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004788$as_echo "$ac_cv_prog_cc_g" >&6; }
4789if test "$ac_test_CFLAGS" = set; then
4790 CFLAGS=$ac_save_CFLAGS
4791elif test $ac_cv_prog_cc_g = yes; then
4792 if test "$GCC" = yes; then
4793 CFLAGS="-g -O2"
4794 else
4795 CFLAGS="-g"
4796 fi
4797else
4798 if test "$GCC" = yes; then
4799 CFLAGS="-O2"
4800 else
4801 CFLAGS=
4802 fi
4803fi
cristy8b350f62009-11-15 23:12:43 +00004804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004805$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004806if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004807 $as_echo_n "(cached) " >&6
4808else
4809 ac_cv_prog_cc_c89=no
4810ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004812/* end confdefs.h. */
4813#include <stdarg.h>
4814#include <stdio.h>
4815#include <sys/types.h>
4816#include <sys/stat.h>
4817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4818struct buf { int x; };
4819FILE * (*rcsopen) (struct buf *, struct stat *, int);
4820static char *e (p, i)
4821 char **p;
4822 int i;
4823{
4824 return p[i];
4825}
4826static char *f (char * (*g) (char **, int), char **p, ...)
4827{
4828 char *s;
4829 va_list v;
4830 va_start (v,p);
4831 s = g (p, va_arg (v,int));
4832 va_end (v);
4833 return s;
4834}
4835
4836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4837 function prototypes and stuff, but not '\xHH' hex character constants.
4838 These don't provoke an error unfortunately, instead are silently treated
4839 as 'x'. The following induces an error, until -std is added to get
4840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4841 array size at least. It's necessary to write '\x00'==0 to get something
4842 that's true only with -std. */
4843int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4844
4845/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4846 inside strings and character constants. */
4847#define FOO(x) 'x'
4848int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4849
4850int test (int i, double x);
4851struct s1 {int (*f) (int a);};
4852struct s2 {int (*f) (double a);};
4853int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4854int argc;
4855char **argv;
4856int
4857main ()
4858{
4859return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4860 ;
4861 return 0;
4862}
4863_ACEOF
4864for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4865 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4866do
4867 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004868 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004869 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004870fi
cristy3ed852e2009-09-05 21:47:34 +00004871rm -f core conftest.err conftest.$ac_objext
4872 test "x$ac_cv_prog_cc_c89" != "xno" && break
4873done
4874rm -f conftest.$ac_ext
4875CC=$ac_save_CC
4876
4877fi
4878# AC_CACHE_VAL
4879case "x$ac_cv_prog_cc_c89" in
4880 x)
cristy8b350f62009-11-15 23:12:43 +00004881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004882$as_echo "none needed" >&6; } ;;
4883 xno)
cristy8b350f62009-11-15 23:12:43 +00004884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo "unsupported" >&6; } ;;
4886 *)
4887 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004889$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4890esac
cristy8b350f62009-11-15 23:12:43 +00004891if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004892
cristy8b350f62009-11-15 23:12:43 +00004893fi
cristy3ed852e2009-09-05 21:47:34 +00004894
4895ac_ext=c
4896ac_cpp='$CPP $CPPFLAGS'
4897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004900
cristy73bd4a52010-10-05 11:24:23 +00004901depcc="$CC" am_compiler_list=
4902
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4904$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004905if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004906 $as_echo_n "(cached) " >&6
4907else
4908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4909 # We make a subdir and do the tests there. Otherwise we can end up
4910 # making bogus files that we don't know about and never remove. For
4911 # instance it was reported that on HP-UX the gcc test will end up
4912 # making a dummy file named `D' -- because `-MD' means `put the output
4913 # in D'.
4914 mkdir conftest.dir
4915 # Copy depcomp to subdir because otherwise we won't find it if we're
4916 # using a relative directory.
4917 cp "$am_depcomp" conftest.dir
4918 cd conftest.dir
4919 # We will build objects and dependencies in a subdirectory because
4920 # it helps to detect inapplicable dependency modes. For instance
4921 # both Tru64's cc and ICC support -MD to output dependencies as a
4922 # side effect of compilation, but ICC will put the dependencies in
4923 # the current directory while Tru64 will put them in the object
4924 # directory.
4925 mkdir sub
4926
4927 am_cv_CC_dependencies_compiler_type=none
4928 if test "$am_compiler_list" = ""; then
4929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4930 fi
4931 am__universal=false
4932 case " $depcc " in #(
4933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4934 esac
4935
4936 for depmode in $am_compiler_list; do
4937 # Setup a source with many dependencies, because some compilers
4938 # like to wrap large dependency lists on column 80 (with \), and
4939 # we should not choose a depcomp mode which is confused by this.
4940 #
4941 # We need to recreate these files for each test, as the compiler may
4942 # overwrite some of them when testing with obscure command lines.
4943 # This happens at least with the AIX C compiler.
4944 : > sub/conftest.c
4945 for i in 1 2 3 4 5 6; do
4946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4947 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4948 # Solaris 8's {/usr,}/bin/sh.
4949 touch sub/conftst$i.h
4950 done
4951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4952
4953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4954 # mode. It turns out that the SunPro C++ compiler does not properly
4955 # handle `-M -o', and we need to detect this. Also, some Intel
4956 # versions had trouble with output in subdirs
4957 am__obj=sub/conftest.${OBJEXT-o}
4958 am__minus_obj="-o $am__obj"
4959 case $depmode in
4960 gcc)
4961 # This depmode causes a compiler race in universal mode.
4962 test "$am__universal" = false || continue
4963 ;;
4964 nosideeffect)
4965 # after this tag, mechanisms are not by side-effect, so they'll
4966 # only be used when explicitly requested
4967 if test "x$enable_dependency_tracking" = xyes; then
4968 continue
4969 else
4970 break
4971 fi
4972 ;;
4973 msvisualcpp | msvcmsys)
4974 # This compiler won't grok `-c -o', but also, the minuso test has
4975 # not run yet. These depmodes are late enough in the game, and
4976 # so weak that their functioning should not be impacted.
4977 am__obj=conftest.${OBJEXT-o}
4978 am__minus_obj=
4979 ;;
4980 none) break ;;
4981 esac
4982 if depmode=$depmode \
4983 source=sub/conftest.c object=$am__obj \
4984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4986 >/dev/null 2>conftest.err &&
4987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4991 # icc doesn't choke on unknown options, it will just issue warnings
4992 # or remarks (even with -Werror). So we grep stderr for any message
4993 # that says an option was ignored or not supported.
4994 # When given -MP, icc 7.0 and 7.1 complain thusly:
4995 # icc: Command line warning: ignoring option '-M'; no argument required
4996 # The diagnosis changed in icc 8.0:
4997 # icc: Command line remark: option '-MP' not supported
4998 if (grep 'ignoring option' conftest.err ||
4999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5000 am_cv_CC_dependencies_compiler_type=$depmode
5001 break
5002 fi
5003 fi
5004 done
5005
5006 cd ..
5007 rm -rf conftest.dir
5008else
5009 am_cv_CC_dependencies_compiler_type=none
5010fi
5011
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5014$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5015CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5016
5017 if
5018 test "x$enable_dependency_tracking" != xno \
5019 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5020 am__fastdepCC_TRUE=
5021 am__fastdepCC_FALSE='#'
5022else
5023 am__fastdepCC_TRUE='#'
5024 am__fastdepCC_FALSE=
5025fi
5026
5027
cristy3ed852e2009-09-05 21:47:34 +00005028
cristya0b81c32010-01-22 02:54:33 +00005029ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5035$as_echo_n "checking how to run the C preprocessor... " >&6; }
5036# On Suns, sometimes $CPP names a directory.
5037if test -n "$CPP" && test -d "$CPP"; then
5038 CPP=
5039fi
5040if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005041 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005042 $as_echo_n "(cached) " >&6
5043else
5044 # Double quotes because CPP needs to be expanded
5045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5046 do
5047 ac_preproc_ok=false
5048for ac_c_preproc_warn_flag in '' yes
5049do
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h. */
5058#ifdef __STDC__
5059# include <limits.h>
5060#else
5061# include <assert.h>
5062#endif
5063 Syntax error
5064_ACEOF
5065if ac_fn_c_try_cpp "$LINENO"; then :
5066
5067else
5068 # Broken: fails on valid input.
5069continue
5070fi
cristyda16f162011-02-19 23:52:17 +00005071rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005072
5073 # OK, works on sane cases. Now check whether nonexistent headers
5074 # can be detected and how.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h. */
5077#include <ac_nonexistent.h>
5078_ACEOF
5079if ac_fn_c_try_cpp "$LINENO"; then :
5080 # Broken: success on invalid input.
5081continue
5082else
5083 # Passes both tests.
5084ac_preproc_ok=:
5085break
5086fi
cristyda16f162011-02-19 23:52:17 +00005087rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005088
5089done
5090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005091rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005092if $ac_preproc_ok; then :
5093 break
5094fi
5095
5096 done
5097 ac_cv_prog_CPP=$CPP
5098
5099fi
5100 CPP=$ac_cv_prog_CPP
5101else
5102 ac_cv_prog_CPP=$CPP
5103fi
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5105$as_echo "$CPP" >&6; }
5106ac_preproc_ok=false
5107for ac_c_preproc_warn_flag in '' yes
5108do
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h. */
5117#ifdef __STDC__
5118# include <limits.h>
5119#else
5120# include <assert.h>
5121#endif
5122 Syntax error
5123_ACEOF
5124if ac_fn_c_try_cpp "$LINENO"; then :
5125
5126else
5127 # Broken: fails on valid input.
5128continue
5129fi
cristyda16f162011-02-19 23:52:17 +00005130rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005131
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h. */
5136#include <ac_nonexistent.h>
5137_ACEOF
5138if ac_fn_c_try_cpp "$LINENO"; then :
5139 # Broken: success on invalid input.
5140continue
5141else
5142 # Passes both tests.
5143ac_preproc_ok=:
5144break
5145fi
cristyda16f162011-02-19 23:52:17 +00005146rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005147
5148done
5149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005150rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005151if $ac_preproc_ok; then :
5152
5153else
5154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005156as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5157See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005158fi
5159
5160ac_ext=c
5161ac_cpp='$CPP $CPPFLAGS'
5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5168$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005169if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005170 $as_echo_n "(cached) " >&6
5171else
5172 if test -z "$GREP"; then
5173 ac_path_GREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in grep ggrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5184# Check for GNU ac_path_GREP and select it if it is found.
5185 # Check for GNU $ac_path_GREP
5186case `"$ac_path_GREP" --version 2>&1` in
5187*GNU*)
5188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5189*)
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'GREP' >> "conftest.nl"
5198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_GREP="$ac_path_GREP"
5204 ac_path_GREP_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210esac
5211
5212 $ac_path_GREP_found && break 3
5213 done
5214 done
5215 done
5216IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005218 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005219 fi
5220else
5221 ac_cv_path_GREP=$GREP
5222fi
5223
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5226$as_echo "$ac_cv_path_GREP" >&6; }
5227 GREP="$ac_cv_path_GREP"
5228
5229
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5231$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005232if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005233 $as_echo_n "(cached) " >&6
5234else
5235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5236 then ac_cv_path_EGREP="$GREP -E"
5237 else
5238 if test -z "$EGREP"; then
5239 ac_path_EGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in egrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5250# Check for GNU ac_path_EGREP and select it if it is found.
5251 # Check for GNU $ac_path_EGREP
5252case `"$ac_path_EGREP" --version 2>&1` in
5253*GNU*)
5254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5255*)
5256 ac_count=0
5257 $as_echo_n 0123456789 >"conftest.in"
5258 while :
5259 do
5260 cat "conftest.in" "conftest.in" >"conftest.tmp"
5261 mv "conftest.tmp" "conftest.in"
5262 cp "conftest.in" "conftest.nl"
5263 $as_echo 'EGREP' >> "conftest.nl"
5264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266 as_fn_arith $ac_count + 1 && ac_count=$as_val
5267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_EGREP="$ac_path_EGREP"
5270 ac_path_EGREP_max=$ac_count
5271 fi
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5274 done
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276esac
5277
5278 $ac_path_EGREP_found && break 3
5279 done
5280 done
5281 done
5282IFS=$as_save_IFS
5283 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005284 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005285 fi
5286else
5287 ac_cv_path_EGREP=$EGREP
5288fi
5289
5290 fi
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5293$as_echo "$ac_cv_path_EGREP" >&6; }
5294 EGREP="$ac_cv_path_EGREP"
5295
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5298$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005299if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005300 $as_echo_n "(cached) " >&6
5301else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303/* end confdefs.h. */
5304#include <stdlib.h>
5305#include <stdarg.h>
5306#include <string.h>
5307#include <float.h>
5308
5309int
5310main ()
5311{
5312
5313 ;
5314 return 0;
5315}
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_cv_header_stdc=yes
5319else
5320 ac_cv_header_stdc=no
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323
5324if test $ac_cv_header_stdc = yes; then
5325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h. */
5328#include <string.h>
5329
5330_ACEOF
5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "memchr" >/dev/null 2>&1; then :
5333
5334else
5335 ac_cv_header_stdc=no
5336fi
5337rm -f conftest*
5338
5339fi
5340
5341if test $ac_cv_header_stdc = yes; then
5342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h. */
5345#include <stdlib.h>
5346
5347_ACEOF
5348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "free" >/dev/null 2>&1; then :
5350
5351else
5352 ac_cv_header_stdc=no
5353fi
5354rm -f conftest*
5355
5356fi
5357
5358if test $ac_cv_header_stdc = yes; then
5359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5360 if test "$cross_compiling" = yes; then :
5361 :
5362else
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h. */
5365#include <ctype.h>
5366#include <stdlib.h>
5367#if ((' ' & 0x0FF) == 0x020)
5368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5370#else
5371# define ISLOWER(c) \
5372 (('a' <= (c) && (c) <= 'i') \
5373 || ('j' <= (c) && (c) <= 'r') \
5374 || ('s' <= (c) && (c) <= 'z'))
5375# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5376#endif
5377
5378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5379int
5380main ()
5381{
5382 int i;
5383 for (i = 0; i < 256; i++)
5384 if (XOR (islower (i), ISLOWER (i))
5385 || toupper (i) != TOUPPER (i))
5386 return 2;
5387 return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_run "$LINENO"; then :
5391
5392else
5393 ac_cv_header_stdc=no
5394fi
5395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5396 conftest.$ac_objext conftest.beam conftest.$ac_ext
5397fi
5398
5399fi
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5402$as_echo "$ac_cv_header_stdc" >&6; }
5403if test $ac_cv_header_stdc = yes; then
5404
5405$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5406
5407fi
5408
5409# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5410for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5411 inttypes.h stdint.h unistd.h
5412do :
5413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5414ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5415"
cristy98dddb52010-11-04 00:30:15 +00005416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005417 cat >>confdefs.h <<_ACEOF
5418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419_ACEOF
5420
5421fi
5422
5423done
5424
5425
5426
5427 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 +00005428if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005429 MINIX=yes
5430else
5431 MINIX=
5432fi
5433
5434
5435 if test "$MINIX" = yes; then
5436
5437$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5438
5439
5440$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5441
5442
5443$as_echo "#define _MINIX 1" >>confdefs.h
5444
5445 fi
5446
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5449$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005450if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005451 $as_echo_n "(cached) " >&6
5452else
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455
5456# define __EXTENSIONS__ 1
5457 $ac_includes_default
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467 ac_cv_safe_to_define___extensions__=yes
5468else
5469 ac_cv_safe_to_define___extensions__=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5474$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5475 test $ac_cv_safe_to_define___extensions__ = yes &&
5476 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5477
5478 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5479
5480 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5481
5482 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5483
5484 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5485
5486
5487
5488# Check for programs
5489ac_ext=c
5490ac_cpp='$CPP $CPPFLAGS'
5491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493ac_compiler_gnu=$ac_cv_c_compiler_gnu
5494if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5496set dummy ${ac_tool_prefix}gcc; ac_word=$2
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005499if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005500 $as_echo_n "(cached) " >&6
5501else
5502 if test -n "$CC"; then
5503 ac_cv_prog_CC="$CC" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517 done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522CC=$ac_cv_prog_CC
5523if test -n "$CC"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5525$as_echo "$CC" >&6; }
5526else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528$as_echo "no" >&6; }
5529fi
5530
5531
5532fi
5533if test -z "$ac_cv_prog_CC"; then
5534 ac_ct_CC=$CC
5535 # Extract the first word of "gcc", so it can be a program name with args.
5536set dummy gcc; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005539if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005540 $as_echo_n "(cached) " >&6
5541else
5542 if test -n "$ac_ct_CC"; then
5543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_ac_ct_CC="gcc"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556done
5557 done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562ac_ct_CC=$ac_cv_prog_ac_ct_CC
5563if test -n "$ac_ct_CC"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5565$as_echo "$ac_ct_CC" >&6; }
5566else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571 if test "x$ac_ct_CC" = x; then
5572 CC=""
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575yes:)
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578ac_tool_warned=yes ;;
5579esac
5580 CC=$ac_ct_CC
5581 fi
5582else
5583 CC="$ac_cv_prog_CC"
5584fi
5585
5586if test -z "$CC"; then
5587 if test -n "$ac_tool_prefix"; then
5588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5589set dummy ${ac_tool_prefix}cc; ac_word=$2
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005592if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005593 $as_echo_n "(cached) " >&6
5594else
5595 if test -n "$CC"; then
5596 ac_cv_prog_CC="$CC" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_CC="${ac_tool_prefix}cc"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609done
5610 done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615CC=$ac_cv_prog_CC
5616if test -n "$CC"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5618$as_echo "$CC" >&6; }
5619else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624
5625 fi
5626fi
5627if test -z "$CC"; then
5628 # Extract the first word of "cc", so it can be a program name with args.
5629set dummy cc; ac_word=$2
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005632if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005633 $as_echo_n "(cached) " >&6
5634else
5635 if test -n "$CC"; then
5636 ac_cv_prog_CC="$CC" # Let the user override the test.
5637else
5638 ac_prog_rejected=no
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5647 ac_prog_rejected=yes
5648 continue
5649 fi
5650 ac_cv_prog_CC="cc"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654done
5655 done
5656IFS=$as_save_IFS
5657
5658if test $ac_prog_rejected = yes; then
5659 # We found a bogon in the path, so make sure we never use it.
5660 set dummy $ac_cv_prog_CC
5661 shift
5662 if test $# != 0; then
5663 # We chose a different compiler from the bogus one.
5664 # However, it has the same basename, so the bogon will be chosen
5665 # first if we set CC to just the basename; use the full file name.
5666 shift
5667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5668 fi
5669fi
5670fi
5671fi
5672CC=$ac_cv_prog_CC
5673if test -n "$CC"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5675$as_echo "$CC" >&6; }
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$CC"; then
5684 if test -n "$ac_tool_prefix"; then
5685 for ac_prog in cl.exe
5686 do
5687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005691if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005692 $as_echo_n "(cached) " >&6
5693else
5694 if test -n "$CC"; then
5695 ac_cv_prog_CC="$CC" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708done
5709 done
5710IFS=$as_save_IFS
5711
5712fi
5713fi
5714CC=$ac_cv_prog_CC
5715if test -n "$CC"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5717$as_echo "$CC" >&6; }
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721fi
5722
5723
5724 test -n "$CC" && break
5725 done
5726fi
5727if test -z "$CC"; then
5728 ac_ct_CC=$CC
5729 for ac_prog in cl.exe
5730do
5731 # Extract the first word of "$ac_prog", so it can be a program name with args.
5732set dummy $ac_prog; ac_word=$2
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005735if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005736 $as_echo_n "(cached) " >&6
5737else
5738 if test -n "$ac_ct_CC"; then
5739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_ac_ct_CC="$ac_prog"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752done
5753 done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758ac_ct_CC=$ac_cv_prog_ac_ct_CC
5759if test -n "$ac_ct_CC"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5761$as_echo "$ac_ct_CC" >&6; }
5762else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765fi
5766
5767
5768 test -n "$ac_ct_CC" && break
5769done
5770
5771 if test "x$ac_ct_CC" = x; then
5772 CC=""
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780 CC=$ac_ct_CC
5781 fi
5782fi
5783
5784fi
5785
5786
5787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005789as_fn_error $? "no acceptable C compiler found in \$PATH
5790See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005791
5792# Provide some information about the compiler.
5793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5794set X $ac_compile
5795ac_compiler=$2
5796for ac_option in --version -v -V -qversion; do
5797 { { ac_try="$ac_compiler $ac_option >&5"
5798case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801esac
5802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5803$as_echo "$ac_try_echo"; } >&5
5804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5805 ac_status=$?
5806 if test -s conftest.err; then
5807 sed '10a\
5808... rest of stderr output deleted ...
5809 10q' conftest.err >conftest.er1
5810 cat conftest.er1 >&5
5811 fi
5812 rm -f conftest.er1 conftest.err
5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814 test $ac_status = 0; }
5815done
5816
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5818$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005819if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005820 $as_echo_n "(cached) " >&6
5821else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h. */
5824
5825int
5826main ()
5827{
5828#ifndef __GNUC__
5829 choke me
5830#endif
5831
5832 ;
5833 return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837 ac_compiler_gnu=yes
5838else
5839 ac_compiler_gnu=no
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842ac_cv_c_compiler_gnu=$ac_compiler_gnu
5843
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5846$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5847if test $ac_compiler_gnu = yes; then
5848 GCC=yes
5849else
5850 GCC=
5851fi
5852ac_test_CFLAGS=${CFLAGS+set}
5853ac_save_CFLAGS=$CFLAGS
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5855$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005856if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005857 $as_echo_n "(cached) " >&6
5858else
5859 ac_save_c_werror_flag=$ac_c_werror_flag
5860 ac_c_werror_flag=yes
5861 ac_cv_prog_cc_g=no
5862 CFLAGS="-g"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865
5866int
5867main ()
5868{
5869
5870 ;
5871 return 0;
5872}
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then :
5875 ac_cv_prog_cc_g=yes
5876else
5877 CFLAGS=""
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h. */
5880
5881int
5882main ()
5883{
5884
5885 ;
5886 return 0;
5887}
5888_ACEOF
5889if ac_fn_c_try_compile "$LINENO"; then :
5890
5891else
5892 ac_c_werror_flag=$ac_save_c_werror_flag
5893 CFLAGS="-g"
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h. */
5896
5897int
5898main ()
5899{
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_compile "$LINENO"; then :
5906 ac_cv_prog_cc_g=yes
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909fi
5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 ac_c_werror_flag=$ac_save_c_werror_flag
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5916$as_echo "$ac_cv_prog_cc_g" >&6; }
5917if test "$ac_test_CFLAGS" = set; then
5918 CFLAGS=$ac_save_CFLAGS
5919elif test $ac_cv_prog_cc_g = yes; then
5920 if test "$GCC" = yes; then
5921 CFLAGS="-g -O2"
5922 else
5923 CFLAGS="-g"
5924 fi
5925else
5926 if test "$GCC" = yes; then
5927 CFLAGS="-O2"
5928 else
5929 CFLAGS=
5930 fi
5931fi
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5933$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005934if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005935 $as_echo_n "(cached) " >&6
5936else
5937 ac_cv_prog_cc_c89=no
5938ac_save_CC=$CC
5939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h. */
5941#include <stdarg.h>
5942#include <stdio.h>
5943#include <sys/types.h>
5944#include <sys/stat.h>
5945/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5946struct buf { int x; };
5947FILE * (*rcsopen) (struct buf *, struct stat *, int);
5948static char *e (p, i)
5949 char **p;
5950 int i;
5951{
5952 return p[i];
5953}
5954static char *f (char * (*g) (char **, int), char **p, ...)
5955{
5956 char *s;
5957 va_list v;
5958 va_start (v,p);
5959 s = g (p, va_arg (v,int));
5960 va_end (v);
5961 return s;
5962}
5963
5964/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5965 function prototypes and stuff, but not '\xHH' hex character constants.
5966 These don't provoke an error unfortunately, instead are silently treated
5967 as 'x'. The following induces an error, until -std is added to get
5968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5969 array size at least. It's necessary to write '\x00'==0 to get something
5970 that's true only with -std. */
5971int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5972
5973/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5974 inside strings and character constants. */
5975#define FOO(x) 'x'
5976int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5977
5978int test (int i, double x);
5979struct s1 {int (*f) (int a);};
5980struct s2 {int (*f) (double a);};
5981int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5982int argc;
5983char **argv;
5984int
5985main ()
5986{
5987return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5988 ;
5989 return 0;
5990}
5991_ACEOF
5992for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5994do
5995 CC="$ac_save_CC $ac_arg"
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 ac_cv_prog_cc_c89=$ac_arg
5998fi
5999rm -f core conftest.err conftest.$ac_objext
6000 test "x$ac_cv_prog_cc_c89" != "xno" && break
6001done
6002rm -f conftest.$ac_ext
6003CC=$ac_save_CC
6004
6005fi
6006# AC_CACHE_VAL
6007case "x$ac_cv_prog_cc_c89" in
6008 x)
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6010$as_echo "none needed" >&6; } ;;
6011 xno)
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6013$as_echo "unsupported" >&6; } ;;
6014 *)
6015 CC="$CC $ac_cv_prog_cc_c89"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6017$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6018esac
6019if test "x$ac_cv_prog_cc_c89" != xno; then :
6020
6021fi
6022
6023ac_ext=c
6024ac_cpp='$CPP $CPPFLAGS'
6025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027ac_compiler_gnu=$ac_cv_c_compiler_gnu
6028
cristy73bd4a52010-10-05 11:24:23 +00006029depcc="$CC" am_compiler_list=
6030
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6032$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006033if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006034 $as_echo_n "(cached) " >&6
6035else
6036 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6037 # We make a subdir and do the tests there. Otherwise we can end up
6038 # making bogus files that we don't know about and never remove. For
6039 # instance it was reported that on HP-UX the gcc test will end up
6040 # making a dummy file named `D' -- because `-MD' means `put the output
6041 # in D'.
6042 mkdir conftest.dir
6043 # Copy depcomp to subdir because otherwise we won't find it if we're
6044 # using a relative directory.
6045 cp "$am_depcomp" conftest.dir
6046 cd conftest.dir
6047 # We will build objects and dependencies in a subdirectory because
6048 # it helps to detect inapplicable dependency modes. For instance
6049 # both Tru64's cc and ICC support -MD to output dependencies as a
6050 # side effect of compilation, but ICC will put the dependencies in
6051 # the current directory while Tru64 will put them in the object
6052 # directory.
6053 mkdir sub
6054
6055 am_cv_CC_dependencies_compiler_type=none
6056 if test "$am_compiler_list" = ""; then
6057 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6058 fi
6059 am__universal=false
6060 case " $depcc " in #(
6061 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6062 esac
6063
6064 for depmode in $am_compiler_list; do
6065 # Setup a source with many dependencies, because some compilers
6066 # like to wrap large dependency lists on column 80 (with \), and
6067 # we should not choose a depcomp mode which is confused by this.
6068 #
6069 # We need to recreate these files for each test, as the compiler may
6070 # overwrite some of them when testing with obscure command lines.
6071 # This happens at least with the AIX C compiler.
6072 : > sub/conftest.c
6073 for i in 1 2 3 4 5 6; do
6074 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6075 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6076 # Solaris 8's {/usr,}/bin/sh.
6077 touch sub/conftst$i.h
6078 done
6079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6080
6081 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6082 # mode. It turns out that the SunPro C++ compiler does not properly
6083 # handle `-M -o', and we need to detect this. Also, some Intel
6084 # versions had trouble with output in subdirs
6085 am__obj=sub/conftest.${OBJEXT-o}
6086 am__minus_obj="-o $am__obj"
6087 case $depmode in
6088 gcc)
6089 # This depmode causes a compiler race in universal mode.
6090 test "$am__universal" = false || continue
6091 ;;
6092 nosideeffect)
6093 # after this tag, mechanisms are not by side-effect, so they'll
6094 # only be used when explicitly requested
6095 if test "x$enable_dependency_tracking" = xyes; then
6096 continue
6097 else
6098 break
6099 fi
6100 ;;
6101 msvisualcpp | msvcmsys)
6102 # This compiler won't grok `-c -o', but also, the minuso test has
6103 # not run yet. These depmodes are late enough in the game, and
6104 # so weak that their functioning should not be impacted.
6105 am__obj=conftest.${OBJEXT-o}
6106 am__minus_obj=
6107 ;;
6108 none) break ;;
6109 esac
6110 if depmode=$depmode \
6111 source=sub/conftest.c object=$am__obj \
6112 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6113 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6114 >/dev/null 2>conftest.err &&
6115 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6116 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6117 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6118 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6119 # icc doesn't choke on unknown options, it will just issue warnings
6120 # or remarks (even with -Werror). So we grep stderr for any message
6121 # that says an option was ignored or not supported.
6122 # When given -MP, icc 7.0 and 7.1 complain thusly:
6123 # icc: Command line warning: ignoring option '-M'; no argument required
6124 # The diagnosis changed in icc 8.0:
6125 # icc: Command line remark: option '-MP' not supported
6126 if (grep 'ignoring option' conftest.err ||
6127 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6128 am_cv_CC_dependencies_compiler_type=$depmode
6129 break
6130 fi
6131 fi
6132 done
6133
6134 cd ..
6135 rm -rf conftest.dir
6136else
6137 am_cv_CC_dependencies_compiler_type=none
6138fi
6139
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6142$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6143CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6144
6145 if
6146 test "x$enable_dependency_tracking" != xno \
6147 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6148 am__fastdepCC_TRUE=
6149 am__fastdepCC_FALSE='#'
6150else
6151 am__fastdepCC_TRUE='#'
6152 am__fastdepCC_FALSE=
6153fi
6154
6155
cristy95646052009-11-28 23:05:30 +00006156ac_ext=cpp
6157ac_cpp='$CXXCPP $CPPFLAGS'
6158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6161if test -z "$CXX"; then
6162 if test -n "$CCC"; then
6163 CXX=$CCC
6164 else
6165 if test -n "$ac_tool_prefix"; then
6166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6167 do
6168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006172if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006173 $as_echo_n "(cached) " >&6
6174else
6175 if test -n "$CXX"; then
6176 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189done
6190 done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195CXX=$ac_cv_prog_CXX
6196if test -n "$CXX"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6198$as_echo "$CXX" >&6; }
6199else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205 test -n "$CXX" && break
6206 done
6207fi
6208if test -z "$CXX"; then
6209 ac_ct_CXX=$CXX
6210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6211do
6212 # Extract the first word of "$ac_prog", so it can be a program name with args.
6213set dummy $ac_prog; ac_word=$2
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006216if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006217 $as_echo_n "(cached) " >&6
6218else
6219 if test -n "$ac_ct_CXX"; then
6220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6221else
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_ac_ct_CXX="$ac_prog"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233done
6234 done
6235IFS=$as_save_IFS
6236
6237fi
6238fi
6239ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6240if test -n "$ac_ct_CXX"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6242$as_echo "$ac_ct_CXX" >&6; }
6243else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246fi
6247
6248
6249 test -n "$ac_ct_CXX" && break
6250done
6251
6252 if test "x$ac_ct_CXX" = x; then
6253 CXX="g++"
6254 else
6255 case $cross_compiling:$ac_tool_warned in
6256yes:)
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259ac_tool_warned=yes ;;
6260esac
6261 CXX=$ac_ct_CXX
6262 fi
6263fi
6264
6265 fi
6266fi
6267# Provide some information about the compiler.
6268$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6269set X $ac_compile
6270ac_compiler=$2
6271for ac_option in --version -v -V -qversion; do
6272 { { ac_try="$ac_compiler $ac_option >&5"
6273case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276esac
6277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6278$as_echo "$ac_try_echo"; } >&5
6279 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6280 ac_status=$?
6281 if test -s conftest.err; then
6282 sed '10a\
6283... rest of stderr output deleted ...
6284 10q' conftest.err >conftest.er1
6285 cat conftest.er1 >&5
6286 fi
6287 rm -f conftest.er1 conftest.err
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; }
6290done
6291
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6293$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006294if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006295 $as_echo_n "(cached) " >&6
6296else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h. */
6299
6300int
6301main ()
6302{
6303#ifndef __GNUC__
6304 choke me
6305#endif
6306
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311if ac_fn_cxx_try_compile "$LINENO"; then :
6312 ac_compiler_gnu=yes
6313else
6314 ac_compiler_gnu=no
6315fi
6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6318
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6321$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6322if test $ac_compiler_gnu = yes; then
6323 GXX=yes
6324else
6325 GXX=
6326fi
6327ac_test_CXXFLAGS=${CXXFLAGS+set}
6328ac_save_CXXFLAGS=$CXXFLAGS
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6330$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006331if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006332 $as_echo_n "(cached) " >&6
6333else
6334 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6335 ac_cxx_werror_flag=yes
6336 ac_cv_prog_cxx_g=no
6337 CXXFLAGS="-g"
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h. */
6340
6341int
6342main ()
6343{
6344
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349if ac_fn_cxx_try_compile "$LINENO"; then :
6350 ac_cv_prog_cxx_g=yes
6351else
6352 CXXFLAGS=""
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */
6355
6356int
6357main ()
6358{
6359
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364if ac_fn_cxx_try_compile "$LINENO"; then :
6365
6366else
6367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6368 CXXFLAGS="-g"
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h. */
6371
6372int
6373main ()
6374{
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380if ac_fn_cxx_try_compile "$LINENO"; then :
6381 ac_cv_prog_cxx_g=yes
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384fi
6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386fi
6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6391$as_echo "$ac_cv_prog_cxx_g" >&6; }
6392if test "$ac_test_CXXFLAGS" = set; then
6393 CXXFLAGS=$ac_save_CXXFLAGS
6394elif test $ac_cv_prog_cxx_g = yes; then
6395 if test "$GXX" = yes; then
6396 CXXFLAGS="-g -O2"
6397 else
6398 CXXFLAGS="-g"
6399 fi
6400else
6401 if test "$GXX" = yes; then
6402 CXXFLAGS="-O2"
6403 else
6404 CXXFLAGS=
6405 fi
6406fi
6407ac_ext=c
6408ac_cpp='$CPP $CPPFLAGS'
6409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412
cristy73bd4a52010-10-05 11:24:23 +00006413depcc="$CXX" am_compiler_list=
6414
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6416$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006417if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006418 $as_echo_n "(cached) " >&6
6419else
6420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6421 # We make a subdir and do the tests there. Otherwise we can end up
6422 # making bogus files that we don't know about and never remove. For
6423 # instance it was reported that on HP-UX the gcc test will end up
6424 # making a dummy file named `D' -- because `-MD' means `put the output
6425 # in D'.
6426 mkdir conftest.dir
6427 # Copy depcomp to subdir because otherwise we won't find it if we're
6428 # using a relative directory.
6429 cp "$am_depcomp" conftest.dir
6430 cd conftest.dir
6431 # We will build objects and dependencies in a subdirectory because
6432 # it helps to detect inapplicable dependency modes. For instance
6433 # both Tru64's cc and ICC support -MD to output dependencies as a
6434 # side effect of compilation, but ICC will put the dependencies in
6435 # the current directory while Tru64 will put them in the object
6436 # directory.
6437 mkdir sub
6438
6439 am_cv_CXX_dependencies_compiler_type=none
6440 if test "$am_compiler_list" = ""; then
6441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6442 fi
6443 am__universal=false
6444 case " $depcc " in #(
6445 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6446 esac
6447
6448 for depmode in $am_compiler_list; do
6449 # Setup a source with many dependencies, because some compilers
6450 # like to wrap large dependency lists on column 80 (with \), and
6451 # we should not choose a depcomp mode which is confused by this.
6452 #
6453 # We need to recreate these files for each test, as the compiler may
6454 # overwrite some of them when testing with obscure command lines.
6455 # This happens at least with the AIX C compiler.
6456 : > sub/conftest.c
6457 for i in 1 2 3 4 5 6; do
6458 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6459 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6460 # Solaris 8's {/usr,}/bin/sh.
6461 touch sub/conftst$i.h
6462 done
6463 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6464
6465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6466 # mode. It turns out that the SunPro C++ compiler does not properly
6467 # handle `-M -o', and we need to detect this. Also, some Intel
6468 # versions had trouble with output in subdirs
6469 am__obj=sub/conftest.${OBJEXT-o}
6470 am__minus_obj="-o $am__obj"
6471 case $depmode in
6472 gcc)
6473 # This depmode causes a compiler race in universal mode.
6474 test "$am__universal" = false || continue
6475 ;;
6476 nosideeffect)
6477 # after this tag, mechanisms are not by side-effect, so they'll
6478 # only be used when explicitly requested
6479 if test "x$enable_dependency_tracking" = xyes; then
6480 continue
6481 else
6482 break
6483 fi
6484 ;;
6485 msvisualcpp | msvcmsys)
6486 # This compiler won't grok `-c -o', but also, the minuso test has
6487 # not run yet. These depmodes are late enough in the game, and
6488 # so weak that their functioning should not be impacted.
6489 am__obj=conftest.${OBJEXT-o}
6490 am__minus_obj=
6491 ;;
6492 none) break ;;
6493 esac
6494 if depmode=$depmode \
6495 source=sub/conftest.c object=$am__obj \
6496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6497 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6498 >/dev/null 2>conftest.err &&
6499 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6500 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6501 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6502 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6503 # icc doesn't choke on unknown options, it will just issue warnings
6504 # or remarks (even with -Werror). So we grep stderr for any message
6505 # that says an option was ignored or not supported.
6506 # When given -MP, icc 7.0 and 7.1 complain thusly:
6507 # icc: Command line warning: ignoring option '-M'; no argument required
6508 # The diagnosis changed in icc 8.0:
6509 # icc: Command line remark: option '-MP' not supported
6510 if (grep 'ignoring option' conftest.err ||
6511 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6512 am_cv_CXX_dependencies_compiler_type=$depmode
6513 break
6514 fi
6515 fi
6516 done
6517
6518 cd ..
6519 rm -rf conftest.dir
6520else
6521 am_cv_CXX_dependencies_compiler_type=none
6522fi
6523
6524fi
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6526$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6527CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6528
6529 if
6530 test "x$enable_dependency_tracking" != xno \
6531 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6532 am__fastdepCXX_TRUE=
6533 am__fastdepCXX_FALSE='#'
6534else
6535 am__fastdepCXX_TRUE='#'
6536 am__fastdepCXX_FALSE=
6537fi
6538
6539
cristy8b350f62009-11-15 23:12:43 +00006540 case $ac_cv_prog_cc_stdc in #(
6541 no) :
6542 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6543 *) :
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006545$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006546if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006547 $as_echo_n "(cached) " >&6
6548else
6549 ac_cv_prog_cc_c99=no
6550ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006552/* end confdefs.h. */
6553#include <stdarg.h>
6554#include <stdbool.h>
6555#include <stdlib.h>
6556#include <wchar.h>
6557#include <stdio.h>
6558
6559// Check varargs macros. These examples are taken from C99 6.10.3.5.
6560#define debug(...) fprintf (stderr, __VA_ARGS__)
6561#define showlist(...) puts (#__VA_ARGS__)
6562#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6563static void
6564test_varargs_macros (void)
6565{
6566 int x = 1234;
6567 int y = 5678;
6568 debug ("Flag");
6569 debug ("X = %d\n", x);
6570 showlist (The first, second, and third items.);
6571 report (x>y, "x is %d but y is %d", x, y);
6572}
6573
6574// Check long long types.
6575#define BIG64 18446744073709551615ull
6576#define BIG32 4294967295ul
6577#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6578#if !BIG_OK
6579 your preprocessor is broken;
6580#endif
6581#if BIG_OK
6582#else
6583 your preprocessor is broken;
6584#endif
6585static long long int bignum = -9223372036854775807LL;
6586static unsigned long long int ubignum = BIG64;
6587
6588struct incomplete_array
6589{
6590 int datasize;
6591 double data[];
6592};
6593
6594struct named_init {
6595 int number;
6596 const wchar_t *name;
6597 double average;
6598};
6599
6600typedef const char *ccp;
6601
6602static inline int
6603test_restrict (ccp restrict text)
6604{
6605 // See if C++-style comments work.
6606 // Iterate through items via the restricted pointer.
6607 // Also check for declarations in for loops.
6608 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6609 continue;
6610 return 0;
6611}
6612
6613// Check varargs and va_copy.
6614static void
6615test_varargs (const char *format, ...)
6616{
6617 va_list args;
6618 va_start (args, format);
6619 va_list args_copy;
6620 va_copy (args_copy, args);
6621
6622 const char *str;
6623 int number;
6624 float fnumber;
6625
6626 while (*format)
6627 {
6628 switch (*format++)
6629 {
6630 case 's': // string
6631 str = va_arg (args_copy, const char *);
6632 break;
6633 case 'd': // int
6634 number = va_arg (args_copy, int);
6635 break;
6636 case 'f': // float
6637 fnumber = va_arg (args_copy, double);
6638 break;
6639 default:
6640 break;
6641 }
6642 }
6643 va_end (args_copy);
6644 va_end (args);
6645}
6646
6647int
6648main ()
6649{
6650
6651 // Check bool.
6652 _Bool success = false;
6653
6654 // Check restrict.
6655 if (test_restrict ("String literal") == 0)
6656 success = true;
6657 char *restrict newvar = "Another string";
6658
6659 // Check varargs.
6660 test_varargs ("s, d' f .", "string", 65, 34.234);
6661 test_varargs_macros ();
6662
6663 // Check flexible array members.
6664 struct incomplete_array *ia =
6665 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6666 ia->datasize = 10;
6667 for (int i = 0; i < ia->datasize; ++i)
6668 ia->data[i] = i * 1.234;
6669
6670 // Check named initializers.
6671 struct named_init ni = {
6672 .number = 34,
6673 .name = L"Test wide string",
6674 .average = 543.34343,
6675 };
6676
6677 ni.number = 58;
6678
6679 int dynamic_array[ni.number];
6680 dynamic_array[ni.number - 1] = 543;
6681
6682 // work around unused variable warnings
6683 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6684 || dynamic_array[ni.number - 1] != 543);
6685
6686 ;
6687 return 0;
6688}
6689_ACEOF
6690for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6691do
6692 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006693 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006694 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006695fi
cristy3ed852e2009-09-05 21:47:34 +00006696rm -f core conftest.err conftest.$ac_objext
6697 test "x$ac_cv_prog_cc_c99" != "xno" && break
6698done
6699rm -f conftest.$ac_ext
6700CC=$ac_save_CC
6701
6702fi
6703# AC_CACHE_VAL
6704case "x$ac_cv_prog_cc_c99" in
6705 x)
cristy8b350f62009-11-15 23:12:43 +00006706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006707$as_echo "none needed" >&6; } ;;
6708 xno)
cristy8b350f62009-11-15 23:12:43 +00006709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006710$as_echo "unsupported" >&6; } ;;
6711 *)
6712 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006714$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6715esac
cristy8b350f62009-11-15 23:12:43 +00006716if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006717 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6718else
cristy8b350f62009-11-15 23:12:43 +00006719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006721if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006722 $as_echo_n "(cached) " >&6
6723else
6724 ac_cv_prog_cc_c89=no
6725ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006727/* end confdefs.h. */
6728#include <stdarg.h>
6729#include <stdio.h>
6730#include <sys/types.h>
6731#include <sys/stat.h>
6732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6733struct buf { int x; };
6734FILE * (*rcsopen) (struct buf *, struct stat *, int);
6735static char *e (p, i)
6736 char **p;
6737 int i;
6738{
6739 return p[i];
6740}
6741static char *f (char * (*g) (char **, int), char **p, ...)
6742{
6743 char *s;
6744 va_list v;
6745 va_start (v,p);
6746 s = g (p, va_arg (v,int));
6747 va_end (v);
6748 return s;
6749}
6750
6751/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6752 function prototypes and stuff, but not '\xHH' hex character constants.
6753 These don't provoke an error unfortunately, instead are silently treated
6754 as 'x'. The following induces an error, until -std is added to get
6755 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6756 array size at least. It's necessary to write '\x00'==0 to get something
6757 that's true only with -std. */
6758int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6759
6760/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6761 inside strings and character constants. */
6762#define FOO(x) 'x'
6763int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6764
6765int test (int i, double x);
6766struct s1 {int (*f) (int a);};
6767struct s2 {int (*f) (double a);};
6768int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6769int argc;
6770char **argv;
6771int
6772main ()
6773{
6774return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6775 ;
6776 return 0;
6777}
6778_ACEOF
6779for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6780 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6781do
6782 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006783 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006785fi
cristy3ed852e2009-09-05 21:47:34 +00006786rm -f core conftest.err conftest.$ac_objext
6787 test "x$ac_cv_prog_cc_c89" != "xno" && break
6788done
6789rm -f conftest.$ac_ext
6790CC=$ac_save_CC
6791
6792fi
6793# AC_CACHE_VAL
6794case "x$ac_cv_prog_cc_c89" in
6795 x)
cristy8b350f62009-11-15 23:12:43 +00006796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006797$as_echo "none needed" >&6; } ;;
6798 xno)
cristy8b350f62009-11-15 23:12:43 +00006799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006800$as_echo "unsupported" >&6; } ;;
6801 *)
6802 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006804$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6805esac
cristy8b350f62009-11-15 23:12:43 +00006806if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006807 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6808else
6809 ac_cv_prog_cc_stdc=no
6810fi
6811
cristy3ed852e2009-09-05 21:47:34 +00006812fi
cristy3ed852e2009-09-05 21:47:34 +00006813 ;;
6814esac
cristy8b350f62009-11-15 23:12:43 +00006815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006816$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006817 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006818 $as_echo_n "(cached) " >&6
6819fi
6820
cristy8b350f62009-11-15 23:12:43 +00006821 case $ac_cv_prog_cc_stdc in #(
6822 no) :
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6824$as_echo "unsupported" >&6; } ;; #(
6825 '') :
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6827$as_echo "none needed" >&6; } ;; #(
6828 *) :
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006830$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6831esac
6832
cristy3ed852e2009-09-05 21:47:34 +00006833ac_ext=c
6834ac_cpp='$CPP $CPPFLAGS'
6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006839$as_echo_n "checking how to run the C preprocessor... " >&6; }
6840# On Suns, sometimes $CPP names a directory.
6841if test -n "$CPP" && test -d "$CPP"; then
6842 CPP=
6843fi
6844if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006845 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006846 $as_echo_n "(cached) " >&6
6847else
6848 # Double quotes because CPP needs to be expanded
6849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6850 do
6851 ac_preproc_ok=false
6852for ac_c_preproc_warn_flag in '' yes
6853do
6854 # Use a header file that comes with gcc, so configuring glibc
6855 # with a fresh cross-compiler works.
6856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6857 # <limits.h> exists even on freestanding compilers.
6858 # On the NeXT, cc -E runs the code through the compiler's parser,
6859 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006861/* end confdefs.h. */
6862#ifdef __STDC__
6863# include <limits.h>
6864#else
6865# include <assert.h>
6866#endif
6867 Syntax error
6868_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006869if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006870
cristy8b350f62009-11-15 23:12:43 +00006871else
cristy3ed852e2009-09-05 21:47:34 +00006872 # Broken: fails on valid input.
6873continue
6874fi
cristyda16f162011-02-19 23:52:17 +00006875rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006876
6877 # OK, works on sane cases. Now check whether nonexistent headers
6878 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006880/* end confdefs.h. */
6881#include <ac_nonexistent.h>
6882_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006883if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006884 # Broken: success on invalid input.
6885continue
6886else
cristy3ed852e2009-09-05 21:47:34 +00006887 # Passes both tests.
6888ac_preproc_ok=:
6889break
6890fi
cristyda16f162011-02-19 23:52:17 +00006891rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006892
6893done
6894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006895rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006896if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006897 break
6898fi
6899
6900 done
6901 ac_cv_prog_CPP=$CPP
6902
6903fi
6904 CPP=$ac_cv_prog_CPP
6905else
6906 ac_cv_prog_CPP=$CPP
6907fi
cristy8b350f62009-11-15 23:12:43 +00006908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006909$as_echo "$CPP" >&6; }
6910ac_preproc_ok=false
6911for ac_c_preproc_warn_flag in '' yes
6912do
6913 # Use a header file that comes with gcc, so configuring glibc
6914 # with a fresh cross-compiler works.
6915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916 # <limits.h> exists even on freestanding compilers.
6917 # On the NeXT, cc -E runs the code through the compiler's parser,
6918 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006920/* end confdefs.h. */
6921#ifdef __STDC__
6922# include <limits.h>
6923#else
6924# include <assert.h>
6925#endif
6926 Syntax error
6927_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006928if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006929
cristy8b350f62009-11-15 23:12:43 +00006930else
cristy3ed852e2009-09-05 21:47:34 +00006931 # Broken: fails on valid input.
6932continue
6933fi
cristyda16f162011-02-19 23:52:17 +00006934rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006935
6936 # OK, works on sane cases. Now check whether nonexistent headers
6937 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006939/* end confdefs.h. */
6940#include <ac_nonexistent.h>
6941_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006942if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006943 # Broken: success on invalid input.
6944continue
6945else
cristy3ed852e2009-09-05 21:47:34 +00006946 # Passes both tests.
6947ac_preproc_ok=:
6948break
6949fi
cristyda16f162011-02-19 23:52:17 +00006950rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006951
6952done
6953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006954rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006955if $ac_preproc_ok; then :
6956
cristy3ed852e2009-09-05 21:47:34 +00006957else
cristy8b350f62009-11-15 23:12:43 +00006958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006960as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6961See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006962fi
6963
6964ac_ext=c
6965ac_cpp='$CPP $CPPFLAGS'
6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
cristy73bd4a52010-10-05 11:24:23 +00006970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6971$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006972if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006973 $as_echo_n "(cached) " >&6
6974else
6975 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6976 for ac_i in 1 2 3 4 5 6 7; do
6977 ac_script="$ac_script$as_nl$ac_script"
6978 done
6979 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6980 { ac_script=; unset ac_script;}
6981 if test -z "$SED"; then
6982 ac_path_SED_found=false
6983 # Loop through the user's path and test for each of PROGNAME-LIST
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_prog in sed gsed; do
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6992 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6993# Check for GNU ac_path_SED and select it if it is found.
6994 # Check for GNU $ac_path_SED
6995case `"$ac_path_SED" --version 2>&1` in
6996*GNU*)
6997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6998*)
6999 ac_count=0
7000 $as_echo_n 0123456789 >"conftest.in"
7001 while :
7002 do
7003 cat "conftest.in" "conftest.in" >"conftest.tmp"
7004 mv "conftest.tmp" "conftest.in"
7005 cp "conftest.in" "conftest.nl"
7006 $as_echo '' >> "conftest.nl"
7007 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7009 as_fn_arith $ac_count + 1 && ac_count=$as_val
7010 if test $ac_count -gt ${ac_path_SED_max-0}; then
7011 # Best one so far, save it but keep looking for a better one
7012 ac_cv_path_SED="$ac_path_SED"
7013 ac_path_SED_max=$ac_count
7014 fi
7015 # 10*(2^10) chars as input seems more than enough
7016 test $ac_count -gt 10 && break
7017 done
7018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7019esac
7020
7021 $ac_path_SED_found && break 3
7022 done
7023 done
7024 done
7025IFS=$as_save_IFS
7026 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007027 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007028 fi
7029else
7030 ac_cv_path_SED=$SED
7031fi
7032
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7035$as_echo "$ac_cv_path_SED" >&6; }
7036 SED="$ac_cv_path_SED"
7037 rm -f conftest.sed
7038
7039test -z "$SED" && SED=sed
7040Xsed="$SED -e 1s/^X//"
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7053$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007054if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007055 $as_echo_n "(cached) " >&6
7056else
7057 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7058 then ac_cv_path_FGREP="$GREP -F"
7059 else
7060 if test -z "$FGREP"; then
7061 ac_path_FGREP_found=false
7062 # Loop through the user's path and test for each of PROGNAME-LIST
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_prog in fgrep; do
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7071 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7072# Check for GNU ac_path_FGREP and select it if it is found.
7073 # Check for GNU $ac_path_FGREP
7074case `"$ac_path_FGREP" --version 2>&1` in
7075*GNU*)
7076 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7077*)
7078 ac_count=0
7079 $as_echo_n 0123456789 >"conftest.in"
7080 while :
7081 do
7082 cat "conftest.in" "conftest.in" >"conftest.tmp"
7083 mv "conftest.tmp" "conftest.in"
7084 cp "conftest.in" "conftest.nl"
7085 $as_echo 'FGREP' >> "conftest.nl"
7086 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7088 as_fn_arith $ac_count + 1 && ac_count=$as_val
7089 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7090 # Best one so far, save it but keep looking for a better one
7091 ac_cv_path_FGREP="$ac_path_FGREP"
7092 ac_path_FGREP_max=$ac_count
7093 fi
7094 # 10*(2^10) chars as input seems more than enough
7095 test $ac_count -gt 10 && break
7096 done
7097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7098esac
7099
7100 $ac_path_FGREP_found && break 3
7101 done
7102 done
7103 done
7104IFS=$as_save_IFS
7105 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007106 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007107 fi
7108else
7109 ac_cv_path_FGREP=$FGREP
7110fi
7111
7112 fi
7113fi
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7115$as_echo "$ac_cv_path_FGREP" >&6; }
7116 FGREP="$ac_cv_path_FGREP"
7117
7118
7119test -z "$GREP" && GREP=grep
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
cristy0c60a692010-11-04 01:09:47 +00007137ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7138ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7139ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7140
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7142$as_echo_n "checking how to print strings... " >&6; }
7143# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007144if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007145 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7146 ECHO='print -r --'
7147elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7148 ECHO='printf %s\n'
7149else
7150 # Use this function as a fallback that always works.
7151 func_fallback_echo ()
7152 {
7153 eval 'cat <<_LTECHO_EOF
7154$1
7155_LTECHO_EOF'
7156 }
7157 ECHO='func_fallback_echo'
7158fi
7159
7160# func_echo_all arg...
7161# Invoke $ECHO with all args, space-separated.
7162func_echo_all ()
7163{
7164 $ECHO ""
7165}
7166
7167case "$ECHO" in
7168 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7169$as_echo "printf" >&6; } ;;
7170 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7171$as_echo "print -r" >&6; } ;;
7172 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7173$as_echo "cat" >&6; } ;;
7174esac
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
cristy73bd4a52010-10-05 11:24:23 +00007189
7190
7191# Check whether --with-gnu-ld was given.
7192if test "${with_gnu_ld+set}" = set; then :
7193 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7194else
7195 with_gnu_ld=no
7196fi
7197
7198ac_prog=ld
7199if test "$GCC" = yes; then
7200 # Check if gcc -print-prog-name=ld gives a path.
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7202$as_echo_n "checking for ld used by $CC... " >&6; }
7203 case $host in
7204 *-*-mingw*)
7205 # gcc leaves a trailing carriage return which upsets mingw
7206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7207 *)
7208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7209 esac
7210 case $ac_prog in
7211 # Accept absolute paths.
7212 [\\/]* | ?:[\\/]*)
7213 re_direlt='/[^/][^/]*/\.\./'
7214 # Canonicalize the pathname of ld
7215 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7216 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7217 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7218 done
7219 test -z "$LD" && LD="$ac_prog"
7220 ;;
7221 "")
7222 # If it fails, then pretend we aren't using GCC.
7223 ac_prog=ld
7224 ;;
7225 *)
7226 # If it is relative, then search for the first ld in PATH.
7227 with_gnu_ld=unknown
7228 ;;
7229 esac
7230elif test "$with_gnu_ld" = yes; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7232$as_echo_n "checking for GNU ld... " >&6; }
7233else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7235$as_echo_n "checking for non-GNU ld... " >&6; }
7236fi
cristyda16f162011-02-19 23:52:17 +00007237if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007238 $as_echo_n "(cached) " >&6
7239else
7240 if test -z "$LD"; then
7241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7242 for ac_dir in $PATH; do
7243 IFS="$lt_save_ifs"
7244 test -z "$ac_dir" && ac_dir=.
7245 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7246 lt_cv_path_LD="$ac_dir/$ac_prog"
7247 # Check to see if the program is GNU ld. I'd rather use --version,
7248 # but apparently some variants of GNU ld only accept -v.
7249 # Break only if it was the GNU/non-GNU ld that we prefer.
7250 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7251 *GNU* | *'with BFD'*)
7252 test "$with_gnu_ld" != no && break
7253 ;;
7254 *)
7255 test "$with_gnu_ld" != yes && break
7256 ;;
7257 esac
7258 fi
7259 done
7260 IFS="$lt_save_ifs"
7261else
7262 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7263fi
7264fi
7265
7266LD="$lt_cv_path_LD"
7267if test -n "$LD"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7269$as_echo "$LD" >&6; }
7270else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272$as_echo "no" >&6; }
7273fi
cristy98dddb52010-11-04 00:30:15 +00007274test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7276$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007277if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007278 $as_echo_n "(cached) " >&6
7279else
7280 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7281case `$LD -v 2>&1 </dev/null` in
7282*GNU* | *'with BFD'*)
7283 lt_cv_prog_gnu_ld=yes
7284 ;;
7285*)
7286 lt_cv_prog_gnu_ld=no
7287 ;;
7288esac
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7291$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7292with_gnu_ld=$lt_cv_prog_gnu_ld
7293
7294
7295
7296
7297
7298
7299
7300
7301
cristy3ed852e2009-09-05 21:47:34 +00007302
cristy837d6dc2010-02-27 01:16:57 +00007303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7304$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007305if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007306 $as_echo_n "(cached) " >&6
7307else
7308 ac_cv_prog_cc_c99=no
7309ac_save_CC=$CC
7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312#include <stdarg.h>
7313#include <stdbool.h>
7314#include <stdlib.h>
7315#include <wchar.h>
7316#include <stdio.h>
7317
7318// Check varargs macros. These examples are taken from C99 6.10.3.5.
7319#define debug(...) fprintf (stderr, __VA_ARGS__)
7320#define showlist(...) puts (#__VA_ARGS__)
7321#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7322static void
7323test_varargs_macros (void)
7324{
7325 int x = 1234;
7326 int y = 5678;
7327 debug ("Flag");
7328 debug ("X = %d\n", x);
7329 showlist (The first, second, and third items.);
7330 report (x>y, "x is %d but y is %d", x, y);
7331}
7332
7333// Check long long types.
7334#define BIG64 18446744073709551615ull
7335#define BIG32 4294967295ul
7336#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7337#if !BIG_OK
7338 your preprocessor is broken;
7339#endif
7340#if BIG_OK
7341#else
7342 your preprocessor is broken;
7343#endif
7344static long long int bignum = -9223372036854775807LL;
7345static unsigned long long int ubignum = BIG64;
7346
7347struct incomplete_array
7348{
7349 int datasize;
7350 double data[];
7351};
7352
7353struct named_init {
7354 int number;
7355 const wchar_t *name;
7356 double average;
7357};
7358
7359typedef const char *ccp;
7360
7361static inline int
7362test_restrict (ccp restrict text)
7363{
7364 // See if C++-style comments work.
7365 // Iterate through items via the restricted pointer.
7366 // Also check for declarations in for loops.
7367 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7368 continue;
7369 return 0;
7370}
7371
7372// Check varargs and va_copy.
7373static void
7374test_varargs (const char *format, ...)
7375{
7376 va_list args;
7377 va_start (args, format);
7378 va_list args_copy;
7379 va_copy (args_copy, args);
7380
7381 const char *str;
7382 int number;
7383 float fnumber;
7384
7385 while (*format)
7386 {
7387 switch (*format++)
7388 {
7389 case 's': // string
7390 str = va_arg (args_copy, const char *);
7391 break;
7392 case 'd': // int
7393 number = va_arg (args_copy, int);
7394 break;
7395 case 'f': // float
7396 fnumber = va_arg (args_copy, double);
7397 break;
7398 default:
7399 break;
7400 }
7401 }
7402 va_end (args_copy);
7403 va_end (args);
7404}
7405
7406int
7407main ()
7408{
7409
7410 // Check bool.
7411 _Bool success = false;
7412
7413 // Check restrict.
7414 if (test_restrict ("String literal") == 0)
7415 success = true;
7416 char *restrict newvar = "Another string";
7417
7418 // Check varargs.
7419 test_varargs ("s, d' f .", "string", 65, 34.234);
7420 test_varargs_macros ();
7421
7422 // Check flexible array members.
7423 struct incomplete_array *ia =
7424 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7425 ia->datasize = 10;
7426 for (int i = 0; i < ia->datasize; ++i)
7427 ia->data[i] = i * 1.234;
7428
7429 // Check named initializers.
7430 struct named_init ni = {
7431 .number = 34,
7432 .name = L"Test wide string",
7433 .average = 543.34343,
7434 };
7435
7436 ni.number = 58;
7437
7438 int dynamic_array[ni.number];
7439 dynamic_array[ni.number - 1] = 543;
7440
7441 // work around unused variable warnings
7442 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7443 || dynamic_array[ni.number - 1] != 543);
7444
7445 ;
7446 return 0;
7447}
7448_ACEOF
7449for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7450do
7451 CC="$ac_save_CC $ac_arg"
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 ac_cv_prog_cc_c99=$ac_arg
7454fi
7455rm -f core conftest.err conftest.$ac_objext
7456 test "x$ac_cv_prog_cc_c99" != "xno" && break
7457done
7458rm -f conftest.$ac_ext
7459CC=$ac_save_CC
7460
7461fi
7462# AC_CACHE_VAL
7463case "x$ac_cv_prog_cc_c99" in
7464 x)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7466$as_echo "none needed" >&6; } ;;
7467 xno)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7469$as_echo "unsupported" >&6; } ;;
7470 *)
7471 CC="$CC $ac_cv_prog_cc_c99"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7473$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7474esac
7475if test "x$ac_cv_prog_cc_c99" != xno; then :
7476
7477fi
7478
7479
cristy73bd4a52010-10-05 11:24:23 +00007480if test "x$CC" != xcc; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7482$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7483else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7485$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7486fi
7487set dummy $CC; ac_cc=`$as_echo "$2" |
7488 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007489if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007490 $as_echo_n "(cached) " >&6
7491else
cristy73bd4a52010-10-05 11:24:23 +00007492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493/* end confdefs.h. */
7494
7495int
7496main ()
7497{
7498
7499 ;
7500 return 0;
7501}
7502_ACEOF
7503# Make sure it works both with $CC and with simple cc.
7504# We do the test twice because some compilers refuse to overwrite an
7505# existing .o file with -o, though they will create one.
7506ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7507rm -f conftest2.*
7508if { { case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511esac
7512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7513$as_echo "$ac_try_echo"; } >&5
7514 (eval "$ac_try") 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; } &&
7518 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521esac
7522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7523$as_echo "$ac_try_echo"; } >&5
7524 (eval "$ac_try") 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; };
7528then
7529 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7530 if test "x$CC" != xcc; then
7531 # Test first that cc exists at all.
7532 if { ac_try='cc -c conftest.$ac_ext >&5'
7533 { { case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
7537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7538$as_echo "$ac_try_echo"; } >&5
7539 (eval "$ac_try") 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; }; then
7543 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7544 rm -f conftest2.*
7545 if { { case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7550$as_echo "$ac_try_echo"; } >&5
7551 (eval "$ac_try") 2>&5
7552 ac_status=$?
7553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554 test $ac_status = 0; } &&
7555 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558esac
7559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7560$as_echo "$ac_try_echo"; } >&5
7561 (eval "$ac_try") 2>&5
7562 ac_status=$?
7563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7564 test $ac_status = 0; };
7565 then
7566 # cc works too.
7567 :
7568 else
7569 # cc exists but doesn't like -o.
7570 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7571 fi
7572 fi
7573 fi
7574else
7575 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7576fi
7577rm -f core conftest*
7578
7579fi
7580if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582$as_echo "yes" >&6; }
7583else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586
7587$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7588
7589fi
7590
7591# FIXME: we rely on the cache variable name because
7592# there is no other way.
7593set dummy $CC
7594am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7595eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7596if test "$am_t" != yes; then
7597 # Losing compiler, so override with the script.
7598 # FIXME: It is wrong to rewrite CC.
7599 # But if we don't then we get into trouble of one sort or another.
7600 # A longer-term fix would be to have automake use am__CC in this case,
7601 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7602 CC="$am_aux_dir/compile $CC"
7603fi
7604
7605
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7607$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007608if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007609 $as_echo_n "(cached) " >&6
7610else
7611 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007612 ac_ext=c
7613ac_cpp='$CPP $CPPFLAGS'
7614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616ac_compiler_gnu=$ac_cv_c_compiler_gnu
7617
7618 ac_save_CFLAGS="$CFLAGS"
7619for 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" #
7620do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622/* end confdefs.h. */
7623
7624int
7625main ()
7626{
cristy24fc1fe2010-10-23 21:13:01 +00007627
cristy73bd4a52010-10-05 11:24:23 +00007628 ;
7629 return 0;
7630}
7631_ACEOF
7632if ac_fn_c_try_compile "$LINENO"; then :
7633 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7634fi
7635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636done
7637 CFLAGS="$ac_save_CFLAGS"
7638 ac_ext=c
7639ac_cpp='$CPP $CPPFLAGS'
7640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643
7644
7645fi
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7647$as_echo "$ac_cv_cflags_warn_all" >&6; }
7648case ".$ac_cv_cflags_warn_all" in
7649 .ok|.ok,*) ;;
7650 .|.no|.no,*)
7651 ;;
7652 *)
7653 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7654 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7655 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7656 ac_status=$?
7657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658 test $ac_status = 0; }
7659 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7660 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7661 ac_status=$?
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }
7664 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7665 fi
7666 ;;
nicolas6237c462010-10-05 06:11:49 +00007667esac
cristy3ed852e2009-09-05 21:47:34 +00007668
cristya0b81c32010-01-22 02:54:33 +00007669
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7671$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7672set x ${MAKE-make}
7673ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007674if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007675 $as_echo_n "(cached) " >&6
7676else
7677 cat >conftest.make <<\_ACEOF
7678SHELL = /bin/sh
7679all:
7680 @echo '@@@%%%=$(MAKE)=@@@%%%'
7681_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007682# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007683case `${MAKE-make} -f conftest.make 2>/dev/null` in
7684 *@@@%%%=?*=@@@%%%*)
7685 eval ac_cv_prog_make_${ac_make}_set=yes;;
7686 *)
7687 eval ac_cv_prog_make_${ac_make}_set=no;;
7688esac
7689rm -f conftest.make
7690fi
7691if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7693$as_echo "yes" >&6; }
7694 SET_MAKE=
7695else
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698 SET_MAKE="MAKE=${MAKE-make}"
7699fi
7700
cristy8b350f62009-11-15 23:12:43 +00007701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007702$as_echo_n "checking whether ln -s works... " >&6; }
7703LN_S=$as_ln_s
7704if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007706$as_echo "yes" >&6; }
7707else
cristy8b350f62009-11-15 23:12:43 +00007708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007709$as_echo "no, using $LN_S" >&6; }
7710fi
7711
cristy73bd4a52010-10-05 11:24:23 +00007712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7713$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7714
7715# Check whether --with-dmalloc was given.
7716if test "${with_dmalloc+set}" = set; then :
7717 withval=$with_dmalloc; if test "$withval" = yes; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7719$as_echo "yes" >&6; }
7720
7721$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7722
7723 LIBS="$LIBS -ldmalloc"
7724 LDFLAGS="$LDFLAGS -g"
7725else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728fi
7729else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731$as_echo "no" >&6; }
7732fi
7733
7734
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7737$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007738if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007739 $as_echo_n "(cached) " >&6
7740else
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h. */
7743#include <stdlib.h>
7744 static void foo(void) __attribute__ ((unused));
7745 static void
7746 foo(void) {
7747 exit(1);
7748 }
7749
7750int
7751main ()
7752{
7753
7754 ;
7755 return 0;
7756}
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"; then :
7759 ax_cv___attribute__=yes
7760else
7761 ax_cv___attribute__=no
7762
7763fi
7764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765
7766fi
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7768$as_echo "$ax_cv___attribute__" >&6; }
7769 if test "$ax_cv___attribute__" = "yes"; then
7770
7771$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7772
7773 fi
7774
7775
7776
7777if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7780set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007783if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007784 $as_echo_n "(cached) " >&6
7785else
7786 case $PKG_CONFIG in
7787 [\\/]* | ?:[\\/]*)
7788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7789 ;;
7790 *)
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802done
7803 done
7804IFS=$as_save_IFS
7805
7806 ;;
7807esac
7808fi
7809PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7810if test -n "$PKG_CONFIG"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7812$as_echo "$PKG_CONFIG" >&6; }
7813else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818
7819fi
7820if test -z "$ac_cv_path_PKG_CONFIG"; then
7821 ac_pt_PKG_CONFIG=$PKG_CONFIG
7822 # Extract the first word of "pkg-config", so it can be a program name with args.
7823set dummy pkg-config; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007826if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007827 $as_echo_n "(cached) " >&6
7828else
7829 case $ac_pt_PKG_CONFIG in
7830 [\\/]* | ?:[\\/]*)
7831 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7832 ;;
7833 *)
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846 done
7847IFS=$as_save_IFS
7848
7849 ;;
7850esac
7851fi
7852ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7853if test -n "$ac_pt_PKG_CONFIG"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7855$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7856else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
7859fi
7860
7861 if test "x$ac_pt_PKG_CONFIG" = x; then
7862 PKG_CONFIG=""
7863 else
7864 case $cross_compiling:$ac_tool_warned in
7865yes:)
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868ac_tool_warned=yes ;;
7869esac
7870 PKG_CONFIG=$ac_pt_PKG_CONFIG
7871 fi
7872else
7873 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7874fi
7875
7876fi
7877if test -n "$PKG_CONFIG"; then
7878 _pkg_min_version=0.9.0
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7880$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7881 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887 PKG_CONFIG=""
7888 fi
7889
7890fi
cristy3ed852e2009-09-05 21:47:34 +00007891
7892#
cristy3ed852e2009-09-05 21:47:34 +00007893# Enable run-time checking.
7894#
7895# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007896if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007897 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7898else
7899 enable_bounds_checking='no'
7900fi
7901
7902
7903if test "$enable_bounds_checking" = yes; then
7904
cristy8b350f62009-11-15 23:12:43 +00007905$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007906
7907fi
7908
7909#
7910# Tests for Windows
7911#
7912
7913
cristy73bd4a52010-10-05 11:24:23 +00007914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7915$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007916if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007917 $as_echo_n "(cached) " >&6
7918else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h. */
7921
7922int
7923main ()
7924{
7925#ifndef _MSC_VER
7926 choke me
7927#endif
7928
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_compile "$LINENO"; then :
7934 ax_compiler_ms=yes
7935else
7936 ax_compiler_ms=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939ax_cv_c_compiler_ms=$ax_compiler_ms
7940
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7943$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007944
7945GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007946native_win32_build='no'
7947cygwin_build='no'
7948case "${host_os}" in
7949 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007950 cygwin_build='yes'
7951 GDI32_LIBS='-lgdi32'
7952 ;;
7953 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007954 native_win32_build='yes'
7955 GDI32_LIBS='-lgdi32'
7956 ;;
7957esac
7958if test "${GDI32_LIBS}x" != 'x'; then
7959
cristy8b350f62009-11-15 23:12:43 +00007960$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007961
7962fi
7963
cristy73bd4a52010-10-05 11:24:23 +00007964 if test "${GDI32_LIBS}x" != 'x' ; then
7965 WINGDI32_DELEGATE_TRUE=
7966 WINGDI32_DELEGATE_FALSE='#'
7967else
7968 WINGDI32_DELEGATE_TRUE='#'
7969 WINGDI32_DELEGATE_FALSE=
7970fi
7971
7972 if test "${native_win32_build}" = 'yes' ; then
7973 WIN32_NATIVE_BUILD_TRUE=
7974 WIN32_NATIVE_BUILD_FALSE='#'
7975else
7976 WIN32_NATIVE_BUILD_TRUE='#'
7977 WIN32_NATIVE_BUILD_FALSE=
7978fi
7979
7980 if test "${cygwin_build}" = 'yes' ; then
7981 CYGWIN_BUILD_TRUE=
7982 CYGWIN_BUILD_FALSE='#'
7983else
7984 CYGWIN_BUILD_TRUE='#'
7985 CYGWIN_BUILD_FALSE=
7986fi
7987
7988 if test "x${CC}" = 'xcl.exe' ; then
7989 USING_CL_TRUE=
7990 USING_CL_FALSE='#'
7991else
7992 USING_CL_TRUE='#'
7993 USING_CL_FALSE=
7994fi
7995
cristy3ed852e2009-09-05 21:47:34 +00007996
7997WinPathScript="${srcdirfull}/winpath.sh"
7998
7999
8000#
8001# Compiler flags tweaks
8002#
8003if test "${GCC}" != "yes"; then
8004 case "${host}" in
8005 *-*-hpux* )
8006 # aCC: HP ANSI C++ B3910B A.03.34
8007 CFLAGS="${CFLAGS} -Wp,-H30000"
8008 if test -n "${CXXFLAGS}"; then
8009 CXXFLAGS='-AA'
8010 else
8011 CXXFLAGS="${CXXFLAGS} -AA"
8012 fi
8013 ;;
8014 *-dec-osf5.* )
8015 # Compaq alphaev68-dec-osf5.1 compiler
8016 if test -n "${CXXFLAGS}"; then
8017 CXXFLAGS='-std strict_ansi -noimplicit_include'
8018 else
8019 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8020 fi
8021 esac
8022fi
8023
8024# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008026$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008027if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008028 $as_echo_n "(cached) " >&6
8029else
8030
8031im_cv_ld_lazyload='none'
8032case "${host}" in
8033 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8034 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8035 im_cv_ld_lazyload='-Wl,-zlazyload'
8036 fi
8037 ;;
8038esac
8039
8040fi
cristy8b350f62009-11-15 23:12:43 +00008041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008042$as_echo "$im_cv_ld_lazyload" >&6; }
8043if test "${im_cv_ld_lazyload}" != 'none' ; then
8044 if test -z "${LDFLAGS}" ; then
8045 LDFLAGS="${im_cv_ld_lazyload}"
8046 else
8047 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8048 fi
8049fi
8050
8051case "$host" in
8052*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008053 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008054if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008055 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8056else
8057 build_osxuniversal=no
8058fi
8059
8060
8061 if test "${build_osxuniversal}" != no ; then
8062 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008063 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008064Please re-run configure with these options:
8065 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008066 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008067 fi
8068 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8069 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8070 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8071 fi
8072 ;;
8073esac
8074
8075# Enable support for threads
8076
8077# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008078if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008079 withval=$with_threads; with_threads=$withval
8080else
8081 with_threads='yes'
8082fi
8083
8084
8085have_threads=no
8086if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008087
8088
8089
8090ac_ext=c
8091ac_cpp='$CPP $CPPFLAGS'
8092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096ax_pthread_ok=no
8097
8098# We used to check for pthread.h first, but this fails if pthread.h
8099# requires special compiler flags (e.g. on True64 or Sequent).
8100# It gets checked for in the link test anyway.
8101
8102# First of all, check if the user has set any of the PTHREAD_LIBS,
8103# etcetera environment variables, and if threads linking works using
8104# them:
8105if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8106 save_CFLAGS="$CFLAGS"
8107 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8108 save_LIBS="$LIBS"
8109 LIBS="$PTHREAD_LIBS $LIBS"
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8111$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113/* end confdefs.h. */
8114
8115/* Override any GCC internal prototype to avoid an error.
8116 Use char because int might match the return type of a GCC
8117 builtin and then its argument prototype would still apply. */
8118#ifdef __cplusplus
8119extern "C"
8120#endif
8121char pthread_join ();
8122int
8123main ()
8124{
8125return pthread_join ();
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130if ac_fn_c_try_link "$LINENO"; then :
8131 ax_pthread_ok=yes
8132fi
8133rm -f core conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8136$as_echo "$ax_pthread_ok" >&6; }
8137 if test x"$ax_pthread_ok" = xno; then
8138 PTHREAD_LIBS=""
8139 PTHREAD_CFLAGS=""
8140 fi
8141 LIBS="$save_LIBS"
8142 CFLAGS="$save_CFLAGS"
8143fi
8144
8145# We must check for the threads library under a number of different
8146# names; the ordering is very important because some systems
8147# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8148# libraries is broken (non-POSIX).
8149
8150# Create a list of thread flags to try. Items starting with a "-" are
8151# C compiler flags, and other items are library names, except for "none"
8152# which indicates that we try without any flags at all, and "pthread-config"
8153# which is a program returning the flags for the Pth emulation library.
8154
8155ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8156
8157# The ordering *is* (sometimes) important. Some notes on the
8158# individual items follow:
8159
8160# pthreads: AIX (must check this before -lpthread)
8161# none: in case threads are in libc; should be tried before -Kthread and
8162# other compiler flags to prevent continual compiler warnings
8163# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8164# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8165# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8166# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8167# -pthreads: Solaris/gcc
8168# -mthreads: Mingw32/gcc, Lynx/gcc
8169# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8170# doesn't hurt to check since this sometimes defines pthreads too;
8171# also defines -D_REENTRANT)
8172# ... -mt is also the pthreads flag for HP/aCC
8173# pthread: Linux, etcetera
8174# --thread-safe: KAI C++
8175# pthread-config: use pthread-config program (for GNU Pth library)
8176
8177case "${host_cpu}-${host_os}" in
8178 *solaris*)
8179
8180 # On Solaris (at least, for some versions), libc contains stubbed
8181 # (non-functional) versions of the pthreads routines, so link-based
8182 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8183 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8184 # a function called by this macro, so we could check for that, but
8185 # who knows whether they'll stub that too in a future libc.) So,
8186 # we'll just look for -pthreads and -lpthread first:
8187
8188 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8189 ;;
8190
8191 *-darwin*)
8192 ax_pthread_flags="-pthread $ax_pthread_flags"
8193 ;;
8194esac
8195
8196if test x"$ax_pthread_ok" = xno; then
8197for flag in $ax_pthread_flags; do
8198
8199 case $flag in
8200 none)
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8202$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8203 ;;
8204
8205 -*)
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8207$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8208 PTHREAD_CFLAGS="$flag"
8209 ;;
8210
8211 pthread-config)
8212 # Extract the first word of "pthread-config", so it can be a program name with args.
8213set dummy pthread-config; ac_word=$2
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008216if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008217 $as_echo_n "(cached) " >&6
8218else
8219 if test -n "$ax_pthread_config"; then
8220 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8221else
8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_prog_ax_pthread_config="yes"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233done
8234 done
8235IFS=$as_save_IFS
8236
8237 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8238fi
8239fi
8240ax_pthread_config=$ac_cv_prog_ax_pthread_config
8241if test -n "$ax_pthread_config"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8243$as_echo "$ax_pthread_config" >&6; }
8244else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247fi
8248
8249
8250 if test x"$ax_pthread_config" = xno; then continue; fi
8251 PTHREAD_CFLAGS="`pthread-config --cflags`"
8252 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8253 ;;
8254
8255 *)
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8257$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8258 PTHREAD_LIBS="-l$flag"
8259 ;;
8260 esac
8261
8262 save_LIBS="$LIBS"
8263 save_CFLAGS="$CFLAGS"
8264 LIBS="$PTHREAD_LIBS $LIBS"
8265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8266
8267 # Check for various functions. We must include pthread.h,
8268 # since some functions may be macros. (On the Sequent, we
8269 # need a special flag -Kthread to make this header compile.)
8270 # We check for pthread_join because it is in -lpthread on IRIX
8271 # while pthread_create is in libc. We check for pthread_attr_init
8272 # due to DEC craziness with -lpthreads. We check for
8273 # pthread_cleanup_push because it is one of the few pthread
8274 # functions on Solaris that doesn't have a non-functional libc stub.
8275 # We try pthread_create on general principles.
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h. */
8278#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008279 static void routine(void* a) {a=0;}
8280 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008281int
8282main ()
8283{
8284pthread_t th; pthread_attr_t attr;
8285 pthread_create(&th,0,start_routine,0);
8286 pthread_join(th, 0);
8287 pthread_attr_init(&attr);
8288 pthread_cleanup_push(routine, 0);
8289 pthread_cleanup_pop(0);
8290 ;
8291 return 0;
8292}
8293_ACEOF
8294if ac_fn_c_try_link "$LINENO"; then :
8295 ax_pthread_ok=yes
8296fi
8297rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299
8300 LIBS="$save_LIBS"
8301 CFLAGS="$save_CFLAGS"
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8304$as_echo "$ax_pthread_ok" >&6; }
8305 if test "x$ax_pthread_ok" = xyes; then
8306 break;
8307 fi
8308
8309 PTHREAD_LIBS=""
8310 PTHREAD_CFLAGS=""
8311done
8312fi
8313
8314# Various other checks:
8315if test "x$ax_pthread_ok" = xyes; then
8316 save_LIBS="$LIBS"
8317 LIBS="$PTHREAD_LIBS $LIBS"
8318 save_CFLAGS="$CFLAGS"
8319 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8320
8321 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8323$as_echo_n "checking for joinable pthread attribute... " >&6; }
8324 attr_name=unknown
8325 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328#include <pthread.h>
8329int
8330main ()
8331{
8332int attr=$attr; return attr;
8333 ;
8334 return 0;
8335}
8336_ACEOF
8337if ac_fn_c_try_link "$LINENO"; then :
8338 attr_name=$attr; break
8339fi
8340rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 done
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8344$as_echo "$attr_name" >&6; }
8345 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8346
8347cat >>confdefs.h <<_ACEOF
8348#define PTHREAD_CREATE_JOINABLE $attr_name
8349_ACEOF
8350
8351 fi
8352
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8354$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8355 flag=no
8356 case "${host_cpu}-${host_os}" in
8357 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8358 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8359 esac
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8361$as_echo "${flag}" >&6; }
8362 if test "x$flag" != xno; then
8363 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8364 fi
8365
8366 LIBS="$save_LIBS"
8367 CFLAGS="$save_CFLAGS"
8368
8369 # More AIX lossage: must compile with xlc_r or cc_r
8370 if test x"$GCC" != xyes; then
8371 for ac_prog in xlc_r cc_r
8372do
8373 # Extract the first word of "$ac_prog", so it can be a program name with args.
8374set dummy $ac_prog; ac_word=$2
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008377if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008378 $as_echo_n "(cached) " >&6
8379else
8380 if test -n "$PTHREAD_CC"; then
8381 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8382else
8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_PTHREAD_CC="$ac_prog"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394done
8395 done
8396IFS=$as_save_IFS
8397
8398fi
8399fi
8400PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8401if test -n "$PTHREAD_CC"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8403$as_echo "$PTHREAD_CC" >&6; }
8404else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406$as_echo "no" >&6; }
8407fi
8408
8409
8410 test -n "$PTHREAD_CC" && break
8411done
8412test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8413
8414 else
8415 PTHREAD_CC=$CC
8416 fi
8417else
8418 PTHREAD_CC="$CC"
8419fi
8420
8421
8422
8423
8424
8425# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8426if test x"$ax_pthread_ok" = xyes; then
8427
8428$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8429
8430 :
8431else
8432 ax_pthread_ok=no
8433
8434fi
8435ac_ext=c
8436ac_cpp='$CPP $CPPFLAGS'
8437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440
8441
cristy7acf8fb2010-09-23 19:58:53 +00008442 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008443 have_threads=yes
8444 DEF_THREAD="$PTHREAD_CFLAGS"
8445 CFLAGS="$CFLAGS $DEF_THREAD"
8446 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8447 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008448 { $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 +00008449$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8450 CC="$PTHREAD_CC"
8451 fi
cristy55bf91c2010-09-24 00:29:41 +00008452
8453$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8454
cristy3ed852e2009-09-05 21:47:34 +00008455 fi
8456fi
8457
8458# Enable support for OpenMP
8459if test "$have_threads" != 'yes'; then
8460 ac_cv_prog_c_openmp=unsupported
8461fi
8462
8463 OPENMP_CFLAGS=
8464 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008465if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008466 enableval=$enable_openmp;
8467fi
8468
8469 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008471$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008472if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008473 $as_echo_n "(cached) " >&6
8474else
cristy8b350f62009-11-15 23:12:43 +00008475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008477
8478#ifndef _OPENMP
8479 choke me
8480#endif
8481#include <omp.h>
8482int main () { return omp_get_num_threads (); }
8483
8484_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008486 ac_cv_prog_c_openmp='none needed'
8487else
cristy8b350f62009-11-15 23:12:43 +00008488 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008489 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8490 ac_save_CFLAGS=$CFLAGS
8491 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008494
8495#ifndef _OPENMP
8496 choke me
8497#endif
8498#include <omp.h>
8499int main () { return omp_get_num_threads (); }
8500
8501_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008503 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008504fi
cristy8b350f62009-11-15 23:12:43 +00008505rm -f core conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008507 CFLAGS=$ac_save_CFLAGS
8508 if test "$ac_cv_prog_c_openmp" != unsupported; then
8509 break
8510 fi
8511 done
8512fi
cristy8b350f62009-11-15 23:12:43 +00008513rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008515fi
cristy8b350f62009-11-15 23:12:43 +00008516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008517$as_echo "$ac_cv_prog_c_openmp" >&6; }
8518 case $ac_cv_prog_c_openmp in #(
8519 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008520 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008521 *)
cristy8b350f62009-11-15 23:12:43 +00008522 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008523 esac
8524 fi
8525
8526
8527CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8528MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8529
cristy391f1ce2010-09-09 17:23:28 +00008530if test "$enable_openmp" != no; then
8531 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8532 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8533 fi
8534fi
cristy3ed852e2009-09-05 21:47:34 +00008535
cristy736173a2009-09-20 21:18:22 +00008536# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008537
8538
8539
8540ac_ext=c
8541ac_cpp='$CPP $CPPFLAGS'
8542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8544ac_compiler_gnu=$ac_cv_c_compiler_gnu
8545
8546ax_pthread_ok=no
8547
8548# We used to check for pthread.h first, but this fails if pthread.h
8549# requires special compiler flags (e.g. on True64 or Sequent).
8550# It gets checked for in the link test anyway.
8551
8552# First of all, check if the user has set any of the PTHREAD_LIBS,
8553# etcetera environment variables, and if threads linking works using
8554# them:
8555if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8556 save_CFLAGS="$CFLAGS"
8557 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8558 save_LIBS="$LIBS"
8559 LIBS="$PTHREAD_LIBS $LIBS"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8561$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char pthread_join ();
8572int
8573main ()
8574{
8575return pthread_join ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_link "$LINENO"; then :
8581 ax_pthread_ok=yes
8582fi
8583rm -f core conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8586$as_echo "$ax_pthread_ok" >&6; }
8587 if test x"$ax_pthread_ok" = xno; then
8588 PTHREAD_LIBS=""
8589 PTHREAD_CFLAGS=""
8590 fi
8591 LIBS="$save_LIBS"
8592 CFLAGS="$save_CFLAGS"
8593fi
8594
8595# We must check for the threads library under a number of different
8596# names; the ordering is very important because some systems
8597# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8598# libraries is broken (non-POSIX).
8599
8600# Create a list of thread flags to try. Items starting with a "-" are
8601# C compiler flags, and other items are library names, except for "none"
8602# which indicates that we try without any flags at all, and "pthread-config"
8603# which is a program returning the flags for the Pth emulation library.
8604
8605ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8606
8607# The ordering *is* (sometimes) important. Some notes on the
8608# individual items follow:
8609
8610# pthreads: AIX (must check this before -lpthread)
8611# none: in case threads are in libc; should be tried before -Kthread and
8612# other compiler flags to prevent continual compiler warnings
8613# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8614# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8615# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8616# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8617# -pthreads: Solaris/gcc
8618# -mthreads: Mingw32/gcc, Lynx/gcc
8619# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8620# doesn't hurt to check since this sometimes defines pthreads too;
8621# also defines -D_REENTRANT)
8622# ... -mt is also the pthreads flag for HP/aCC
8623# pthread: Linux, etcetera
8624# --thread-safe: KAI C++
8625# pthread-config: use pthread-config program (for GNU Pth library)
8626
8627case "${host_cpu}-${host_os}" in
8628 *solaris*)
8629
8630 # On Solaris (at least, for some versions), libc contains stubbed
8631 # (non-functional) versions of the pthreads routines, so link-based
8632 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8633 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8634 # a function called by this macro, so we could check for that, but
8635 # who knows whether they'll stub that too in a future libc.) So,
8636 # we'll just look for -pthreads and -lpthread first:
8637
8638 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8639 ;;
8640
8641 *-darwin*)
8642 ax_pthread_flags="-pthread $ax_pthread_flags"
8643 ;;
8644esac
8645
8646if test x"$ax_pthread_ok" = xno; then
8647for flag in $ax_pthread_flags; do
8648
8649 case $flag in
8650 none)
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8652$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8653 ;;
8654
8655 -*)
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8657$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8658 PTHREAD_CFLAGS="$flag"
8659 ;;
8660
8661 pthread-config)
8662 # Extract the first word of "pthread-config", so it can be a program name with args.
8663set dummy pthread-config; ac_word=$2
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008666if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008667 $as_echo_n "(cached) " >&6
8668else
8669 if test -n "$ax_pthread_config"; then
8670 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8671else
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_ax_pthread_config="yes"
8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683done
8684 done
8685IFS=$as_save_IFS
8686
8687 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8688fi
8689fi
8690ax_pthread_config=$ac_cv_prog_ax_pthread_config
8691if test -n "$ax_pthread_config"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8693$as_echo "$ax_pthread_config" >&6; }
8694else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696$as_echo "no" >&6; }
8697fi
8698
8699
8700 if test x"$ax_pthread_config" = xno; then continue; fi
8701 PTHREAD_CFLAGS="`pthread-config --cflags`"
8702 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8703 ;;
8704
8705 *)
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8707$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8708 PTHREAD_LIBS="-l$flag"
8709 ;;
8710 esac
8711
8712 save_LIBS="$LIBS"
8713 save_CFLAGS="$CFLAGS"
8714 LIBS="$PTHREAD_LIBS $LIBS"
8715 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8716
8717 # Check for various functions. We must include pthread.h,
8718 # since some functions may be macros. (On the Sequent, we
8719 # need a special flag -Kthread to make this header compile.)
8720 # We check for pthread_join because it is in -lpthread on IRIX
8721 # while pthread_create is in libc. We check for pthread_attr_init
8722 # due to DEC craziness with -lpthreads. We check for
8723 # pthread_cleanup_push because it is one of the few pthread
8724 # functions on Solaris that doesn't have a non-functional libc stub.
8725 # We try pthread_create on general principles.
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h. */
8728#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008729 static void routine(void* a) {a=0;}
8730 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008731int
8732main ()
8733{
8734pthread_t th; pthread_attr_t attr;
8735 pthread_create(&th,0,start_routine,0);
8736 pthread_join(th, 0);
8737 pthread_attr_init(&attr);
8738 pthread_cleanup_push(routine, 0);
8739 pthread_cleanup_pop(0);
8740 ;
8741 return 0;
8742}
8743_ACEOF
8744if ac_fn_c_try_link "$LINENO"; then :
8745 ax_pthread_ok=yes
8746fi
8747rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749
8750 LIBS="$save_LIBS"
8751 CFLAGS="$save_CFLAGS"
8752
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8754$as_echo "$ax_pthread_ok" >&6; }
8755 if test "x$ax_pthread_ok" = xyes; then
8756 break;
8757 fi
8758
8759 PTHREAD_LIBS=""
8760 PTHREAD_CFLAGS=""
8761done
8762fi
8763
8764# Various other checks:
8765if test "x$ax_pthread_ok" = xyes; then
8766 save_LIBS="$LIBS"
8767 LIBS="$PTHREAD_LIBS $LIBS"
8768 save_CFLAGS="$CFLAGS"
8769 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8770
8771 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8773$as_echo_n "checking for joinable pthread attribute... " >&6; }
8774 attr_name=unknown
8775 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h. */
8778#include <pthread.h>
8779int
8780main ()
8781{
8782int attr=$attr; return attr;
8783 ;
8784 return 0;
8785}
8786_ACEOF
8787if ac_fn_c_try_link "$LINENO"; then :
8788 attr_name=$attr; break
8789fi
8790rm -f core conftest.err conftest.$ac_objext \
8791 conftest$ac_exeext conftest.$ac_ext
8792 done
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8794$as_echo "$attr_name" >&6; }
8795 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8796
8797cat >>confdefs.h <<_ACEOF
8798#define PTHREAD_CREATE_JOINABLE $attr_name
8799_ACEOF
8800
8801 fi
8802
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8804$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8805 flag=no
8806 case "${host_cpu}-${host_os}" in
8807 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8808 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8809 esac
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8811$as_echo "${flag}" >&6; }
8812 if test "x$flag" != xno; then
8813 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8814 fi
8815
8816 LIBS="$save_LIBS"
8817 CFLAGS="$save_CFLAGS"
8818
8819 # More AIX lossage: must compile with xlc_r or cc_r
8820 if test x"$GCC" != xyes; then
8821 for ac_prog in xlc_r cc_r
8822do
8823 # Extract the first word of "$ac_prog", so it can be a program name with args.
8824set dummy $ac_prog; ac_word=$2
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008827if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008828 $as_echo_n "(cached) " >&6
8829else
8830 if test -n "$PTHREAD_CC"; then
8831 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_prog_PTHREAD_CC="$ac_prog"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8843 fi
8844done
8845 done
8846IFS=$as_save_IFS
8847
8848fi
8849fi
8850PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8851if test -n "$PTHREAD_CC"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8853$as_echo "$PTHREAD_CC" >&6; }
8854else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
8857fi
8858
8859
8860 test -n "$PTHREAD_CC" && break
8861done
8862test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8863
8864 else
8865 PTHREAD_CC=$CC
8866 fi
8867else
8868 PTHREAD_CC="$CC"
8869fi
8870
8871
8872
8873
8874
8875# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8876if test x"$ax_pthread_ok" = xyes; then
8877
8878$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8879
8880 :
8881else
8882 ax_pthread_ok=no
8883
8884fi
8885ac_ext=c
8886ac_cpp='$CPP $CPPFLAGS'
8887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890
8891
8892
8893# Check whether --enable-opencl was given.
8894if test "${enable_opencl+set}" = set; then :
8895 enableval=$enable_opencl; disable_opencl=$enableval
8896else
8897 disable_opencl='yes'
8898fi
8899
8900
8901if test "$disable_opencl" = 'yes'; then
8902 ac_ext=c
8903ac_cpp='$CPP $CPPFLAGS'
8904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8906ac_compiler_gnu=$ac_cv_c_compiler_gnu
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8909$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008910if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008911 $as_echo_n "(cached) " >&6
8912else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h. */
8915
8916int
8917main ()
8918{
8919#ifndef _MSC_VER
8920 choke me
8921#endif
8922
8923 ;
8924 return 0;
8925}
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928 ax_compiler_ms=yes
8929else
8930 ax_compiler_ms=no
8931fi
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933ax_cv_c_compiler_ms=$ax_compiler_ms
8934
8935fi
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8937$as_echo "$ax_cv_c_compiler_ms" >&6; }
8938 if test X$ax_compiler_ms = Xno; then :
8939 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8940fi
8941
8942 ax_save_CPPFLAGS=$CPPFLAGS
8943 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8944 for ac_header in CL/cl.h OpenCL/cl.h
8945do :
8946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8947ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008949 cat >>confdefs.h <<_ACEOF
8950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951_ACEOF
8952
8953fi
8954
8955done
8956
8957 CPPFLAGS=$ax_save_CPPFLAGS
8958
8959 for ac_header in windows.h
8960do :
8961 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008962if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008963 cat >>confdefs.h <<_ACEOF
8964#define HAVE_WINDOWS_H 1
8965_ACEOF
8966
8967fi
8968
8969done
8970
8971
8972
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8975$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008976if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008977 $as_echo_n "(cached) " >&6
8978else
8979 ax_cv_check_cl_libcl=no
8980 case $host_cpu in
8981 x86_64) ax_check_cl_libdir=lib64 ;;
8982 *) ax_check_cl_libdir=lib ;;
8983 esac
8984 ax_save_CPPFLAGS=$CPPFLAGS
8985 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8986 ax_save_LIBS=$LIBS
8987 LIBS=""
8988 ax_check_libs="-lOpenCL -lCL -lclparser"
8989 for ax_lib in $ax_check_libs; do
8990 if test X$ax_compiler_ms = Xyes; then :
8991 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8992else
8993 ax_try_lib=$ax_lib
8994fi
8995 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997/* end confdefs.h. */
8998
8999 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9000 # include <windows.h>
9001 # endif
9002 # ifdef HAVE_CL_CL_H
9003 # include <CL/cl.h>
9004 # elif defined(HAVE_OPENCL_CL_H)
9005 # include <OpenCL/cl.h>
9006 # else
9007 # error no CL.h
9008 # endif
9009int
9010main ()
9011{
9012clCreateContextFromType(0,0,0,0,0)
9013 ;
9014 return 0;
9015}
9016_ACEOF
9017if ac_fn_c_try_link "$LINENO"; then :
9018 ax_cv_check_cl_libcl=$ax_try_lib; break
9019else
9020 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"
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h. */
9023
9024 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9025 # include <windows.h>
9026 # endif
9027 # ifdef HAVE_CL_CL_H
9028 # include <CL/cl.h>
9029 # elif defined(HAVE_OPENCL_CL_H)
9030 # include <OpenCL/cl.h>
9031 # else
9032 # error no CL.h
9033 # endif
9034int
9035main ()
9036{
9037clCreateContextFromType(0,0,0,0,0)
9038 ;
9039 return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_link "$LINENO"; then :
9043 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9044else
cristy78c5a0c2010-12-04 20:00:59 +00009045 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 +00009046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h. */
9048
9049 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9050 # include <windows.h>
9051 # endif
9052 # ifdef HAVE_CL_CL_H
9053 # include <CL/cl.h>
9054 # elif defined(HAVE_OPENCL_CL_H)
9055 # include <OpenCL/cl.h>
9056 # else
9057 # error no CL.h
9058 # endif
9059int
9060main ()
9061{
9062clCreateContextFromType(0,0,0,0,0)
9063 ;
9064 return 0;
9065}
9066_ACEOF
9067if ac_fn_c_try_link "$LINENO"; then :
9068 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9069fi
9070rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072fi
9073rm -f core conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075fi
9076rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078 done
9079
9080 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009081 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h. */
9084
9085 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9086 # include <windows.h>
9087 # endif
9088 # ifdef HAVE_CL_CL_H
9089 # include <CL/cl.h>
9090 # elif defined(HAVE_OPENCL_CL_H)
9091 # include <OpenCL/cl.h>
9092 # else
9093 # error no CL.h
9094 # endif
9095int
9096main ()
9097{
9098clCreateContextFromType(0,0,0,0,0)
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103if ac_fn_c_try_link "$LINENO"; then :
9104 ax_cv_check_cl_libcl=$LIBS
9105fi
9106rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9108fi
9109
9110 LIBS=$ax_save_LIBS
9111 CPPFLAGS=$ax_save_CPPFLAGS
9112fi
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9114$as_echo "$ax_cv_check_cl_libcl" >&6; }
9115
9116 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9117 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9118else
9119 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9120$as_echo "#define _OPENCL 1" >>confdefs.h
9121
9122fi
9123 ac_ext=c
9124ac_cpp='$CPP $CPPFLAGS'
9125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127ac_compiler_gnu=$ac_cv_c_compiler_gnu
9128
9129fi
9130
9131
9132
9133
cristyc7083c12009-10-14 03:16:55 +00009134CFLAGS="$CL_CFLAGS $CFLAGS"
9135LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009136
cristy391f1ce2010-09-09 17:23:28 +00009137if test "$enable_opencl" != no; then
9138 if test "_OPENCL" = '1'; then
9139 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9140 fi
cristyfd9dcd42010-08-08 18:07:02 +00009141fi
cristy2e8b51d2009-10-17 18:26:15 +00009142
cristy3ed852e2009-09-05 21:47:34 +00009143########
9144#
9145# Check for large file support
9146#
9147########
9148# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009149if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009150 enableval=$enable_largefile;
9151fi
9152
9153if test "$enable_largefile" != no; then
9154
cristy8b350f62009-11-15 23:12:43 +00009155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009156$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009157if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009158 $as_echo_n "(cached) " >&6
9159else
9160 ac_cv_sys_largefile_CC=no
9161 if test "$GCC" != yes; then
9162 ac_save_CC=$CC
9163 while :; do
9164 # IRIX 6.2 and later do not support large files by default,
9165 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009167/* end confdefs.h. */
9168#include <sys/types.h>
9169 /* Check that off_t can represent 2**63 - 1 correctly.
9170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9171 since some C++ compilers masquerading as C compilers
9172 incorrectly reject 9223372036854775807. */
9173#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9175 && LARGE_OFF_T % 2147483647 == 1)
9176 ? 1 : -1];
9177int
9178main ()
9179{
9180
9181 ;
9182 return 0;
9183}
9184_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009185 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009186 break
cristy3ed852e2009-09-05 21:47:34 +00009187fi
cristy3ed852e2009-09-05 21:47:34 +00009188rm -f core conftest.err conftest.$ac_objext
9189 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009190 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009191 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009192fi
cristy3ed852e2009-09-05 21:47:34 +00009193rm -f core conftest.err conftest.$ac_objext
9194 break
9195 done
9196 CC=$ac_save_CC
9197 rm -f conftest.$ac_ext
9198 fi
9199fi
cristy8b350f62009-11-15 23:12:43 +00009200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009201$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9202 if test "$ac_cv_sys_largefile_CC" != no; then
9203 CC=$CC$ac_cv_sys_largefile_CC
9204 fi
9205
cristy8b350f62009-11-15 23:12:43 +00009206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009207$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009208if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009209 $as_echo_n "(cached) " >&6
9210else
9211 while :; do
cristy8b350f62009-11-15 23:12:43 +00009212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009213/* end confdefs.h. */
9214#include <sys/types.h>
9215 /* Check that off_t can represent 2**63 - 1 correctly.
9216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9217 since some C++ compilers masquerading as C compilers
9218 incorrectly reject 9223372036854775807. */
9219#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9221 && LARGE_OFF_T % 2147483647 == 1)
9222 ? 1 : -1];
9223int
9224main ()
9225{
9226
9227 ;
9228 return 0;
9229}
9230_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009231if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009232 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009233fi
cristy3ed852e2009-09-05 21:47:34 +00009234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009236/* end confdefs.h. */
9237#define _FILE_OFFSET_BITS 64
9238#include <sys/types.h>
9239 /* Check that off_t can represent 2**63 - 1 correctly.
9240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9241 since some C++ compilers masquerading as C compilers
9242 incorrectly reject 9223372036854775807. */
9243#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9245 && LARGE_OFF_T % 2147483647 == 1)
9246 ? 1 : -1];
9247int
9248main ()
9249{
9250
9251 ;
9252 return 0;
9253}
9254_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009255if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009256 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009257fi
cristy3ed852e2009-09-05 21:47:34 +00009258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 ac_cv_sys_file_offset_bits=unknown
9260 break
9261done
9262fi
cristy8b350f62009-11-15 23:12:43 +00009263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009264$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9265case $ac_cv_sys_file_offset_bits in #(
9266 no | unknown) ;;
9267 *)
9268cat >>confdefs.h <<_ACEOF
9269#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9270_ACEOF
9271;;
9272esac
9273rm -rf conftest*
9274 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009276$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009277if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009278 $as_echo_n "(cached) " >&6
9279else
9280 while :; do
cristy8b350f62009-11-15 23:12:43 +00009281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009282/* end confdefs.h. */
9283#include <sys/types.h>
9284 /* Check that off_t can represent 2**63 - 1 correctly.
9285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9286 since some C++ compilers masquerading as C compilers
9287 incorrectly reject 9223372036854775807. */
9288#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9290 && LARGE_OFF_T % 2147483647 == 1)
9291 ? 1 : -1];
9292int
9293main ()
9294{
9295
9296 ;
9297 return 0;
9298}
9299_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009300if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009301 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009302fi
cristy3ed852e2009-09-05 21:47:34 +00009303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009305/* end confdefs.h. */
9306#define _LARGE_FILES 1
9307#include <sys/types.h>
9308 /* Check that off_t can represent 2**63 - 1 correctly.
9309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9310 since some C++ compilers masquerading as C compilers
9311 incorrectly reject 9223372036854775807. */
9312#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9314 && LARGE_OFF_T % 2147483647 == 1)
9315 ? 1 : -1];
9316int
9317main ()
9318{
9319
9320 ;
9321 return 0;
9322}
9323_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009324if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009325 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009326fi
cristy3ed852e2009-09-05 21:47:34 +00009327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 ac_cv_sys_large_files=unknown
9329 break
9330done
9331fi
cristy8b350f62009-11-15 23:12:43 +00009332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009333$as_echo "$ac_cv_sys_large_files" >&6; }
9334case $ac_cv_sys_large_files in #(
9335 no | unknown) ;;
9336 *)
9337cat >>confdefs.h <<_ACEOF
9338#define _LARGE_FILES $ac_cv_sys_large_files
9339_ACEOF
9340;;
9341esac
9342rm -rf conftest*
9343 fi
9344fi
9345
cristy8b350f62009-11-15 23:12:43 +00009346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009347$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009348if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009349 $as_echo_n "(cached) " >&6
9350else
9351 while :; do
cristy8b350f62009-11-15 23:12:43 +00009352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009353/* end confdefs.h. */
9354#include <sys/types.h> /* for off_t */
9355 #include <stdio.h>
9356int
9357main ()
9358{
9359int (*fp) (FILE *, off_t, int) = fseeko;
9360 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9361 ;
9362 return 0;
9363}
9364_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009366 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009367fi
cristy8b350f62009-11-15 23:12:43 +00009368rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009371/* end confdefs.h. */
9372#define _LARGEFILE_SOURCE 1
9373#include <sys/types.h> /* for off_t */
9374 #include <stdio.h>
9375int
9376main ()
9377{
9378int (*fp) (FILE *, off_t, int) = fseeko;
9379 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9380 ;
9381 return 0;
9382}
9383_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009385 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009386fi
cristy8b350f62009-11-15 23:12:43 +00009387rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009389 ac_cv_sys_largefile_source=unknown
9390 break
9391done
9392fi
cristy8b350f62009-11-15 23:12:43 +00009393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009394$as_echo "$ac_cv_sys_largefile_source" >&6; }
9395case $ac_cv_sys_largefile_source in #(
9396 no | unknown) ;;
9397 *)
9398cat >>confdefs.h <<_ACEOF
9399#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9400_ACEOF
9401;;
9402esac
9403rm -rf conftest*
9404
9405# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9406# in glibc 2.1.3, but that breaks too many other things.
9407# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9408if test $ac_cv_sys_largefile_source != unknown; then
9409
cristy8b350f62009-11-15 23:12:43 +00009410$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009411
9412fi
9413
9414LFS_CPPFLAGS=''
9415if test "$enable_largefile" != no; then
9416 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9417 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9418 else
cristy8b350f62009-11-15 23:12:43 +00009419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009420$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009421 if test "$cross_compiling" = yes; then :
9422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009424as_fn_error $? "cannot run test program while cross compiling
9425See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009426else
cristy8b350f62009-11-15 23:12:43 +00009427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009429#include <unistd.h>
9430 main () {
9431 exit(!(sizeof(off_t) == 8));
9432 }
cristyda16f162011-02-19 23:52:17 +00009433int
9434main ()
9435{
9436
9437 ;
9438 return 0;
9439}
cristy3ed852e2009-09-05 21:47:34 +00009440_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009441if ac_fn_c_try_run "$LINENO"; then :
9442 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009443
cristy8b350f62009-11-15 23:12:43 +00009444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009445$as_echo "yes" >&6; }
9446else
cristy8b350f62009-11-15 23:12:43 +00009447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009448$as_echo "no" >&6; }
9449fi
cristy8b350f62009-11-15 23:12:43 +00009450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9451 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009452fi
9453
cristy3ed852e2009-09-05 21:47:34 +00009454 fi
9455 if test "$ac_cv_sys_large_files" != 'no'; then
9456 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9457 fi
9458 if test "$ac_cv_sys_largefile_source" != 'no'; then
9459 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9460 fi
9461fi
9462
9463
9464#
9465# Configure libtool & libltdl
9466#
9467# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009468enable_dlopen=yes
9469
9470
9471
9472case `pwd` in
9473 *\ * | *\ *)
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9475$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9476esac
9477
9478
9479
cristyda16f162011-02-19 23:52:17 +00009480macro_version='2.4'
9481macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495ltmain="$ac_aux_dir/ltmain.sh"
9496
cristy0c60a692010-11-04 01:09:47 +00009497# Backslashify metacharacters that are still active within
9498# double-quoted strings.
9499sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9500
9501# Same as above, but do not quote variable references.
9502double_quote_subst='s/\(["`\\]\)/\\\1/g'
9503
9504# Sed substitution to delay expansion of an escaped shell variable in a
9505# double_quote_subst'ed string.
9506delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9507
9508# Sed substitution to delay expansion of an escaped single quote.
9509delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9510
9511# Sed substitution to avoid accidental globbing in evaled expressions
9512no_glob_subst='s/\*/\\\*/g'
9513
cristy73bd4a52010-10-05 11:24:23 +00009514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9515$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009516if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009517 $as_echo_n "(cached) " >&6
9518else
9519 if test -n "$NM"; then
9520 # Let the user override the test.
9521 lt_cv_path_NM="$NM"
9522else
9523 lt_nm_to_check="${ac_tool_prefix}nm"
9524 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9525 lt_nm_to_check="$lt_nm_to_check nm"
9526 fi
9527 for lt_tmp_nm in $lt_nm_to_check; do
9528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9529 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9530 IFS="$lt_save_ifs"
9531 test -z "$ac_dir" && ac_dir=.
9532 tmp_nm="$ac_dir/$lt_tmp_nm"
9533 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9534 # Check to see if the nm accepts a BSD-compat flag.
9535 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9536 # nm: unknown option "B" ignored
9537 # Tru64's nm complains that /dev/null is an invalid object file
9538 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9539 */dev/null* | *'Invalid file or object type'*)
9540 lt_cv_path_NM="$tmp_nm -B"
9541 break
9542 ;;
9543 *)
9544 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9545 */dev/null*)
9546 lt_cv_path_NM="$tmp_nm -p"
9547 break
9548 ;;
9549 *)
9550 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9551 continue # so that we can try to find one that supports BSD flags
9552 ;;
9553 esac
9554 ;;
9555 esac
9556 fi
9557 done
9558 IFS="$lt_save_ifs"
9559 done
9560 : ${lt_cv_path_NM=no}
9561fi
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9564$as_echo "$lt_cv_path_NM" >&6; }
9565if test "$lt_cv_path_NM" != "no"; then
9566 NM="$lt_cv_path_NM"
9567else
9568 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009569 if test -n "$DUMPBIN"; then :
9570 # Let the user override the test.
9571 else
9572 if test -n "$ac_tool_prefix"; then
9573 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009574 do
9575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009579if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009580 $as_echo_n "(cached) " >&6
9581else
9582 if test -n "$DUMPBIN"; then
9583 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9584else
9585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586for as_dir in $PATH
9587do
9588 IFS=$as_save_IFS
9589 test -z "$as_dir" && as_dir=.
9590 for ac_exec_ext in '' $ac_executable_extensions; do
9591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9592 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594 break 2
9595 fi
9596done
9597 done
9598IFS=$as_save_IFS
9599
9600fi
9601fi
9602DUMPBIN=$ac_cv_prog_DUMPBIN
9603if test -n "$DUMPBIN"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9605$as_echo "$DUMPBIN" >&6; }
9606else
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608$as_echo "no" >&6; }
9609fi
9610
9611
9612 test -n "$DUMPBIN" && break
9613 done
9614fi
9615if test -z "$DUMPBIN"; then
9616 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009617 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009618do
9619 # Extract the first word of "$ac_prog", so it can be a program name with args.
9620set dummy $ac_prog; ac_word=$2
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009623if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009624 $as_echo_n "(cached) " >&6
9625else
9626 if test -n "$ac_ct_DUMPBIN"; then
9627 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9628else
9629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630for as_dir in $PATH
9631do
9632 IFS=$as_save_IFS
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 break 2
9639 fi
9640done
9641 done
9642IFS=$as_save_IFS
9643
9644fi
9645fi
9646ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9647if test -n "$ac_ct_DUMPBIN"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9649$as_echo "$ac_ct_DUMPBIN" >&6; }
9650else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652$as_echo "no" >&6; }
9653fi
9654
9655
9656 test -n "$ac_ct_DUMPBIN" && break
9657done
9658
9659 if test "x$ac_ct_DUMPBIN" = x; then
9660 DUMPBIN=":"
9661 else
9662 case $cross_compiling:$ac_tool_warned in
9663yes:)
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9666ac_tool_warned=yes ;;
9667esac
9668 DUMPBIN=$ac_ct_DUMPBIN
9669 fi
9670fi
9671
cristy0c60a692010-11-04 01:09:47 +00009672 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9673 *COFF*)
9674 DUMPBIN="$DUMPBIN -symbols"
9675 ;;
9676 *)
9677 DUMPBIN=:
9678 ;;
9679 esac
9680 fi
cristy73bd4a52010-10-05 11:24:23 +00009681
9682 if test "$DUMPBIN" != ":"; then
9683 NM="$DUMPBIN"
9684 fi
9685fi
9686test -z "$NM" && NM=nm
9687
9688
9689
9690
9691
9692
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9694$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009695if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009696 $as_echo_n "(cached) " >&6
9697else
9698 lt_cv_nm_interface="BSD nm"
9699 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009700 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009701 (eval "$ac_compile" 2>conftest.err)
9702 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009703 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009704 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9705 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009706 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009707 cat conftest.out >&5
9708 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9709 lt_cv_nm_interface="MS dumpbin"
9710 fi
9711 rm -f conftest*
9712fi
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9714$as_echo "$lt_cv_nm_interface" >&6; }
9715
9716# find the maximum length of command line arguments
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9718$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009719if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009720 $as_echo_n "(cached) " >&6
9721else
9722 i=0
9723 teststring="ABCD"
9724
9725 case $build_os in
9726 msdosdjgpp*)
9727 # On DJGPP, this test can blow up pretty badly due to problems in libc
9728 # (any single argument exceeding 2000 bytes causes a buffer overrun
9729 # during glob expansion). Even if it were fixed, the result of this
9730 # check would be larger than it should be.
9731 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9732 ;;
9733
9734 gnu*)
9735 # Under GNU Hurd, this test is not required because there is
9736 # no limit to the length of command line arguments.
9737 # Libtool will interpret -1 as no limit whatsoever
9738 lt_cv_sys_max_cmd_len=-1;
9739 ;;
9740
9741 cygwin* | mingw* | cegcc*)
9742 # On Win9x/ME, this test blows up -- it succeeds, but takes
9743 # about 5 minutes as the teststring grows exponentially.
9744 # Worse, since 9x/ME are not pre-emptively multitasking,
9745 # you end up with a "frozen" computer, even though with patience
9746 # the test eventually succeeds (with a max line length of 256k).
9747 # Instead, let's just punt: use the minimum linelength reported by
9748 # all of the supported platforms: 8192 (on NT/2K/XP).
9749 lt_cv_sys_max_cmd_len=8192;
9750 ;;
9751
cristy0c60a692010-11-04 01:09:47 +00009752 mint*)
9753 # On MiNT this can take a long time and run out of memory.
9754 lt_cv_sys_max_cmd_len=8192;
9755 ;;
9756
cristy73bd4a52010-10-05 11:24:23 +00009757 amigaos*)
9758 # On AmigaOS with pdksh, this test takes hours, literally.
9759 # So we just punt and use a minimum line length of 8192.
9760 lt_cv_sys_max_cmd_len=8192;
9761 ;;
9762
9763 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9764 # This has been around since 386BSD, at least. Likely further.
9765 if test -x /sbin/sysctl; then
9766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9767 elif test -x /usr/sbin/sysctl; then
9768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9769 else
9770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9771 fi
9772 # And add a safety zone
9773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9775 ;;
9776
9777 interix*)
9778 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9779 lt_cv_sys_max_cmd_len=196608
9780 ;;
9781
9782 osf*)
9783 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9784 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9785 # nice to cause kernel panics so lets avoid the loop below.
9786 # First set a reasonable default.
9787 lt_cv_sys_max_cmd_len=16384
9788 #
9789 if test -x /sbin/sysconfig; then
9790 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9791 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9792 esac
9793 fi
9794 ;;
9795 sco3.2v5*)
9796 lt_cv_sys_max_cmd_len=102400
9797 ;;
9798 sysv5* | sco5v6* | sysv4.2uw2*)
9799 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9800 if test -n "$kargmax"; then
9801 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9802 else
9803 lt_cv_sys_max_cmd_len=32768
9804 fi
9805 ;;
9806 *)
9807 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9808 if test -n "$lt_cv_sys_max_cmd_len"; then
9809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9811 else
9812 # Make teststring a little bigger before we do anything with it.
9813 # a 1K string should be a reasonable start.
9814 for i in 1 2 3 4 5 6 7 8 ; do
9815 teststring=$teststring$teststring
9816 done
9817 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9818 # If test is not a shell built-in, we'll probably end up computing a
9819 # maximum length that is only half of the actual maximum length, but
9820 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009821 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9822 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009823 test $i != 17 # 1/2 MB should be enough
9824 do
9825 i=`expr $i + 1`
9826 teststring=$teststring$teststring
9827 done
9828 # Only check the string length outside the loop.
9829 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9830 teststring=
9831 # Add a significant safety factor because C++ compilers can tack on
9832 # massive amounts of additional arguments before passing them to the
9833 # linker. It appears as though 1/2 is a usable value.
9834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9835 fi
9836 ;;
9837 esac
9838
9839fi
9840
9841if test -n $lt_cv_sys_max_cmd_len ; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9843$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9844else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9846$as_echo "none" >&6; }
9847fi
9848max_cmd_len=$lt_cv_sys_max_cmd_len
9849
9850
9851
9852
9853
9854
9855: ${CP="cp -f"}
9856: ${MV="mv -f"}
9857: ${RM="rm -f"}
9858
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9860$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9861# Try some XSI features
9862xsi_shell=no
9863( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009864 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9865 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009866 && eval 'test $(( 1 + 1 )) -eq 2 \
9867 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9868 && xsi_shell=yes
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9870$as_echo "$xsi_shell" >&6; }
9871
9872
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9874$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9875lt_shell_append=no
9876( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9877 >/dev/null 2>&1 \
9878 && lt_shell_append=yes
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9880$as_echo "$lt_shell_append" >&6; }
9881
9882
9883if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9884 lt_unset=unset
9885else
9886 lt_unset=false
9887fi
9888
9889
9890
9891
9892
9893# test EBCDIC or ASCII
9894case `echo X|tr X '\101'` in
9895 A) # ASCII based system
9896 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9897 lt_SP2NL='tr \040 \012'
9898 lt_NL2SP='tr \015\012 \040\040'
9899 ;;
9900 *) # EBCDIC based system
9901 lt_SP2NL='tr \100 \n'
9902 lt_NL2SP='tr \r\n \100\100'
9903 ;;
9904esac
9905
9906
9907
9908
9909
9910
9911
9912
9913
cristyda16f162011-02-19 23:52:17 +00009914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9915$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9916if ${lt_cv_to_host_file_cmd+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918else
9919 case $host in
9920 *-*-mingw* )
9921 case $build in
9922 *-*-mingw* ) # actually msys
9923 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9924 ;;
9925 *-*-cygwin* )
9926 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9927 ;;
9928 * ) # otherwise, assume *nix
9929 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9930 ;;
9931 esac
9932 ;;
9933 *-*-cygwin* )
9934 case $build in
9935 *-*-mingw* ) # actually msys
9936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9937 ;;
9938 *-*-cygwin* )
9939 lt_cv_to_host_file_cmd=func_convert_file_noop
9940 ;;
9941 * ) # otherwise, assume *nix
9942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9943 ;;
9944 esac
9945 ;;
9946 * ) # unhandled hosts (and "normal" native builds)
9947 lt_cv_to_host_file_cmd=func_convert_file_noop
9948 ;;
9949esac
9950
9951fi
9952
9953to_host_file_cmd=$lt_cv_to_host_file_cmd
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9955$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9956
9957
9958
9959
9960
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9962$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9963if ${lt_cv_to_tool_file_cmd+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965else
9966 #assume ordinary cross tools, or native build.
9967lt_cv_to_tool_file_cmd=func_convert_file_noop
9968case $host in
9969 *-*-mingw* )
9970 case $build in
9971 *-*-mingw* ) # actually msys
9972 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9973 ;;
9974 esac
9975 ;;
9976esac
9977
9978fi
9979
9980to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9982$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9983
9984
9985
9986
9987
cristy73bd4a52010-10-05 11:24:23 +00009988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9989$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009990if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009991 $as_echo_n "(cached) " >&6
9992else
9993 lt_cv_ld_reload_flag='-r'
9994fi
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9996$as_echo "$lt_cv_ld_reload_flag" >&6; }
9997reload_flag=$lt_cv_ld_reload_flag
9998case $reload_flag in
9999"" | " "*) ;;
10000*) reload_flag=" $reload_flag" ;;
10001esac
10002reload_cmds='$LD$reload_flag -o $output$reload_objs'
10003case $host_os in
cristyda16f162011-02-19 23:52:17 +000010004 cygwin* | mingw* | pw32* | cegcc*)
10005 if test "$GCC" != yes; then
10006 reload_cmds=false
10007 fi
10008 ;;
cristy73bd4a52010-10-05 11:24:23 +000010009 darwin*)
10010 if test "$GCC" = yes; then
10011 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10012 else
10013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10014 fi
10015 ;;
10016esac
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026if test -n "$ac_tool_prefix"; then
10027 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10028set dummy ${ac_tool_prefix}objdump; ac_word=$2
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010031if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010032 $as_echo_n "(cached) " >&6
10033else
10034 if test -n "$OBJDUMP"; then
10035 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10036else
10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $PATH
10039do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10044 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10047 fi
10048done
10049 done
10050IFS=$as_save_IFS
10051
10052fi
10053fi
10054OBJDUMP=$ac_cv_prog_OBJDUMP
10055if test -n "$OBJDUMP"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10057$as_echo "$OBJDUMP" >&6; }
10058else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
10061fi
10062
10063
10064fi
10065if test -z "$ac_cv_prog_OBJDUMP"; then
10066 ac_ct_OBJDUMP=$OBJDUMP
10067 # Extract the first word of "objdump", so it can be a program name with args.
10068set dummy objdump; ac_word=$2
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010071if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010072 $as_echo_n "(cached) " >&6
10073else
10074 if test -n "$ac_ct_OBJDUMP"; then
10075 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10076else
10077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10084 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088done
10089 done
10090IFS=$as_save_IFS
10091
10092fi
10093fi
10094ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10095if test -n "$ac_ct_OBJDUMP"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10097$as_echo "$ac_ct_OBJDUMP" >&6; }
10098else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
10102
10103 if test "x$ac_ct_OBJDUMP" = x; then
10104 OBJDUMP="false"
10105 else
10106 case $cross_compiling:$ac_tool_warned in
10107yes:)
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110ac_tool_warned=yes ;;
10111esac
10112 OBJDUMP=$ac_ct_OBJDUMP
10113 fi
10114else
10115 OBJDUMP="$ac_cv_prog_OBJDUMP"
10116fi
10117
10118test -z "$OBJDUMP" && OBJDUMP=objdump
10119
10120
10121
10122
10123
10124
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10126$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010127if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010128 $as_echo_n "(cached) " >&6
10129else
10130 lt_cv_file_magic_cmd='$MAGIC_CMD'
10131lt_cv_file_magic_test_file=
10132lt_cv_deplibs_check_method='unknown'
10133# Need to set the preceding variable on all platforms that support
10134# interlibrary dependencies.
10135# 'none' -- dependencies not supported.
10136# `unknown' -- same as none, but documents that we really don't know.
10137# 'pass_all' -- all dependencies passed with no checks.
10138# 'test_compile' -- check by making test program.
10139# 'file_magic [[regex]]' -- check by looking for files in library path
10140# which responds to the $file_magic_cmd with a given extended regex.
10141# If you have `file' or equivalent on your system and you're not sure
10142# whether `pass_all' will *always* work, you probably want this one.
10143
10144case $host_os in
10145aix[4-9]*)
10146 lt_cv_deplibs_check_method=pass_all
10147 ;;
10148
10149beos*)
10150 lt_cv_deplibs_check_method=pass_all
10151 ;;
10152
10153bsdi[45]*)
10154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10155 lt_cv_file_magic_cmd='/usr/bin/file -L'
10156 lt_cv_file_magic_test_file=/shlib/libc.so
10157 ;;
10158
10159cygwin*)
10160 # func_win32_libid is a shell function defined in ltmain.sh
10161 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10162 lt_cv_file_magic_cmd='func_win32_libid'
10163 ;;
10164
10165mingw* | pw32*)
10166 # Base MSYS/MinGW do not provide the 'file' command needed by
10167 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10168 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010169 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10170 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10172 lt_cv_file_magic_cmd='func_win32_libid'
10173 else
cristy0c60a692010-11-04 01:09:47 +000010174 # Keep this pattern in sync with the one in func_win32_libid.
10175 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 +000010176 lt_cv_file_magic_cmd='$OBJDUMP -f'
10177 fi
10178 ;;
10179
cristy0c60a692010-11-04 01:09:47 +000010180cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010181 # use the weaker test based on 'objdump'. See mingw*.
10182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10183 lt_cv_file_magic_cmd='$OBJDUMP -f'
10184 ;;
10185
10186darwin* | rhapsody*)
10187 lt_cv_deplibs_check_method=pass_all
10188 ;;
10189
10190freebsd* | dragonfly*)
10191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10192 case $host_cpu in
10193 i*86 )
10194 # Not sure whether the presence of OpenBSD here was a mistake.
10195 # Let's accept both of them until this is cleared up.
10196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10197 lt_cv_file_magic_cmd=/usr/bin/file
10198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10199 ;;
10200 esac
10201 else
10202 lt_cv_deplibs_check_method=pass_all
10203 fi
10204 ;;
10205
10206gnu*)
10207 lt_cv_deplibs_check_method=pass_all
10208 ;;
10209
cristy0c60a692010-11-04 01:09:47 +000010210haiku*)
10211 lt_cv_deplibs_check_method=pass_all
10212 ;;
10213
cristy73bd4a52010-10-05 11:24:23 +000010214hpux10.20* | hpux11*)
10215 lt_cv_file_magic_cmd=/usr/bin/file
10216 case $host_cpu in
10217 ia64*)
10218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10220 ;;
10221 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010222 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 +000010223 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10224 ;;
10225 *)
cristy0c60a692010-11-04 01:09:47 +000010226 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 +000010227 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10228 ;;
10229 esac
10230 ;;
10231
10232interix[3-9]*)
10233 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10235 ;;
10236
10237irix5* | irix6* | nonstopux*)
10238 case $LD in
10239 *-32|*"-32 ") libmagic=32-bit;;
10240 *-n32|*"-n32 ") libmagic=N32;;
10241 *-64|*"-64 ") libmagic=64-bit;;
10242 *) libmagic=never-match;;
10243 esac
10244 lt_cv_deplibs_check_method=pass_all
10245 ;;
10246
10247# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010248linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010249 lt_cv_deplibs_check_method=pass_all
10250 ;;
10251
10252netbsd*)
10253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10255 else
10256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10257 fi
10258 ;;
10259
10260newos6*)
10261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10262 lt_cv_file_magic_cmd=/usr/bin/file
10263 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10264 ;;
10265
10266*nto* | *qnx*)
10267 lt_cv_deplibs_check_method=pass_all
10268 ;;
10269
10270openbsd*)
10271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10273 else
10274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10275 fi
10276 ;;
10277
10278osf3* | osf4* | osf5*)
10279 lt_cv_deplibs_check_method=pass_all
10280 ;;
10281
10282rdos*)
10283 lt_cv_deplibs_check_method=pass_all
10284 ;;
10285
10286solaris*)
10287 lt_cv_deplibs_check_method=pass_all
10288 ;;
10289
10290sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10291 lt_cv_deplibs_check_method=pass_all
10292 ;;
10293
10294sysv4 | sysv4.3*)
10295 case $host_vendor in
10296 motorola)
10297 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]'
10298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10299 ;;
10300 ncr)
10301 lt_cv_deplibs_check_method=pass_all
10302 ;;
10303 sequent)
10304 lt_cv_file_magic_cmd='/bin/file'
10305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10306 ;;
10307 sni)
10308 lt_cv_file_magic_cmd='/bin/file'
10309 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10310 lt_cv_file_magic_test_file=/lib/libc.so
10311 ;;
10312 siemens)
10313 lt_cv_deplibs_check_method=pass_all
10314 ;;
10315 pc)
10316 lt_cv_deplibs_check_method=pass_all
10317 ;;
10318 esac
10319 ;;
10320
10321tpf*)
10322 lt_cv_deplibs_check_method=pass_all
10323 ;;
10324esac
10325
10326fi
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10328$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010329
10330file_magic_glob=
10331want_nocaseglob=no
10332if test "$build" = "$host"; then
10333 case $host_os in
10334 mingw* | pw32*)
10335 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10336 want_nocaseglob=yes
10337 else
10338 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10339 fi
10340 ;;
10341 esac
10342fi
10343
cristy73bd4a52010-10-05 11:24:23 +000010344file_magic_cmd=$lt_cv_file_magic_cmd
10345deplibs_check_method=$lt_cv_deplibs_check_method
10346test -z "$deplibs_check_method" && deplibs_check_method=unknown
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
cristyda16f162011-02-19 23:52:17 +000010359
10360
10361
10362
10363
10364
10365
10366
10367
10368
cristy73bd4a52010-10-05 11:24:23 +000010369if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010370 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10371set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010374if ${ac_cv_prog_DLLTOOL+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376else
10377 if test -n "$DLLTOOL"; then
10378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10390 fi
10391done
10392 done
10393IFS=$as_save_IFS
10394
10395fi
10396fi
10397DLLTOOL=$ac_cv_prog_DLLTOOL
10398if test -n "$DLLTOOL"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10400$as_echo "$DLLTOOL" >&6; }
10401else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
10404fi
10405
10406
10407fi
10408if test -z "$ac_cv_prog_DLLTOOL"; then
10409 ac_ct_DLLTOOL=$DLLTOOL
10410 # Extract the first word of "dlltool", so it can be a program name with args.
10411set dummy dlltool; ac_word=$2
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413$as_echo_n "checking for $ac_word... " >&6; }
10414if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416else
10417 if test -n "$ac_ct_DLLTOOL"; then
10418 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10419else
10420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421for as_dir in $PATH
10422do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10430 fi
10431done
10432 done
10433IFS=$as_save_IFS
10434
10435fi
10436fi
10437ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10438if test -n "$ac_ct_DLLTOOL"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10440$as_echo "$ac_ct_DLLTOOL" >&6; }
10441else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443$as_echo "no" >&6; }
10444fi
10445
10446 if test "x$ac_ct_DLLTOOL" = x; then
10447 DLLTOOL="false"
10448 else
10449 case $cross_compiling:$ac_tool_warned in
10450yes:)
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10453ac_tool_warned=yes ;;
10454esac
10455 DLLTOOL=$ac_ct_DLLTOOL
10456 fi
10457else
10458 DLLTOOL="$ac_cv_prog_DLLTOOL"
10459fi
10460
10461test -z "$DLLTOOL" && DLLTOOL=dlltool
10462
10463
10464
10465
10466
10467
10468
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10470$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10471if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473else
10474 lt_cv_sharedlib_from_linklib_cmd='unknown'
10475
10476case $host_os in
10477cygwin* | mingw* | pw32* | cegcc*)
10478 # two different shell functions defined in ltmain.sh
10479 # decide which to use based on capabilities of $DLLTOOL
10480 case `$DLLTOOL --help 2>&1` in
10481 *--identify-strict*)
10482 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10483 ;;
10484 *)
10485 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10486 ;;
10487 esac
10488 ;;
10489*)
10490 # fallback: assume linklib IS sharedlib
10491 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10492 ;;
10493esac
10494
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10497$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10498sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10499test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10500
10501
10502
10503
10504
10505
10506
10507if test -n "$ac_tool_prefix"; then
10508 for ac_prog in ar
10509 do
10510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513$as_echo_n "checking for $ac_word... " >&6; }
10514if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010515 $as_echo_n "(cached) " >&6
10516else
10517 if test -n "$AR"; then
10518 ac_cv_prog_AR="$AR" # Let the user override the test.
10519else
10520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521for as_dir in $PATH
10522do
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 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 +000010527 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10530 fi
10531done
10532 done
10533IFS=$as_save_IFS
10534
10535fi
10536fi
10537AR=$ac_cv_prog_AR
10538if test -n "$AR"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10540$as_echo "$AR" >&6; }
10541else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543$as_echo "no" >&6; }
10544fi
10545
10546
cristyda16f162011-02-19 23:52:17 +000010547 test -n "$AR" && break
10548 done
cristy73bd4a52010-10-05 11:24:23 +000010549fi
cristyda16f162011-02-19 23:52:17 +000010550if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010551 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010552 for ac_prog in ar
10553do
10554 # Extract the first word of "$ac_prog", so it can be a program name with args.
10555set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010558if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010559 $as_echo_n "(cached) " >&6
10560else
10561 if test -n "$ac_ct_AR"; then
10562 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10563else
10564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565for as_dir in $PATH
10566do
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 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 +000010571 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10574 fi
10575done
10576 done
10577IFS=$as_save_IFS
10578
10579fi
10580fi
10581ac_ct_AR=$ac_cv_prog_ac_ct_AR
10582if test -n "$ac_ct_AR"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10584$as_echo "$ac_ct_AR" >&6; }
10585else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587$as_echo "no" >&6; }
10588fi
10589
cristyda16f162011-02-19 23:52:17 +000010590
10591 test -n "$ac_ct_AR" && break
10592done
10593
cristy73bd4a52010-10-05 11:24:23 +000010594 if test "x$ac_ct_AR" = x; then
10595 AR="false"
10596 else
10597 case $cross_compiling:$ac_tool_warned in
10598yes:)
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10601ac_tool_warned=yes ;;
10602esac
10603 AR=$ac_ct_AR
10604 fi
cristy73bd4a52010-10-05 11:24:23 +000010605fi
10606
cristyda16f162011-02-19 23:52:17 +000010607: ${AR=ar}
10608: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
cristyda16f162011-02-19 23:52:17 +000010620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10621$as_echo_n "checking for archiver @FILE support... " >&6; }
10622if ${lt_cv_ar_at_file+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624else
10625 lt_cv_ar_at_file=no
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h. */
10628
10629int
10630main ()
10631{
10632
10633 ;
10634 return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_compile "$LINENO"; then :
10638 echo conftest.$ac_objext > conftest.lst
10639 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10641 (eval $lt_ar_try) 2>&5
10642 ac_status=$?
10643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644 test $ac_status = 0; }
10645 if test "$ac_status" -eq 0; then
10646 # Ensure the archiver fails upon bogus file names.
10647 rm -f conftest.$ac_objext libconftest.a
10648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10649 (eval $lt_ar_try) 2>&5
10650 ac_status=$?
10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652 test $ac_status = 0; }
10653 if test "$ac_status" -ne 0; then
10654 lt_cv_ar_at_file=@
10655 fi
10656 fi
10657 rm -f conftest.* libconftest.a
10658
10659fi
10660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661
10662fi
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10664$as_echo "$lt_cv_ar_at_file" >&6; }
10665
10666if test "x$lt_cv_ar_at_file" = xno; then
10667 archiver_list_spec=
10668else
10669 archiver_list_spec=$lt_cv_ar_at_file
10670fi
10671
10672
10673
10674
10675
10676
10677
cristy73bd4a52010-10-05 11:24:23 +000010678if test -n "$ac_tool_prefix"; then
10679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10680set dummy ${ac_tool_prefix}strip; ac_word=$2
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010683if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010684 $as_echo_n "(cached) " >&6
10685else
10686 if test -n "$STRIP"; then
10687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10688else
10689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690for as_dir in $PATH
10691do
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10699 fi
10700done
10701 done
10702IFS=$as_save_IFS
10703
10704fi
10705fi
10706STRIP=$ac_cv_prog_STRIP
10707if test -n "$STRIP"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10709$as_echo "$STRIP" >&6; }
10710else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713fi
10714
10715
10716fi
10717if test -z "$ac_cv_prog_STRIP"; then
10718 ac_ct_STRIP=$STRIP
10719 # Extract the first word of "strip", so it can be a program name with args.
10720set dummy strip; ac_word=$2
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010723if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010724 $as_echo_n "(cached) " >&6
10725else
10726 if test -n "$ac_ct_STRIP"; then
10727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10728else
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736 ac_cv_prog_ac_ct_STRIP="strip"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740done
10741 done
10742IFS=$as_save_IFS
10743
10744fi
10745fi
10746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10747if test -n "$ac_ct_STRIP"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10749$as_echo "$ac_ct_STRIP" >&6; }
10750else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
10753fi
10754
10755 if test "x$ac_ct_STRIP" = x; then
10756 STRIP=":"
10757 else
10758 case $cross_compiling:$ac_tool_warned in
10759yes:)
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10762ac_tool_warned=yes ;;
10763esac
10764 STRIP=$ac_ct_STRIP
10765 fi
10766else
10767 STRIP="$ac_cv_prog_STRIP"
10768fi
10769
10770test -z "$STRIP" && STRIP=:
10771
10772
10773
10774
10775
10776
10777if test -n "$ac_tool_prefix"; then
10778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010782if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010783 $as_echo_n "(cached) " >&6
10784else
10785 if test -n "$RANLIB"; then
10786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10798 fi
10799done
10800 done
10801IFS=$as_save_IFS
10802
10803fi
10804fi
10805RANLIB=$ac_cv_prog_RANLIB
10806if test -n "$RANLIB"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10808$as_echo "$RANLIB" >&6; }
10809else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
10812fi
10813
10814
10815fi
10816if test -z "$ac_cv_prog_RANLIB"; then
10817 ac_ct_RANLIB=$RANLIB
10818 # Extract the first word of "ranlib", so it can be a program name with args.
10819set dummy ranlib; ac_word=$2
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010822if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010823 $as_echo_n "(cached) " >&6
10824else
10825 if test -n "$ac_ct_RANLIB"; then
10826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835 ac_cv_prog_ac_ct_RANLIB="ranlib"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840 done
10841IFS=$as_save_IFS
10842
10843fi
10844fi
10845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10846if test -n "$ac_ct_RANLIB"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10848$as_echo "$ac_ct_RANLIB" >&6; }
10849else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
10852fi
10853
10854 if test "x$ac_ct_RANLIB" = x; then
10855 RANLIB=":"
10856 else
10857 case $cross_compiling:$ac_tool_warned in
10858yes:)
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10861ac_tool_warned=yes ;;
10862esac
10863 RANLIB=$ac_ct_RANLIB
10864 fi
10865else
10866 RANLIB="$ac_cv_prog_RANLIB"
10867fi
10868
10869test -z "$RANLIB" && RANLIB=:
10870
10871
10872
10873
10874
10875
10876# Determine commands to create old-style static archives.
10877old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10878old_postinstall_cmds='chmod 644 $oldlib'
10879old_postuninstall_cmds=
10880
10881if test -n "$RANLIB"; then
10882 case $host_os in
10883 openbsd*)
10884 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10885 ;;
10886 *)
10887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10888 ;;
10889 esac
10890 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10891fi
10892
cristy0c60a692010-11-04 01:09:47 +000010893case $host_os in
10894 darwin*)
10895 lock_old_archive_extraction=yes ;;
10896 *)
10897 lock_old_archive_extraction=no ;;
10898esac
10899
10900
10901
10902
10903
10904
cristy73bd4a52010-10-05 11:24:23 +000010905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938# If no C compiler was specified, use CC.
10939LTCC=${LTCC-"$CC"}
10940
10941# If no C compiler flags were specified, use CFLAGS.
10942LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10943
10944# Allow CC to be a program name with arguments.
10945compiler=$CC
10946
10947
10948# Check for command to grab the raw symbol name followed by C symbol from nm.
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10950$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010951if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010952 $as_echo_n "(cached) " >&6
10953else
10954
10955# These are sane defaults that work on at least a few old systems.
10956# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10957
10958# Character class describing NM global symbol codes.
10959symcode='[BCDEGRST]'
10960
10961# Regexp to match symbols that can be accessed directly from C.
10962sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10963
10964# Define system-specific variables.
10965case $host_os in
10966aix*)
10967 symcode='[BCDT]'
10968 ;;
10969cygwin* | mingw* | pw32* | cegcc*)
10970 symcode='[ABCDGISTW]'
10971 ;;
10972hpux*)
10973 if test "$host_cpu" = ia64; then
10974 symcode='[ABCDEGRST]'
10975 fi
10976 ;;
10977irix* | nonstopux*)
10978 symcode='[BCDEGRST]'
10979 ;;
10980osf*)
10981 symcode='[BCDEGQRST]'
10982 ;;
10983solaris*)
10984 symcode='[BDRT]'
10985 ;;
10986sco3.2v5*)
10987 symcode='[DT]'
10988 ;;
10989sysv4.2uw2*)
10990 symcode='[DT]'
10991 ;;
10992sysv5* | sco5v6* | unixware* | OpenUNIX*)
10993 symcode='[ABDT]'
10994 ;;
10995sysv4)
10996 symcode='[DFNSTU]'
10997 ;;
10998esac
10999
11000# If we're using GNU nm, then use its standard symbol codes.
11001case `$NM -V 2>&1` in
11002*GNU* | *'with BFD'*)
11003 symcode='[ABCDGIRSTW]' ;;
11004esac
11005
11006# Transform an extracted symbol line into a proper C declaration.
11007# Some systems (esp. on ia64) link data and code symbols differently,
11008# so use this general approach.
11009lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11010
11011# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011012lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11013lt_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 +000011014
11015# Handle CRLF in mingw tool chain
11016opt_cr=
11017case $build_os in
11018mingw*)
11019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11020 ;;
11021esac
11022
11023# Try without a prefix underscore, then with it.
11024for ac_symprfx in "" "_"; do
11025
11026 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11027 symxfrm="\\1 $ac_symprfx\\2 \\2"
11028
11029 # Write the raw and C identifiers.
11030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11031 # Fake it for dumpbin and say T for any non-static function
11032 # and D for any global variable.
11033 # Also find C++ and __fastcall symbols from MSVC++,
11034 # which start with @ or ?.
11035 lt_cv_sys_global_symbol_pipe="$AWK '"\
11036" {last_section=section; section=\$ 3};"\
11037" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11038" \$ 0!~/External *\|/{next};"\
11039" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11040" {if(hide[section]) next};"\
11041" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11042" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11043" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11044" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11045" ' prfx=^$ac_symprfx"
11046 else
11047 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11048 fi
cristyda16f162011-02-19 23:52:17 +000011049 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011050
11051 # Check to see that the pipe works correctly.
11052 pipe_works=no
11053
11054 rm -f conftest*
11055 cat > conftest.$ac_ext <<_LT_EOF
11056#ifdef __cplusplus
11057extern "C" {
11058#endif
11059char nm_test_var;
11060void nm_test_func(void);
11061void nm_test_func(void){}
11062#ifdef __cplusplus
11063}
11064#endif
11065int main(){nm_test_var='a';nm_test_func();return(0);}
11066_LT_EOF
11067
11068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11069 (eval $ac_compile) 2>&5
11070 ac_status=$?
11071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072 test $ac_status = 0; }; then
11073 # Now try to grab the symbols.
11074 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11076 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011077 ac_status=$?
11078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11079 test $ac_status = 0; } && test -s "$nlist"; then
11080 # Try sorting and uniquifying the output.
11081 if sort "$nlist" | uniq > "$nlist"T; then
11082 mv -f "$nlist"T "$nlist"
11083 else
11084 rm -f "$nlist"T
11085 fi
11086
11087 # Make sure that we snagged all the symbols we need.
11088 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11089 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11090 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011091/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11092#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11093/* DATA imports from DLLs on WIN32 con't be const, because runtime
11094 relocations are performed -- see ld's documentation on pseudo-relocs. */
11095# define LT_DLSYM_CONST
11096#elif defined(__osf__)
11097/* This system does not cope well with relocations in const data. */
11098# define LT_DLSYM_CONST
11099#else
11100# define LT_DLSYM_CONST const
11101#endif
11102
cristy73bd4a52010-10-05 11:24:23 +000011103#ifdef __cplusplus
11104extern "C" {
11105#endif
11106
11107_LT_EOF
11108 # Now generate the symbol file.
11109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11110
11111 cat <<_LT_EOF >> conftest.$ac_ext
11112
11113/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011114LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011115 const char *name;
11116 void *address;
11117}
11118lt__PROGRAM__LTX_preloaded_symbols[] =
11119{
11120 { "@PROGRAM@", (void *) 0 },
11121_LT_EOF
11122 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11123 cat <<\_LT_EOF >> conftest.$ac_ext
11124 {0, (void *) 0}
11125};
11126
11127/* This works around a problem in FreeBSD linker */
11128#ifdef FREEBSD_WORKAROUND
11129static const void *lt_preloaded_setup() {
11130 return lt__PROGRAM__LTX_preloaded_symbols;
11131}
11132#endif
11133
11134#ifdef __cplusplus
11135}
11136#endif
11137_LT_EOF
11138 # Now try linking the two files.
11139 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011140 lt_globsym_save_LIBS=$LIBS
11141 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011142 LIBS="conftstm.$ac_objext"
11143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11145 (eval $ac_link) 2>&5
11146 ac_status=$?
11147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11149 pipe_works=yes
11150 fi
cristyda16f162011-02-19 23:52:17 +000011151 LIBS=$lt_globsym_save_LIBS
11152 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011153 else
11154 echo "cannot find nm_test_func in $nlist" >&5
11155 fi
11156 else
11157 echo "cannot find nm_test_var in $nlist" >&5
11158 fi
11159 else
11160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11161 fi
11162 else
11163 echo "$progname: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11165 fi
11166 rm -rf conftest* conftst*
11167
11168 # Do not use the global_symbol_pipe unless it works.
11169 if test "$pipe_works" = yes; then
11170 break
11171 else
11172 lt_cv_sys_global_symbol_pipe=
11173 fi
11174done
11175
11176fi
11177
11178if test -z "$lt_cv_sys_global_symbol_pipe"; then
11179 lt_cv_sys_global_symbol_to_cdecl=
11180fi
11181if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11183$as_echo "failed" >&6; }
11184else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11186$as_echo "ok" >&6; }
11187fi
11188
cristyda16f162011-02-19 23:52:17 +000011189# Response file support.
11190if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11191 nm_file_list_spec='@'
11192elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11193 nm_file_list_spec='@'
11194fi
cristy73bd4a52010-10-05 11:24:23 +000011195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
cristyda16f162011-02-19 23:52:17 +000011216
11217
11218
11219
11220
11221
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11223$as_echo_n "checking for sysroot... " >&6; }
11224
11225# Check whether --with-sysroot was given.
11226if test "${with_sysroot+set}" = set; then :
11227 withval=$with_sysroot;
11228else
11229 with_sysroot=no
11230fi
11231
11232
11233lt_sysroot=
11234case ${with_sysroot} in #(
11235 yes)
11236 if test "$GCC" = yes; then
11237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11238 fi
11239 ;; #(
11240 /*)
11241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11242 ;; #(
11243 no|'')
11244 ;; #(
11245 *)
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11247$as_echo "${with_sysroot}" >&6; }
11248 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11249 ;;
11250esac
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11253$as_echo "${lt_sysroot:-no}" >&6; }
11254
11255
11256
11257
11258
cristy73bd4a52010-10-05 11:24:23 +000011259# Check whether --enable-libtool-lock was given.
11260if test "${enable_libtool_lock+set}" = set; then :
11261 enableval=$enable_libtool_lock;
11262fi
11263
11264test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11265
11266# Some flags need to be propagated to the compiler or linker for good
11267# libtool support.
11268case $host in
11269ia64-*-hpux*)
11270 # Find out which ABI we are using.
11271 echo 'int i;' > conftest.$ac_ext
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11273 (eval $ac_compile) 2>&5
11274 ac_status=$?
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; }; then
11277 case `/usr/bin/file conftest.$ac_objext` in
11278 *ELF-32*)
11279 HPUX_IA64_MODE="32"
11280 ;;
11281 *ELF-64*)
11282 HPUX_IA64_MODE="64"
11283 ;;
11284 esac
11285 fi
11286 rm -rf conftest*
11287 ;;
11288*-*-irix6*)
11289 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011290 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11292 (eval $ac_compile) 2>&5
11293 ac_status=$?
11294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295 test $ac_status = 0; }; then
11296 if test "$lt_cv_prog_gnu_ld" = yes; then
11297 case `/usr/bin/file conftest.$ac_objext` in
11298 *32-bit*)
11299 LD="${LD-ld} -melf32bsmip"
11300 ;;
11301 *N32*)
11302 LD="${LD-ld} -melf32bmipn32"
11303 ;;
11304 *64-bit*)
11305 LD="${LD-ld} -melf64bmip"
11306 ;;
11307 esac
11308 else
11309 case `/usr/bin/file conftest.$ac_objext` in
11310 *32-bit*)
11311 LD="${LD-ld} -32"
11312 ;;
11313 *N32*)
11314 LD="${LD-ld} -n32"
11315 ;;
11316 *64-bit*)
11317 LD="${LD-ld} -64"
11318 ;;
11319 esac
11320 fi
11321 fi
11322 rm -rf conftest*
11323 ;;
11324
11325x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11326s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11327 # Find out which ABI we are using.
11328 echo 'int i;' > conftest.$ac_ext
11329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11330 (eval $ac_compile) 2>&5
11331 ac_status=$?
11332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11333 test $ac_status = 0; }; then
11334 case `/usr/bin/file conftest.o` in
11335 *32-bit*)
11336 case $host in
11337 x86_64-*kfreebsd*-gnu)
11338 LD="${LD-ld} -m elf_i386_fbsd"
11339 ;;
11340 x86_64-*linux*)
11341 LD="${LD-ld} -m elf_i386"
11342 ;;
11343 ppc64-*linux*|powerpc64-*linux*)
11344 LD="${LD-ld} -m elf32ppclinux"
11345 ;;
11346 s390x-*linux*)
11347 LD="${LD-ld} -m elf_s390"
11348 ;;
11349 sparc64-*linux*)
11350 LD="${LD-ld} -m elf32_sparc"
11351 ;;
11352 esac
11353 ;;
11354 *64-bit*)
11355 case $host in
11356 x86_64-*kfreebsd*-gnu)
11357 LD="${LD-ld} -m elf_x86_64_fbsd"
11358 ;;
11359 x86_64-*linux*)
11360 LD="${LD-ld} -m elf_x86_64"
11361 ;;
11362 ppc*-*linux*|powerpc*-*linux*)
11363 LD="${LD-ld} -m elf64ppc"
11364 ;;
11365 s390*-*linux*|s390*-*tpf*)
11366 LD="${LD-ld} -m elf64_s390"
11367 ;;
11368 sparc*-*linux*)
11369 LD="${LD-ld} -m elf64_sparc"
11370 ;;
11371 esac
11372 ;;
11373 esac
11374 fi
11375 rm -rf conftest*
11376 ;;
11377
11378*-*-sco3.2v5*)
11379 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11380 SAVE_CFLAGS="$CFLAGS"
11381 CFLAGS="$CFLAGS -belf"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11383$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011384if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011385 $as_echo_n "(cached) " >&6
11386else
11387 ac_ext=c
11388ac_cpp='$CPP $CPPFLAGS'
11389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391ac_compiler_gnu=$ac_cv_c_compiler_gnu
11392
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h. */
11395
11396int
11397main ()
11398{
11399
11400 ;
11401 return 0;
11402}
11403_ACEOF
11404if ac_fn_c_try_link "$LINENO"; then :
11405 lt_cv_cc_needs_belf=yes
11406else
11407 lt_cv_cc_needs_belf=no
11408fi
11409rm -f core conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411 ac_ext=c
11412ac_cpp='$CPP $CPPFLAGS'
11413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11415ac_compiler_gnu=$ac_cv_c_compiler_gnu
11416
11417fi
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11419$as_echo "$lt_cv_cc_needs_belf" >&6; }
11420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11422 CFLAGS="$SAVE_CFLAGS"
11423 fi
11424 ;;
11425sparc*-*solaris*)
11426 # Find out which ABI we are using.
11427 echo 'int i;' > conftest.$ac_ext
11428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11429 (eval $ac_compile) 2>&5
11430 ac_status=$?
11431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11432 test $ac_status = 0; }; then
11433 case `/usr/bin/file conftest.o` in
11434 *64-bit*)
11435 case $lt_cv_prog_gnu_ld in
11436 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11437 *)
11438 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11439 LD="${LD-ld} -64"
11440 fi
11441 ;;
11442 esac
11443 ;;
11444 esac
11445 fi
11446 rm -rf conftest*
11447 ;;
11448esac
11449
11450need_locks="$enable_libtool_lock"
11451
cristyda16f162011-02-19 23:52:17 +000011452if test -n "$ac_tool_prefix"; then
11453 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11454set dummy ${ac_tool_prefix}mt; ac_word=$2
11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456$as_echo_n "checking for $ac_word... " >&6; }
11457if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459else
11460 if test -n "$MANIFEST_TOOL"; then
11461 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11462else
11463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464for as_dir in $PATH
11465do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11470 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474done
11475 done
11476IFS=$as_save_IFS
11477
11478fi
11479fi
11480MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11481if test -n "$MANIFEST_TOOL"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11483$as_echo "$MANIFEST_TOOL" >&6; }
11484else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486$as_echo "no" >&6; }
11487fi
11488
11489
11490fi
11491if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11492 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11493 # Extract the first word of "mt", so it can be a program name with args.
11494set dummy mt; ac_word=$2
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496$as_echo_n "checking for $ac_word... " >&6; }
11497if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499else
11500 if test -n "$ac_ct_MANIFEST_TOOL"; then
11501 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11502else
11503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514done
11515 done
11516IFS=$as_save_IFS
11517
11518fi
11519fi
11520ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11521if test -n "$ac_ct_MANIFEST_TOOL"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11523$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11524else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
11527fi
11528
11529 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11530 MANIFEST_TOOL=":"
11531 else
11532 case $cross_compiling:$ac_tool_warned in
11533yes:)
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11536ac_tool_warned=yes ;;
11537esac
11538 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11539 fi
11540else
11541 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11542fi
11543
11544test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11546$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11547if ${lt_cv_path_mainfest_tool+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549else
11550 lt_cv_path_mainfest_tool=no
11551 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11552 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11553 cat conftest.err >&5
11554 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11555 lt_cv_path_mainfest_tool=yes
11556 fi
11557 rm -f conftest*
11558fi
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11560$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11561if test "x$lt_cv_path_mainfest_tool" != xyes; then
11562 MANIFEST_TOOL=:
11563fi
11564
11565
11566
11567
11568
cristy73bd4a52010-10-05 11:24:23 +000011569
11570 case $host_os in
11571 rhapsody* | darwin*)
11572 if test -n "$ac_tool_prefix"; then
11573 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11574set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011577if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011578 $as_echo_n "(cached) " >&6
11579else
11580 if test -n "$DSYMUTIL"; then
11581 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11582else
11583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594done
11595 done
11596IFS=$as_save_IFS
11597
11598fi
11599fi
11600DSYMUTIL=$ac_cv_prog_DSYMUTIL
11601if test -n "$DSYMUTIL"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11603$as_echo "$DSYMUTIL" >&6; }
11604else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
11607fi
11608
11609
11610fi
11611if test -z "$ac_cv_prog_DSYMUTIL"; then
11612 ac_ct_DSYMUTIL=$DSYMUTIL
11613 # Extract the first word of "dsymutil", so it can be a program name with args.
11614set dummy dsymutil; ac_word=$2
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011617if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011618 $as_echo_n "(cached) " >&6
11619else
11620 if test -n "$ac_ct_DSYMUTIL"; then
11621 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11622else
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634done
11635 done
11636IFS=$as_save_IFS
11637
11638fi
11639fi
11640ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11641if test -n "$ac_ct_DSYMUTIL"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11643$as_echo "$ac_ct_DSYMUTIL" >&6; }
11644else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
11647fi
11648
11649 if test "x$ac_ct_DSYMUTIL" = x; then
11650 DSYMUTIL=":"
11651 else
11652 case $cross_compiling:$ac_tool_warned in
11653yes:)
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11656ac_tool_warned=yes ;;
11657esac
11658 DSYMUTIL=$ac_ct_DSYMUTIL
11659 fi
11660else
11661 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11662fi
11663
11664 if test -n "$ac_tool_prefix"; then
11665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11666set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011669if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011670 $as_echo_n "(cached) " >&6
11671else
11672 if test -n "$NMEDIT"; then
11673 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11674else
11675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676for as_dir in $PATH
11677do
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11685 fi
11686done
11687 done
11688IFS=$as_save_IFS
11689
11690fi
11691fi
11692NMEDIT=$ac_cv_prog_NMEDIT
11693if test -n "$NMEDIT"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11695$as_echo "$NMEDIT" >&6; }
11696else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698$as_echo "no" >&6; }
11699fi
11700
11701
11702fi
11703if test -z "$ac_cv_prog_NMEDIT"; then
11704 ac_ct_NMEDIT=$NMEDIT
11705 # Extract the first word of "nmedit", so it can be a program name with args.
11706set dummy nmedit; ac_word=$2
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011709if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011710 $as_echo_n "(cached) " >&6
11711else
11712 if test -n "$ac_ct_NMEDIT"; then
11713 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727 done
11728IFS=$as_save_IFS
11729
11730fi
11731fi
11732ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11733if test -n "$ac_ct_NMEDIT"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11735$as_echo "$ac_ct_NMEDIT" >&6; }
11736else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739fi
11740
11741 if test "x$ac_ct_NMEDIT" = x; then
11742 NMEDIT=":"
11743 else
11744 case $cross_compiling:$ac_tool_warned in
11745yes:)
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11748ac_tool_warned=yes ;;
11749esac
11750 NMEDIT=$ac_ct_NMEDIT
11751 fi
11752else
11753 NMEDIT="$ac_cv_prog_NMEDIT"
11754fi
11755
11756 if test -n "$ac_tool_prefix"; then
11757 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11758set dummy ${ac_tool_prefix}lipo; ac_word=$2
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011761if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011762 $as_echo_n "(cached) " >&6
11763else
11764 if test -n "$LIPO"; then
11765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11766else
11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770 IFS=$as_save_IFS
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11774 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 break 2
11777 fi
11778done
11779 done
11780IFS=$as_save_IFS
11781
11782fi
11783fi
11784LIPO=$ac_cv_prog_LIPO
11785if test -n "$LIPO"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11787$as_echo "$LIPO" >&6; }
11788else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
11791fi
11792
11793
11794fi
11795if test -z "$ac_cv_prog_LIPO"; then
11796 ac_ct_LIPO=$LIPO
11797 # Extract the first word of "lipo", so it can be a program name with args.
11798set dummy lipo; ac_word=$2
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011801if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011802 $as_echo_n "(cached) " >&6
11803else
11804 if test -n "$ac_ct_LIPO"; then
11805 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11806else
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11814 ac_cv_prog_ac_ct_LIPO="lipo"
11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11816 break 2
11817 fi
11818done
11819 done
11820IFS=$as_save_IFS
11821
11822fi
11823fi
11824ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11825if test -n "$ac_ct_LIPO"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11827$as_echo "$ac_ct_LIPO" >&6; }
11828else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
11831fi
11832
11833 if test "x$ac_ct_LIPO" = x; then
11834 LIPO=":"
11835 else
11836 case $cross_compiling:$ac_tool_warned in
11837yes:)
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11840ac_tool_warned=yes ;;
11841esac
11842 LIPO=$ac_ct_LIPO
11843 fi
11844else
11845 LIPO="$ac_cv_prog_LIPO"
11846fi
11847
11848 if test -n "$ac_tool_prefix"; then
11849 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11850set dummy ${ac_tool_prefix}otool; ac_word=$2
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011853if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011854 $as_echo_n "(cached) " >&6
11855else
11856 if test -n "$OTOOL"; then
11857 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11858else
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860for as_dir in $PATH
11861do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11866 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11869 fi
11870done
11871 done
11872IFS=$as_save_IFS
11873
11874fi
11875fi
11876OTOOL=$ac_cv_prog_OTOOL
11877if test -n "$OTOOL"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11879$as_echo "$OTOOL" >&6; }
11880else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
11883fi
11884
11885
11886fi
11887if test -z "$ac_cv_prog_OTOOL"; then
11888 ac_ct_OTOOL=$OTOOL
11889 # Extract the first word of "otool", so it can be a program name with args.
11890set dummy otool; ac_word=$2
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011893if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011894 $as_echo_n "(cached) " >&6
11895else
11896 if test -n "$ac_ct_OTOOL"; then
11897 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11898else
11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11906 ac_cv_prog_ac_ct_OTOOL="otool"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11909 fi
11910done
11911 done
11912IFS=$as_save_IFS
11913
11914fi
11915fi
11916ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11917if test -n "$ac_ct_OTOOL"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11919$as_echo "$ac_ct_OTOOL" >&6; }
11920else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922$as_echo "no" >&6; }
11923fi
11924
11925 if test "x$ac_ct_OTOOL" = x; then
11926 OTOOL=":"
11927 else
11928 case $cross_compiling:$ac_tool_warned in
11929yes:)
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11932ac_tool_warned=yes ;;
11933esac
11934 OTOOL=$ac_ct_OTOOL
11935 fi
11936else
11937 OTOOL="$ac_cv_prog_OTOOL"
11938fi
11939
11940 if test -n "$ac_tool_prefix"; then
11941 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11942set dummy ${ac_tool_prefix}otool64; ac_word=$2
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011945if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011946 $as_echo_n "(cached) " >&6
11947else
11948 if test -n "$OTOOL64"; then
11949 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11950else
11951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962done
11963 done
11964IFS=$as_save_IFS
11965
11966fi
11967fi
11968OTOOL64=$ac_cv_prog_OTOOL64
11969if test -n "$OTOOL64"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11971$as_echo "$OTOOL64" >&6; }
11972else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
11975fi
11976
11977
11978fi
11979if test -z "$ac_cv_prog_OTOOL64"; then
11980 ac_ct_OTOOL64=$OTOOL64
11981 # Extract the first word of "otool64", so it can be a program name with args.
11982set dummy otool64; ac_word=$2
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011985if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011986 $as_echo_n "(cached) " >&6
11987else
11988 if test -n "$ac_ct_OTOOL64"; then
11989 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998 ac_cv_prog_ac_ct_OTOOL64="otool64"
11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002done
12003 done
12004IFS=$as_save_IFS
12005
12006fi
12007fi
12008ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12009if test -n "$ac_ct_OTOOL64"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12011$as_echo "$ac_ct_OTOOL64" >&6; }
12012else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
12015fi
12016
12017 if test "x$ac_ct_OTOOL64" = x; then
12018 OTOOL64=":"
12019 else
12020 case $cross_compiling:$ac_tool_warned in
12021yes:)
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12024ac_tool_warned=yes ;;
12025esac
12026 OTOOL64=$ac_ct_OTOOL64
12027 fi
12028else
12029 OTOOL64="$ac_cv_prog_OTOOL64"
12030fi
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12059$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012060if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012061 $as_echo_n "(cached) " >&6
12062else
12063 lt_cv_apple_cc_single_mod=no
12064 if test -z "${LT_MULTI_MODULE}"; then
12065 # By default we will add the -single_module flag. You can override
12066 # by either setting the environment variable LT_MULTI_MODULE
12067 # non-empty at configure time, or by adding -multi_module to the
12068 # link flags.
12069 rm -rf libconftest.dylib*
12070 echo "int foo(void){return 1;}" > conftest.c
12071 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12072-dynamiclib -Wl,-single_module conftest.c" >&5
12073 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12074 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12075 _lt_result=$?
12076 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12077 lt_cv_apple_cc_single_mod=yes
12078 else
12079 cat conftest.err >&5
12080 fi
12081 rm -rf libconftest.dylib*
12082 rm -f conftest.*
12083 fi
12084fi
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12086$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12088$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012089if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012090 $as_echo_n "(cached) " >&6
12091else
12092 lt_cv_ld_exported_symbols_list=no
12093 save_LDFLAGS=$LDFLAGS
12094 echo "_main" > conftest.sym
12095 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h. */
12098
12099int
12100main ()
12101{
12102
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107if ac_fn_c_try_link "$LINENO"; then :
12108 lt_cv_ld_exported_symbols_list=yes
12109else
12110 lt_cv_ld_exported_symbols_list=no
12111fi
12112rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 LDFLAGS="$save_LDFLAGS"
12115
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12118$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12120$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012121if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012122 $as_echo_n "(cached) " >&6
12123else
12124 lt_cv_ld_force_load=no
12125 cat > conftest.c << _LT_EOF
12126int forced_loaded() { return 2;}
12127_LT_EOF
12128 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12129 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12130 echo "$AR cru libconftest.a conftest.o" >&5
12131 $AR cru libconftest.a conftest.o 2>&5
12132 echo "$RANLIB libconftest.a" >&5
12133 $RANLIB libconftest.a 2>&5
12134 cat > conftest.c << _LT_EOF
12135int main() { return 0;}
12136_LT_EOF
12137 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12138 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12139 _lt_result=$?
12140 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12141 lt_cv_ld_force_load=yes
12142 else
12143 cat conftest.err >&5
12144 fi
12145 rm -f conftest.err libconftest.a conftest conftest.c
12146 rm -rf conftest.dSYM
12147
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12150$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012151 case $host_os in
12152 rhapsody* | darwin1.[012])
12153 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12154 darwin1.*)
12155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12156 darwin*) # darwin 5.x on
12157 # if running on 10.5 or later, the deployment target defaults
12158 # to the OS version, if on x86, and 10.4, the deployment
12159 # target defaults to 10.4. Don't you love it?
12160 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12161 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12162 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12163 10.[012]*)
12164 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12165 10.*)
12166 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12167 esac
12168 ;;
12169 esac
12170 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12171 _lt_dar_single_mod='$single_module'
12172 fi
12173 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12174 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12175 else
12176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12177 fi
cristy0c60a692010-11-04 01:09:47 +000012178 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012179 _lt_dsymutil='~$DSYMUTIL $lib || :'
12180 else
12181 _lt_dsymutil=
12182 fi
12183 ;;
12184 esac
12185
12186for ac_header in dlfcn.h
12187do :
12188 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12189"
cristyda16f162011-02-19 23:52:17 +000012190if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012191 cat >>confdefs.h <<_ACEOF
12192#define HAVE_DLFCN_H 1
12193_ACEOF
12194
12195fi
12196
12197done
12198
12199
12200
cristy73bd4a52010-10-05 11:24:23 +000012201
cristyda16f162011-02-19 23:52:17 +000012202func_stripname_cnf ()
12203{
12204 case ${2} in
12205 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12206 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12207 esac
12208} # func_stripname_cnf
12209
12210
12211
cristy73bd4a52010-10-05 11:24:23 +000012212
12213
12214# Set options
12215enable_win32_dll=yes
12216
12217case $host in
cristy0c60a692010-11-04 01:09:47 +000012218*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012219 if test -n "$ac_tool_prefix"; then
12220 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12221set dummy ${ac_tool_prefix}as; ac_word=$2
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012224if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012225 $as_echo_n "(cached) " >&6
12226else
12227 if test -n "$AS"; then
12228 ac_cv_prog_AS="$AS" # Let the user override the test.
12229else
12230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $PATH
12232do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_prog_AS="${ac_tool_prefix}as"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241done
12242 done
12243IFS=$as_save_IFS
12244
12245fi
12246fi
12247AS=$ac_cv_prog_AS
12248if test -n "$AS"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12250$as_echo "$AS" >&6; }
12251else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253$as_echo "no" >&6; }
12254fi
12255
12256
12257fi
12258if test -z "$ac_cv_prog_AS"; then
12259 ac_ct_AS=$AS
12260 # Extract the first word of "as", so it can be a program name with args.
12261set dummy as; ac_word=$2
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012264if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012265 $as_echo_n "(cached) " >&6
12266else
12267 if test -n "$ac_ct_AS"; then
12268 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12269else
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12277 ac_cv_prog_ac_ct_AS="as"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 break 2
12280 fi
12281done
12282 done
12283IFS=$as_save_IFS
12284
12285fi
12286fi
12287ac_ct_AS=$ac_cv_prog_ac_ct_AS
12288if test -n "$ac_ct_AS"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12290$as_echo "$ac_ct_AS" >&6; }
12291else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294fi
12295
12296 if test "x$ac_ct_AS" = x; then
12297 AS="false"
12298 else
12299 case $cross_compiling:$ac_tool_warned in
12300yes:)
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303ac_tool_warned=yes ;;
12304esac
12305 AS=$ac_ct_AS
12306 fi
12307else
12308 AS="$ac_cv_prog_AS"
12309fi
12310
12311 if test -n "$ac_tool_prefix"; then
12312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12313set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012316if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012317 $as_echo_n "(cached) " >&6
12318else
12319 if test -n "$DLLTOOL"; then
12320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12321else
12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
12324do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12332 fi
12333done
12334 done
12335IFS=$as_save_IFS
12336
12337fi
12338fi
12339DLLTOOL=$ac_cv_prog_DLLTOOL
12340if test -n "$DLLTOOL"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12342$as_echo "$DLLTOOL" >&6; }
12343else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
12346fi
12347
12348
12349fi
12350if test -z "$ac_cv_prog_DLLTOOL"; then
12351 ac_ct_DLLTOOL=$DLLTOOL
12352 # Extract the first word of "dlltool", so it can be a program name with args.
12353set dummy dlltool; ac_word=$2
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012356if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012357 $as_echo_n "(cached) " >&6
12358else
12359 if test -n "$ac_ct_DLLTOOL"; then
12360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373done
12374 done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12380if test -n "$ac_ct_DLLTOOL"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12382$as_echo "$ac_ct_DLLTOOL" >&6; }
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388 if test "x$ac_ct_DLLTOOL" = x; then
12389 DLLTOOL="false"
12390 else
12391 case $cross_compiling:$ac_tool_warned in
12392yes:)
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12395ac_tool_warned=yes ;;
12396esac
12397 DLLTOOL=$ac_ct_DLLTOOL
12398 fi
12399else
12400 DLLTOOL="$ac_cv_prog_DLLTOOL"
12401fi
12402
12403 if test -n "$ac_tool_prefix"; then
12404 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12405set dummy ${ac_tool_prefix}objdump; ac_word=$2
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012408if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012409 $as_echo_n "(cached) " >&6
12410else
12411 if test -n "$OBJDUMP"; then
12412 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12413else
12414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in $PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12424 fi
12425done
12426 done
12427IFS=$as_save_IFS
12428
12429fi
12430fi
12431OBJDUMP=$ac_cv_prog_OBJDUMP
12432if test -n "$OBJDUMP"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12434$as_echo "$OBJDUMP" >&6; }
12435else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
12438fi
12439
12440
12441fi
12442if test -z "$ac_cv_prog_OBJDUMP"; then
12443 ac_ct_OBJDUMP=$OBJDUMP
12444 # Extract the first word of "objdump", so it can be a program name with args.
12445set dummy objdump; ac_word=$2
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012448if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012449 $as_echo_n "(cached) " >&6
12450else
12451 if test -n "$ac_ct_OBJDUMP"; then
12452 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12453else
12454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455for as_dir in $PATH
12456do
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12461 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12464 fi
12465done
12466 done
12467IFS=$as_save_IFS
12468
12469fi
12470fi
12471ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12472if test -n "$ac_ct_OBJDUMP"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12474$as_echo "$ac_ct_OBJDUMP" >&6; }
12475else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477$as_echo "no" >&6; }
12478fi
12479
12480 if test "x$ac_ct_OBJDUMP" = x; then
12481 OBJDUMP="false"
12482 else
12483 case $cross_compiling:$ac_tool_warned in
12484yes:)
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12487ac_tool_warned=yes ;;
12488esac
12489 OBJDUMP=$ac_ct_OBJDUMP
12490 fi
12491else
12492 OBJDUMP="$ac_cv_prog_OBJDUMP"
12493fi
12494
12495 ;;
12496esac
12497
12498test -z "$AS" && AS=as
12499
12500
12501
12502
12503
12504test -z "$DLLTOOL" && DLLTOOL=dlltool
12505
12506
12507
12508
12509
12510test -z "$OBJDUMP" && OBJDUMP=objdump
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520 # Check whether --enable-shared was given.
12521if test "${enable_shared+set}" = set; then :
12522 enableval=$enable_shared; p=${PACKAGE-default}
12523 case $enableval in
12524 yes) enable_shared=yes ;;
12525 no) enable_shared=no ;;
12526 *)
12527 enable_shared=no
12528 # Look at the argument we got. We use all the common list separators.
12529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12530 for pkg in $enableval; do
12531 IFS="$lt_save_ifs"
12532 if test "X$pkg" = "X$p"; then
12533 enable_shared=yes
12534 fi
12535 done
12536 IFS="$lt_save_ifs"
12537 ;;
12538 esac
12539else
12540 enable_shared=yes
12541fi
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551 # Check whether --enable-static was given.
12552if test "${enable_static+set}" = set; then :
12553 enableval=$enable_static; p=${PACKAGE-default}
12554 case $enableval in
12555 yes) enable_static=yes ;;
12556 no) enable_static=no ;;
12557 *)
12558 enable_static=no
12559 # Look at the argument we got. We use all the common list separators.
12560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12561 for pkg in $enableval; do
12562 IFS="$lt_save_ifs"
12563 if test "X$pkg" = "X$p"; then
12564 enable_static=yes
12565 fi
12566 done
12567 IFS="$lt_save_ifs"
12568 ;;
12569 esac
12570else
12571 enable_static=yes
12572fi
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583# Check whether --with-pic was given.
12584if test "${with_pic+set}" = set; then :
12585 withval=$with_pic; pic_mode="$withval"
12586else
12587 pic_mode=default
12588fi
12589
12590
12591test -z "$pic_mode" && pic_mode=default
12592
12593
12594
12595
12596
12597
12598
12599 # Check whether --enable-fast-install was given.
12600if test "${enable_fast_install+set}" = set; then :
12601 enableval=$enable_fast_install; p=${PACKAGE-default}
12602 case $enableval in
12603 yes) enable_fast_install=yes ;;
12604 no) enable_fast_install=no ;;
12605 *)
12606 enable_fast_install=no
12607 # Look at the argument we got. We use all the common list separators.
12608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12609 for pkg in $enableval; do
12610 IFS="$lt_save_ifs"
12611 if test "X$pkg" = "X$p"; then
12612 enable_fast_install=yes
12613 fi
12614 done
12615 IFS="$lt_save_ifs"
12616 ;;
12617 esac
12618else
12619 enable_fast_install=yes
12620fi
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632# This can be used to rebuild libtool when needed
12633LIBTOOL_DEPS="$ltmain"
12634
12635# Always use our own libtool.
12636LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
cristy0c60a692010-11-04 01:09:47 +000012662
cristy73bd4a52010-10-05 11:24:23 +000012663test -z "$LN_S" && LN_S="ln -s"
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678if test -n "${ZSH_VERSION+set}" ; then
12679 setopt NO_GLOB_SUBST
12680fi
12681
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12683$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012684if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012685 $as_echo_n "(cached) " >&6
12686else
12687 rm -f .libs 2>/dev/null
12688mkdir .libs 2>/dev/null
12689if test -d .libs; then
12690 lt_cv_objdir=.libs
12691else
12692 # MS-DOS does not allow filenames that begin with a dot.
12693 lt_cv_objdir=_libs
12694fi
12695rmdir .libs 2>/dev/null
12696fi
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12698$as_echo "$lt_cv_objdir" >&6; }
12699objdir=$lt_cv_objdir
12700
12701
12702
12703
12704
12705cat >>confdefs.h <<_ACEOF
12706#define LT_OBJDIR "$lt_cv_objdir/"
12707_ACEOF
12708
12709
12710
12711
cristy73bd4a52010-10-05 11:24:23 +000012712case $host_os in
12713aix3*)
12714 # AIX sometimes has problems with the GCC collect2 program. For some
12715 # reason, if we set the COLLECT_NAMES environment variable, the problems
12716 # vanish in a puff of smoke.
12717 if test "X${COLLECT_NAMES+set}" != Xset; then
12718 COLLECT_NAMES=
12719 export COLLECT_NAMES
12720 fi
12721 ;;
12722esac
12723
cristy73bd4a52010-10-05 11:24:23 +000012724# Global variables:
12725ofile=libtool
12726can_build_shared=yes
12727
12728# All known linkers require a `.a' archive for static linking (except MSVC,
12729# which needs '.lib').
12730libext=a
12731
12732with_gnu_ld="$lt_cv_prog_gnu_ld"
12733
12734old_CC="$CC"
12735old_CFLAGS="$CFLAGS"
12736
12737# Set sane defaults for various variables
12738test -z "$CC" && CC=cc
12739test -z "$LTCC" && LTCC=$CC
12740test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12741test -z "$LD" && LD=ld
12742test -z "$ac_objext" && ac_objext=o
12743
12744for cc_temp in $compiler""; do
12745 case $cc_temp in
12746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12748 \-*) ;;
12749 *) break;;
12750 esac
12751done
cristy0c60a692010-11-04 01:09:47 +000012752cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012753
12754
12755# Only perform the check for file, if the check method requires it
12756test -z "$MAGIC_CMD" && MAGIC_CMD=file
12757case $deplibs_check_method in
12758file_magic*)
12759 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12761$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012762if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012763 $as_echo_n "(cached) " >&6
12764else
12765 case $MAGIC_CMD in
12766[\\/*] | ?:[\\/]*)
12767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12768 ;;
12769*)
12770 lt_save_MAGIC_CMD="$MAGIC_CMD"
12771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12772 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12773 for ac_dir in $ac_dummy; do
12774 IFS="$lt_save_ifs"
12775 test -z "$ac_dir" && ac_dir=.
12776 if test -f $ac_dir/${ac_tool_prefix}file; then
12777 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12778 if test -n "$file_magic_test_file"; then
12779 case $deplibs_check_method in
12780 "file_magic "*)
12781 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12784 $EGREP "$file_magic_regex" > /dev/null; then
12785 :
12786 else
12787 cat <<_LT_EOF 1>&2
12788
12789*** Warning: the command libtool uses to detect shared libraries,
12790*** $file_magic_cmd, produces output that libtool cannot recognize.
12791*** The result is that libtool may fail to recognize shared libraries
12792*** as such. This will affect the creation of libtool libraries that
12793*** depend on shared libraries, but programs linked with such libtool
12794*** libraries will work regardless of this problem. Nevertheless, you
12795*** may want to report the problem to your system manager and/or to
12796*** bug-libtool@gnu.org
12797
12798_LT_EOF
12799 fi ;;
12800 esac
12801 fi
12802 break
12803 fi
12804 done
12805 IFS="$lt_save_ifs"
12806 MAGIC_CMD="$lt_save_MAGIC_CMD"
12807 ;;
12808esac
12809fi
12810
12811MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12812if test -n "$MAGIC_CMD"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12814$as_echo "$MAGIC_CMD" >&6; }
12815else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817$as_echo "no" >&6; }
12818fi
12819
12820
12821
12822
12823
12824if test -z "$lt_cv_path_MAGIC_CMD"; then
12825 if test -n "$ac_tool_prefix"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12827$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012828if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012829 $as_echo_n "(cached) " >&6
12830else
12831 case $MAGIC_CMD in
12832[\\/*] | ?:[\\/]*)
12833 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12834 ;;
12835*)
12836 lt_save_MAGIC_CMD="$MAGIC_CMD"
12837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12838 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12839 for ac_dir in $ac_dummy; do
12840 IFS="$lt_save_ifs"
12841 test -z "$ac_dir" && ac_dir=.
12842 if test -f $ac_dir/file; then
12843 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12844 if test -n "$file_magic_test_file"; then
12845 case $deplibs_check_method in
12846 "file_magic "*)
12847 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12850 $EGREP "$file_magic_regex" > /dev/null; then
12851 :
12852 else
12853 cat <<_LT_EOF 1>&2
12854
12855*** Warning: the command libtool uses to detect shared libraries,
12856*** $file_magic_cmd, produces output that libtool cannot recognize.
12857*** The result is that libtool may fail to recognize shared libraries
12858*** as such. This will affect the creation of libtool libraries that
12859*** depend on shared libraries, but programs linked with such libtool
12860*** libraries will work regardless of this problem. Nevertheless, you
12861*** may want to report the problem to your system manager and/or to
12862*** bug-libtool@gnu.org
12863
12864_LT_EOF
12865 fi ;;
12866 esac
12867 fi
12868 break
12869 fi
12870 done
12871 IFS="$lt_save_ifs"
12872 MAGIC_CMD="$lt_save_MAGIC_CMD"
12873 ;;
12874esac
12875fi
12876
12877MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12878if test -n "$MAGIC_CMD"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12880$as_echo "$MAGIC_CMD" >&6; }
12881else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886
12887 else
12888 MAGIC_CMD=:
12889 fi
12890fi
12891
12892 fi
12893 ;;
12894esac
12895
12896# Use C for the default configuration in the libtool script
12897
12898lt_save_CC="$CC"
12899ac_ext=c
12900ac_cpp='$CPP $CPPFLAGS'
12901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904
12905
12906# Source file extension for C test sources.
12907ac_ext=c
12908
12909# Object file extension for compiled C test sources.
12910objext=o
12911objext=$objext
12912
12913# Code to be used in simple compile tests
12914lt_simple_compile_test_code="int some_variable = 0;"
12915
12916# Code to be used in simple link tests
12917lt_simple_link_test_code='int main(){return(0);}'
12918
12919
12920
12921
12922
12923
12924
12925# If no C compiler was specified, use CC.
12926LTCC=${LTCC-"$CC"}
12927
12928# If no C compiler flags were specified, use CFLAGS.
12929LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12930
12931# Allow CC to be a program name with arguments.
12932compiler=$CC
12933
12934# Save the default compiler, since it gets overwritten when the other
12935# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12936compiler_DEFAULT=$CC
12937
12938# save warnings/boilerplate of simple test code
12939ac_outfile=conftest.$ac_objext
12940echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12941eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12942_lt_compiler_boilerplate=`cat conftest.err`
12943$RM conftest*
12944
12945ac_outfile=conftest.$ac_objext
12946echo "$lt_simple_link_test_code" >conftest.$ac_ext
12947eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12948_lt_linker_boilerplate=`cat conftest.err`
12949$RM -r conftest*
12950
12951
12952## CAVEAT EMPTOR:
12953## There is no encapsulation within the following macros, do not change
12954## the running order or otherwise move them around unless you know exactly
12955## what you are doing...
12956if test -n "$compiler"; then
12957
12958lt_prog_compiler_no_builtin_flag=
12959
12960if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012961 case $cc_basename in
12962 nvcc*)
12963 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12964 *)
12965 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12966 esac
cristy73bd4a52010-10-05 11:24:23 +000012967
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12969$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012970if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012971 $as_echo_n "(cached) " >&6
12972else
12973 lt_cv_prog_compiler_rtti_exceptions=no
12974 ac_outfile=conftest.$ac_objext
12975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12976 lt_compiler_flag="-fno-rtti -fno-exceptions"
12977 # Insert the option either (1) after the last *FLAGS variable, or
12978 # (2) before a word containing "conftest.", or (3) at the end.
12979 # Note that $ac_compile itself does not contain backslashes and begins
12980 # with a dollar sign (not a hyphen), so the echo should work correctly.
12981 # The option is referenced via a variable to avoid confusing sed.
12982 lt_compile=`echo "$ac_compile" | $SED \
12983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12985 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012987 (eval "$lt_compile" 2>conftest.err)
12988 ac_status=$?
12989 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012991 if (exit $ac_status) && test -s "$ac_outfile"; then
12992 # The compiler can only warn and ignore the option if not recognized
12993 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12997 lt_cv_prog_compiler_rtti_exceptions=yes
12998 fi
12999 fi
13000 $RM conftest*
13001
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13004$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13005
13006if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13007 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13008else
13009 :
13010fi
13011
13012fi
13013
13014
13015
13016
13017
13018
13019 lt_prog_compiler_wl=
13020lt_prog_compiler_pic=
13021lt_prog_compiler_static=
13022
cristy73bd4a52010-10-05 11:24:23 +000013023
13024 if test "$GCC" = yes; then
13025 lt_prog_compiler_wl='-Wl,'
13026 lt_prog_compiler_static='-static'
13027
13028 case $host_os in
13029 aix*)
13030 # All AIX code is PIC.
13031 if test "$host_cpu" = ia64; then
13032 # AIX 5 now supports IA64 processor
13033 lt_prog_compiler_static='-Bstatic'
13034 fi
13035 ;;
13036
13037 amigaos*)
13038 case $host_cpu in
13039 powerpc)
13040 # see comment about AmigaOS4 .so support
13041 lt_prog_compiler_pic='-fPIC'
13042 ;;
13043 m68k)
13044 # FIXME: we need at least 68020 code to build shared libraries, but
13045 # adding the `-m68020' flag to GCC prevents building anything better,
13046 # like `-m68040'.
13047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13048 ;;
13049 esac
13050 ;;
13051
13052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13053 # PIC is the default for these OSes.
13054 ;;
13055
13056 mingw* | cygwin* | pw32* | os2* | cegcc*)
13057 # This hack is so that the source file can tell whether it is being
13058 # built for inclusion in a dll (and should export symbols for example).
13059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13060 # (--disable-auto-import) libraries
13061 lt_prog_compiler_pic='-DDLL_EXPORT'
13062 ;;
13063
13064 darwin* | rhapsody*)
13065 # PIC is the default on this platform
13066 # Common symbols not allowed in MH_DYLIB files
13067 lt_prog_compiler_pic='-fno-common'
13068 ;;
13069
cristy0c60a692010-11-04 01:09:47 +000013070 haiku*)
13071 # PIC is the default for Haiku.
13072 # The "-static" flag exists, but is broken.
13073 lt_prog_compiler_static=
13074 ;;
13075
cristy73bd4a52010-10-05 11:24:23 +000013076 hpux*)
13077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13079 # sets the default TLS model and affects inlining.
13080 case $host_cpu in
13081 hppa*64*)
13082 # +Z the default
13083 ;;
13084 *)
13085 lt_prog_compiler_pic='-fPIC'
13086 ;;
13087 esac
13088 ;;
13089
13090 interix[3-9]*)
13091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13092 # Instead, we relocate shared libraries at runtime.
13093 ;;
13094
13095 msdosdjgpp*)
13096 # Just because we use GCC doesn't mean we suddenly get shared libraries
13097 # on systems that don't support them.
13098 lt_prog_compiler_can_build_shared=no
13099 enable_shared=no
13100 ;;
13101
13102 *nto* | *qnx*)
13103 # QNX uses GNU C++, but need to define -shared option too, otherwise
13104 # it will coredump.
13105 lt_prog_compiler_pic='-fPIC -shared'
13106 ;;
13107
13108 sysv4*MP*)
13109 if test -d /usr/nec; then
13110 lt_prog_compiler_pic=-Kconform_pic
13111 fi
13112 ;;
13113
13114 *)
13115 lt_prog_compiler_pic='-fPIC'
13116 ;;
13117 esac
cristy0c60a692010-11-04 01:09:47 +000013118
13119 case $cc_basename in
13120 nvcc*) # Cuda Compiler Driver 2.2
13121 lt_prog_compiler_wl='-Xlinker '
13122 lt_prog_compiler_pic='-Xcompiler -fPIC'
13123 ;;
13124 esac
cristy73bd4a52010-10-05 11:24:23 +000013125 else
13126 # PORTME Check for flag to pass linker flags through the system compiler.
13127 case $host_os in
13128 aix*)
13129 lt_prog_compiler_wl='-Wl,'
13130 if test "$host_cpu" = ia64; then
13131 # AIX 5 now supports IA64 processor
13132 lt_prog_compiler_static='-Bstatic'
13133 else
13134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13135 fi
13136 ;;
13137
13138 mingw* | cygwin* | pw32* | os2* | cegcc*)
13139 # This hack is so that the source file can tell whether it is being
13140 # built for inclusion in a dll (and should export symbols for example).
13141 lt_prog_compiler_pic='-DDLL_EXPORT'
13142 ;;
13143
13144 hpux9* | hpux10* | hpux11*)
13145 lt_prog_compiler_wl='-Wl,'
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13148 case $host_cpu in
13149 hppa*64*|ia64*)
13150 # +Z the default
13151 ;;
13152 *)
13153 lt_prog_compiler_pic='+Z'
13154 ;;
13155 esac
13156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13157 lt_prog_compiler_static='${wl}-a ${wl}archive'
13158 ;;
13159
13160 irix5* | irix6* | nonstopux*)
13161 lt_prog_compiler_wl='-Wl,'
13162 # PIC (with -KPIC) is the default.
13163 lt_prog_compiler_static='-non_shared'
13164 ;;
13165
cristy0c60a692010-11-04 01:09:47 +000013166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013167 case $cc_basename in
13168 # old Intel for x86_64 which still supported -KPIC.
13169 ecc*)
13170 lt_prog_compiler_wl='-Wl,'
13171 lt_prog_compiler_pic='-KPIC'
13172 lt_prog_compiler_static='-static'
13173 ;;
13174 # icc used to be incompatible with GCC.
13175 # ICC 10 doesn't accept -KPIC any more.
13176 icc* | ifort*)
13177 lt_prog_compiler_wl='-Wl,'
13178 lt_prog_compiler_pic='-fPIC'
13179 lt_prog_compiler_static='-static'
13180 ;;
13181 # Lahey Fortran 8.1.
13182 lf95*)
13183 lt_prog_compiler_wl='-Wl,'
13184 lt_prog_compiler_pic='--shared'
13185 lt_prog_compiler_static='--static'
13186 ;;
cristyda16f162011-02-19 23:52:17 +000013187 nagfor*)
13188 # NAG Fortran compiler
13189 lt_prog_compiler_wl='-Wl,-Wl,,'
13190 lt_prog_compiler_pic='-PIC'
13191 lt_prog_compiler_static='-Bstatic'
13192 ;;
cristy0c60a692010-11-04 01:09:47 +000013193 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013194 # Portland Group compilers (*not* the Pentium gcc compiler,
13195 # which looks to be a dead project)
13196 lt_prog_compiler_wl='-Wl,'
13197 lt_prog_compiler_pic='-fpic'
13198 lt_prog_compiler_static='-Bstatic'
13199 ;;
13200 ccc*)
13201 lt_prog_compiler_wl='-Wl,'
13202 # All Alpha code is PIC.
13203 lt_prog_compiler_static='-non_shared'
13204 ;;
cristy0c60a692010-11-04 01:09:47 +000013205 xl* | bgxl* | bgf* | mpixl*)
13206 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013207 lt_prog_compiler_wl='-Wl,'
13208 lt_prog_compiler_pic='-qpic'
13209 lt_prog_compiler_static='-qstaticlink'
13210 ;;
13211 *)
13212 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013213 *Sun\ F* | *Sun*Fortran*)
13214 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13215 lt_prog_compiler_pic='-KPIC'
13216 lt_prog_compiler_static='-Bstatic'
13217 lt_prog_compiler_wl=''
13218 ;;
cristy73bd4a52010-10-05 11:24:23 +000013219 *Sun\ C*)
13220 # Sun C 5.9
13221 lt_prog_compiler_pic='-KPIC'
13222 lt_prog_compiler_static='-Bstatic'
13223 lt_prog_compiler_wl='-Wl,'
13224 ;;
cristy73bd4a52010-10-05 11:24:23 +000013225 esac
13226 ;;
13227 esac
13228 ;;
13229
13230 newsos6)
13231 lt_prog_compiler_pic='-KPIC'
13232 lt_prog_compiler_static='-Bstatic'
13233 ;;
13234
13235 *nto* | *qnx*)
13236 # QNX uses GNU C++, but need to define -shared option too, otherwise
13237 # it will coredump.
13238 lt_prog_compiler_pic='-fPIC -shared'
13239 ;;
13240
13241 osf3* | osf4* | osf5*)
13242 lt_prog_compiler_wl='-Wl,'
13243 # All OSF/1 code is PIC.
13244 lt_prog_compiler_static='-non_shared'
13245 ;;
13246
13247 rdos*)
13248 lt_prog_compiler_static='-non_shared'
13249 ;;
13250
13251 solaris*)
13252 lt_prog_compiler_pic='-KPIC'
13253 lt_prog_compiler_static='-Bstatic'
13254 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013255 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013256 lt_prog_compiler_wl='-Qoption ld ';;
13257 *)
13258 lt_prog_compiler_wl='-Wl,';;
13259 esac
13260 ;;
13261
13262 sunos4*)
13263 lt_prog_compiler_wl='-Qoption ld '
13264 lt_prog_compiler_pic='-PIC'
13265 lt_prog_compiler_static='-Bstatic'
13266 ;;
13267
13268 sysv4 | sysv4.2uw2* | sysv4.3*)
13269 lt_prog_compiler_wl='-Wl,'
13270 lt_prog_compiler_pic='-KPIC'
13271 lt_prog_compiler_static='-Bstatic'
13272 ;;
13273
13274 sysv4*MP*)
13275 if test -d /usr/nec ;then
13276 lt_prog_compiler_pic='-Kconform_pic'
13277 lt_prog_compiler_static='-Bstatic'
13278 fi
13279 ;;
13280
13281 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13282 lt_prog_compiler_wl='-Wl,'
13283 lt_prog_compiler_pic='-KPIC'
13284 lt_prog_compiler_static='-Bstatic'
13285 ;;
13286
13287 unicos*)
13288 lt_prog_compiler_wl='-Wl,'
13289 lt_prog_compiler_can_build_shared=no
13290 ;;
13291
13292 uts4*)
13293 lt_prog_compiler_pic='-pic'
13294 lt_prog_compiler_static='-Bstatic'
13295 ;;
13296
13297 *)
13298 lt_prog_compiler_can_build_shared=no
13299 ;;
13300 esac
13301 fi
13302
13303case $host_os in
13304 # For platforms which do not support PIC, -DPIC is meaningless:
13305 *djgpp*)
13306 lt_prog_compiler_pic=
13307 ;;
13308 *)
13309 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13310 ;;
13311esac
cristy73bd4a52010-10-05 11:24:23 +000013312
cristyda16f162011-02-19 23:52:17 +000013313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13314$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13315if ${lt_cv_prog_compiler_pic+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317else
13318 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13319fi
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13321$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13322lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013323
13324#
13325# Check to make sure the PIC flag actually works.
13326#
13327if test -n "$lt_prog_compiler_pic"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13329$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013330if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013331 $as_echo_n "(cached) " >&6
13332else
13333 lt_cv_prog_compiler_pic_works=no
13334 ac_outfile=conftest.$ac_objext
13335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13336 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13337 # Insert the option either (1) after the last *FLAGS variable, or
13338 # (2) before a word containing "conftest.", or (3) at the end.
13339 # Note that $ac_compile itself does not contain backslashes and begins
13340 # with a dollar sign (not a hyphen), so the echo should work correctly.
13341 # The option is referenced via a variable to avoid confusing sed.
13342 lt_compile=`echo "$ac_compile" | $SED \
13343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13345 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013347 (eval "$lt_compile" 2>conftest.err)
13348 ac_status=$?
13349 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013351 if (exit $ac_status) && test -s "$ac_outfile"; then
13352 # The compiler can only warn and ignore the option if not recognized
13353 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13357 lt_cv_prog_compiler_pic_works=yes
13358 fi
13359 fi
13360 $RM conftest*
13361
13362fi
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13364$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13365
13366if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13367 case $lt_prog_compiler_pic in
13368 "" | " "*) ;;
13369 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13370 esac
13371else
13372 lt_prog_compiler_pic=
13373 lt_prog_compiler_can_build_shared=no
13374fi
13375
13376fi
13377
13378
13379
13380
13381
13382
cristyda16f162011-02-19 23:52:17 +000013383
13384
13385
13386
13387
cristy73bd4a52010-10-05 11:24:23 +000013388#
13389# Check to make sure the static flag actually works.
13390#
13391wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13393$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013394if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013395 $as_echo_n "(cached) " >&6
13396else
13397 lt_cv_prog_compiler_static_works=no
13398 save_LDFLAGS="$LDFLAGS"
13399 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13400 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13402 # The linker can only warn and ignore the option if not recognized
13403 # So say no if there are warnings
13404 if test -s conftest.err; then
13405 # Append any errors to the config.log.
13406 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013407 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13409 if diff conftest.exp conftest.er2 >/dev/null; then
13410 lt_cv_prog_compiler_static_works=yes
13411 fi
13412 else
13413 lt_cv_prog_compiler_static_works=yes
13414 fi
13415 fi
13416 $RM -r conftest*
13417 LDFLAGS="$save_LDFLAGS"
13418
13419fi
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13421$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13422
13423if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13424 :
13425else
13426 lt_prog_compiler_static=
13427fi
13428
13429
13430
13431
13432
13433
13434
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13436$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013437if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013438 $as_echo_n "(cached) " >&6
13439else
13440 lt_cv_prog_compiler_c_o=no
13441 $RM -r conftest 2>/dev/null
13442 mkdir conftest
13443 cd conftest
13444 mkdir out
13445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13446
13447 lt_compiler_flag="-o out/conftest2.$ac_objext"
13448 # Insert the option either (1) after the last *FLAGS variable, or
13449 # (2) before a word containing "conftest.", or (3) at the end.
13450 # Note that $ac_compile itself does not contain backslashes and begins
13451 # with a dollar sign (not a hyphen), so the echo should work correctly.
13452 lt_compile=`echo "$ac_compile" | $SED \
13453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13455 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013457 (eval "$lt_compile" 2>out/conftest.err)
13458 ac_status=$?
13459 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13462 then
13463 # The compiler can only warn and ignore the option if not recognized
13464 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13468 lt_cv_prog_compiler_c_o=yes
13469 fi
13470 fi
13471 chmod u+w . 2>&5
13472 $RM conftest*
13473 # SGI C++ compiler will create directory out/ii_files/ for
13474 # template instantiation
13475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13476 $RM out/* && rmdir out
13477 cd ..
13478 $RM -r conftest
13479 $RM conftest*
13480
13481fi
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13483$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13484
13485
13486
13487
13488
13489
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13491$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013492if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013493 $as_echo_n "(cached) " >&6
13494else
13495 lt_cv_prog_compiler_c_o=no
13496 $RM -r conftest 2>/dev/null
13497 mkdir conftest
13498 cd conftest
13499 mkdir out
13500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13501
13502 lt_compiler_flag="-o out/conftest2.$ac_objext"
13503 # Insert the option either (1) after the last *FLAGS variable, or
13504 # (2) before a word containing "conftest.", or (3) at the end.
13505 # Note that $ac_compile itself does not contain backslashes and begins
13506 # with a dollar sign (not a hyphen), so the echo should work correctly.
13507 lt_compile=`echo "$ac_compile" | $SED \
13508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13510 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013512 (eval "$lt_compile" 2>out/conftest.err)
13513 ac_status=$?
13514 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13517 then
13518 # The compiler can only warn and ignore the option if not recognized
13519 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13523 lt_cv_prog_compiler_c_o=yes
13524 fi
13525 fi
13526 chmod u+w . 2>&5
13527 $RM conftest*
13528 # SGI C++ compiler will create directory out/ii_files/ for
13529 # template instantiation
13530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13531 $RM out/* && rmdir out
13532 cd ..
13533 $RM -r conftest
13534 $RM conftest*
13535
13536fi
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13538$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13539
13540
13541
13542
13543hard_links="nottested"
13544if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13545 # do not overwrite the value of need_locks provided by the user
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13547$as_echo_n "checking if we can lock with hard links... " >&6; }
13548 hard_links=yes
13549 $RM conftest*
13550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13551 touch conftest.a
13552 ln conftest.a conftest.b 2>&5 || hard_links=no
13553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13555$as_echo "$hard_links" >&6; }
13556 if test "$hard_links" = no; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13558$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13559 need_locks=warn
13560 fi
13561else
13562 need_locks=no
13563fi
13564
13565
13566
13567
13568
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13571$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13572
13573 runpath_var=
13574 allow_undefined_flag=
13575 always_export_symbols=no
13576 archive_cmds=
13577 archive_expsym_cmds=
13578 compiler_needs_object=no
13579 enable_shared_with_static_runtimes=no
13580 export_dynamic_flag_spec=
13581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13582 hardcode_automatic=no
13583 hardcode_direct=no
13584 hardcode_direct_absolute=no
13585 hardcode_libdir_flag_spec=
13586 hardcode_libdir_flag_spec_ld=
13587 hardcode_libdir_separator=
13588 hardcode_minus_L=no
13589 hardcode_shlibpath_var=unsupported
13590 inherit_rpath=no
13591 link_all_deplibs=unknown
13592 module_cmds=
13593 module_expsym_cmds=
13594 old_archive_from_new_cmds=
13595 old_archive_from_expsyms_cmds=
13596 thread_safe_flag_spec=
13597 whole_archive_flag_spec=
13598 # include_expsyms should be a list of space-separated symbols to be *always*
13599 # included in the symbol list
13600 include_expsyms=
13601 # exclude_expsyms can be an extended regexp of symbols to exclude
13602 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13603 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13604 # as well as any symbol that contains `d'.
13605 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13606 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13607 # platforms (ab)use it in PIC code, but their linkers get confused if
13608 # the symbol is explicitly referenced. Since portable code cannot
13609 # rely on this symbol name, it's probably fine to never include it in
13610 # preloaded symbol tables.
13611 # Exclude shared library initialization/finalization symbols.
13612 extract_expsyms_cmds=
13613
13614 case $host_os in
13615 cygwin* | mingw* | pw32* | cegcc*)
13616 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13617 # When not using gcc, we currently assume that we are using
13618 # Microsoft Visual C++.
13619 if test "$GCC" != yes; then
13620 with_gnu_ld=no
13621 fi
13622 ;;
13623 interix*)
13624 # we just hope/assume this is gcc and not c89 (= MSVC++)
13625 with_gnu_ld=yes
13626 ;;
13627 openbsd*)
13628 with_gnu_ld=no
13629 ;;
13630 esac
13631
13632 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013633
13634 # On some targets, GNU ld is compatible enough with the native linker
13635 # that we're better off using the native interface for both.
13636 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013637 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013638 case $host_os in
13639 aix*)
13640 # The AIX port of GNU ld has always aspired to compatibility
13641 # with the native linker. However, as the warning in the GNU ld
13642 # block says, versions before 2.19.5* couldn't really create working
13643 # shared libraries, regardless of the interface used.
13644 case `$LD -v 2>&1` in
13645 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13646 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13647 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13648 *)
13649 lt_use_gnu_ld_interface=yes
13650 ;;
13651 esac
13652 ;;
13653 *)
13654 lt_use_gnu_ld_interface=yes
13655 ;;
13656 esac
13657 fi
13658
13659 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013660 # If archive_cmds runs LD, not CC, wlarc should be empty
13661 wlarc='${wl}'
13662
13663 # Set some defaults for GNU ld with shared library support. These
13664 # are reset later if shared libraries are not supported. Putting them
13665 # here allows them to be overridden if necessary.
13666 runpath_var=LD_RUN_PATH
13667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13668 export_dynamic_flag_spec='${wl}--export-dynamic'
13669 # ancient GNU ld didn't support --whole-archive et. al.
13670 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13671 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13672 else
13673 whole_archive_flag_spec=
13674 fi
13675 supports_anon_versioning=no
13676 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013677 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013678 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13681 *\ 2.11.*) ;; # other 2.11 versions
13682 *) supports_anon_versioning=yes ;;
13683 esac
13684
13685 # See if GNU ld supports shared libraries.
13686 case $host_os in
13687 aix[3-9]*)
13688 # On AIX/PPC, the GNU linker is very broken
13689 if test "$host_cpu" != ia64; then
13690 ld_shlibs=no
13691 cat <<_LT_EOF 1>&2
13692
cristy0c60a692010-11-04 01:09:47 +000013693*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013694*** to be unable to reliably create shared libraries on AIX.
13695*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013696*** really care for shared libraries, you may want to install binutils
13697*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13698*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013699
13700_LT_EOF
13701 fi
13702 ;;
13703
13704 amigaos*)
13705 case $host_cpu in
13706 powerpc)
13707 # see comment about AmigaOS4 .so support
13708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13709 archive_expsym_cmds=''
13710 ;;
13711 m68k)
13712 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)'
13713 hardcode_libdir_flag_spec='-L$libdir'
13714 hardcode_minus_L=yes
13715 ;;
13716 esac
13717 ;;
13718
13719 beos*)
13720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13721 allow_undefined_flag=unsupported
13722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13723 # support --undefined. This deserves some investigation. FIXME
13724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 else
13726 ld_shlibs=no
13727 fi
13728 ;;
13729
13730 cygwin* | mingw* | pw32* | cegcc*)
13731 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13732 # as there is no search path for DLLs.
13733 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013734 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013735 allow_undefined_flag=unsupported
13736 always_export_symbols=no
13737 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013738 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'
13739 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 +000013740
13741 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13743 # If the export-symbols file already is a .def file (1st line
13744 # is EXPORTS), use it as is; otherwise, prepend...
13745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13746 cp $export_symbols $output_objdir/$soname.def;
13747 else
13748 echo EXPORTS > $output_objdir/$soname.def;
13749 cat $export_symbols >> $output_objdir/$soname.def;
13750 fi~
13751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13752 else
13753 ld_shlibs=no
13754 fi
13755 ;;
13756
cristy0c60a692010-11-04 01:09:47 +000013757 haiku*)
13758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 link_all_deplibs=yes
13760 ;;
13761
cristy73bd4a52010-10-05 11:24:23 +000013762 interix[3-9]*)
13763 hardcode_direct=no
13764 hardcode_shlibpath_var=no
13765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13766 export_dynamic_flag_spec='${wl}-E'
13767 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13768 # Instead, shared libraries are loaded at an image base (0x10000000 by
13769 # default) and relocated if they conflict, which is a slow very memory
13770 # consuming and fragmenting process. To avoid this, we pick a random,
13771 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13772 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13773 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13774 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'
13775 ;;
13776
cristy0c60a692010-11-04 01:09:47 +000013777 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013778 tmp_diet=no
13779 if test "$host_os" = linux-dietlibc; then
13780 case $cc_basename in
13781 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13782 esac
13783 fi
13784 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13785 && test "$tmp_diet" = no
13786 then
cristyda16f162011-02-19 23:52:17 +000013787 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013788 tmp_sharedflag='-shared'
13789 case $cc_basename,$host_cpu in
13790 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013791 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 +000013792 tmp_addflag=' $pic_flag'
13793 ;;
cristy0c60a692010-11-04 01:09:47 +000013794 pgf77* | pgf90* | pgf95* | pgfortran*)
13795 # Portland Group f77 and f90 compilers
13796 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 +000013797 tmp_addflag=' $pic_flag -Mnomain' ;;
13798 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13799 tmp_addflag=' -i_dynamic' ;;
13800 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13801 tmp_addflag=' -i_dynamic -nofor_main' ;;
13802 ifc* | ifort*) # Intel Fortran compiler
13803 tmp_addflag=' -nofor_main' ;;
13804 lf95*) # Lahey Fortran 8.1
13805 whole_archive_flag_spec=
13806 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013807 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013808 tmp_sharedflag='-qmkshrobj'
13809 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013810 nvcc*) # Cuda Compiler Driver 2.2
13811 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'
13812 compiler_needs_object=yes
13813 ;;
cristy73bd4a52010-10-05 11:24:23 +000013814 esac
13815 case `$CC -V 2>&1 | sed 5q` in
13816 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013817 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 +000013818 compiler_needs_object=yes
13819 tmp_sharedflag='-G' ;;
13820 *Sun\ F*) # Sun Fortran 8.3
13821 tmp_sharedflag='-G' ;;
13822 esac
13823 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824
13825 if test "x$supports_anon_versioning" = xyes; then
13826 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13828 echo "local: *; };" >> $output_objdir/$libname.ver~
13829 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13830 fi
13831
13832 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013833 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013834 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13835 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13836 hardcode_libdir_flag_spec=
13837 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013838 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013839 if test "x$supports_anon_versioning" = xyes; then
13840 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13842 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013843 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013844 fi
13845 ;;
13846 esac
13847 else
13848 ld_shlibs=no
13849 fi
13850 ;;
13851
13852 netbsd*)
13853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13854 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13855 wlarc=
13856 else
cristyda16f162011-02-19 23:52:17 +000013857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13858 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 +000013859 fi
13860 ;;
13861
13862 solaris*)
13863 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13864 ld_shlibs=no
13865 cat <<_LT_EOF 1>&2
13866
13867*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13868*** create shared libraries on Solaris systems. Therefore, libtool
13869*** is disabling shared libraries support. We urge you to upgrade GNU
13870*** binutils to release 2.9.1 or newer. Another option is to modify
13871*** your PATH or compiler configuration so that the native linker is
13872*** used, and then restart.
13873
13874_LT_EOF
13875 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877 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 +000013878 else
13879 ld_shlibs=no
13880 fi
13881 ;;
13882
13883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13884 case `$LD -v 2>&1` in
13885 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13886 ld_shlibs=no
13887 cat <<_LT_EOF 1>&2
13888
13889*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13890*** reliably create shared libraries on SCO systems. Therefore, libtool
13891*** is disabling shared libraries support. We urge you to upgrade GNU
13892*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13893*** your PATH or compiler configuration so that the native linker is
13894*** used, and then restart.
13895
13896_LT_EOF
13897 ;;
13898 *)
13899 # For security reasons, it is highly recommended that you always
13900 # use absolute paths for naming shared libraries, and exclude the
13901 # DT_RUNPATH tag from executables and libraries. But doing so
13902 # requires that you compile everything twice, which is a pain.
13903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13907 else
13908 ld_shlibs=no
13909 fi
13910 ;;
13911 esac
13912 ;;
13913
13914 sunos4*)
13915 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916 wlarc=
13917 hardcode_direct=yes
13918 hardcode_shlibpath_var=no
13919 ;;
13920
13921 *)
13922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13924 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 +000013925 else
13926 ld_shlibs=no
13927 fi
13928 ;;
13929 esac
13930
13931 if test "$ld_shlibs" = no; then
13932 runpath_var=
13933 hardcode_libdir_flag_spec=
13934 export_dynamic_flag_spec=
13935 whole_archive_flag_spec=
13936 fi
13937 else
13938 # PORTME fill in a description of your system's linker (not GNU ld)
13939 case $host_os in
13940 aix3*)
13941 allow_undefined_flag=unsupported
13942 always_export_symbols=yes
13943 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'
13944 # Note: this linker hardcodes the directories in LIBPATH if there
13945 # are no directories specified by -L.
13946 hardcode_minus_L=yes
13947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13948 # Neither direct hardcoding nor static linking is supported with a
13949 # broken collect2.
13950 hardcode_direct=unsupported
13951 fi
13952 ;;
13953
13954 aix[4-9]*)
13955 if test "$host_cpu" = ia64; then
13956 # On IA64, the linker does run time linking by default, so we don't
13957 # have to do anything special.
13958 aix_use_runtimelinking=no
13959 exp_sym_flag='-Bexport'
13960 no_entry_flag=""
13961 else
13962 # If we're using GNU nm, then we don't want the "-C" option.
13963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013964 # Also, AIX nm treats weak defined symbols like other global
13965 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013967 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 +000013968 else
13969 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'
13970 fi
13971 aix_use_runtimelinking=no
13972
13973 # Test if we are trying to use run time linking or normal
13974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13975 # need to do runtime linking.
13976 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13977 for ld_flag in $LDFLAGS; do
13978 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13979 aix_use_runtimelinking=yes
13980 break
13981 fi
13982 done
13983 ;;
13984 esac
13985
13986 exp_sym_flag='-bexport'
13987 no_entry_flag='-bnoentry'
13988 fi
13989
13990 # When large executables or shared objects are built, AIX ld can
13991 # have problems creating the table of contents. If linking a library
13992 # or program results in "error TOC overflow" add -mminimal-toc to
13993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13995
13996 archive_cmds=''
13997 hardcode_direct=yes
13998 hardcode_direct_absolute=yes
13999 hardcode_libdir_separator=':'
14000 link_all_deplibs=yes
14001 file_list_spec='${wl}-f,'
14002
14003 if test "$GCC" = yes; then
14004 case $host_os in aix4.[012]|aix4.[012].*)
14005 # We only want to do this on AIX 4.2 and lower, the check
14006 # below for broken collect2 doesn't work under 4.3+
14007 collect2name=`${CC} -print-prog-name=collect2`
14008 if test -f "$collect2name" &&
14009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14010 then
14011 # We have reworked collect2
14012 :
14013 else
14014 # We have old collect2
14015 hardcode_direct=unsupported
14016 # It fails to find uninstalled libraries when the uninstalled
14017 # path is not listed in the libpath. Setting hardcode_minus_L
14018 # to unsupported forces relinking
14019 hardcode_minus_L=yes
14020 hardcode_libdir_flag_spec='-L$libdir'
14021 hardcode_libdir_separator=
14022 fi
14023 ;;
14024 esac
14025 shared_flag='-shared'
14026 if test "$aix_use_runtimelinking" = yes; then
14027 shared_flag="$shared_flag "'${wl}-G'
14028 fi
14029 else
14030 # not using gcc
14031 if test "$host_cpu" = ia64; then
14032 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14033 # chokes on -Wl,-G. The following line is correct:
14034 shared_flag='-G'
14035 else
14036 if test "$aix_use_runtimelinking" = yes; then
14037 shared_flag='${wl}-G'
14038 else
14039 shared_flag='${wl}-bM:SRE'
14040 fi
14041 fi
14042 fi
14043
14044 export_dynamic_flag_spec='${wl}-bexpall'
14045 # It seems that -bexpall does not export symbols beginning with
14046 # underscore (_), so it is better to generate a list of symbols to export.
14047 always_export_symbols=yes
14048 if test "$aix_use_runtimelinking" = yes; then
14049 # Warning - without using the other runtime loading flags (-brtl),
14050 # -berok will link without error, but may produce a broken library.
14051 allow_undefined_flag='-berok'
14052 # Determine the default libpath from the value encoded in an
14053 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014054 if test "${lt_cv_aix_libpath+set}" = set; then
14055 aix_libpath=$lt_cv_aix_libpath
14056else
14057 if ${lt_cv_aix_libpath_+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014061/* end confdefs.h. */
14062
14063int
14064main ()
14065{
14066
14067 ;
14068 return 0;
14069}
14070_ACEOF
14071if ac_fn_c_try_link "$LINENO"; then :
14072
cristyda16f162011-02-19 23:52:17 +000014073 lt_aix_libpath_sed='
14074 /Import File Strings/,/^$/ {
14075 /^0/ {
14076 s/^0 *\([^ ]*\) *$/\1/
14077 p
14078 }
14079 }'
14080 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14081 # Check for a 64-bit object if we didn't find anything.
14082 if test -z "$lt_cv_aix_libpath_"; then
14083 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14084 fi
cristy73bd4a52010-10-05 11:24:23 +000014085fi
14086rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014088 if test -z "$lt_cv_aix_libpath_"; then
14089 lt_cv_aix_libpath_="/usr/lib:/lib"
14090 fi
14091
14092fi
14093
14094 aix_libpath=$lt_cv_aix_libpath_
14095fi
cristy73bd4a52010-10-05 11:24:23 +000014096
14097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014098 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 +000014099 else
14100 if test "$host_cpu" = ia64; then
14101 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14102 allow_undefined_flag="-z nodefs"
14103 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"
14104 else
14105 # Determine the default libpath from the value encoded in an
14106 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014107 if test "${lt_cv_aix_libpath+set}" = set; then
14108 aix_libpath=$lt_cv_aix_libpath
14109else
14110 if ${lt_cv_aix_libpath_+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112else
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014114/* end confdefs.h. */
14115
14116int
14117main ()
14118{
14119
14120 ;
14121 return 0;
14122}
14123_ACEOF
14124if ac_fn_c_try_link "$LINENO"; then :
14125
cristyda16f162011-02-19 23:52:17 +000014126 lt_aix_libpath_sed='
14127 /Import File Strings/,/^$/ {
14128 /^0/ {
14129 s/^0 *\([^ ]*\) *$/\1/
14130 p
14131 }
14132 }'
14133 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14134 # Check for a 64-bit object if we didn't find anything.
14135 if test -z "$lt_cv_aix_libpath_"; then
14136 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14137 fi
cristy73bd4a52010-10-05 11:24:23 +000014138fi
14139rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014141 if test -z "$lt_cv_aix_libpath_"; then
14142 lt_cv_aix_libpath_="/usr/lib:/lib"
14143 fi
14144
14145fi
14146
14147 aix_libpath=$lt_cv_aix_libpath_
14148fi
cristy73bd4a52010-10-05 11:24:23 +000014149
14150 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14151 # Warning - without using the other run time loading flags,
14152 # -berok will link without error, but may produce a broken library.
14153 no_undefined_flag=' ${wl}-bernotok'
14154 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014155 if test "$with_gnu_ld" = yes; then
14156 # We only use this code for GNU lds that support --whole-archive.
14157 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14158 else
14159 # Exported symbols can be pulled into shared objects from archives
14160 whole_archive_flag_spec='$convenience'
14161 fi
cristy73bd4a52010-10-05 11:24:23 +000014162 archive_cmds_need_lc=yes
14163 # This is similar to how AIX traditionally builds its shared libraries.
14164 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'
14165 fi
14166 fi
14167 ;;
14168
14169 amigaos*)
14170 case $host_cpu in
14171 powerpc)
14172 # see comment about AmigaOS4 .so support
14173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14174 archive_expsym_cmds=''
14175 ;;
14176 m68k)
14177 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)'
14178 hardcode_libdir_flag_spec='-L$libdir'
14179 hardcode_minus_L=yes
14180 ;;
14181 esac
14182 ;;
14183
14184 bsdi[45]*)
14185 export_dynamic_flag_spec=-rdynamic
14186 ;;
14187
14188 cygwin* | mingw* | pw32* | cegcc*)
14189 # When not using gcc, we currently assume that we are using
14190 # Microsoft Visual C++.
14191 # hardcode_libdir_flag_spec is actually meaningless, as there is
14192 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014193 case $cc_basename in
14194 cl*)
14195 # Native MSVC
14196 hardcode_libdir_flag_spec=' '
14197 allow_undefined_flag=unsupported
14198 always_export_symbols=yes
14199 file_list_spec='@'
14200 # Tell ltmain to make .lib files, not .a files.
14201 libext=lib
14202 # Tell ltmain to make .dll files, not .so files.
14203 shrext_cmds=".dll"
14204 # FIXME: Setting linknames here is a bad hack.
14205 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14207 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14208 else
14209 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14210 fi~
14211 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14212 linknames='
14213 # The linker will not automatically build a static lib if we build a DLL.
14214 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14215 enable_shared_with_static_runtimes=yes
14216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14217 # Don't use ranlib
14218 old_postinstall_cmds='chmod 644 $oldlib'
14219 postlink_cmds='lt_outputfile="@OUTPUT@"~
14220 lt_tool_outputfile="@TOOL_OUTPUT@"~
14221 case $lt_outputfile in
14222 *.exe|*.EXE) ;;
14223 *)
14224 lt_outputfile="$lt_outputfile.exe"
14225 lt_tool_outputfile="$lt_tool_outputfile.exe"
14226 ;;
14227 esac~
14228 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14229 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14230 $RM "$lt_outputfile.manifest";
14231 fi'
14232 ;;
14233 *)
14234 # Assume MSVC wrapper
14235 hardcode_libdir_flag_spec=' '
14236 allow_undefined_flag=unsupported
14237 # Tell ltmain to make .lib files, not .a files.
14238 libext=lib
14239 # Tell ltmain to make .dll files, not .so files.
14240 shrext_cmds=".dll"
14241 # FIXME: Setting linknames here is a bad hack.
14242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14243 # The linker will automatically build a .lib file if we build a DLL.
14244 old_archive_from_new_cmds='true'
14245 # FIXME: Should let the user specify the lib program.
14246 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14247 enable_shared_with_static_runtimes=yes
14248 ;;
14249 esac
cristy73bd4a52010-10-05 11:24:23 +000014250 ;;
14251
14252 darwin* | rhapsody*)
14253
14254
14255 archive_cmds_need_lc=no
14256 hardcode_direct=no
14257 hardcode_automatic=yes
14258 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014259 if test "$lt_cv_ld_force_load" = "yes"; then
14260 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\"`'
14261 else
14262 whole_archive_flag_spec=''
14263 fi
cristy73bd4a52010-10-05 11:24:23 +000014264 link_all_deplibs=yes
14265 allow_undefined_flag="$_lt_dar_allow_undefined"
14266 case $cc_basename in
14267 ifort*) _lt_dar_can_shared=yes ;;
14268 *) _lt_dar_can_shared=$GCC ;;
14269 esac
14270 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014271 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014272 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14273 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14274 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}"
14275 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}"
14276
14277 else
14278 ld_shlibs=no
14279 fi
14280
14281 ;;
14282
14283 dgux*)
14284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14285 hardcode_libdir_flag_spec='-L$libdir'
14286 hardcode_shlibpath_var=no
14287 ;;
14288
14289 freebsd1*)
14290 ld_shlibs=no
14291 ;;
14292
14293 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14294 # support. Future versions do this automatically, but an explicit c++rt0.o
14295 # does not break anything, and helps significantly (at the cost of a little
14296 # extra space).
14297 freebsd2.2*)
14298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14299 hardcode_libdir_flag_spec='-R$libdir'
14300 hardcode_direct=yes
14301 hardcode_shlibpath_var=no
14302 ;;
14303
14304 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14305 freebsd2*)
14306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14307 hardcode_direct=yes
14308 hardcode_minus_L=yes
14309 hardcode_shlibpath_var=no
14310 ;;
14311
14312 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14313 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014315 hardcode_libdir_flag_spec='-R$libdir'
14316 hardcode_direct=yes
14317 hardcode_shlibpath_var=no
14318 ;;
14319
14320 hpux9*)
14321 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014322 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 +000014323 else
14324 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'
14325 fi
14326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14327 hardcode_libdir_separator=:
14328 hardcode_direct=yes
14329
14330 # hardcode_minus_L: Not really in the search PATH,
14331 # but as the default location of the library.
14332 hardcode_minus_L=yes
14333 export_dynamic_flag_spec='${wl}-E'
14334 ;;
14335
14336 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014337 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014338 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 +000014339 else
14340 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14341 fi
14342 if test "$with_gnu_ld" = no; then
14343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14344 hardcode_libdir_flag_spec_ld='+b $libdir'
14345 hardcode_libdir_separator=:
14346 hardcode_direct=yes
14347 hardcode_direct_absolute=yes
14348 export_dynamic_flag_spec='${wl}-E'
14349 # hardcode_minus_L: Not really in the search PATH,
14350 # but as the default location of the library.
14351 hardcode_minus_L=yes
14352 fi
14353 ;;
14354
14355 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014357 case $host_cpu in
14358 hppa*64*)
14359 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14360 ;;
14361 ia64*)
cristyda16f162011-02-19 23:52:17 +000014362 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014363 ;;
14364 *)
cristyda16f162011-02-19 23:52:17 +000014365 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 +000014366 ;;
14367 esac
14368 else
14369 case $host_cpu in
14370 hppa*64*)
14371 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14372 ;;
14373 ia64*)
14374 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14375 ;;
14376 *)
cristy0c60a692010-11-04 01:09:47 +000014377
14378 # Older versions of the 11.00 compiler do not understand -b yet
14379 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14381$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014382if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014383 $as_echo_n "(cached) " >&6
14384else
14385 lt_cv_prog_compiler__b=no
14386 save_LDFLAGS="$LDFLAGS"
14387 LDFLAGS="$LDFLAGS -b"
14388 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14389 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14390 # The linker can only warn and ignore the option if not recognized
14391 # So say no if there are warnings
14392 if test -s conftest.err; then
14393 # Append any errors to the config.log.
14394 cat conftest.err 1>&5
14395 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14397 if diff conftest.exp conftest.er2 >/dev/null; then
14398 lt_cv_prog_compiler__b=yes
14399 fi
14400 else
14401 lt_cv_prog_compiler__b=yes
14402 fi
14403 fi
14404 $RM -r conftest*
14405 LDFLAGS="$save_LDFLAGS"
14406
14407fi
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14409$as_echo "$lt_cv_prog_compiler__b" >&6; }
14410
14411if test x"$lt_cv_prog_compiler__b" = xyes; then
14412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14413else
14414 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14415fi
14416
cristy73bd4a52010-10-05 11:24:23 +000014417 ;;
14418 esac
14419 fi
14420 if test "$with_gnu_ld" = no; then
14421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14422 hardcode_libdir_separator=:
14423
14424 case $host_cpu in
14425 hppa*64*|ia64*)
14426 hardcode_direct=no
14427 hardcode_shlibpath_var=no
14428 ;;
14429 *)
14430 hardcode_direct=yes
14431 hardcode_direct_absolute=yes
14432 export_dynamic_flag_spec='${wl}-E'
14433
14434 # hardcode_minus_L: Not really in the search PATH,
14435 # but as the default location of the library.
14436 hardcode_minus_L=yes
14437 ;;
14438 esac
14439 fi
14440 ;;
14441
14442 irix5* | irix6* | nonstopux*)
14443 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014444 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 +000014445 # Try to use the -exported_symbol ld option, if it does not
14446 # work, assume that -exports_file does not work either and
14447 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014448 # This should be the same for all languages, so no per-tag cache variable.
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14450$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14451if ${lt_cv_irix_exported_symbol+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453else
14454 save_LDFLAGS="$LDFLAGS"
14455 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014457/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014458int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014459_ACEOF
14460if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014461 lt_cv_irix_exported_symbol=yes
14462else
14463 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014464fi
14465rm -f core conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014467 LDFLAGS="$save_LDFLAGS"
14468fi
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14470$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14471 if test "$lt_cv_irix_exported_symbol" = yes; then
14472 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'
14473 fi
cristy73bd4a52010-10-05 11:24:23 +000014474 else
cristy0c60a692010-11-04 01:09:47 +000014475 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'
14476 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 +000014477 fi
14478 archive_cmds_need_lc='no'
14479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14480 hardcode_libdir_separator=:
14481 inherit_rpath=yes
14482 link_all_deplibs=yes
14483 ;;
14484
14485 netbsd*)
14486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14488 else
14489 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14490 fi
14491 hardcode_libdir_flag_spec='-R$libdir'
14492 hardcode_direct=yes
14493 hardcode_shlibpath_var=no
14494 ;;
14495
14496 newsos6)
14497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 hardcode_direct=yes
14499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14500 hardcode_libdir_separator=:
14501 hardcode_shlibpath_var=no
14502 ;;
14503
14504 *nto* | *qnx*)
14505 ;;
14506
14507 openbsd*)
14508 if test -f /usr/libexec/ld.so; then
14509 hardcode_direct=yes
14510 hardcode_shlibpath_var=no
14511 hardcode_direct_absolute=yes
14512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14516 export_dynamic_flag_spec='${wl}-E'
14517 else
14518 case $host_os in
14519 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14521 hardcode_libdir_flag_spec='-R$libdir'
14522 ;;
14523 *)
14524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14526 ;;
14527 esac
14528 fi
14529 else
14530 ld_shlibs=no
14531 fi
14532 ;;
14533
14534 os2*)
14535 hardcode_libdir_flag_spec='-L$libdir'
14536 hardcode_minus_L=yes
14537 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014538 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 +000014539 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14540 ;;
14541
14542 osf3*)
14543 if test "$GCC" = yes; then
14544 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014545 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 +000014546 else
14547 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014548 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 +000014549 fi
14550 archive_cmds_need_lc='no'
14551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14552 hardcode_libdir_separator=:
14553 ;;
14554
14555 osf4* | osf5*) # as osf3* with the addition of -msym flag
14556 if test "$GCC" = yes; then
14557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014558 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 +000014559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14560 else
14561 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014562 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 +000014563 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 +000014564 $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 +000014565
14566 # Both c and cxx compiler support -rpath directly
14567 hardcode_libdir_flag_spec='-rpath $libdir'
14568 fi
14569 archive_cmds_need_lc='no'
14570 hardcode_libdir_separator=:
14571 ;;
14572
14573 solaris*)
14574 no_undefined_flag=' -z defs'
14575 if test "$GCC" = yes; then
14576 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014577 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 +000014578 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 +000014579 $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 +000014580 else
14581 case `$CC -V 2>&1` in
14582 *"Compilers 5.0"*)
14583 wlarc=''
14584 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14586 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14587 ;;
14588 *)
14589 wlarc='${wl}'
14590 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14592 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14593 ;;
14594 esac
14595 fi
14596 hardcode_libdir_flag_spec='-R$libdir'
14597 hardcode_shlibpath_var=no
14598 case $host_os in
14599 solaris2.[0-5] | solaris2.[0-5].*) ;;
14600 *)
14601 # The compiler driver will combine and reorder linker options,
14602 # but understands `-z linker_flag'. GCC discards it without `$wl',
14603 # but is careful enough not to reorder.
14604 # Supported since Solaris 2.6 (maybe 2.5.1?)
14605 if test "$GCC" = yes; then
14606 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14607 else
14608 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14609 fi
14610 ;;
14611 esac
14612 link_all_deplibs=yes
14613 ;;
14614
14615 sunos4*)
14616 if test "x$host_vendor" = xsequent; then
14617 # Use $CC to link under sequent, because it throws in some extra .o
14618 # files that make .init and .fini sections work.
14619 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14620 else
14621 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14622 fi
14623 hardcode_libdir_flag_spec='-L$libdir'
14624 hardcode_direct=yes
14625 hardcode_minus_L=yes
14626 hardcode_shlibpath_var=no
14627 ;;
14628
14629 sysv4)
14630 case $host_vendor in
14631 sni)
14632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14633 hardcode_direct=yes # is this really true???
14634 ;;
14635 siemens)
14636 ## LD is ld it makes a PLAMLIB
14637 ## CC just makes a GrossModule.
14638 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14639 reload_cmds='$CC -r -o $output$reload_objs'
14640 hardcode_direct=no
14641 ;;
14642 motorola)
14643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14645 ;;
14646 esac
14647 runpath_var='LD_RUN_PATH'
14648 hardcode_shlibpath_var=no
14649 ;;
14650
14651 sysv4.3*)
14652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14653 hardcode_shlibpath_var=no
14654 export_dynamic_flag_spec='-Bexport'
14655 ;;
14656
14657 sysv4*MP*)
14658 if test -d /usr/nec; then
14659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660 hardcode_shlibpath_var=no
14661 runpath_var=LD_RUN_PATH
14662 hardcode_runpath_var=yes
14663 ld_shlibs=yes
14664 fi
14665 ;;
14666
14667 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14668 no_undefined_flag='${wl}-z,text'
14669 archive_cmds_need_lc=no
14670 hardcode_shlibpath_var=no
14671 runpath_var='LD_RUN_PATH'
14672
14673 if test "$GCC" = yes; then
14674 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14675 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14676 else
14677 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14679 fi
14680 ;;
14681
14682 sysv5* | sco3.2v5* | sco5v6*)
14683 # Note: We can NOT use -z defs as we might desire, because we do not
14684 # link with -lc, and that would cause any symbols used from libc to
14685 # always be unresolved, which means just about no library would
14686 # ever link correctly. If we're not using GNU ld we use -z text
14687 # though, which does catch some bad symbols but isn't as heavy-handed
14688 # as -z defs.
14689 no_undefined_flag='${wl}-z,text'
14690 allow_undefined_flag='${wl}-z,nodefs'
14691 archive_cmds_need_lc=no
14692 hardcode_shlibpath_var=no
14693 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14694 hardcode_libdir_separator=':'
14695 link_all_deplibs=yes
14696 export_dynamic_flag_spec='${wl}-Bexport'
14697 runpath_var='LD_RUN_PATH'
14698
14699 if test "$GCC" = yes; then
14700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14702 else
14703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14705 fi
14706 ;;
14707
14708 uts4*)
14709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14710 hardcode_libdir_flag_spec='-L$libdir'
14711 hardcode_shlibpath_var=no
14712 ;;
14713
14714 *)
14715 ld_shlibs=no
14716 ;;
14717 esac
14718
14719 if test x$host_vendor = xsni; then
14720 case $host in
14721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14722 export_dynamic_flag_spec='${wl}-Blargedynsym'
14723 ;;
14724 esac
14725 fi
14726 fi
14727
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14729$as_echo "$ld_shlibs" >&6; }
14730test "$ld_shlibs" = no && can_build_shared=no
14731
14732with_gnu_ld=$with_gnu_ld
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748#
14749# Do we need to explicitly link libc?
14750#
14751case "x$archive_cmds_need_lc" in
14752x|xyes)
14753 # Assume -lc should be added
14754 archive_cmds_need_lc=yes
14755
14756 if test "$enable_shared" = yes && test "$GCC" = yes; then
14757 case $archive_cmds in
14758 *'~'*)
14759 # FIXME: we may have to deal with multi-command sequences.
14760 ;;
14761 '$CC '*)
14762 # Test whether the compiler implicitly links with -lc since on some
14763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14764 # to ld, don't add -lc before -lgcc.
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14766$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014767if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014768 $as_echo_n "(cached) " >&6
14769else
14770 $RM conftest*
14771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014772
cristy0c60a692010-11-04 01:09:47 +000014773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014774 (eval $ac_compile) 2>&5
14775 ac_status=$?
14776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14777 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014778 soname=conftest
14779 lib=conftest
14780 libobjs=conftest.$ac_objext
14781 deplibs=
14782 wl=$lt_prog_compiler_wl
14783 pic_flag=$lt_prog_compiler_pic
14784 compiler_flags=-v
14785 linker_flags=-v
14786 verstring=
14787 output_objdir=.
14788 libname=conftest
14789 lt_save_allow_undefined_flag=$allow_undefined_flag
14790 allow_undefined_flag=
14791 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 +000014792 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14793 ac_status=$?
14794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14795 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014796 then
14797 lt_cv_archive_cmds_need_lc=no
14798 else
14799 lt_cv_archive_cmds_need_lc=yes
14800 fi
14801 allow_undefined_flag=$lt_save_allow_undefined_flag
14802 else
14803 cat conftest.err 1>&5
14804 fi
14805 $RM conftest*
14806
14807fi
14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14809$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14810 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014811 ;;
14812 esac
14813 fi
14814 ;;
14815esac
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14974$as_echo_n "checking dynamic linker characteristics... " >&6; }
14975
14976if test "$GCC" = yes; then
14977 case $host_os in
14978 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14979 *) lt_awk_arg="/^libraries:/" ;;
14980 esac
cristy0c60a692010-11-04 01:09:47 +000014981 case $host_os in
14982 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14983 *) lt_sed_strip_eq="s,=/,/,g" ;;
14984 esac
14985 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14986 case $lt_search_path_spec in
14987 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014988 # if the path contains ";" then we assume it to be the separator
14989 # otherwise default to the standard path separator (i.e. ":") - it is
14990 # assumed that no part of a normal pathname contains ";" but that should
14991 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014992 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14993 ;;
14994 *)
14995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14996 ;;
14997 esac
cristy73bd4a52010-10-05 11:24:23 +000014998 # Ok, now we have the path, separated by spaces, we can step through it
14999 # and add multilib dir if necessary.
15000 lt_tmp_lt_search_path_spec=
15001 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15002 for lt_sys_path in $lt_search_path_spec; do
15003 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15004 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15005 else
15006 test -d "$lt_sys_path" && \
15007 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15008 fi
15009 done
cristy0c60a692010-11-04 01:09:47 +000015010 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015011BEGIN {RS=" "; FS="/|\n";} {
15012 lt_foo="";
15013 lt_count=0;
15014 for (lt_i = NF; lt_i > 0; lt_i--) {
15015 if ($lt_i != "" && $lt_i != ".") {
15016 if ($lt_i == "..") {
15017 lt_count++;
15018 } else {
15019 if (lt_count == 0) {
15020 lt_foo="/" $lt_i lt_foo;
15021 } else {
15022 lt_count--;
15023 }
15024 }
15025 }
15026 }
15027 if (lt_foo != "") { lt_freq[lt_foo]++; }
15028 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15029}'`
cristy0c60a692010-11-04 01:09:47 +000015030 # AWK program above erroneously prepends '/' to C:/dos/paths
15031 # for these hosts.
15032 case $host_os in
15033 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15034 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15035 esac
15036 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015037else
15038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15039fi
15040library_names_spec=
15041libname_spec='lib$name'
15042soname_spec=
15043shrext_cmds=".so"
15044postinstall_cmds=
15045postuninstall_cmds=
15046finish_cmds=
15047finish_eval=
15048shlibpath_var=
15049shlibpath_overrides_runpath=unknown
15050version_type=none
15051dynamic_linker="$host_os ld.so"
15052sys_lib_dlsearch_path_spec="/lib /usr/lib"
15053need_lib_prefix=unknown
15054hardcode_into_libs=no
15055
15056# when you set need_version to no, make sure it does not cause -set_version
15057# flags to be left without arguments
15058need_version=unknown
15059
15060case $host_os in
15061aix3*)
15062 version_type=linux
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15064 shlibpath_var=LIBPATH
15065
15066 # AIX 3 has no versioning support, so we append a major version to the name.
15067 soname_spec='${libname}${release}${shared_ext}$major'
15068 ;;
15069
15070aix[4-9]*)
15071 version_type=linux
15072 need_lib_prefix=no
15073 need_version=no
15074 hardcode_into_libs=yes
15075 if test "$host_cpu" = ia64; then
15076 # AIX 5 supports IA64
15077 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 else
15080 # With GCC up to 2.95.x, collect2 would create an import file
15081 # for dependence libraries. The import file would start with
15082 # the line `#! .'. This would cause the generated library to
15083 # depend on `.', always an invalid library. This was fixed in
15084 # development snapshots of GCC prior to 3.0.
15085 case $host_os in
15086 aix4 | aix4.[01] | aix4.[01].*)
15087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15088 echo ' yes '
15089 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15090 :
15091 else
15092 can_build_shared=no
15093 fi
15094 ;;
15095 esac
15096 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15097 # soname into executable. Probably we can add versioning support to
15098 # collect2, so additional links can be useful in future.
15099 if test "$aix_use_runtimelinking" = yes; then
15100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15101 # instead of lib<name>.a to let people know that these are not
15102 # typical AIX shared libraries.
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 else
15105 # We preserve .a as extension for shared libraries through AIX4.2
15106 # and later when we are not doing run time linking.
15107 library_names_spec='${libname}${release}.a $libname.a'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 fi
15110 shlibpath_var=LIBPATH
15111 fi
15112 ;;
15113
15114amigaos*)
15115 case $host_cpu in
15116 powerpc)
15117 # Since July 2007 AmigaOS4 officially supports .so libraries.
15118 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 ;;
15121 m68k)
15122 library_names_spec='$libname.ixlibrary $libname.a'
15123 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015124 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 +000015125 ;;
15126 esac
15127 ;;
15128
15129beos*)
15130 library_names_spec='${libname}${shared_ext}'
15131 dynamic_linker="$host_os ld.so"
15132 shlibpath_var=LIBRARY_PATH
15133 ;;
15134
15135bsdi[45]*)
15136 version_type=linux
15137 need_version=no
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15144 # the default ld.so.conf also contains /usr/contrib/lib and
15145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15146 # libtool to hard-code these into programs
15147 ;;
15148
15149cygwin* | mingw* | pw32* | cegcc*)
15150 version_type=windows
15151 shrext_cmds=".dll"
15152 need_version=no
15153 need_lib_prefix=no
15154
cristyda16f162011-02-19 23:52:17 +000015155 case $GCC,$cc_basename in
15156 yes,*)
15157 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015158 library_names_spec='$libname.dll.a'
15159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15160 postinstall_cmds='base_file=`basename \${file}`~
15161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15162 dldir=$destdir/`dirname \$dlpath`~
15163 test -d \$dldir || mkdir -p \$dldir~
15164 $install_prog $dir/$dlname \$dldir/$dlname~
15165 chmod a+x \$dldir/$dlname~
15166 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15167 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15168 fi'
15169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15170 dlpath=$dir/\$dldll~
15171 $RM \$dlpath'
15172 shlibpath_overrides_runpath=yes
15173
15174 case $host_os in
15175 cygwin*)
15176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015178
15179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015180 ;;
15181 mingw* | cegcc*)
15182 # MinGW DLLs use traditional 'lib' prefix
15183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015184 ;;
15185 pw32*)
15186 # pw32 DLLs use 'pw' prefix rather than 'lib'
15187 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15188 ;;
15189 esac
cristyda16f162011-02-19 23:52:17 +000015190 dynamic_linker='Win32 ld.exe'
15191 ;;
15192
15193 *,cl*)
15194 # Native MSVC
15195 libname_spec='$name'
15196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15197 library_names_spec='${libname}.dll.lib'
15198
15199 case $build_os in
15200 mingw*)
15201 sys_lib_search_path_spec=
15202 lt_save_ifs=$IFS
15203 IFS=';'
15204 for lt_path in $LIB
15205 do
15206 IFS=$lt_save_ifs
15207 # Let DOS variable expansion print the short 8.3 style file name.
15208 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15209 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15210 done
15211 IFS=$lt_save_ifs
15212 # Convert to MSYS style.
15213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15214 ;;
15215 cygwin*)
15216 # Convert to unix form, then to dos form, then back to unix form
15217 # but this time dos style (no spaces!) so that the unix form looks
15218 # like /cygdrive/c/PROGRA~1:/cygdr...
15219 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15220 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15221 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15222 ;;
15223 *)
15224 sys_lib_search_path_spec="$LIB"
15225 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15226 # It is most probably a Windows format PATH.
15227 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15228 else
15229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15230 fi
15231 # FIXME: find the short name or the path components, as spaces are
15232 # common. (e.g. "Program Files" -> "PROGRA~1")
15233 ;;
15234 esac
15235
15236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15237 postinstall_cmds='base_file=`basename \${file}`~
15238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15239 dldir=$destdir/`dirname \$dlpath`~
15240 test -d \$dldir || mkdir -p \$dldir~
15241 $install_prog $dir/$dlname \$dldir/$dlname'
15242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15243 dlpath=$dir/\$dldll~
15244 $RM \$dlpath'
15245 shlibpath_overrides_runpath=yes
15246 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015247 ;;
15248
15249 *)
cristyda16f162011-02-19 23:52:17 +000015250 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015252 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015253 ;;
15254 esac
cristy73bd4a52010-10-05 11:24:23 +000015255 # FIXME: first we should search . and the directory the executable is in
15256 shlibpath_var=PATH
15257 ;;
15258
15259darwin* | rhapsody*)
15260 dynamic_linker="$host_os dyld"
15261 version_type=darwin
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15265 soname_spec='${libname}${release}${major}$shared_ext'
15266 shlibpath_overrides_runpath=yes
15267 shlibpath_var=DYLD_LIBRARY_PATH
15268 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15269
15270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15272 ;;
15273
15274dgux*)
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 ;;
15282
15283freebsd1*)
15284 dynamic_linker=no
15285 ;;
15286
15287freebsd* | dragonfly*)
15288 # DragonFly does not have aout. When/if they implement a new
15289 # versioning mechanism, adjust this.
15290 if test -x /usr/bin/objformat; then
15291 objformat=`/usr/bin/objformat`
15292 else
15293 case $host_os in
15294 freebsd[123]*) objformat=aout ;;
15295 *) objformat=elf ;;
15296 esac
15297 fi
15298 version_type=freebsd-$objformat
15299 case $version_type in
15300 freebsd-elf*)
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15302 need_version=no
15303 need_lib_prefix=no
15304 ;;
15305 freebsd-*)
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15307 need_version=yes
15308 ;;
15309 esac
15310 shlibpath_var=LD_LIBRARY_PATH
15311 case $host_os in
15312 freebsd2*)
15313 shlibpath_overrides_runpath=yes
15314 ;;
15315 freebsd3.[01]* | freebsdelf3.[01]*)
15316 shlibpath_overrides_runpath=yes
15317 hardcode_into_libs=yes
15318 ;;
15319 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15320 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15321 shlibpath_overrides_runpath=no
15322 hardcode_into_libs=yes
15323 ;;
15324 *) # from 4.6 on, and DragonFly
15325 shlibpath_overrides_runpath=yes
15326 hardcode_into_libs=yes
15327 ;;
15328 esac
15329 ;;
15330
15331gnu*)
15332 version_type=linux
15333 need_lib_prefix=no
15334 need_version=no
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 hardcode_into_libs=yes
15339 ;;
15340
cristy0c60a692010-11-04 01:09:47 +000015341haiku*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 dynamic_linker="$host_os runtime_loader"
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LIBRARY_PATH
15349 shlibpath_overrides_runpath=yes
15350 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15351 hardcode_into_libs=yes
15352 ;;
15353
cristy73bd4a52010-10-05 11:24:23 +000015354hpux9* | hpux10* | hpux11*)
15355 # Give a soname corresponding to the major version so that dld.sl refuses to
15356 # link against other versions.
15357 version_type=sunos
15358 need_lib_prefix=no
15359 need_version=no
15360 case $host_cpu in
15361 ia64*)
15362 shrext_cmds='.so'
15363 hardcode_into_libs=yes
15364 dynamic_linker="$host_os dld.so"
15365 shlibpath_var=LD_LIBRARY_PATH
15366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 if test "X$HPUX_IA64_MODE" = X32; then
15370 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15371 else
15372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15373 fi
15374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15375 ;;
15376 hppa*64*)
15377 shrext_cmds='.sl'
15378 hardcode_into_libs=yes
15379 dynamic_linker="$host_os dld.sl"
15380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15386 ;;
15387 *)
15388 shrext_cmds='.sl'
15389 dynamic_linker="$host_os dld.sl"
15390 shlibpath_var=SHLIB_PATH
15391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 ;;
15395 esac
cristy0c60a692010-11-04 01:09:47 +000015396 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015397 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015398 # or fails outright, so override atomically:
15399 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015400 ;;
15401
15402interix[3-9]*)
15403 version_type=linux
15404 need_lib_prefix=no
15405 need_version=no
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath=no
15411 hardcode_into_libs=yes
15412 ;;
15413
15414irix5* | irix6* | nonstopux*)
15415 case $host_os in
15416 nonstopux*) version_type=nonstopux ;;
15417 *)
15418 if test "$lt_cv_prog_gnu_ld" = yes; then
15419 version_type=linux
15420 else
15421 version_type=irix
15422 fi ;;
15423 esac
15424 need_lib_prefix=no
15425 need_version=no
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15428 case $host_os in
15429 irix5* | nonstopux*)
15430 libsuff= shlibsuff=
15431 ;;
15432 *)
15433 case $LD in # libtool.m4 will add one of these switches to LD
15434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15435 libsuff= shlibsuff= libmagic=32-bit;;
15436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15437 libsuff=32 shlibsuff=N32 libmagic=N32;;
15438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15439 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15440 *) libsuff= shlibsuff= libmagic=never-match;;
15441 esac
15442 ;;
15443 esac
15444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15445 shlibpath_overrides_runpath=no
15446 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15447 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15448 hardcode_into_libs=yes
15449 ;;
15450
15451# No shared lib support for Linux oldld, aout, or coff.
15452linux*oldld* | linux*aout* | linux*coff*)
15453 dynamic_linker=no
15454 ;;
15455
15456# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015457linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015458 version_type=linux
15459 need_lib_prefix=no
15460 need_version=no
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015466
cristy73bd4a52010-10-05 11:24:23 +000015467 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015468 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015469 $as_echo_n "(cached) " >&6
15470else
15471 lt_cv_shlibpath_overrides_runpath=no
15472 save_LDFLAGS=$LDFLAGS
15473 save_libdir=$libdir
15474 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15475 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015477/* end confdefs.h. */
15478
15479int
15480main ()
15481{
15482
15483 ;
15484 return 0;
15485}
15486_ACEOF
15487if ac_fn_c_try_link "$LINENO"; then :
15488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015489 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015490fi
15491fi
15492rm -f core conftest.err conftest.$ac_objext \
15493 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015494 LDFLAGS=$save_LDFLAGS
15495 libdir=$save_libdir
15496
15497fi
15498
15499 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015500
15501 # This implies no fast_install, which is unacceptable.
15502 # Some rework will be needed to allow for fast_install
15503 # before this can be enabled.
15504 hardcode_into_libs=yes
15505
15506 # Add ABI-specific directories to the system library path.
15507 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15508
15509 # Append ld.so.conf contents to the search path
15510 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015511 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 +000015512 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015513
cristy73bd4a52010-10-05 11:24:23 +000015514 fi
15515
15516 # We used to test for /lib/ld.so.1 and disable shared libraries on
15517 # powerpc, because MkLinux only supported shared libraries with the
15518 # GNU dynamic linker. Since this was broken with cross compilers,
15519 # most powerpc-linux boxes support dynamic linking these days and
15520 # people can always --disable-shared, the test was removed, and we
15521 # assume the GNU/Linux dynamic linker is in use.
15522 dynamic_linker='GNU/Linux ld.so'
15523 ;;
15524
15525netbsd*)
15526 version_type=sunos
15527 need_lib_prefix=no
15528 need_version=no
15529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15532 dynamic_linker='NetBSD (a.out) ld.so'
15533 else
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 dynamic_linker='NetBSD ld.elf_so'
15537 fi
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=yes
15540 hardcode_into_libs=yes
15541 ;;
15542
15543newsos6)
15544 version_type=linux
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=yes
15548 ;;
15549
15550*nto* | *qnx*)
15551 version_type=qnx
15552 need_lib_prefix=no
15553 need_version=no
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=no
15558 hardcode_into_libs=yes
15559 dynamic_linker='ldqnx.so'
15560 ;;
15561
15562openbsd*)
15563 version_type=sunos
15564 sys_lib_dlsearch_path_spec="/usr/lib"
15565 need_lib_prefix=no
15566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15567 case $host_os in
15568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15569 *) need_version=no ;;
15570 esac
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15573 shlibpath_var=LD_LIBRARY_PATH
15574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15575 case $host_os in
15576 openbsd2.[89] | openbsd2.[89].*)
15577 shlibpath_overrides_runpath=no
15578 ;;
15579 *)
15580 shlibpath_overrides_runpath=yes
15581 ;;
15582 esac
15583 else
15584 shlibpath_overrides_runpath=yes
15585 fi
15586 ;;
15587
15588os2*)
15589 libname_spec='$name'
15590 shrext_cmds=".dll"
15591 need_lib_prefix=no
15592 library_names_spec='$libname${shared_ext} $libname.a'
15593 dynamic_linker='OS/2 ld.exe'
15594 shlibpath_var=LIBPATH
15595 ;;
15596
15597osf3* | osf4* | osf5*)
15598 version_type=osf
15599 need_lib_prefix=no
15600 need_version=no
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15606 ;;
15607
15608rdos*)
15609 dynamic_linker=no
15610 ;;
15611
15612solaris*)
15613 version_type=linux
15614 need_lib_prefix=no
15615 need_version=no
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=yes
15620 hardcode_into_libs=yes
15621 # ldd complains unless libraries are executable
15622 postinstall_cmds='chmod +x $lib'
15623 ;;
15624
15625sunos4*)
15626 version_type=sunos
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 if test "$with_gnu_ld" = yes; then
15632 need_lib_prefix=no
15633 fi
15634 need_version=yes
15635 ;;
15636
15637sysv4 | sysv4.3*)
15638 version_type=linux
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=LD_LIBRARY_PATH
15642 case $host_vendor in
15643 sni)
15644 shlibpath_overrides_runpath=no
15645 need_lib_prefix=no
15646 runpath_var=LD_RUN_PATH
15647 ;;
15648 siemens)
15649 need_lib_prefix=no
15650 ;;
15651 motorola)
15652 need_lib_prefix=no
15653 need_version=no
15654 shlibpath_overrides_runpath=no
15655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15656 ;;
15657 esac
15658 ;;
15659
15660sysv4*MP*)
15661 if test -d /usr/nec ;then
15662 version_type=linux
15663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15664 soname_spec='$libname${shared_ext}.$major'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 fi
15667 ;;
15668
15669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15670 version_type=freebsd-elf
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 shlibpath_overrides_runpath=yes
15677 hardcode_into_libs=yes
15678 if test "$with_gnu_ld" = yes; then
15679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15680 else
15681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15682 case $host_os in
15683 sco3.2v5*)
15684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15685 ;;
15686 esac
15687 fi
15688 sys_lib_dlsearch_path_spec='/usr/lib'
15689 ;;
15690
15691tpf*)
15692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15693 version_type=linux
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=no
15699 hardcode_into_libs=yes
15700 ;;
15701
15702uts4*)
15703 version_type=linux
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 ;;
15708
15709*)
15710 dynamic_linker=no
15711 ;;
15712esac
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15714$as_echo "$dynamic_linker" >&6; }
15715test "$dynamic_linker" = no && can_build_shared=no
15716
15717variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15718if test "$GCC" = yes; then
15719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15720fi
15721
15722if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15723 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15724fi
15725if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15726 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15727fi
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
cristy0c60a692010-11-04 01:09:47 +000015815
15816
15817
15818
15819
cristy73bd4a52010-10-05 11:24:23 +000015820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15821$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15822hardcode_action=
15823if test -n "$hardcode_libdir_flag_spec" ||
15824 test -n "$runpath_var" ||
15825 test "X$hardcode_automatic" = "Xyes" ; then
15826
15827 # We can hardcode non-existent directories.
15828 if test "$hardcode_direct" != no &&
15829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15830 # have to relink, otherwise we might link with an installed library
15831 # when we should be linking with a yet-to-be-installed one
15832 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15833 test "$hardcode_minus_L" != no; then
15834 # Linking always hardcodes the temporary library directory.
15835 hardcode_action=relink
15836 else
15837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15838 hardcode_action=immediate
15839 fi
15840else
15841 # We cannot hardcode anything, or else we can only hardcode existing
15842 # directories.
15843 hardcode_action=unsupported
15844fi
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15846$as_echo "$hardcode_action" >&6; }
15847
15848if test "$hardcode_action" = relink ||
15849 test "$inherit_rpath" = yes; then
15850 # Fast installation is not supported
15851 enable_fast_install=no
15852elif test "$shlibpath_overrides_runpath" = yes ||
15853 test "$enable_shared" = no; then
15854 # Fast installation is not necessary
15855 enable_fast_install=needless
15856fi
15857
15858
15859
15860
15861
15862
15863 if test "x$enable_dlopen" != xyes; then
15864 enable_dlopen=unknown
15865 enable_dlopen_self=unknown
15866 enable_dlopen_self_static=unknown
15867else
15868 lt_cv_dlopen=no
15869 lt_cv_dlopen_libs=
15870
15871 case $host_os in
15872 beos*)
15873 lt_cv_dlopen="load_add_on"
15874 lt_cv_dlopen_libs=
15875 lt_cv_dlopen_self=yes
15876 ;;
15877
15878 mingw* | pw32* | cegcc*)
15879 lt_cv_dlopen="LoadLibrary"
15880 lt_cv_dlopen_libs=
15881 ;;
15882
15883 cygwin*)
15884 lt_cv_dlopen="dlopen"
15885 lt_cv_dlopen_libs=
15886 ;;
15887
15888 darwin*)
15889 # if libdl is installed we need to link against it
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15891$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015892if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015893 $as_echo_n "(cached) " >&6
15894else
15895 ac_check_lib_save_LIBS=$LIBS
15896LIBS="-ldl $LIBS"
15897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898/* end confdefs.h. */
15899
15900/* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply. */
15903#ifdef __cplusplus
15904extern "C"
15905#endif
15906char dlopen ();
15907int
15908main ()
15909{
15910return dlopen ();
15911 ;
15912 return 0;
15913}
15914_ACEOF
15915if ac_fn_c_try_link "$LINENO"; then :
15916 ac_cv_lib_dl_dlopen=yes
15917else
15918 ac_cv_lib_dl_dlopen=no
15919fi
15920rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922LIBS=$ac_check_lib_save_LIBS
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15925$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015926if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15928else
15929
15930 lt_cv_dlopen="dyld"
15931 lt_cv_dlopen_libs=
15932 lt_cv_dlopen_self=yes
15933
15934fi
15935
15936 ;;
15937
15938 *)
15939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015940if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015941 lt_cv_dlopen="shl_load"
15942else
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15944$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015945if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015946 $as_echo_n "(cached) " >&6
15947else
15948 ac_check_lib_save_LIBS=$LIBS
15949LIBS="-ldld $LIBS"
15950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h. */
15952
15953/* Override any GCC internal prototype to avoid an error.
15954 Use char because int might match the return type of a GCC
15955 builtin and then its argument prototype would still apply. */
15956#ifdef __cplusplus
15957extern "C"
15958#endif
15959char shl_load ();
15960int
15961main ()
15962{
15963return shl_load ();
15964 ;
15965 return 0;
15966}
15967_ACEOF
15968if ac_fn_c_try_link "$LINENO"; then :
15969 ac_cv_lib_dld_shl_load=yes
15970else
15971 ac_cv_lib_dld_shl_load=no
15972fi
15973rm -f core conftest.err conftest.$ac_objext \
15974 conftest$ac_exeext conftest.$ac_ext
15975LIBS=$ac_check_lib_save_LIBS
15976fi
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15978$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015979if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15981else
15982 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015983if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015984 lt_cv_dlopen="dlopen"
15985else
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15987$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015988if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015989 $as_echo_n "(cached) " >&6
15990else
15991 ac_check_lib_save_LIBS=$LIBS
15992LIBS="-ldl $LIBS"
15993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994/* end confdefs.h. */
15995
15996/* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
15999#ifdef __cplusplus
16000extern "C"
16001#endif
16002char dlopen ();
16003int
16004main ()
16005{
16006return dlopen ();
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011if ac_fn_c_try_link "$LINENO"; then :
16012 ac_cv_lib_dl_dlopen=yes
16013else
16014 ac_cv_lib_dl_dlopen=no
16015fi
16016rm -f core conftest.err conftest.$ac_objext \
16017 conftest$ac_exeext conftest.$ac_ext
16018LIBS=$ac_check_lib_save_LIBS
16019fi
16020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16021$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016022if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16024else
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16026$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016027if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016028 $as_echo_n "(cached) " >&6
16029else
16030 ac_check_lib_save_LIBS=$LIBS
16031LIBS="-lsvld $LIBS"
16032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033/* end confdefs.h. */
16034
16035/* Override any GCC internal prototype to avoid an error.
16036 Use char because int might match the return type of a GCC
16037 builtin and then its argument prototype would still apply. */
16038#ifdef __cplusplus
16039extern "C"
16040#endif
16041char dlopen ();
16042int
16043main ()
16044{
16045return dlopen ();
16046 ;
16047 return 0;
16048}
16049_ACEOF
16050if ac_fn_c_try_link "$LINENO"; then :
16051 ac_cv_lib_svld_dlopen=yes
16052else
16053 ac_cv_lib_svld_dlopen=no
16054fi
16055rm -f core conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
16057LIBS=$ac_check_lib_save_LIBS
16058fi
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16060$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016061if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16063else
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16065$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016066if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016067 $as_echo_n "(cached) " >&6
16068else
16069 ac_check_lib_save_LIBS=$LIBS
16070LIBS="-ldld $LIBS"
16071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072/* end confdefs.h. */
16073
16074/* Override any GCC internal prototype to avoid an error.
16075 Use char because int might match the return type of a GCC
16076 builtin and then its argument prototype would still apply. */
16077#ifdef __cplusplus
16078extern "C"
16079#endif
16080char dld_link ();
16081int
16082main ()
16083{
16084return dld_link ();
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089if ac_fn_c_try_link "$LINENO"; then :
16090 ac_cv_lib_dld_dld_link=yes
16091else
16092 ac_cv_lib_dld_dld_link=no
16093fi
16094rm -f core conftest.err conftest.$ac_objext \
16095 conftest$ac_exeext conftest.$ac_ext
16096LIBS=$ac_check_lib_save_LIBS
16097fi
16098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16099$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016100if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16102fi
16103
16104
16105fi
16106
16107
16108fi
16109
16110
16111fi
16112
16113
16114fi
16115
16116
16117fi
16118
16119 ;;
16120 esac
16121
16122 if test "x$lt_cv_dlopen" != xno; then
16123 enable_dlopen=yes
16124 else
16125 enable_dlopen=no
16126 fi
16127
16128 case $lt_cv_dlopen in
16129 dlopen)
16130 save_CPPFLAGS="$CPPFLAGS"
16131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16132
16133 save_LDFLAGS="$LDFLAGS"
16134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16135
16136 save_LIBS="$LIBS"
16137 LIBS="$lt_cv_dlopen_libs $LIBS"
16138
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16140$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016141if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016142 $as_echo_n "(cached) " >&6
16143else
16144 if test "$cross_compiling" = yes; then :
16145 lt_cv_dlopen_self=cross
16146else
16147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16148 lt_status=$lt_dlunknown
16149 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016150#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016151#include "confdefs.h"
16152
16153#if HAVE_DLFCN_H
16154#include <dlfcn.h>
16155#endif
16156
16157#include <stdio.h>
16158
16159#ifdef RTLD_GLOBAL
16160# define LT_DLGLOBAL RTLD_GLOBAL
16161#else
16162# ifdef DL_GLOBAL
16163# define LT_DLGLOBAL DL_GLOBAL
16164# else
16165# define LT_DLGLOBAL 0
16166# endif
16167#endif
16168
16169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16170 find out it does not work in some platform. */
16171#ifndef LT_DLLAZY_OR_NOW
16172# ifdef RTLD_LAZY
16173# define LT_DLLAZY_OR_NOW RTLD_LAZY
16174# else
16175# ifdef DL_LAZY
16176# define LT_DLLAZY_OR_NOW DL_LAZY
16177# else
16178# ifdef RTLD_NOW
16179# define LT_DLLAZY_OR_NOW RTLD_NOW
16180# else
16181# ifdef DL_NOW
16182# define LT_DLLAZY_OR_NOW DL_NOW
16183# else
16184# define LT_DLLAZY_OR_NOW 0
16185# endif
16186# endif
16187# endif
16188# endif
16189#endif
16190
cristy0c60a692010-11-04 01:09:47 +000016191/* When -fvisbility=hidden is used, assume the code has been annotated
16192 correspondingly for the symbols needed. */
16193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016194int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016195#endif
16196
cristyda16f162011-02-19 23:52:17 +000016197int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016198int main ()
16199{
16200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16201 int status = $lt_dlunknown;
16202
16203 if (self)
16204 {
16205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016206 else
16207 {
16208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16209 else puts (dlerror ());
16210 }
cristy73bd4a52010-10-05 11:24:23 +000016211 /* dlclose (self); */
16212 }
16213 else
16214 puts (dlerror ());
16215
16216 return status;
16217}
16218_LT_EOF
16219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16220 (eval $ac_link) 2>&5
16221 ac_status=$?
16222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16224 (./conftest; exit; ) >&5 2>/dev/null
16225 lt_status=$?
16226 case x$lt_status in
16227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16229 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16230 esac
16231 else :
16232 # compilation failed
16233 lt_cv_dlopen_self=no
16234 fi
16235fi
16236rm -fr conftest*
16237
16238
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16241$as_echo "$lt_cv_dlopen_self" >&6; }
16242
16243 if test "x$lt_cv_dlopen_self" = xyes; then
16244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16246$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016247if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016248 $as_echo_n "(cached) " >&6
16249else
16250 if test "$cross_compiling" = yes; then :
16251 lt_cv_dlopen_self_static=cross
16252else
16253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16254 lt_status=$lt_dlunknown
16255 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016256#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016257#include "confdefs.h"
16258
16259#if HAVE_DLFCN_H
16260#include <dlfcn.h>
16261#endif
16262
16263#include <stdio.h>
16264
16265#ifdef RTLD_GLOBAL
16266# define LT_DLGLOBAL RTLD_GLOBAL
16267#else
16268# ifdef DL_GLOBAL
16269# define LT_DLGLOBAL DL_GLOBAL
16270# else
16271# define LT_DLGLOBAL 0
16272# endif
16273#endif
16274
16275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16276 find out it does not work in some platform. */
16277#ifndef LT_DLLAZY_OR_NOW
16278# ifdef RTLD_LAZY
16279# define LT_DLLAZY_OR_NOW RTLD_LAZY
16280# else
16281# ifdef DL_LAZY
16282# define LT_DLLAZY_OR_NOW DL_LAZY
16283# else
16284# ifdef RTLD_NOW
16285# define LT_DLLAZY_OR_NOW RTLD_NOW
16286# else
16287# ifdef DL_NOW
16288# define LT_DLLAZY_OR_NOW DL_NOW
16289# else
16290# define LT_DLLAZY_OR_NOW 0
16291# endif
16292# endif
16293# endif
16294# endif
16295#endif
16296
cristy0c60a692010-11-04 01:09:47 +000016297/* When -fvisbility=hidden is used, assume the code has been annotated
16298 correspondingly for the symbols needed. */
16299#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016300int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016301#endif
16302
cristyda16f162011-02-19 23:52:17 +000016303int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016304int main ()
16305{
16306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16307 int status = $lt_dlunknown;
16308
16309 if (self)
16310 {
16311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016312 else
16313 {
16314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16315 else puts (dlerror ());
16316 }
cristy73bd4a52010-10-05 11:24:23 +000016317 /* dlclose (self); */
16318 }
16319 else
16320 puts (dlerror ());
16321
16322 return status;
16323}
16324_LT_EOF
16325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16326 (eval $ac_link) 2>&5
16327 ac_status=$?
16328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16329 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16330 (./conftest; exit; ) >&5 2>/dev/null
16331 lt_status=$?
16332 case x$lt_status in
16333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16335 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16336 esac
16337 else :
16338 # compilation failed
16339 lt_cv_dlopen_self_static=no
16340 fi
16341fi
16342rm -fr conftest*
16343
16344
16345fi
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16347$as_echo "$lt_cv_dlopen_self_static" >&6; }
16348 fi
16349
16350 CPPFLAGS="$save_CPPFLAGS"
16351 LDFLAGS="$save_LDFLAGS"
16352 LIBS="$save_LIBS"
16353 ;;
16354 esac
16355
16356 case $lt_cv_dlopen_self in
16357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16358 *) enable_dlopen_self=unknown ;;
16359 esac
16360
16361 case $lt_cv_dlopen_self_static in
16362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16363 *) enable_dlopen_self_static=unknown ;;
16364 esac
16365fi
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383striplib=
16384old_striplib=
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16386$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16387if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391$as_echo "yes" >&6; }
16392else
16393# FIXME - insert some real tests, host_os isn't really good enough
16394 case $host_os in
16395 darwin*)
16396 if test -n "$STRIP" ; then
16397 striplib="$STRIP -x"
16398 old_striplib="$STRIP -S"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16400$as_echo "yes" >&6; }
16401 else
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403$as_echo "no" >&6; }
16404 fi
16405 ;;
16406 *)
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16408$as_echo "no" >&6; }
16409 ;;
16410 esac
16411fi
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424 # Report which library types will actually be built
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16426$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16428$as_echo "$can_build_shared" >&6; }
16429
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16431$as_echo_n "checking whether to build shared libraries... " >&6; }
16432 test "$can_build_shared" = "no" && enable_shared=no
16433
16434 # On AIX, shared libraries and static libraries use the same namespace, and
16435 # are all built from PIC.
16436 case $host_os in
16437 aix3*)
16438 test "$enable_shared" = yes && enable_static=no
16439 if test -n "$RANLIB"; then
16440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16441 postinstall_cmds='$RANLIB $lib'
16442 fi
16443 ;;
16444
16445 aix[4-9]*)
16446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16447 test "$enable_shared" = yes && enable_static=no
16448 fi
16449 ;;
16450 esac
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16452$as_echo "$enable_shared" >&6; }
16453
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16455$as_echo_n "checking whether to build static libraries... " >&6; }
16456 # Make sure either enable_shared or enable_static is yes.
16457 test "$enable_shared" = yes || enable_static=yes
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16459$as_echo "$enable_static" >&6; }
16460
16461
16462
16463
16464fi
16465ac_ext=c
16466ac_cpp='$CPP $CPPFLAGS'
16467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16469ac_compiler_gnu=$ac_cv_c_compiler_gnu
16470
16471CC="$lt_save_CC"
16472
cristy0c60a692010-11-04 01:09:47 +000016473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16475 (test "X$CXX" != "Xg++"))) ; then
16476 ac_ext=cpp
16477ac_cpp='$CXXCPP $CPPFLAGS'
16478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16482$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16483if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016484 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016485 $as_echo_n "(cached) " >&6
16486else
16487 # Double quotes because CXXCPP needs to be expanded
16488 for CXXCPP in "$CXX -E" "/lib/cpp"
16489 do
16490 ac_preproc_ok=false
16491for ac_cxx_preproc_warn_flag in '' yes
16492do
16493 # Use a header file that comes with gcc, so configuring glibc
16494 # with a fresh cross-compiler works.
16495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16496 # <limits.h> exists even on freestanding compilers.
16497 # On the NeXT, cc -E runs the code through the compiler's parser,
16498 # not just through cpp. "Syntax error" is here to catch this case.
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500/* end confdefs.h. */
16501#ifdef __STDC__
16502# include <limits.h>
16503#else
16504# include <assert.h>
16505#endif
16506 Syntax error
16507_ACEOF
16508if ac_fn_cxx_try_cpp "$LINENO"; then :
16509
16510else
16511 # Broken: fails on valid input.
16512continue
16513fi
cristyda16f162011-02-19 23:52:17 +000016514rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016515
16516 # OK, works on sane cases. Now check whether nonexistent headers
16517 # can be detected and how.
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519/* end confdefs.h. */
16520#include <ac_nonexistent.h>
16521_ACEOF
16522if ac_fn_cxx_try_cpp "$LINENO"; then :
16523 # Broken: success on invalid input.
16524continue
16525else
16526 # Passes both tests.
16527ac_preproc_ok=:
16528break
16529fi
cristyda16f162011-02-19 23:52:17 +000016530rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016531
16532done
16533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016534rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016535if $ac_preproc_ok; then :
16536 break
16537fi
16538
16539 done
16540 ac_cv_prog_CXXCPP=$CXXCPP
16541
16542fi
16543 CXXCPP=$ac_cv_prog_CXXCPP
16544else
16545 ac_cv_prog_CXXCPP=$CXXCPP
16546fi
16547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16548$as_echo "$CXXCPP" >&6; }
16549ac_preproc_ok=false
16550for ac_cxx_preproc_warn_flag in '' yes
16551do
16552 # Use a header file that comes with gcc, so configuring glibc
16553 # with a fresh cross-compiler works.
16554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16555 # <limits.h> exists even on freestanding compilers.
16556 # On the NeXT, cc -E runs the code through the compiler's parser,
16557 # not just through cpp. "Syntax error" is here to catch this case.
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559/* end confdefs.h. */
16560#ifdef __STDC__
16561# include <limits.h>
16562#else
16563# include <assert.h>
16564#endif
16565 Syntax error
16566_ACEOF
16567if ac_fn_cxx_try_cpp "$LINENO"; then :
16568
16569else
16570 # Broken: fails on valid input.
16571continue
16572fi
cristyda16f162011-02-19 23:52:17 +000016573rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016574
16575 # OK, works on sane cases. Now check whether nonexistent headers
16576 # can be detected and how.
16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h. */
16579#include <ac_nonexistent.h>
16580_ACEOF
16581if ac_fn_cxx_try_cpp "$LINENO"; then :
16582 # Broken: success on invalid input.
16583continue
16584else
16585 # Passes both tests.
16586ac_preproc_ok=:
16587break
16588fi
cristyda16f162011-02-19 23:52:17 +000016589rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016590
16591done
16592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016593rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016594if $ac_preproc_ok; then :
16595
16596else
16597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16599as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16600See \`config.log' for more details" "$LINENO" 5; }
16601fi
16602
16603ac_ext=c
16604ac_cpp='$CPP $CPPFLAGS'
16605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607ac_compiler_gnu=$ac_cv_c_compiler_gnu
16608
16609else
16610 _lt_caught_CXX_error=yes
16611fi
cristy73bd4a52010-10-05 11:24:23 +000016612
16613ac_ext=cpp
16614ac_cpp='$CXXCPP $CPPFLAGS'
16615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16618
16619archive_cmds_need_lc_CXX=no
16620allow_undefined_flag_CXX=
16621always_export_symbols_CXX=no
16622archive_expsym_cmds_CXX=
16623compiler_needs_object_CXX=no
16624export_dynamic_flag_spec_CXX=
16625hardcode_direct_CXX=no
16626hardcode_direct_absolute_CXX=no
16627hardcode_libdir_flag_spec_CXX=
16628hardcode_libdir_flag_spec_ld_CXX=
16629hardcode_libdir_separator_CXX=
16630hardcode_minus_L_CXX=no
16631hardcode_shlibpath_var_CXX=unsupported
16632hardcode_automatic_CXX=no
16633inherit_rpath_CXX=no
16634module_cmds_CXX=
16635module_expsym_cmds_CXX=
16636link_all_deplibs_CXX=unknown
16637old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016638reload_flag_CXX=$reload_flag
16639reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016640no_undefined_flag_CXX=
16641whole_archive_flag_spec_CXX=
16642enable_shared_with_static_runtimes_CXX=no
16643
16644# Source file extension for C++ test sources.
16645ac_ext=cpp
16646
16647# Object file extension for compiled C++ test sources.
16648objext=o
16649objext_CXX=$objext
16650
16651# No sense in running all these tests if we already determined that
16652# the CXX compiler isn't working. Some variables (like enable_shared)
16653# are currently assumed to apply to all compilers on this platform,
16654# and will be corrupted by setting them based on a non-working compiler.
16655if test "$_lt_caught_CXX_error" != yes; then
16656 # Code to be used in simple compile tests
16657 lt_simple_compile_test_code="int some_variable = 0;"
16658
16659 # Code to be used in simple link tests
16660 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16661
16662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16663
16664
16665
16666
16667
16668
16669# If no C compiler was specified, use CC.
16670LTCC=${LTCC-"$CC"}
16671
16672# If no C compiler flags were specified, use CFLAGS.
16673LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16674
16675# Allow CC to be a program name with arguments.
16676compiler=$CC
16677
16678
16679 # save warnings/boilerplate of simple test code
16680 ac_outfile=conftest.$ac_objext
16681echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16682eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16683_lt_compiler_boilerplate=`cat conftest.err`
16684$RM conftest*
16685
16686 ac_outfile=conftest.$ac_objext
16687echo "$lt_simple_link_test_code" >conftest.$ac_ext
16688eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16689_lt_linker_boilerplate=`cat conftest.err`
16690$RM -r conftest*
16691
16692
16693 # Allow CC to be a program name with arguments.
16694 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016695 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016696 lt_save_LD=$LD
16697 lt_save_GCC=$GCC
16698 GCC=$GXX
16699 lt_save_with_gnu_ld=$with_gnu_ld
16700 lt_save_path_LD=$lt_cv_path_LD
16701 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16702 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16703 else
16704 $as_unset lt_cv_prog_gnu_ld
16705 fi
16706 if test -n "${lt_cv_path_LDCXX+set}"; then
16707 lt_cv_path_LD=$lt_cv_path_LDCXX
16708 else
16709 $as_unset lt_cv_path_LD
16710 fi
16711 test -z "${LDCXX+set}" || LD=$LDCXX
16712 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016713 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016714 compiler=$CC
16715 compiler_CXX=$CC
16716 for cc_temp in $compiler""; do
16717 case $cc_temp in
16718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16720 \-*) ;;
16721 *) break;;
16722 esac
16723done
cristy0c60a692010-11-04 01:09:47 +000016724cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016725
16726
16727 if test -n "$compiler"; then
16728 # We don't want -fno-exception when compiling C++ code, so set the
16729 # no_builtin_flag separately
16730 if test "$GXX" = yes; then
16731 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16732 else
16733 lt_prog_compiler_no_builtin_flag_CXX=
16734 fi
16735
16736 if test "$GXX" = yes; then
16737 # Set up default GNU C++ configuration
16738
16739
16740
16741# Check whether --with-gnu-ld was given.
16742if test "${with_gnu_ld+set}" = set; then :
16743 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16744else
16745 with_gnu_ld=no
16746fi
16747
16748ac_prog=ld
16749if test "$GCC" = yes; then
16750 # Check if gcc -print-prog-name=ld gives a path.
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16752$as_echo_n "checking for ld used by $CC... " >&6; }
16753 case $host in
16754 *-*-mingw*)
16755 # gcc leaves a trailing carriage return which upsets mingw
16756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16757 *)
16758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16759 esac
16760 case $ac_prog in
16761 # Accept absolute paths.
16762 [\\/]* | ?:[\\/]*)
16763 re_direlt='/[^/][^/]*/\.\./'
16764 # Canonicalize the pathname of ld
16765 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16766 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16767 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16768 done
16769 test -z "$LD" && LD="$ac_prog"
16770 ;;
16771 "")
16772 # If it fails, then pretend we aren't using GCC.
16773 ac_prog=ld
16774 ;;
16775 *)
16776 # If it is relative, then search for the first ld in PATH.
16777 with_gnu_ld=unknown
16778 ;;
16779 esac
16780elif test "$with_gnu_ld" = yes; then
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16782$as_echo_n "checking for GNU ld... " >&6; }
16783else
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16785$as_echo_n "checking for non-GNU ld... " >&6; }
16786fi
cristyda16f162011-02-19 23:52:17 +000016787if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016788 $as_echo_n "(cached) " >&6
16789else
16790 if test -z "$LD"; then
16791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16792 for ac_dir in $PATH; do
16793 IFS="$lt_save_ifs"
16794 test -z "$ac_dir" && ac_dir=.
16795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16796 lt_cv_path_LD="$ac_dir/$ac_prog"
16797 # Check to see if the program is GNU ld. I'd rather use --version,
16798 # but apparently some variants of GNU ld only accept -v.
16799 # Break only if it was the GNU/non-GNU ld that we prefer.
16800 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16801 *GNU* | *'with BFD'*)
16802 test "$with_gnu_ld" != no && break
16803 ;;
16804 *)
16805 test "$with_gnu_ld" != yes && break
16806 ;;
16807 esac
16808 fi
16809 done
16810 IFS="$lt_save_ifs"
16811else
16812 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16813fi
16814fi
16815
16816LD="$lt_cv_path_LD"
16817if test -n "$LD"; then
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16819$as_echo "$LD" >&6; }
16820else
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822$as_echo "no" >&6; }
16823fi
cristy98dddb52010-11-04 00:30:15 +000016824test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16826$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016827if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016828 $as_echo_n "(cached) " >&6
16829else
16830 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16831case `$LD -v 2>&1 </dev/null` in
16832*GNU* | *'with BFD'*)
16833 lt_cv_prog_gnu_ld=yes
16834 ;;
16835*)
16836 lt_cv_prog_gnu_ld=no
16837 ;;
16838esac
16839fi
16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16841$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16842with_gnu_ld=$lt_cv_prog_gnu_ld
16843
16844
16845
16846
16847
16848
16849
16850 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16851 # archiving commands below assume that GNU ld is being used.
16852 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016853 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16854 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 +000016855
16856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16858
16859 # If archive_cmds runs LD, not CC, wlarc should be empty
16860 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16861 # investigate it a little bit more. (MM)
16862 wlarc='${wl}'
16863
16864 # ancient GNU ld didn't support --whole-archive et. al.
16865 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16866 $GREP 'no-whole-archive' > /dev/null; then
16867 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16868 else
16869 whole_archive_flag_spec_CXX=
16870 fi
16871 else
16872 with_gnu_ld=no
16873 wlarc=
16874
16875 # A generic and very simple default shared library creation
16876 # command for GNU C++ for the case where it uses the native
16877 # linker, instead of GNU ld. If possible, this setting should
16878 # overridden to take advantage of the native linker features on
16879 # the platform it is being used on.
16880 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16881 fi
16882
16883 # Commands to make compiler produce verbose output that lists
16884 # what "hidden" libraries, object files and flags are used when
16885 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016887
16888 else
16889 GXX=no
16890 with_gnu_ld=no
16891 wlarc=
16892 fi
16893
16894 # PORTME: fill in a description of your system's C++ link characteristics
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16896$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16897 ld_shlibs_CXX=yes
16898 case $host_os in
16899 aix3*)
16900 # FIXME: insert proper C++ library support
16901 ld_shlibs_CXX=no
16902 ;;
16903 aix[4-9]*)
16904 if test "$host_cpu" = ia64; then
16905 # On IA64, the linker does run time linking by default, so we don't
16906 # have to do anything special.
16907 aix_use_runtimelinking=no
16908 exp_sym_flag='-Bexport'
16909 no_entry_flag=""
16910 else
16911 aix_use_runtimelinking=no
16912
16913 # Test if we are trying to use run time linking or normal
16914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16915 # need to do runtime linking.
16916 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16917 for ld_flag in $LDFLAGS; do
16918 case $ld_flag in
16919 *-brtl*)
16920 aix_use_runtimelinking=yes
16921 break
16922 ;;
16923 esac
16924 done
16925 ;;
16926 esac
16927
16928 exp_sym_flag='-bexport'
16929 no_entry_flag='-bnoentry'
16930 fi
16931
16932 # When large executables or shared objects are built, AIX ld can
16933 # have problems creating the table of contents. If linking a library
16934 # or program results in "error TOC overflow" add -mminimal-toc to
16935 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16936 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16937
16938 archive_cmds_CXX=''
16939 hardcode_direct_CXX=yes
16940 hardcode_direct_absolute_CXX=yes
16941 hardcode_libdir_separator_CXX=':'
16942 link_all_deplibs_CXX=yes
16943 file_list_spec_CXX='${wl}-f,'
16944
16945 if test "$GXX" = yes; then
16946 case $host_os in aix4.[012]|aix4.[012].*)
16947 # We only want to do this on AIX 4.2 and lower, the check
16948 # below for broken collect2 doesn't work under 4.3+
16949 collect2name=`${CC} -print-prog-name=collect2`
16950 if test -f "$collect2name" &&
16951 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16952 then
16953 # We have reworked collect2
16954 :
16955 else
16956 # We have old collect2
16957 hardcode_direct_CXX=unsupported
16958 # It fails to find uninstalled libraries when the uninstalled
16959 # path is not listed in the libpath. Setting hardcode_minus_L
16960 # to unsupported forces relinking
16961 hardcode_minus_L_CXX=yes
16962 hardcode_libdir_flag_spec_CXX='-L$libdir'
16963 hardcode_libdir_separator_CXX=
16964 fi
16965 esac
16966 shared_flag='-shared'
16967 if test "$aix_use_runtimelinking" = yes; then
16968 shared_flag="$shared_flag "'${wl}-G'
16969 fi
16970 else
16971 # not using gcc
16972 if test "$host_cpu" = ia64; then
16973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16974 # chokes on -Wl,-G. The following line is correct:
16975 shared_flag='-G'
16976 else
16977 if test "$aix_use_runtimelinking" = yes; then
16978 shared_flag='${wl}-G'
16979 else
16980 shared_flag='${wl}-bM:SRE'
16981 fi
16982 fi
16983 fi
16984
16985 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16986 # It seems that -bexpall does not export symbols beginning with
16987 # underscore (_), so it is better to generate a list of symbols to
16988 # export.
16989 always_export_symbols_CXX=yes
16990 if test "$aix_use_runtimelinking" = yes; then
16991 # Warning - without using the other runtime loading flags (-brtl),
16992 # -berok will link without error, but may produce a broken library.
16993 allow_undefined_flag_CXX='-berok'
16994 # Determine the default libpath from the value encoded in an empty
16995 # executable.
cristyda16f162011-02-19 23:52:17 +000016996 if test "${lt_cv_aix_libpath+set}" = set; then
16997 aix_libpath=$lt_cv_aix_libpath
16998else
16999 if ${lt_cv_aix_libpath__CXX+:} false; then :
17000 $as_echo_n "(cached) " >&6
17001else
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017003/* end confdefs.h. */
17004
17005int
17006main ()
17007{
17008
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013if ac_fn_cxx_try_link "$LINENO"; then :
17014
cristyda16f162011-02-19 23:52:17 +000017015 lt_aix_libpath_sed='
17016 /Import File Strings/,/^$/ {
17017 /^0/ {
17018 s/^0 *\([^ ]*\) *$/\1/
17019 p
17020 }
17021 }'
17022 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17023 # Check for a 64-bit object if we didn't find anything.
17024 if test -z "$lt_cv_aix_libpath__CXX"; then
17025 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17026 fi
cristy73bd4a52010-10-05 11:24:23 +000017027fi
17028rm -f core conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017030 if test -z "$lt_cv_aix_libpath__CXX"; then
17031 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17032 fi
17033
17034fi
17035
17036 aix_libpath=$lt_cv_aix_libpath__CXX
17037fi
cristy73bd4a52010-10-05 11:24:23 +000017038
17039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17040
cristy0c60a692010-11-04 01:09:47 +000017041 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 +000017042 else
17043 if test "$host_cpu" = ia64; then
17044 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17045 allow_undefined_flag_CXX="-z nodefs"
17046 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"
17047 else
17048 # Determine the default libpath from the value encoded in an
17049 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017050 if test "${lt_cv_aix_libpath+set}" = set; then
17051 aix_libpath=$lt_cv_aix_libpath
17052else
17053 if ${lt_cv_aix_libpath__CXX+:} false; then :
17054 $as_echo_n "(cached) " >&6
17055else
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017057/* end confdefs.h. */
17058
17059int
17060main ()
17061{
17062
17063 ;
17064 return 0;
17065}
17066_ACEOF
17067if ac_fn_cxx_try_link "$LINENO"; then :
17068
cristyda16f162011-02-19 23:52:17 +000017069 lt_aix_libpath_sed='
17070 /Import File Strings/,/^$/ {
17071 /^0/ {
17072 s/^0 *\([^ ]*\) *$/\1/
17073 p
17074 }
17075 }'
17076 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17077 # Check for a 64-bit object if we didn't find anything.
17078 if test -z "$lt_cv_aix_libpath__CXX"; then
17079 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17080 fi
cristy73bd4a52010-10-05 11:24:23 +000017081fi
17082rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017084 if test -z "$lt_cv_aix_libpath__CXX"; then
17085 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17086 fi
17087
17088fi
17089
17090 aix_libpath=$lt_cv_aix_libpath__CXX
17091fi
cristy73bd4a52010-10-05 11:24:23 +000017092
17093 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17094 # Warning - without using the other run time loading flags,
17095 # -berok will link without error, but may produce a broken library.
17096 no_undefined_flag_CXX=' ${wl}-bernotok'
17097 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017098 if test "$with_gnu_ld" = yes; then
17099 # We only use this code for GNU lds that support --whole-archive.
17100 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17101 else
17102 # Exported symbols can be pulled into shared objects from archives
17103 whole_archive_flag_spec_CXX='$convenience'
17104 fi
cristy73bd4a52010-10-05 11:24:23 +000017105 archive_cmds_need_lc_CXX=yes
17106 # This is similar to how AIX traditionally builds its shared
17107 # libraries.
17108 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'
17109 fi
17110 fi
17111 ;;
17112
17113 beos*)
17114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17115 allow_undefined_flag_CXX=unsupported
17116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17117 # support --undefined. This deserves some investigation. FIXME
17118 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17119 else
17120 ld_shlibs_CXX=no
17121 fi
17122 ;;
17123
17124 chorus*)
17125 case $cc_basename in
17126 *)
17127 # FIXME: insert proper C++ library support
17128 ld_shlibs_CXX=no
17129 ;;
17130 esac
17131 ;;
17132
17133 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017134 case $GXX,$cc_basename in
17135 ,cl* | no,cl*)
17136 # Native MSVC
17137 # hardcode_libdir_flag_spec is actually meaningless, as there is
17138 # no search path for DLLs.
17139 hardcode_libdir_flag_spec_CXX=' '
17140 allow_undefined_flag_CXX=unsupported
17141 always_export_symbols_CXX=yes
17142 file_list_spec_CXX='@'
17143 # Tell ltmain to make .lib files, not .a files.
17144 libext=lib
17145 # Tell ltmain to make .dll files, not .so files.
17146 shrext_cmds=".dll"
17147 # FIXME: Setting linknames here is a bad hack.
17148 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17149 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17150 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17151 else
17152 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17153 fi~
17154 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17155 linknames='
17156 # The linker will not automatically build a static lib if we build a DLL.
17157 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17158 enable_shared_with_static_runtimes_CXX=yes
17159 # Don't use ranlib
17160 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17161 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17162 lt_tool_outputfile="@TOOL_OUTPUT@"~
17163 case $lt_outputfile in
17164 *.exe|*.EXE) ;;
17165 *)
17166 lt_outputfile="$lt_outputfile.exe"
17167 lt_tool_outputfile="$lt_tool_outputfile.exe"
17168 ;;
17169 esac~
17170 func_to_tool_file "$lt_outputfile"~
17171 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17172 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17173 $RM "$lt_outputfile.manifest";
17174 fi'
17175 ;;
17176 *)
17177 # g++
17178 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17179 # as there is no search path for DLLs.
17180 hardcode_libdir_flag_spec_CXX='-L$libdir'
17181 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17182 allow_undefined_flag_CXX=unsupported
17183 always_export_symbols_CXX=no
17184 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017185
cristyda16f162011-02-19 23:52:17 +000017186 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17187 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'
17188 # If the export-symbols file already is a .def file (1st line
17189 # is EXPORTS), use it as is; otherwise, prepend...
17190 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17191 cp $export_symbols $output_objdir/$soname.def;
17192 else
17193 echo EXPORTS > $output_objdir/$soname.def;
17194 cat $export_symbols >> $output_objdir/$soname.def;
17195 fi~
17196 $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'
17197 else
17198 ld_shlibs_CXX=no
17199 fi
17200 ;;
17201 esac
17202 ;;
cristy73bd4a52010-10-05 11:24:23 +000017203 darwin* | rhapsody*)
17204
17205
17206 archive_cmds_need_lc_CXX=no
17207 hardcode_direct_CXX=no
17208 hardcode_automatic_CXX=yes
17209 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017210 if test "$lt_cv_ld_force_load" = "yes"; then
17211 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\"`'
17212 else
17213 whole_archive_flag_spec_CXX=''
17214 fi
cristy73bd4a52010-10-05 11:24:23 +000017215 link_all_deplibs_CXX=yes
17216 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17217 case $cc_basename in
17218 ifort*) _lt_dar_can_shared=yes ;;
17219 *) _lt_dar_can_shared=$GCC ;;
17220 esac
17221 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017222 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017223 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}"
17224 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17225 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}"
17226 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}"
17227 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17228 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}"
17229 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}"
17230 fi
17231
17232 else
17233 ld_shlibs_CXX=no
17234 fi
17235
17236 ;;
17237
17238 dgux*)
17239 case $cc_basename in
17240 ec++*)
17241 # FIXME: insert proper C++ library support
17242 ld_shlibs_CXX=no
17243 ;;
17244 ghcx*)
17245 # Green Hills C++ Compiler
17246 # FIXME: insert proper C++ library support
17247 ld_shlibs_CXX=no
17248 ;;
17249 *)
17250 # FIXME: insert proper C++ library support
17251 ld_shlibs_CXX=no
17252 ;;
17253 esac
17254 ;;
17255
17256 freebsd[12]*)
17257 # C++ shared libraries reported to be fairly broken before
17258 # switch to ELF
17259 ld_shlibs_CXX=no
17260 ;;
17261
17262 freebsd-elf*)
17263 archive_cmds_need_lc_CXX=no
17264 ;;
17265
17266 freebsd* | dragonfly*)
17267 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17268 # conventions
17269 ld_shlibs_CXX=yes
17270 ;;
17271
17272 gnu*)
17273 ;;
17274
cristy0c60a692010-11-04 01:09:47 +000017275 haiku*)
17276 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17277 link_all_deplibs_CXX=yes
17278 ;;
17279
cristy73bd4a52010-10-05 11:24:23 +000017280 hpux9*)
17281 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17282 hardcode_libdir_separator_CXX=:
17283 export_dynamic_flag_spec_CXX='${wl}-E'
17284 hardcode_direct_CXX=yes
17285 hardcode_minus_L_CXX=yes # Not in the search PATH,
17286 # but as the default
17287 # location of the library.
17288
17289 case $cc_basename in
17290 CC*)
17291 # FIXME: insert proper C++ library support
17292 ld_shlibs_CXX=no
17293 ;;
17294 aCC*)
17295 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'
17296 # Commands to make compiler produce verbose output that lists
17297 # what "hidden" libraries, object files and flags are used when
17298 # linking a shared library.
17299 #
17300 # There doesn't appear to be a way to prevent this compiler from
17301 # explicitly linking system object files so we need to strip them
17302 # from the output so that they don't get included in the library
17303 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017304 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 +000017305 ;;
17306 *)
17307 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017308 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 +000017309 else
17310 # FIXME: insert proper C++ library support
17311 ld_shlibs_CXX=no
17312 fi
17313 ;;
17314 esac
17315 ;;
17316
17317 hpux10*|hpux11*)
17318 if test $with_gnu_ld = no; then
17319 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17320 hardcode_libdir_separator_CXX=:
17321
17322 case $host_cpu in
17323 hppa*64*|ia64*)
17324 ;;
17325 *)
17326 export_dynamic_flag_spec_CXX='${wl}-E'
17327 ;;
17328 esac
17329 fi
17330 case $host_cpu in
17331 hppa*64*|ia64*)
17332 hardcode_direct_CXX=no
17333 hardcode_shlibpath_var_CXX=no
17334 ;;
17335 *)
17336 hardcode_direct_CXX=yes
17337 hardcode_direct_absolute_CXX=yes
17338 hardcode_minus_L_CXX=yes # Not in the search PATH,
17339 # but as the default
17340 # location of the library.
17341 ;;
17342 esac
17343
17344 case $cc_basename in
17345 CC*)
17346 # FIXME: insert proper C++ library support
17347 ld_shlibs_CXX=no
17348 ;;
17349 aCC*)
17350 case $host_cpu in
17351 hppa*64*)
17352 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17353 ;;
17354 ia64*)
17355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17356 ;;
17357 *)
17358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17359 ;;
17360 esac
17361 # Commands to make compiler produce verbose output that lists
17362 # what "hidden" libraries, object files and flags are used when
17363 # linking a shared library.
17364 #
17365 # There doesn't appear to be a way to prevent this compiler from
17366 # explicitly linking system object files so we need to strip them
17367 # from the output so that they don't get included in the library
17368 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017369 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 +000017370 ;;
17371 *)
17372 if test "$GXX" = yes; then
17373 if test $with_gnu_ld = no; then
17374 case $host_cpu in
17375 hppa*64*)
17376 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17377 ;;
17378 ia64*)
cristyda16f162011-02-19 23:52:17 +000017379 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 +000017380 ;;
17381 *)
cristyda16f162011-02-19 23:52:17 +000017382 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 +000017383 ;;
17384 esac
17385 fi
17386 else
17387 # FIXME: insert proper C++ library support
17388 ld_shlibs_CXX=no
17389 fi
17390 ;;
17391 esac
17392 ;;
17393
17394 interix[3-9]*)
17395 hardcode_direct_CXX=no
17396 hardcode_shlibpath_var_CXX=no
17397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17398 export_dynamic_flag_spec_CXX='${wl}-E'
17399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17400 # Instead, shared libraries are loaded at an image base (0x10000000 by
17401 # default) and relocated if they conflict, which is a slow very memory
17402 # consuming and fragmenting process. To avoid this, we pick a random,
17403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17404 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17405 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'
17406 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'
17407 ;;
17408 irix5* | irix6*)
17409 case $cc_basename in
17410 CC*)
17411 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017412 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 +000017413
17414 # Archives containing C++ object files must be created using
17415 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17416 # necessary to make sure instantiated templates are included
17417 # in the archive.
17418 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17419 ;;
17420 *)
17421 if test "$GXX" = yes; then
17422 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017423 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 +000017424 else
cristyda16f162011-02-19 23:52:17 +000017425 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 +000017426 fi
17427 fi
17428 link_all_deplibs_CXX=yes
17429 ;;
17430 esac
17431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17432 hardcode_libdir_separator_CXX=:
17433 inherit_rpath_CXX=yes
17434 ;;
17435
cristy0c60a692010-11-04 01:09:47 +000017436 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017437 case $cc_basename in
17438 KCC*)
17439 # Kuck and Associates, Inc. (KAI) C++ Compiler
17440
17441 # KCC will only create a shared library if the output file
17442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17443 # to its proper name (with version) after linking.
17444 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'
17445 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'
17446 # Commands to make compiler produce verbose output that lists
17447 # what "hidden" libraries, object files and flags are used when
17448 # linking a shared library.
17449 #
17450 # There doesn't appear to be a way to prevent this compiler from
17451 # explicitly linking system object files so we need to strip them
17452 # from the output so that they don't get included in the library
17453 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017454 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 +000017455
17456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17458
17459 # Archives containing C++ object files must be created using
17460 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17461 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17462 ;;
17463 icpc* | ecpc* )
17464 # Intel C++
17465 with_gnu_ld=yes
17466 # version 8.0 and above of icpc choke on multiply defined symbols
17467 # if we add $predep_objects and $postdep_objects, however 7.1 and
17468 # earlier do not add the objects themselves.
17469 case `$CC -V 2>&1` in
17470 *"Version 7."*)
17471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17472 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'
17473 ;;
17474 *) # Version 8.0 or newer
17475 tmp_idyn=
17476 case $host_cpu in
17477 ia64*) tmp_idyn=' -i_dynamic';;
17478 esac
17479 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17480 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'
17481 ;;
17482 esac
17483 archive_cmds_need_lc_CXX=no
17484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17487 ;;
17488 pgCC* | pgcpp*)
17489 # Portland Group C++ compiler
17490 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017491 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017492 prelink_cmds_CXX='tpldir=Template.dir~
17493 rm -rf $tpldir~
17494 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017495 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017496 old_archive_cmds_CXX='tpldir=Template.dir~
17497 rm -rf $tpldir~
17498 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017499 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017500 $RANLIB $oldlib'
17501 archive_cmds_CXX='tpldir=Template.dir~
17502 rm -rf $tpldir~
17503 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017504 $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 +000017505 archive_expsym_cmds_CXX='tpldir=Template.dir~
17506 rm -rf $tpldir~
17507 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017508 $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 +000017509 ;;
cristy0c60a692010-11-04 01:09:47 +000017510 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017511 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17512 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'
17513 ;;
17514 esac
17515
17516 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17517 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017518 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 +000017519 ;;
17520 cxx*)
17521 # Compaq C++
17522 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17523 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'
17524
17525 runpath_var=LD_RUN_PATH
17526 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17527 hardcode_libdir_separator_CXX=:
17528
17529 # Commands to make compiler produce verbose output that lists
17530 # what "hidden" libraries, object files and flags are used when
17531 # linking a shared library.
17532 #
17533 # There doesn't appear to be a way to prevent this compiler from
17534 # explicitly linking system object files so we need to strip them
17535 # from the output so that they don't get included in the library
17536 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017537 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 +000017538 ;;
cristy0c60a692010-11-04 01:09:47 +000017539 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017540 # IBM XL 8.0 on PPC, with GNU ld
17541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17543 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17544 if test "x$supports_anon_versioning" = xyes; then
17545 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17547 echo "local: *; };" >> $output_objdir/$libname.ver~
17548 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17549 fi
17550 ;;
17551 *)
17552 case `$CC -V 2>&1 | sed 5q` in
17553 *Sun\ C*)
17554 # Sun C++ 5.9
17555 no_undefined_flag_CXX=' -zdefs'
17556 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17557 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'
17558 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017559 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 +000017560 compiler_needs_object_CXX=yes
17561
17562 # Not sure whether something based on
17563 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17564 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017565 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017566
17567 # Archives containing C++ object files must be created using
17568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17569 # necessary to make sure instantiated templates are included
17570 # in the archive.
17571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17572 ;;
17573 esac
17574 ;;
17575 esac
17576 ;;
17577
17578 lynxos*)
17579 # FIXME: insert proper C++ library support
17580 ld_shlibs_CXX=no
17581 ;;
17582
17583 m88k*)
17584 # FIXME: insert proper C++ library support
17585 ld_shlibs_CXX=no
17586 ;;
17587
17588 mvs*)
17589 case $cc_basename in
17590 cxx*)
17591 # FIXME: insert proper C++ library support
17592 ld_shlibs_CXX=no
17593 ;;
17594 *)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598 esac
17599 ;;
17600
17601 netbsd*)
17602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17603 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17604 wlarc=
17605 hardcode_libdir_flag_spec_CXX='-R$libdir'
17606 hardcode_direct_CXX=yes
17607 hardcode_shlibpath_var_CXX=no
17608 fi
17609 # Workaround some broken pre-1.5 toolchains
17610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17611 ;;
17612
17613 *nto* | *qnx*)
17614 ld_shlibs_CXX=yes
17615 ;;
17616
17617 openbsd2*)
17618 # C++ shared libraries are fairly broken
17619 ld_shlibs_CXX=no
17620 ;;
17621
17622 openbsd*)
17623 if test -f /usr/libexec/ld.so; then
17624 hardcode_direct_CXX=yes
17625 hardcode_shlibpath_var_CXX=no
17626 hardcode_direct_absolute_CXX=yes
17627 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17630 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17631 export_dynamic_flag_spec_CXX='${wl}-E'
17632 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17633 fi
cristy0c60a692010-11-04 01:09:47 +000017634 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017635 else
17636 ld_shlibs_CXX=no
17637 fi
17638 ;;
17639
17640 osf3* | osf4* | osf5*)
17641 case $cc_basename in
17642 KCC*)
17643 # Kuck and Associates, Inc. (KAI) C++ Compiler
17644
17645 # KCC will only create a shared library if the output file
17646 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17647 # to its proper name (with version) after linking.
17648 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'
17649
17650 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17651 hardcode_libdir_separator_CXX=:
17652
17653 # Archives containing C++ object files must be created using
17654 # the KAI C++ compiler.
17655 case $host in
17656 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17657 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17658 esac
17659 ;;
17660 RCC*)
17661 # Rational C++ 2.4.1
17662 # FIXME: insert proper C++ library support
17663 ld_shlibs_CXX=no
17664 ;;
17665 cxx*)
17666 case $host in
17667 osf3*)
17668 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017669 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 +000017670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17671 ;;
17672 *)
17673 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017674 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 +000017675 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17676 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017677 $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 +000017678 $RM $lib.exp'
17679 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17680 ;;
17681 esac
17682
17683 hardcode_libdir_separator_CXX=:
17684
17685 # Commands to make compiler produce verbose output that lists
17686 # what "hidden" libraries, object files and flags are used when
17687 # linking a shared library.
17688 #
17689 # There doesn't appear to be a way to prevent this compiler from
17690 # explicitly linking system object files so we need to strip them
17691 # from the output so that they don't get included in the library
17692 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017693 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 +000017694 ;;
17695 *)
17696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17698 case $host in
17699 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017700 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 +000017701 ;;
17702 *)
cristyda16f162011-02-19 23:52:17 +000017703 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 +000017704 ;;
17705 esac
17706
17707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17708 hardcode_libdir_separator_CXX=:
17709
17710 # Commands to make compiler produce verbose output that lists
17711 # what "hidden" libraries, object files and flags are used when
17712 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017714
17715 else
17716 # FIXME: insert proper C++ library support
17717 ld_shlibs_CXX=no
17718 fi
17719 ;;
17720 esac
17721 ;;
17722
17723 psos*)
17724 # FIXME: insert proper C++ library support
17725 ld_shlibs_CXX=no
17726 ;;
17727
17728 sunos4*)
17729 case $cc_basename in
17730 CC*)
17731 # Sun C++ 4.x
17732 # FIXME: insert proper C++ library support
17733 ld_shlibs_CXX=no
17734 ;;
17735 lcc*)
17736 # Lucid
17737 # FIXME: insert proper C++ library support
17738 ld_shlibs_CXX=no
17739 ;;
17740 *)
17741 # FIXME: insert proper C++ library support
17742 ld_shlibs_CXX=no
17743 ;;
17744 esac
17745 ;;
17746
17747 solaris*)
17748 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017749 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017750 # Sun C++ 4.2, 5.x and Centerline C++
17751 archive_cmds_need_lc_CXX=yes
17752 no_undefined_flag_CXX=' -zdefs'
17753 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17754 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17755 $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'
17756
17757 hardcode_libdir_flag_spec_CXX='-R$libdir'
17758 hardcode_shlibpath_var_CXX=no
17759 case $host_os in
17760 solaris2.[0-5] | solaris2.[0-5].*) ;;
17761 *)
17762 # The compiler driver will combine and reorder linker options,
17763 # but understands `-z linker_flag'.
17764 # Supported since Solaris 2.6 (maybe 2.5.1?)
17765 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17766 ;;
17767 esac
17768 link_all_deplibs_CXX=yes
17769
cristy0c60a692010-11-04 01:09:47 +000017770 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017771
17772 # Archives containing C++ object files must be created using
17773 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17774 # necessary to make sure instantiated templates are included
17775 # in the archive.
17776 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17777 ;;
17778 gcx*)
17779 # Green Hills C++ Compiler
17780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17781
17782 # The C++ compiler must be used to create the archive.
17783 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17784 ;;
17785 *)
17786 # GNU C++ compiler with Solaris linker
17787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17788 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17789 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017790 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 +000017791 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 +000017792 $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 +000017793
17794 # Commands to make compiler produce verbose output that lists
17795 # what "hidden" libraries, object files and flags are used when
17796 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017797 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017798 else
17799 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17800 # platform.
17801 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17802 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17803 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17804
17805 # Commands to make compiler produce verbose output that lists
17806 # what "hidden" libraries, object files and flags are used when
17807 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017808 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017809 fi
17810
17811 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17812 case $host_os in
17813 solaris2.[0-5] | solaris2.[0-5].*) ;;
17814 *)
17815 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17816 ;;
17817 esac
17818 fi
17819 ;;
17820 esac
17821 ;;
17822
17823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17824 no_undefined_flag_CXX='${wl}-z,text'
17825 archive_cmds_need_lc_CXX=no
17826 hardcode_shlibpath_var_CXX=no
17827 runpath_var='LD_RUN_PATH'
17828
17829 case $cc_basename in
17830 CC*)
17831 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 ;;
17834 *)
17835 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17837 ;;
17838 esac
17839 ;;
17840
17841 sysv5* | sco3.2v5* | sco5v6*)
17842 # Note: We can NOT use -z defs as we might desire, because we do not
17843 # link with -lc, and that would cause any symbols used from libc to
17844 # always be unresolved, which means just about no library would
17845 # ever link correctly. If we're not using GNU ld we use -z text
17846 # though, which does catch some bad symbols but isn't as heavy-handed
17847 # as -z defs.
17848 no_undefined_flag_CXX='${wl}-z,text'
17849 allow_undefined_flag_CXX='${wl}-z,nodefs'
17850 archive_cmds_need_lc_CXX=no
17851 hardcode_shlibpath_var_CXX=no
17852 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17853 hardcode_libdir_separator_CXX=':'
17854 link_all_deplibs_CXX=yes
17855 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17856 runpath_var='LD_RUN_PATH'
17857
17858 case $cc_basename in
17859 CC*)
17860 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17861 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 +000017862 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17863 '"$old_archive_cmds_CXX"
17864 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17865 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017866 ;;
17867 *)
17868 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17869 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17870 ;;
17871 esac
17872 ;;
17873
17874 tandem*)
17875 case $cc_basename in
17876 NCC*)
17877 # NonStop-UX NCC 3.20
17878 # FIXME: insert proper C++ library support
17879 ld_shlibs_CXX=no
17880 ;;
17881 *)
17882 # FIXME: insert proper C++ library support
17883 ld_shlibs_CXX=no
17884 ;;
17885 esac
17886 ;;
17887
17888 vxworks*)
17889 # FIXME: insert proper C++ library support
17890 ld_shlibs_CXX=no
17891 ;;
17892
17893 *)
17894 # FIXME: insert proper C++ library support
17895 ld_shlibs_CXX=no
17896 ;;
17897 esac
17898
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17900$as_echo "$ld_shlibs_CXX" >&6; }
17901 test "$ld_shlibs_CXX" = no && can_build_shared=no
17902
17903 GCC_CXX="$GXX"
17904 LD_CXX="$LD"
17905
17906 ## CAVEAT EMPTOR:
17907 ## There is no encapsulation within the following macros, do not change
17908 ## the running order or otherwise move them around unless you know exactly
17909 ## what you are doing...
17910 # Dependencies to place before and after the object being linked:
17911predep_objects_CXX=
17912postdep_objects_CXX=
17913predeps_CXX=
17914postdeps_CXX=
17915compiler_lib_search_path_CXX=
17916
17917cat > conftest.$ac_ext <<_LT_EOF
17918class Foo
17919{
17920public:
17921 Foo (void) { a = 0; }
17922private:
17923 int a;
17924};
17925_LT_EOF
17926
cristyda16f162011-02-19 23:52:17 +000017927
17928_lt_libdeps_save_CFLAGS=$CFLAGS
17929case "$CC $CFLAGS " in #(
17930*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17931*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17932esac
17933
cristy73bd4a52010-10-05 11:24:23 +000017934if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17935 (eval $ac_compile) 2>&5
17936 ac_status=$?
17937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938 test $ac_status = 0; }; then
17939 # Parse the compiler output and extract the necessary
17940 # objects, libraries and library flags.
17941
17942 # Sentinel used to keep track of whether or not we are before
17943 # the conftest object file.
17944 pre_test_object_deps_done=no
17945
17946 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017947 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017948
17949 -L* | -R* | -l*)
17950 # Some compilers place space between "-{L,R}" and the path.
17951 # Remove the space.
17952 if test $p = "-L" ||
17953 test $p = "-R"; then
17954 prev=$p
17955 continue
cristy73bd4a52010-10-05 11:24:23 +000017956 fi
17957
cristyda16f162011-02-19 23:52:17 +000017958 # Expand the sysroot to ease extracting the directories later.
17959 if test -z "$prev"; then
17960 case $p in
17961 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17962 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17963 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17964 esac
17965 fi
17966 case $p in
17967 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17968 esac
cristy73bd4a52010-10-05 11:24:23 +000017969 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017970 case ${prev} in
17971 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017972 # Internal compiler library paths should come after those
17973 # provided the user. The postdeps already come after the
17974 # user supplied libs so there is no need to process them.
17975 if test -z "$compiler_lib_search_path_CXX"; then
17976 compiler_lib_search_path_CXX="${prev}${p}"
17977 else
17978 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17979 fi
17980 ;;
17981 # The "-l" case would never come before the object being
17982 # linked, so don't bother handling this case.
17983 esac
17984 else
17985 if test -z "$postdeps_CXX"; then
17986 postdeps_CXX="${prev}${p}"
17987 else
17988 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17989 fi
17990 fi
cristyda16f162011-02-19 23:52:17 +000017991 prev=
cristy73bd4a52010-10-05 11:24:23 +000017992 ;;
17993
cristyda16f162011-02-19 23:52:17 +000017994 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000017995 *.$objext)
17996 # This assumes that the test object file only shows up
17997 # once in the compiler output.
17998 if test "$p" = "conftest.$objext"; then
17999 pre_test_object_deps_done=yes
18000 continue
18001 fi
18002
18003 if test "$pre_test_object_deps_done" = no; then
18004 if test -z "$predep_objects_CXX"; then
18005 predep_objects_CXX="$p"
18006 else
18007 predep_objects_CXX="$predep_objects_CXX $p"
18008 fi
18009 else
18010 if test -z "$postdep_objects_CXX"; then
18011 postdep_objects_CXX="$p"
18012 else
18013 postdep_objects_CXX="$postdep_objects_CXX $p"
18014 fi
18015 fi
18016 ;;
18017
18018 *) ;; # Ignore the rest.
18019
18020 esac
18021 done
18022
18023 # Clean up.
18024 rm -f a.out a.exe
18025else
18026 echo "libtool.m4: error: problem compiling CXX test program"
18027fi
18028
18029$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018030CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018031
18032# PORTME: override above test on systems where it is broken
18033case $host_os in
18034interix[3-9]*)
18035 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18036 # hack all around it, let's just trust "g++" to DTRT.
18037 predep_objects_CXX=
18038 postdep_objects_CXX=
18039 postdeps_CXX=
18040 ;;
18041
18042linux*)
18043 case `$CC -V 2>&1 | sed 5q` in
18044 *Sun\ C*)
18045 # Sun C++ 5.9
18046
18047 # The more standards-conforming stlport4 library is
18048 # incompatible with the Cstd library. Avoid specifying
18049 # it if it's in CXXFLAGS. Ignore libCrun as
18050 # -library=stlport4 depends on it.
18051 case " $CXX $CXXFLAGS " in
18052 *" -library=stlport4 "*)
18053 solaris_use_stlport4=yes
18054 ;;
18055 esac
18056
18057 if test "$solaris_use_stlport4" != yes; then
18058 postdeps_CXX='-library=Cstd -library=Crun'
18059 fi
18060 ;;
18061 esac
18062 ;;
18063
18064solaris*)
18065 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018066 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018067 # The more standards-conforming stlport4 library is
18068 # incompatible with the Cstd library. Avoid specifying
18069 # it if it's in CXXFLAGS. Ignore libCrun as
18070 # -library=stlport4 depends on it.
18071 case " $CXX $CXXFLAGS " in
18072 *" -library=stlport4 "*)
18073 solaris_use_stlport4=yes
18074 ;;
18075 esac
18076
18077 # Adding this requires a known-good setup of shared libraries for
18078 # Sun compiler versions before 5.6, else PIC objects from an old
18079 # archive will be linked into the output, leading to subtle bugs.
18080 if test "$solaris_use_stlport4" != yes; then
18081 postdeps_CXX='-library=Cstd -library=Crun'
18082 fi
18083 ;;
18084 esac
18085 ;;
18086esac
18087
18088
18089case " $postdeps_CXX " in
18090*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18091esac
18092 compiler_lib_search_dirs_CXX=
18093if test -n "${compiler_lib_search_path_CXX}"; then
18094 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18095fi
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127 lt_prog_compiler_wl_CXX=
18128lt_prog_compiler_pic_CXX=
18129lt_prog_compiler_static_CXX=
18130
cristy73bd4a52010-10-05 11:24:23 +000018131
18132 # C++ specific cases for pic, static, wl, etc.
18133 if test "$GXX" = yes; then
18134 lt_prog_compiler_wl_CXX='-Wl,'
18135 lt_prog_compiler_static_CXX='-static'
18136
18137 case $host_os in
18138 aix*)
18139 # All AIX code is PIC.
18140 if test "$host_cpu" = ia64; then
18141 # AIX 5 now supports IA64 processor
18142 lt_prog_compiler_static_CXX='-Bstatic'
18143 fi
18144 ;;
18145
18146 amigaos*)
18147 case $host_cpu in
18148 powerpc)
18149 # see comment about AmigaOS4 .so support
18150 lt_prog_compiler_pic_CXX='-fPIC'
18151 ;;
18152 m68k)
18153 # FIXME: we need at least 68020 code to build shared libraries, but
18154 # adding the `-m68020' flag to GCC prevents building anything better,
18155 # like `-m68040'.
18156 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18157 ;;
18158 esac
18159 ;;
18160
18161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18162 # PIC is the default for these OSes.
18163 ;;
18164 mingw* | cygwin* | os2* | pw32* | cegcc*)
18165 # This hack is so that the source file can tell whether it is being
18166 # built for inclusion in a dll (and should export symbols for example).
18167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18168 # (--disable-auto-import) libraries
18169 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18170 ;;
18171 darwin* | rhapsody*)
18172 # PIC is the default on this platform
18173 # Common symbols not allowed in MH_DYLIB files
18174 lt_prog_compiler_pic_CXX='-fno-common'
18175 ;;
18176 *djgpp*)
18177 # DJGPP does not support shared libraries at all
18178 lt_prog_compiler_pic_CXX=
18179 ;;
cristy0c60a692010-11-04 01:09:47 +000018180 haiku*)
18181 # PIC is the default for Haiku.
18182 # The "-static" flag exists, but is broken.
18183 lt_prog_compiler_static_CXX=
18184 ;;
cristy73bd4a52010-10-05 11:24:23 +000018185 interix[3-9]*)
18186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18187 # Instead, we relocate shared libraries at runtime.
18188 ;;
18189 sysv4*MP*)
18190 if test -d /usr/nec; then
18191 lt_prog_compiler_pic_CXX=-Kconform_pic
18192 fi
18193 ;;
18194 hpux*)
18195 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18196 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18197 # sets the default TLS model and affects inlining.
18198 case $host_cpu in
18199 hppa*64*)
18200 ;;
18201 *)
18202 lt_prog_compiler_pic_CXX='-fPIC'
18203 ;;
18204 esac
18205 ;;
18206 *qnx* | *nto*)
18207 # QNX uses GNU C++, but need to define -shared option too, otherwise
18208 # it will coredump.
18209 lt_prog_compiler_pic_CXX='-fPIC -shared'
18210 ;;
18211 *)
18212 lt_prog_compiler_pic_CXX='-fPIC'
18213 ;;
18214 esac
18215 else
18216 case $host_os in
18217 aix[4-9]*)
18218 # All AIX code is PIC.
18219 if test "$host_cpu" = ia64; then
18220 # AIX 5 now supports IA64 processor
18221 lt_prog_compiler_static_CXX='-Bstatic'
18222 else
18223 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18224 fi
18225 ;;
18226 chorus*)
18227 case $cc_basename in
18228 cxch68*)
18229 # Green Hills C++ Compiler
18230 # _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"
18231 ;;
18232 esac
18233 ;;
cristyda16f162011-02-19 23:52:17 +000018234 mingw* | cygwin* | os2* | pw32* | cegcc*)
18235 # This hack is so that the source file can tell whether it is being
18236 # built for inclusion in a dll (and should export symbols for example).
18237 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18238 ;;
cristy73bd4a52010-10-05 11:24:23 +000018239 dgux*)
18240 case $cc_basename in
18241 ec++*)
18242 lt_prog_compiler_pic_CXX='-KPIC'
18243 ;;
18244 ghcx*)
18245 # Green Hills C++ Compiler
18246 lt_prog_compiler_pic_CXX='-pic'
18247 ;;
18248 *)
18249 ;;
18250 esac
18251 ;;
18252 freebsd* | dragonfly*)
18253 # FreeBSD uses GNU C++
18254 ;;
18255 hpux9* | hpux10* | hpux11*)
18256 case $cc_basename in
18257 CC*)
18258 lt_prog_compiler_wl_CXX='-Wl,'
18259 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18260 if test "$host_cpu" != ia64; then
18261 lt_prog_compiler_pic_CXX='+Z'
18262 fi
18263 ;;
18264 aCC*)
18265 lt_prog_compiler_wl_CXX='-Wl,'
18266 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18267 case $host_cpu in
18268 hppa*64*|ia64*)
18269 # +Z the default
18270 ;;
18271 *)
18272 lt_prog_compiler_pic_CXX='+Z'
18273 ;;
18274 esac
18275 ;;
18276 *)
18277 ;;
18278 esac
18279 ;;
18280 interix*)
18281 # This is c89, which is MS Visual C++ (no shared libs)
18282 # Anyone wants to do a port?
18283 ;;
18284 irix5* | irix6* | nonstopux*)
18285 case $cc_basename in
18286 CC*)
18287 lt_prog_compiler_wl_CXX='-Wl,'
18288 lt_prog_compiler_static_CXX='-non_shared'
18289 # CC pic flag -KPIC is the default.
18290 ;;
18291 *)
18292 ;;
18293 esac
18294 ;;
cristy0c60a692010-11-04 01:09:47 +000018295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018296 case $cc_basename in
18297 KCC*)
18298 # KAI C++ Compiler
18299 lt_prog_compiler_wl_CXX='--backend -Wl,'
18300 lt_prog_compiler_pic_CXX='-fPIC'
18301 ;;
18302 ecpc* )
18303 # old Intel C++ for x86_64 which still supported -KPIC.
18304 lt_prog_compiler_wl_CXX='-Wl,'
18305 lt_prog_compiler_pic_CXX='-KPIC'
18306 lt_prog_compiler_static_CXX='-static'
18307 ;;
18308 icpc* )
18309 # Intel C++, used to be incompatible with GCC.
18310 # ICC 10 doesn't accept -KPIC any more.
18311 lt_prog_compiler_wl_CXX='-Wl,'
18312 lt_prog_compiler_pic_CXX='-fPIC'
18313 lt_prog_compiler_static_CXX='-static'
18314 ;;
18315 pgCC* | pgcpp*)
18316 # Portland Group C++ compiler
18317 lt_prog_compiler_wl_CXX='-Wl,'
18318 lt_prog_compiler_pic_CXX='-fpic'
18319 lt_prog_compiler_static_CXX='-Bstatic'
18320 ;;
18321 cxx*)
18322 # Compaq C++
18323 # Make sure the PIC flag is empty. It appears that all Alpha
18324 # Linux and Compaq Tru64 Unix objects are PIC.
18325 lt_prog_compiler_pic_CXX=
18326 lt_prog_compiler_static_CXX='-non_shared'
18327 ;;
cristy0c60a692010-11-04 01:09:47 +000018328 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18329 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018330 lt_prog_compiler_wl_CXX='-Wl,'
18331 lt_prog_compiler_pic_CXX='-qpic'
18332 lt_prog_compiler_static_CXX='-qstaticlink'
18333 ;;
18334 *)
18335 case `$CC -V 2>&1 | sed 5q` in
18336 *Sun\ C*)
18337 # Sun C++ 5.9
18338 lt_prog_compiler_pic_CXX='-KPIC'
18339 lt_prog_compiler_static_CXX='-Bstatic'
18340 lt_prog_compiler_wl_CXX='-Qoption ld '
18341 ;;
18342 esac
18343 ;;
18344 esac
18345 ;;
18346 lynxos*)
18347 ;;
18348 m88k*)
18349 ;;
18350 mvs*)
18351 case $cc_basename in
18352 cxx*)
18353 lt_prog_compiler_pic_CXX='-W c,exportall'
18354 ;;
18355 *)
18356 ;;
18357 esac
18358 ;;
18359 netbsd*)
18360 ;;
18361 *qnx* | *nto*)
18362 # QNX uses GNU C++, but need to define -shared option too, otherwise
18363 # it will coredump.
18364 lt_prog_compiler_pic_CXX='-fPIC -shared'
18365 ;;
18366 osf3* | osf4* | osf5*)
18367 case $cc_basename in
18368 KCC*)
18369 lt_prog_compiler_wl_CXX='--backend -Wl,'
18370 ;;
18371 RCC*)
18372 # Rational C++ 2.4.1
18373 lt_prog_compiler_pic_CXX='-pic'
18374 ;;
18375 cxx*)
18376 # Digital/Compaq C++
18377 lt_prog_compiler_wl_CXX='-Wl,'
18378 # Make sure the PIC flag is empty. It appears that all Alpha
18379 # Linux and Compaq Tru64 Unix objects are PIC.
18380 lt_prog_compiler_pic_CXX=
18381 lt_prog_compiler_static_CXX='-non_shared'
18382 ;;
18383 *)
18384 ;;
18385 esac
18386 ;;
18387 psos*)
18388 ;;
18389 solaris*)
18390 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018391 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018392 # Sun C++ 4.2, 5.x and Centerline C++
18393 lt_prog_compiler_pic_CXX='-KPIC'
18394 lt_prog_compiler_static_CXX='-Bstatic'
18395 lt_prog_compiler_wl_CXX='-Qoption ld '
18396 ;;
18397 gcx*)
18398 # Green Hills C++ Compiler
18399 lt_prog_compiler_pic_CXX='-PIC'
18400 ;;
18401 *)
18402 ;;
18403 esac
18404 ;;
18405 sunos4*)
18406 case $cc_basename in
18407 CC*)
18408 # Sun C++ 4.x
18409 lt_prog_compiler_pic_CXX='-pic'
18410 lt_prog_compiler_static_CXX='-Bstatic'
18411 ;;
18412 lcc*)
18413 # Lucid
18414 lt_prog_compiler_pic_CXX='-pic'
18415 ;;
18416 *)
18417 ;;
18418 esac
18419 ;;
18420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18421 case $cc_basename in
18422 CC*)
18423 lt_prog_compiler_wl_CXX='-Wl,'
18424 lt_prog_compiler_pic_CXX='-KPIC'
18425 lt_prog_compiler_static_CXX='-Bstatic'
18426 ;;
18427 esac
18428 ;;
18429 tandem*)
18430 case $cc_basename in
18431 NCC*)
18432 # NonStop-UX NCC 3.20
18433 lt_prog_compiler_pic_CXX='-KPIC'
18434 ;;
18435 *)
18436 ;;
18437 esac
18438 ;;
18439 vxworks*)
18440 ;;
18441 *)
18442 lt_prog_compiler_can_build_shared_CXX=no
18443 ;;
18444 esac
18445 fi
18446
18447case $host_os in
18448 # For platforms which do not support PIC, -DPIC is meaningless:
18449 *djgpp*)
18450 lt_prog_compiler_pic_CXX=
18451 ;;
18452 *)
18453 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18454 ;;
18455esac
cristy73bd4a52010-10-05 11:24:23 +000018456
cristyda16f162011-02-19 23:52:17 +000018457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18458$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18459if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18460 $as_echo_n "(cached) " >&6
18461else
18462 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18463fi
18464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18465$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18466lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018467
18468#
18469# Check to make sure the PIC flag actually works.
18470#
18471if test -n "$lt_prog_compiler_pic_CXX"; then
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18473$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018474if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018475 $as_echo_n "(cached) " >&6
18476else
18477 lt_cv_prog_compiler_pic_works_CXX=no
18478 ac_outfile=conftest.$ac_objext
18479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18480 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18481 # Insert the option either (1) after the last *FLAGS variable, or
18482 # (2) before a word containing "conftest.", or (3) at the end.
18483 # Note that $ac_compile itself does not contain backslashes and begins
18484 # with a dollar sign (not a hyphen), so the echo should work correctly.
18485 # The option is referenced via a variable to avoid confusing sed.
18486 lt_compile=`echo "$ac_compile" | $SED \
18487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18489 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018491 (eval "$lt_compile" 2>conftest.err)
18492 ac_status=$?
18493 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018495 if (exit $ac_status) && test -s "$ac_outfile"; then
18496 # The compiler can only warn and ignore the option if not recognized
18497 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18501 lt_cv_prog_compiler_pic_works_CXX=yes
18502 fi
18503 fi
18504 $RM conftest*
18505
18506fi
18507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18508$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18509
18510if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18511 case $lt_prog_compiler_pic_CXX in
18512 "" | " "*) ;;
18513 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18514 esac
18515else
18516 lt_prog_compiler_pic_CXX=
18517 lt_prog_compiler_can_build_shared_CXX=no
18518fi
18519
18520fi
18521
18522
18523
cristyda16f162011-02-19 23:52:17 +000018524
18525
cristy73bd4a52010-10-05 11:24:23 +000018526#
18527# Check to make sure the static flag actually works.
18528#
18529wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18531$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018532if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018533 $as_echo_n "(cached) " >&6
18534else
18535 lt_cv_prog_compiler_static_works_CXX=no
18536 save_LDFLAGS="$LDFLAGS"
18537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18540 # The linker can only warn and ignore the option if not recognized
18541 # So say no if there are warnings
18542 if test -s conftest.err; then
18543 # Append any errors to the config.log.
18544 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18547 if diff conftest.exp conftest.er2 >/dev/null; then
18548 lt_cv_prog_compiler_static_works_CXX=yes
18549 fi
18550 else
18551 lt_cv_prog_compiler_static_works_CXX=yes
18552 fi
18553 fi
18554 $RM -r conftest*
18555 LDFLAGS="$save_LDFLAGS"
18556
18557fi
18558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18559$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18560
18561if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18562 :
18563else
18564 lt_prog_compiler_static_CXX=
18565fi
18566
18567
18568
18569
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018572if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018573 $as_echo_n "(cached) " >&6
18574else
18575 lt_cv_prog_compiler_c_o_CXX=no
18576 $RM -r conftest 2>/dev/null
18577 mkdir conftest
18578 cd conftest
18579 mkdir out
18580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18581
18582 lt_compiler_flag="-o out/conftest2.$ac_objext"
18583 # Insert the option either (1) after the last *FLAGS variable, or
18584 # (2) before a word containing "conftest.", or (3) at the end.
18585 # Note that $ac_compile itself does not contain backslashes and begins
18586 # with a dollar sign (not a hyphen), so the echo should work correctly.
18587 lt_compile=`echo "$ac_compile" | $SED \
18588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18590 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018592 (eval "$lt_compile" 2>out/conftest.err)
18593 ac_status=$?
18594 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18597 then
18598 # The compiler can only warn and ignore the option if not recognized
18599 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18603 lt_cv_prog_compiler_c_o_CXX=yes
18604 fi
18605 fi
18606 chmod u+w . 2>&5
18607 $RM conftest*
18608 # SGI C++ compiler will create directory out/ii_files/ for
18609 # template instantiation
18610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18611 $RM out/* && rmdir out
18612 cd ..
18613 $RM -r conftest
18614 $RM conftest*
18615
18616fi
18617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18618$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18619
18620
18621
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18623$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018624if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018625 $as_echo_n "(cached) " >&6
18626else
18627 lt_cv_prog_compiler_c_o_CXX=no
18628 $RM -r conftest 2>/dev/null
18629 mkdir conftest
18630 cd conftest
18631 mkdir out
18632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18633
18634 lt_compiler_flag="-o out/conftest2.$ac_objext"
18635 # Insert the option either (1) after the last *FLAGS variable, or
18636 # (2) before a word containing "conftest.", or (3) at the end.
18637 # Note that $ac_compile itself does not contain backslashes and begins
18638 # with a dollar sign (not a hyphen), so the echo should work correctly.
18639 lt_compile=`echo "$ac_compile" | $SED \
18640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18642 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018644 (eval "$lt_compile" 2>out/conftest.err)
18645 ac_status=$?
18646 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18649 then
18650 # The compiler can only warn and ignore the option if not recognized
18651 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18655 lt_cv_prog_compiler_c_o_CXX=yes
18656 fi
18657 fi
18658 chmod u+w . 2>&5
18659 $RM conftest*
18660 # SGI C++ compiler will create directory out/ii_files/ for
18661 # template instantiation
18662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18663 $RM out/* && rmdir out
18664 cd ..
18665 $RM -r conftest
18666 $RM conftest*
18667
18668fi
18669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18670$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18671
18672
18673
18674
18675hard_links="nottested"
18676if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18677 # do not overwrite the value of need_locks provided by the user
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18679$as_echo_n "checking if we can lock with hard links... " >&6; }
18680 hard_links=yes
18681 $RM conftest*
18682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18683 touch conftest.a
18684 ln conftest.a conftest.b 2>&5 || hard_links=no
18685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18687$as_echo "$hard_links" >&6; }
18688 if test "$hard_links" = no; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18690$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18691 need_locks=warn
18692 fi
18693else
18694 need_locks=no
18695fi
18696
18697
18698
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18700$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18701
18702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018703 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018704 case $host_os in
18705 aix[4-9]*)
18706 # If we're using GNU nm, then we don't want the "-C" option.
18707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018708 # Also, AIX nm treats weak defined symbols like other global defined
18709 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018710 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018711 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 +000018712 else
18713 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'
18714 fi
18715 ;;
18716 pw32*)
18717 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018718 ;;
cristy73bd4a52010-10-05 11:24:23 +000018719 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018720 case $cc_basename in
18721 cl*) ;;
18722 *)
18723 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'
18724 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18725 ;;
18726 esac
18727 ;;
cristy73bd4a52010-10-05 11:24:23 +000018728 *)
18729 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018730 ;;
cristy73bd4a52010-10-05 11:24:23 +000018731 esac
cristy73bd4a52010-10-05 11:24:23 +000018732
18733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18734$as_echo "$ld_shlibs_CXX" >&6; }
18735test "$ld_shlibs_CXX" = no && can_build_shared=no
18736
18737with_gnu_ld_CXX=$with_gnu_ld
18738
18739
18740
18741
18742
18743
18744#
18745# Do we need to explicitly link libc?
18746#
18747case "x$archive_cmds_need_lc_CXX" in
18748x|xyes)
18749 # Assume -lc should be added
18750 archive_cmds_need_lc_CXX=yes
18751
18752 if test "$enable_shared" = yes && test "$GCC" = yes; then
18753 case $archive_cmds_CXX in
18754 *'~'*)
18755 # FIXME: we may have to deal with multi-command sequences.
18756 ;;
18757 '$CC '*)
18758 # Test whether the compiler implicitly links with -lc since on some
18759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18760 # to ld, don't add -lc before -lgcc.
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18762$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018763if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018764 $as_echo_n "(cached) " >&6
18765else
18766 $RM conftest*
18767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018768
cristy0c60a692010-11-04 01:09:47 +000018769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018770 (eval $ac_compile) 2>&5
18771 ac_status=$?
18772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018774 soname=conftest
18775 lib=conftest
18776 libobjs=conftest.$ac_objext
18777 deplibs=
18778 wl=$lt_prog_compiler_wl_CXX
18779 pic_flag=$lt_prog_compiler_pic_CXX
18780 compiler_flags=-v
18781 linker_flags=-v
18782 verstring=
18783 output_objdir=.
18784 libname=conftest
18785 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18786 allow_undefined_flag_CXX=
18787 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 +000018788 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18789 ac_status=$?
18790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18791 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018792 then
18793 lt_cv_archive_cmds_need_lc_CXX=no
18794 else
18795 lt_cv_archive_cmds_need_lc_CXX=yes
18796 fi
18797 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18798 else
18799 cat conftest.err 1>&5
18800 fi
18801 $RM conftest*
18802
18803fi
18804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18805$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18806 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018807 ;;
18808 esac
18809 fi
18810 ;;
18811esac
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18877$as_echo_n "checking dynamic linker characteristics... " >&6; }
18878
18879library_names_spec=
18880libname_spec='lib$name'
18881soname_spec=
18882shrext_cmds=".so"
18883postinstall_cmds=
18884postuninstall_cmds=
18885finish_cmds=
18886finish_eval=
18887shlibpath_var=
18888shlibpath_overrides_runpath=unknown
18889version_type=none
18890dynamic_linker="$host_os ld.so"
18891sys_lib_dlsearch_path_spec="/lib /usr/lib"
18892need_lib_prefix=unknown
18893hardcode_into_libs=no
18894
18895# when you set need_version to no, make sure it does not cause -set_version
18896# flags to be left without arguments
18897need_version=unknown
18898
18899case $host_os in
18900aix3*)
18901 version_type=linux
18902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18903 shlibpath_var=LIBPATH
18904
18905 # AIX 3 has no versioning support, so we append a major version to the name.
18906 soname_spec='${libname}${release}${shared_ext}$major'
18907 ;;
18908
18909aix[4-9]*)
18910 version_type=linux
18911 need_lib_prefix=no
18912 need_version=no
18913 hardcode_into_libs=yes
18914 if test "$host_cpu" = ia64; then
18915 # AIX 5 supports IA64
18916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 else
18919 # With GCC up to 2.95.x, collect2 would create an import file
18920 # for dependence libraries. The import file would start with
18921 # the line `#! .'. This would cause the generated library to
18922 # depend on `.', always an invalid library. This was fixed in
18923 # development snapshots of GCC prior to 3.0.
18924 case $host_os in
18925 aix4 | aix4.[01] | aix4.[01].*)
18926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18927 echo ' yes '
18928 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18929 :
18930 else
18931 can_build_shared=no
18932 fi
18933 ;;
18934 esac
18935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18936 # soname into executable. Probably we can add versioning support to
18937 # collect2, so additional links can be useful in future.
18938 if test "$aix_use_runtimelinking" = yes; then
18939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18940 # instead of lib<name>.a to let people know that these are not
18941 # typical AIX shared libraries.
18942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18943 else
18944 # We preserve .a as extension for shared libraries through AIX4.2
18945 # and later when we are not doing run time linking.
18946 library_names_spec='${libname}${release}.a $libname.a'
18947 soname_spec='${libname}${release}${shared_ext}$major'
18948 fi
18949 shlibpath_var=LIBPATH
18950 fi
18951 ;;
18952
18953amigaos*)
18954 case $host_cpu in
18955 powerpc)
18956 # Since July 2007 AmigaOS4 officially supports .so libraries.
18957 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959 ;;
18960 m68k)
18961 library_names_spec='$libname.ixlibrary $libname.a'
18962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018963 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 +000018964 ;;
18965 esac
18966 ;;
18967
18968beos*)
18969 library_names_spec='${libname}${shared_ext}'
18970 dynamic_linker="$host_os ld.so"
18971 shlibpath_var=LIBRARY_PATH
18972 ;;
18973
18974bsdi[45]*)
18975 version_type=linux
18976 need_version=no
18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978 soname_spec='${libname}${release}${shared_ext}$major'
18979 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18980 shlibpath_var=LD_LIBRARY_PATH
18981 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18982 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18983 # the default ld.so.conf also contains /usr/contrib/lib and
18984 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18985 # libtool to hard-code these into programs
18986 ;;
18987
18988cygwin* | mingw* | pw32* | cegcc*)
18989 version_type=windows
18990 shrext_cmds=".dll"
18991 need_version=no
18992 need_lib_prefix=no
18993
cristyda16f162011-02-19 23:52:17 +000018994 case $GCC,$cc_basename in
18995 yes,*)
18996 # gcc
cristy73bd4a52010-10-05 11:24:23 +000018997 library_names_spec='$libname.dll.a'
18998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18999 postinstall_cmds='base_file=`basename \${file}`~
19000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19001 dldir=$destdir/`dirname \$dlpath`~
19002 test -d \$dldir || mkdir -p \$dldir~
19003 $install_prog $dir/$dlname \$dldir/$dlname~
19004 chmod a+x \$dldir/$dlname~
19005 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19006 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19007 fi'
19008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19009 dlpath=$dir/\$dldll~
19010 $RM \$dlpath'
19011 shlibpath_overrides_runpath=yes
19012
19013 case $host_os in
19014 cygwin*)
19015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019017
cristy73bd4a52010-10-05 11:24:23 +000019018 ;;
19019 mingw* | cegcc*)
19020 # MinGW DLLs use traditional 'lib' prefix
19021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019022 ;;
19023 pw32*)
19024 # pw32 DLLs use 'pw' prefix rather than 'lib'
19025 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19026 ;;
19027 esac
cristyda16f162011-02-19 23:52:17 +000019028 dynamic_linker='Win32 ld.exe'
19029 ;;
19030
19031 *,cl*)
19032 # Native MSVC
19033 libname_spec='$name'
19034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19035 library_names_spec='${libname}.dll.lib'
19036
19037 case $build_os in
19038 mingw*)
19039 sys_lib_search_path_spec=
19040 lt_save_ifs=$IFS
19041 IFS=';'
19042 for lt_path in $LIB
19043 do
19044 IFS=$lt_save_ifs
19045 # Let DOS variable expansion print the short 8.3 style file name.
19046 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19047 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19048 done
19049 IFS=$lt_save_ifs
19050 # Convert to MSYS style.
19051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19052 ;;
19053 cygwin*)
19054 # Convert to unix form, then to dos form, then back to unix form
19055 # but this time dos style (no spaces!) so that the unix form looks
19056 # like /cygdrive/c/PROGRA~1:/cygdr...
19057 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19058 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19059 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19060 ;;
19061 *)
19062 sys_lib_search_path_spec="$LIB"
19063 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19064 # It is most probably a Windows format PATH.
19065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19066 else
19067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19068 fi
19069 # FIXME: find the short name or the path components, as spaces are
19070 # common. (e.g. "Program Files" -> "PROGRA~1")
19071 ;;
19072 esac
19073
19074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19075 postinstall_cmds='base_file=`basename \${file}`~
19076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19077 dldir=$destdir/`dirname \$dlpath`~
19078 test -d \$dldir || mkdir -p \$dldir~
19079 $install_prog $dir/$dlname \$dldir/$dlname'
19080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19081 dlpath=$dir/\$dldll~
19082 $RM \$dlpath'
19083 shlibpath_overrides_runpath=yes
19084 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019085 ;;
19086
19087 *)
cristyda16f162011-02-19 23:52:17 +000019088 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019090 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019091 ;;
19092 esac
cristy73bd4a52010-10-05 11:24:23 +000019093 # FIXME: first we should search . and the directory the executable is in
19094 shlibpath_var=PATH
19095 ;;
19096
19097darwin* | rhapsody*)
19098 dynamic_linker="$host_os dyld"
19099 version_type=darwin
19100 need_lib_prefix=no
19101 need_version=no
19102 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19103 soname_spec='${libname}${release}${major}$shared_ext'
19104 shlibpath_overrides_runpath=yes
19105 shlibpath_var=DYLD_LIBRARY_PATH
19106 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19107
19108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19109 ;;
19110
19111dgux*)
19112 version_type=linux
19113 need_lib_prefix=no
19114 need_version=no
19115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19116 soname_spec='${libname}${release}${shared_ext}$major'
19117 shlibpath_var=LD_LIBRARY_PATH
19118 ;;
19119
19120freebsd1*)
19121 dynamic_linker=no
19122 ;;
19123
19124freebsd* | dragonfly*)
19125 # DragonFly does not have aout. When/if they implement a new
19126 # versioning mechanism, adjust this.
19127 if test -x /usr/bin/objformat; then
19128 objformat=`/usr/bin/objformat`
19129 else
19130 case $host_os in
19131 freebsd[123]*) objformat=aout ;;
19132 *) objformat=elf ;;
19133 esac
19134 fi
19135 version_type=freebsd-$objformat
19136 case $version_type in
19137 freebsd-elf*)
19138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19139 need_version=no
19140 need_lib_prefix=no
19141 ;;
19142 freebsd-*)
19143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19144 need_version=yes
19145 ;;
19146 esac
19147 shlibpath_var=LD_LIBRARY_PATH
19148 case $host_os in
19149 freebsd2*)
19150 shlibpath_overrides_runpath=yes
19151 ;;
19152 freebsd3.[01]* | freebsdelf3.[01]*)
19153 shlibpath_overrides_runpath=yes
19154 hardcode_into_libs=yes
19155 ;;
19156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19158 shlibpath_overrides_runpath=no
19159 hardcode_into_libs=yes
19160 ;;
19161 *) # from 4.6 on, and DragonFly
19162 shlibpath_overrides_runpath=yes
19163 hardcode_into_libs=yes
19164 ;;
19165 esac
19166 ;;
19167
19168gnu*)
19169 version_type=linux
19170 need_lib_prefix=no
19171 need_version=no
19172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19173 soname_spec='${libname}${release}${shared_ext}$major'
19174 shlibpath_var=LD_LIBRARY_PATH
19175 hardcode_into_libs=yes
19176 ;;
19177
cristy0c60a692010-11-04 01:09:47 +000019178haiku*)
19179 version_type=linux
19180 need_lib_prefix=no
19181 need_version=no
19182 dynamic_linker="$host_os runtime_loader"
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LIBRARY_PATH
19186 shlibpath_overrides_runpath=yes
19187 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19188 hardcode_into_libs=yes
19189 ;;
19190
cristy73bd4a52010-10-05 11:24:23 +000019191hpux9* | hpux10* | hpux11*)
19192 # Give a soname corresponding to the major version so that dld.sl refuses to
19193 # link against other versions.
19194 version_type=sunos
19195 need_lib_prefix=no
19196 need_version=no
19197 case $host_cpu in
19198 ia64*)
19199 shrext_cmds='.so'
19200 hardcode_into_libs=yes
19201 dynamic_linker="$host_os dld.so"
19202 shlibpath_var=LD_LIBRARY_PATH
19203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19205 soname_spec='${libname}${release}${shared_ext}$major'
19206 if test "X$HPUX_IA64_MODE" = X32; then
19207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19208 else
19209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19210 fi
19211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19212 ;;
19213 hppa*64*)
19214 shrext_cmds='.sl'
19215 hardcode_into_libs=yes
19216 dynamic_linker="$host_os dld.sl"
19217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19220 soname_spec='${libname}${release}${shared_ext}$major'
19221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19223 ;;
19224 *)
19225 shrext_cmds='.sl'
19226 dynamic_linker="$host_os dld.sl"
19227 shlibpath_var=SHLIB_PATH
19228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 ;;
19232 esac
cristy0c60a692010-11-04 01:09:47 +000019233 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019234 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019235 # or fails outright, so override atomically:
19236 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019237 ;;
19238
19239interix[3-9]*)
19240 version_type=linux
19241 need_lib_prefix=no
19242 need_version=no
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19244 soname_spec='${libname}${release}${shared_ext}$major'
19245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19246 shlibpath_var=LD_LIBRARY_PATH
19247 shlibpath_overrides_runpath=no
19248 hardcode_into_libs=yes
19249 ;;
19250
19251irix5* | irix6* | nonstopux*)
19252 case $host_os in
19253 nonstopux*) version_type=nonstopux ;;
19254 *)
19255 if test "$lt_cv_prog_gnu_ld" = yes; then
19256 version_type=linux
19257 else
19258 version_type=irix
19259 fi ;;
19260 esac
19261 need_lib_prefix=no
19262 need_version=no
19263 soname_spec='${libname}${release}${shared_ext}$major'
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19265 case $host_os in
19266 irix5* | nonstopux*)
19267 libsuff= shlibsuff=
19268 ;;
19269 *)
19270 case $LD in # libtool.m4 will add one of these switches to LD
19271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19272 libsuff= shlibsuff= libmagic=32-bit;;
19273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19274 libsuff=32 shlibsuff=N32 libmagic=N32;;
19275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19277 *) libsuff= shlibsuff= libmagic=never-match;;
19278 esac
19279 ;;
19280 esac
19281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19282 shlibpath_overrides_runpath=no
19283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19285 hardcode_into_libs=yes
19286 ;;
19287
19288# No shared lib support for Linux oldld, aout, or coff.
19289linux*oldld* | linux*aout* | linux*coff*)
19290 dynamic_linker=no
19291 ;;
19292
19293# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019294linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019295 version_type=linux
19296 need_lib_prefix=no
19297 need_version=no
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19301 shlibpath_var=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019303
cristy73bd4a52010-10-05 11:24:23 +000019304 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019305 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019306 $as_echo_n "(cached) " >&6
19307else
19308 lt_cv_shlibpath_overrides_runpath=no
19309 save_LDFLAGS=$LDFLAGS
19310 save_libdir=$libdir
19311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019314/* end confdefs.h. */
19315
19316int
19317main ()
19318{
19319
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324if ac_fn_cxx_try_link "$LINENO"; then :
19325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019326 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019327fi
19328fi
19329rm -f core conftest.err conftest.$ac_objext \
19330 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019331 LDFLAGS=$save_LDFLAGS
19332 libdir=$save_libdir
19333
19334fi
19335
19336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019337
19338 # This implies no fast_install, which is unacceptable.
19339 # Some rework will be needed to allow for fast_install
19340 # before this can be enabled.
19341 hardcode_into_libs=yes
19342
19343 # Add ABI-specific directories to the system library path.
19344 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19345
19346 # Append ld.so.conf contents to the search path
19347 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019348 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 +000019349 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019350
cristy73bd4a52010-10-05 11:24:23 +000019351 fi
19352
19353 # We used to test for /lib/ld.so.1 and disable shared libraries on
19354 # powerpc, because MkLinux only supported shared libraries with the
19355 # GNU dynamic linker. Since this was broken with cross compilers,
19356 # most powerpc-linux boxes support dynamic linking these days and
19357 # people can always --disable-shared, the test was removed, and we
19358 # assume the GNU/Linux dynamic linker is in use.
19359 dynamic_linker='GNU/Linux ld.so'
19360 ;;
19361
19362netbsd*)
19363 version_type=sunos
19364 need_lib_prefix=no
19365 need_version=no
19366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19369 dynamic_linker='NetBSD (a.out) ld.so'
19370 else
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 dynamic_linker='NetBSD ld.elf_so'
19374 fi
19375 shlibpath_var=LD_LIBRARY_PATH
19376 shlibpath_overrides_runpath=yes
19377 hardcode_into_libs=yes
19378 ;;
19379
19380newsos6)
19381 version_type=linux
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 shlibpath_overrides_runpath=yes
19385 ;;
19386
19387*nto* | *qnx*)
19388 version_type=qnx
19389 need_lib_prefix=no
19390 need_version=no
19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392 soname_spec='${libname}${release}${shared_ext}$major'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=no
19395 hardcode_into_libs=yes
19396 dynamic_linker='ldqnx.so'
19397 ;;
19398
19399openbsd*)
19400 version_type=sunos
19401 sys_lib_dlsearch_path_spec="/usr/lib"
19402 need_lib_prefix=no
19403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19404 case $host_os in
19405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19406 *) need_version=no ;;
19407 esac
19408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19410 shlibpath_var=LD_LIBRARY_PATH
19411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19412 case $host_os in
19413 openbsd2.[89] | openbsd2.[89].*)
19414 shlibpath_overrides_runpath=no
19415 ;;
19416 *)
19417 shlibpath_overrides_runpath=yes
19418 ;;
19419 esac
19420 else
19421 shlibpath_overrides_runpath=yes
19422 fi
19423 ;;
19424
19425os2*)
19426 libname_spec='$name'
19427 shrext_cmds=".dll"
19428 need_lib_prefix=no
19429 library_names_spec='$libname${shared_ext} $libname.a'
19430 dynamic_linker='OS/2 ld.exe'
19431 shlibpath_var=LIBPATH
19432 ;;
19433
19434osf3* | osf4* | osf5*)
19435 version_type=osf
19436 need_lib_prefix=no
19437 need_version=no
19438 soname_spec='${libname}${release}${shared_ext}$major'
19439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19440 shlibpath_var=LD_LIBRARY_PATH
19441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19443 ;;
19444
19445rdos*)
19446 dynamic_linker=no
19447 ;;
19448
19449solaris*)
19450 version_type=linux
19451 need_lib_prefix=no
19452 need_version=no
19453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19454 soname_spec='${libname}${release}${shared_ext}$major'
19455 shlibpath_var=LD_LIBRARY_PATH
19456 shlibpath_overrides_runpath=yes
19457 hardcode_into_libs=yes
19458 # ldd complains unless libraries are executable
19459 postinstall_cmds='chmod +x $lib'
19460 ;;
19461
19462sunos4*)
19463 version_type=sunos
19464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19466 shlibpath_var=LD_LIBRARY_PATH
19467 shlibpath_overrides_runpath=yes
19468 if test "$with_gnu_ld" = yes; then
19469 need_lib_prefix=no
19470 fi
19471 need_version=yes
19472 ;;
19473
19474sysv4 | sysv4.3*)
19475 version_type=linux
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=LD_LIBRARY_PATH
19479 case $host_vendor in
19480 sni)
19481 shlibpath_overrides_runpath=no
19482 need_lib_prefix=no
19483 runpath_var=LD_RUN_PATH
19484 ;;
19485 siemens)
19486 need_lib_prefix=no
19487 ;;
19488 motorola)
19489 need_lib_prefix=no
19490 need_version=no
19491 shlibpath_overrides_runpath=no
19492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19493 ;;
19494 esac
19495 ;;
19496
19497sysv4*MP*)
19498 if test -d /usr/nec ;then
19499 version_type=linux
19500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19501 soname_spec='$libname${shared_ext}.$major'
19502 shlibpath_var=LD_LIBRARY_PATH
19503 fi
19504 ;;
19505
19506sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19507 version_type=freebsd-elf
19508 need_lib_prefix=no
19509 need_version=no
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 shlibpath_overrides_runpath=yes
19514 hardcode_into_libs=yes
19515 if test "$with_gnu_ld" = yes; then
19516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19517 else
19518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19519 case $host_os in
19520 sco3.2v5*)
19521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19522 ;;
19523 esac
19524 fi
19525 sys_lib_dlsearch_path_spec='/usr/lib'
19526 ;;
19527
19528tpf*)
19529 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19530 version_type=linux
19531 need_lib_prefix=no
19532 need_version=no
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534 shlibpath_var=LD_LIBRARY_PATH
19535 shlibpath_overrides_runpath=no
19536 hardcode_into_libs=yes
19537 ;;
19538
19539uts4*)
19540 version_type=linux
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19542 soname_spec='${libname}${release}${shared_ext}$major'
19543 shlibpath_var=LD_LIBRARY_PATH
19544 ;;
19545
19546*)
19547 dynamic_linker=no
19548 ;;
19549esac
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19551$as_echo "$dynamic_linker" >&6; }
19552test "$dynamic_linker" = no && can_build_shared=no
19553
19554variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19555if test "$GCC" = yes; then
19556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19557fi
19558
19559if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19560 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19561fi
19562if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19563 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19564fi
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
cristy0c60a692010-11-04 01:09:47 +000019601
19602
cristy73bd4a52010-10-05 11:24:23 +000019603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19604$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19605hardcode_action_CXX=
19606if test -n "$hardcode_libdir_flag_spec_CXX" ||
19607 test -n "$runpath_var_CXX" ||
19608 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19609
19610 # We can hardcode non-existent directories.
19611 if test "$hardcode_direct_CXX" != no &&
19612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19613 # have to relink, otherwise we might link with an installed library
19614 # when we should be linking with a yet-to-be-installed one
19615 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19616 test "$hardcode_minus_L_CXX" != no; then
19617 # Linking always hardcodes the temporary library directory.
19618 hardcode_action_CXX=relink
19619 else
19620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19621 hardcode_action_CXX=immediate
19622 fi
19623else
19624 # We cannot hardcode anything, or else we can only hardcode existing
19625 # directories.
19626 hardcode_action_CXX=unsupported
19627fi
19628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19629$as_echo "$hardcode_action_CXX" >&6; }
19630
19631if test "$hardcode_action_CXX" = relink ||
19632 test "$inherit_rpath_CXX" = yes; then
19633 # Fast installation is not supported
19634 enable_fast_install=no
19635elif test "$shlibpath_overrides_runpath" = yes ||
19636 test "$enable_shared" = no; then
19637 # Fast installation is not necessary
19638 enable_fast_install=needless
19639fi
19640
19641
19642
19643
19644
19645
19646
19647 fi # test -n "$compiler"
19648
19649 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019650 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019651 LDCXX=$LD
19652 LD=$lt_save_LD
19653 GCC=$lt_save_GCC
19654 with_gnu_ld=$lt_save_with_gnu_ld
19655 lt_cv_path_LDCXX=$lt_cv_path_LD
19656 lt_cv_path_LD=$lt_save_path_LD
19657 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19658 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19659fi # test "$_lt_caught_CXX_error" != yes
19660
19661ac_ext=c
19662ac_cpp='$CPP $CPPFLAGS'
19663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19665ac_compiler_gnu=$ac_cv_c_compiler_gnu
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679 ac_config_commands="$ac_config_commands libtool"
19680
19681
19682
19683
19684# Only expand once:
19685
19686
19687
cristy3ed852e2009-09-05 21:47:34 +000019688
19689
19690# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019691
19692
19693
19694
19695
19696
19697
cristy73bd4a52010-10-05 11:24:23 +000019698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19699$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019700if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019701 $as_echo_n "(cached) " >&6
19702else
19703
19704module=yes
19705eval libltdl_cv_shlibext=$shrext_cmds
19706
19707fi
19708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19709$as_echo "$libltdl_cv_shlibext" >&6; }
19710if test -n "$libltdl_cv_shlibext"; then
19711
19712cat >>confdefs.h <<_ACEOF
19713#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19714_ACEOF
19715
19716fi
19717
19718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19719$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019720if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019721 $as_echo_n "(cached) " >&6
19722else
19723 lt_cv_module_path_var="$shlibpath_var"
19724fi
19725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19726$as_echo "$lt_cv_module_path_var" >&6; }
19727if test -n "$lt_cv_module_path_var"; then
19728
19729cat >>confdefs.h <<_ACEOF
19730#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19731_ACEOF
19732
19733fi
19734
19735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19736$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019737if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019738 $as_echo_n "(cached) " >&6
19739else
19740 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19741fi
19742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19743$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19744if test -n "$lt_cv_sys_dlsearch_path"; then
19745 sys_dlsearch_path=
19746 for dir in $lt_cv_sys_dlsearch_path; do
19747 if test -z "$sys_dlsearch_path"; then
19748 sys_dlsearch_path="$dir"
19749 else
19750 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19751 fi
19752 done
19753
19754cat >>confdefs.h <<_ACEOF
19755#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19756_ACEOF
19757
19758fi
19759
19760
19761LT_DLLOADERS=
19762
19763
19764ac_ext=c
19765ac_cpp='$CPP $CPPFLAGS'
19766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
19770
19771LIBADD_DLOPEN=
19772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19773$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019774if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019775 $as_echo_n "(cached) " >&6
19776else
19777 ac_func_search_save_LIBS=$LIBS
19778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19779/* end confdefs.h. */
19780
19781/* Override any GCC internal prototype to avoid an error.
19782 Use char because int might match the return type of a GCC
19783 builtin and then its argument prototype would still apply. */
19784#ifdef __cplusplus
19785extern "C"
19786#endif
19787char dlopen ();
19788int
19789main ()
19790{
19791return dlopen ();
19792 ;
19793 return 0;
19794}
19795_ACEOF
19796for ac_lib in '' dl; do
19797 if test -z "$ac_lib"; then
19798 ac_res="none required"
19799 else
19800 ac_res=-l$ac_lib
19801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19802 fi
19803 if ac_fn_c_try_link "$LINENO"; then :
19804 ac_cv_search_dlopen=$ac_res
19805fi
19806rm -f core conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019808 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019809 break
19810fi
19811done
cristyda16f162011-02-19 23:52:17 +000019812if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019813
19814else
19815 ac_cv_search_dlopen=no
19816fi
19817rm conftest.$ac_ext
19818LIBS=$ac_func_search_save_LIBS
19819fi
19820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19821$as_echo "$ac_cv_search_dlopen" >&6; }
19822ac_res=$ac_cv_search_dlopen
19823if test "$ac_res" != no; then :
19824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19825
19826$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19827
19828 if test "$ac_cv_search_dlopen" != "none required" ; then
19829 LIBADD_DLOPEN="-ldl"
19830 fi
19831 libltdl_cv_lib_dl_dlopen="yes"
19832 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19833else
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835/* end confdefs.h. */
19836#if HAVE_DLFCN_H
19837# include <dlfcn.h>
19838#endif
19839
19840int
19841main ()
19842{
19843dlopen(0, 0);
19844 ;
19845 return 0;
19846}
19847_ACEOF
19848if ac_fn_c_try_link "$LINENO"; then :
19849
19850$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19851
19852 libltdl_cv_func_dlopen="yes"
19853 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19854else
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19856$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019857if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019858 $as_echo_n "(cached) " >&6
19859else
19860 ac_check_lib_save_LIBS=$LIBS
19861LIBS="-lsvld $LIBS"
19862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863/* end confdefs.h. */
19864
19865/* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19868#ifdef __cplusplus
19869extern "C"
19870#endif
19871char dlopen ();
19872int
19873main ()
19874{
19875return dlopen ();
19876 ;
19877 return 0;
19878}
19879_ACEOF
19880if ac_fn_c_try_link "$LINENO"; then :
19881 ac_cv_lib_svld_dlopen=yes
19882else
19883 ac_cv_lib_svld_dlopen=no
19884fi
19885rm -f core conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
19887LIBS=$ac_check_lib_save_LIBS
19888fi
19889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19890$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019891if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019892
19893$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19894
19895 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19896 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19897fi
19898
19899fi
19900rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19902fi
19903
19904if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19905then
19906 lt_save_LIBS="$LIBS"
19907 LIBS="$LIBS $LIBADD_DLOPEN"
19908 for ac_func in dlerror
19909do :
19910 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019911if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019912 cat >>confdefs.h <<_ACEOF
19913#define HAVE_DLERROR 1
19914_ACEOF
19915
19916fi
19917done
19918
19919 LIBS="$lt_save_LIBS"
19920fi
19921
19922
19923LIBADD_SHL_LOAD=
19924ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019925if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019926
19927$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19928
19929 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19930else
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19932$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019933if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019934 $as_echo_n "(cached) " >&6
19935else
19936 ac_check_lib_save_LIBS=$LIBS
19937LIBS="-ldld $LIBS"
19938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939/* end confdefs.h. */
19940
19941/* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19944#ifdef __cplusplus
19945extern "C"
19946#endif
19947char shl_load ();
19948int
19949main ()
19950{
19951return shl_load ();
19952 ;
19953 return 0;
19954}
19955_ACEOF
19956if ac_fn_c_try_link "$LINENO"; then :
19957 ac_cv_lib_dld_shl_load=yes
19958else
19959 ac_cv_lib_dld_shl_load=no
19960fi
19961rm -f core conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19963LIBS=$ac_check_lib_save_LIBS
19964fi
19965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19966$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019967if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019968
19969$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19970
19971 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19972 LIBADD_SHL_LOAD="-ldld"
19973fi
19974
19975fi
19976
19977
19978
19979case $host_os in
19980darwin[1567].*)
19981# We only want this for pre-Mac OS X 10.4.
19982 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019983if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019984
19985$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19986
19987 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19988fi
19989
19990 ;;
19991beos*)
19992 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19993 ;;
19994cygwin* | mingw* | os2* | pw32*)
19995 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19996"
cristyda16f162011-02-19 23:52:17 +000019997if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019998 ac_have_decl=1
19999else
20000 ac_have_decl=0
20001fi
20002
20003cat >>confdefs.h <<_ACEOF
20004#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20005_ACEOF
20006
20007 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20008 ;;
20009esac
20010
20011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20012$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020013if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020014 $as_echo_n "(cached) " >&6
20015else
20016 ac_check_lib_save_LIBS=$LIBS
20017LIBS="-ldld $LIBS"
20018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019/* end confdefs.h. */
20020
20021/* Override any GCC internal prototype to avoid an error.
20022 Use char because int might match the return type of a GCC
20023 builtin and then its argument prototype would still apply. */
20024#ifdef __cplusplus
20025extern "C"
20026#endif
20027char dld_link ();
20028int
20029main ()
20030{
20031return dld_link ();
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036if ac_fn_c_try_link "$LINENO"; then :
20037 ac_cv_lib_dld_dld_link=yes
20038else
20039 ac_cv_lib_dld_dld_link=no
20040fi
20041rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20043LIBS=$ac_check_lib_save_LIBS
20044fi
20045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20046$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020047if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020048
20049$as_echo "#define HAVE_DLD 1" >>confdefs.h
20050
20051 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20052fi
20053
20054
20055
20056
20057LT_DLPREOPEN=
20058if test -n "$LT_DLLOADERS"
20059then
20060 for lt_loader in $LT_DLLOADERS; do
20061 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20062 done
20063
20064$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20065
20066fi
20067
20068
20069LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20070
20071
20072ac_ext=c
20073ac_cpp='$CPP $CPPFLAGS'
20074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20076ac_compiler_gnu=$ac_cv_c_compiler_gnu
20077
20078
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20080$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020081if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020082 $as_echo_n "(cached) " >&6
20083else
20084 lt_cv_sys_symbol_underscore=no
20085 cat > conftest.$ac_ext <<_LT_EOF
20086void nm_test_func(){}
20087int main(){nm_test_func;return 0;}
20088_LT_EOF
20089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20090 (eval $ac_compile) 2>&5
20091 ac_status=$?
20092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20093 test $ac_status = 0; }; then
20094 # Now try to grab the symbols.
20095 ac_nlist=conftest.nm
20096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20097 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; } && test -s "$ac_nlist"; then
20101 # See whether the symbols have a leading underscore.
20102 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20103 lt_cv_sys_symbol_underscore=yes
20104 else
20105 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20106 :
20107 else
20108 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20109 fi
20110 fi
20111 else
20112 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20113 fi
20114 else
20115 echo "configure: failed program was:" >&5
20116 cat conftest.c >&5
20117 fi
20118 rm -rf conftest*
20119
20120fi
20121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20122$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20123 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20124
20125
20126if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20127 if test x"$libltdl_cv_func_dlopen" = xyes ||
20128 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20130$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020131if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020132 $as_echo_n "(cached) " >&6
20133else
20134 libltdl_cv_need_uscore=unknown
20135 save_LIBS="$LIBS"
20136 LIBS="$LIBS $LIBADD_DLOPEN"
20137 if test "$cross_compiling" = yes; then :
20138 libltdl_cv_need_uscore=cross
20139else
20140 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20141 lt_status=$lt_dlunknown
20142 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020143#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020144#include "confdefs.h"
20145
20146#if HAVE_DLFCN_H
20147#include <dlfcn.h>
20148#endif
20149
20150#include <stdio.h>
20151
20152#ifdef RTLD_GLOBAL
20153# define LT_DLGLOBAL RTLD_GLOBAL
20154#else
20155# ifdef DL_GLOBAL
20156# define LT_DLGLOBAL DL_GLOBAL
20157# else
20158# define LT_DLGLOBAL 0
20159# endif
20160#endif
20161
20162/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20163 find out it does not work in some platform. */
20164#ifndef LT_DLLAZY_OR_NOW
20165# ifdef RTLD_LAZY
20166# define LT_DLLAZY_OR_NOW RTLD_LAZY
20167# else
20168# ifdef DL_LAZY
20169# define LT_DLLAZY_OR_NOW DL_LAZY
20170# else
20171# ifdef RTLD_NOW
20172# define LT_DLLAZY_OR_NOW RTLD_NOW
20173# else
20174# ifdef DL_NOW
20175# define LT_DLLAZY_OR_NOW DL_NOW
20176# else
20177# define LT_DLLAZY_OR_NOW 0
20178# endif
20179# endif
20180# endif
20181# endif
20182#endif
20183
cristy0c60a692010-11-04 01:09:47 +000020184/* When -fvisbility=hidden is used, assume the code has been annotated
20185 correspondingly for the symbols needed. */
20186#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020187int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020188#endif
20189
cristyda16f162011-02-19 23:52:17 +000020190int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020191int main ()
20192{
20193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20194 int status = $lt_dlunknown;
20195
20196 if (self)
20197 {
20198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020199 else
20200 {
20201 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20202 else puts (dlerror ());
20203 }
cristy73bd4a52010-10-05 11:24:23 +000020204 /* dlclose (self); */
20205 }
20206 else
20207 puts (dlerror ());
20208
20209 return status;
20210}
20211_LT_EOF
20212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20213 (eval $ac_link) 2>&5
20214 ac_status=$?
20215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20216 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20217 (./conftest; exit; ) >&5 2>/dev/null
20218 lt_status=$?
20219 case x$lt_status in
20220 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20221 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20222 x$lt_dlunknown|x*) ;;
20223 esac
20224 else :
20225 # compilation failed
20226
20227 fi
20228fi
20229rm -fr conftest*
20230
20231 LIBS="$save_LIBS"
20232
20233fi
20234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20235$as_echo "$libltdl_cv_need_uscore" >&6; }
20236 fi
20237fi
20238
20239if test x"$libltdl_cv_need_uscore" = xyes; then
20240
20241$as_echo "#define NEED_USCORE 1" >>confdefs.h
20242
20243fi
20244
20245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20246$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020247if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020248 $as_echo_n "(cached) " >&6
20249else
20250 # PORTME does your system automatically load deplibs for dlopen?
20251 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20252 # For now, we just catch OSes we know something about -- in the
20253 # future, we'll try test this programmatically.
20254 lt_cv_sys_dlopen_deplibs=unknown
20255 case $host_os in
20256 aix3*|aix4.1.*|aix4.2.*)
20257 # Unknown whether this is true for these versions of AIX, but
20258 # we want this `case' here to explicitly catch those versions.
20259 lt_cv_sys_dlopen_deplibs=unknown
20260 ;;
20261 aix[4-9]*)
20262 lt_cv_sys_dlopen_deplibs=yes
20263 ;;
20264 amigaos*)
20265 case $host_cpu in
20266 powerpc)
20267 lt_cv_sys_dlopen_deplibs=no
20268 ;;
20269 esac
20270 ;;
20271 darwin*)
20272 # Assuming the user has installed a libdl from somewhere, this is true
20273 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20274 lt_cv_sys_dlopen_deplibs=yes
20275 ;;
20276 freebsd* | dragonfly*)
20277 lt_cv_sys_dlopen_deplibs=yes
20278 ;;
cristy0c60a692010-11-04 01:09:47 +000020279 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020280 # GNU and its variants, using gnu ld.so (Glibc)
20281 lt_cv_sys_dlopen_deplibs=yes
20282 ;;
20283 hpux10*|hpux11*)
20284 lt_cv_sys_dlopen_deplibs=yes
20285 ;;
20286 interix*)
20287 lt_cv_sys_dlopen_deplibs=yes
20288 ;;
20289 irix[12345]*|irix6.[01]*)
20290 # Catch all versions of IRIX before 6.2, and indicate that we don't
20291 # know how it worked for any of those versions.
20292 lt_cv_sys_dlopen_deplibs=unknown
20293 ;;
20294 irix*)
20295 # The case above catches anything before 6.2, and it's known that
20296 # at 6.2 and later dlopen does load deplibs.
20297 lt_cv_sys_dlopen_deplibs=yes
20298 ;;
20299 netbsd*)
20300 lt_cv_sys_dlopen_deplibs=yes
20301 ;;
20302 openbsd*)
20303 lt_cv_sys_dlopen_deplibs=yes
20304 ;;
20305 osf[1234]*)
20306 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20307 # it did *not* use an RPATH in a shared library to find objects the
20308 # library depends on, so we explicitly say `no'.
20309 lt_cv_sys_dlopen_deplibs=no
20310 ;;
20311 osf5.0|osf5.0a|osf5.1)
20312 # dlopen *does* load deplibs and with the right loader patch applied
20313 # it even uses RPATH in a shared library to search for shared objects
20314 # that the library depends on, but there's no easy way to know if that
20315 # patch is installed. Since this is the case, all we can really
20316 # say is unknown -- it depends on the patch being installed. If
20317 # it is, this changes to `yes'. Without it, it would be `no'.
20318 lt_cv_sys_dlopen_deplibs=unknown
20319 ;;
20320 osf*)
20321 # the two cases above should catch all versions of osf <= 5.1. Read
20322 # the comments above for what we know about them.
20323 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20324 # is used to find them so we can finally say `yes'.
20325 lt_cv_sys_dlopen_deplibs=yes
20326 ;;
20327 qnx*)
20328 lt_cv_sys_dlopen_deplibs=yes
20329 ;;
20330 solaris*)
20331 lt_cv_sys_dlopen_deplibs=yes
20332 ;;
20333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20334 libltdl_cv_sys_dlopen_deplibs=yes
20335 ;;
20336 esac
20337
20338fi
20339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20340$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20341if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20342
20343$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20344
20345fi
20346
20347:
20348
20349for ac_header in argz.h
20350do :
20351 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20352"
cristyda16f162011-02-19 23:52:17 +000020353if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020354 cat >>confdefs.h <<_ACEOF
20355#define HAVE_ARGZ_H 1
20356_ACEOF
20357
20358fi
20359
20360done
20361
20362
20363ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20364# include <argz.h>
20365#endif
20366"
cristyda16f162011-02-19 23:52:17 +000020367if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020368
20369cat >>confdefs.h <<_ACEOF
20370#define HAVE_ERROR_T 1
20371_ACEOF
20372
20373
20374else
20375
20376$as_echo "#define error_t int" >>confdefs.h
20377
20378
20379$as_echo "#define __error_t_defined 1" >>confdefs.h
20380
20381fi
20382
20383
20384ARGZ_H=
20385for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20386 argz_next argz_stringify
20387do :
20388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20389ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020390if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020391 cat >>confdefs.h <<_ACEOF
20392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20393_ACEOF
20394
20395else
20396 ARGZ_H=argz.h;
20397
20398 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20399
20400fi
20401done
20402
20403
20404if test -z "$ARGZ_H"; then :
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20406$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020407if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020408 $as_echo_n "(cached) " >&6
20409else
20410 case $host_os in #(
20411 *cygwin*)
20412 lt_cv_sys_argz_works=no
20413 if test "$cross_compiling" != no; then
20414 lt_cv_sys_argz_works="guessing no"
20415 else
20416 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20417 save_IFS=$IFS
20418 IFS=-.
20419 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20420 IFS=$save_IFS
20421 lt_os_major=${2-0}
20422 lt_os_minor=${3-0}
20423 lt_os_micro=${4-0}
20424 if test "$lt_os_major" -gt 1 \
20425 || { test "$lt_os_major" -eq 1 \
20426 && { test "$lt_os_minor" -gt 5 \
20427 || { test "$lt_os_minor" -eq 5 \
20428 && test "$lt_os_micro" -gt 24; }; }; }; then
20429 lt_cv_sys_argz_works=yes
20430 fi
20431 fi
20432 ;; #(
20433 *) lt_cv_sys_argz_works=yes ;;
20434 esac
20435fi
20436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20437$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020438 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020439
20440$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20441
20442else
20443 ARGZ_H=argz.h
20444
20445
20446 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20447
20448fi
20449fi
20450
20451
20452
20453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20454$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020455if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020456 $as_echo_n "(cached) " >&6
20457else
20458 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20459 libltdl_cv_preloaded_symbols=yes
20460 else
20461 libltdl_cv_preloaded_symbols=no
20462 fi
20463
20464fi
20465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20466$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20467if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20468
20469$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20470
20471fi
20472
20473# Set options
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485# Check whether --with-included_ltdl was given.
20486if test "${with_included_ltdl+set}" = set; then :
20487 withval=$with_included_ltdl;
20488fi
20489
20490
20491if test "x$with_included_ltdl" != xyes; then
20492 # We are not being forced to use the included libltdl sources, so
20493 # decide whether there is a useful installed version we can use.
20494 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20495
20496"
cristyda16f162011-02-19 23:52:17 +000020497if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020498 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20499 #include <ltdl.h>
20500"
cristyda16f162011-02-19 23:52:17 +000020501if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20503$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020504if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020505 $as_echo_n "(cached) " >&6
20506else
20507 ac_check_lib_save_LIBS=$LIBS
20508LIBS="-lltdl $LIBS"
20509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510/* end confdefs.h. */
20511
20512/* Override any GCC internal prototype to avoid an error.
20513 Use char because int might match the return type of a GCC
20514 builtin and then its argument prototype would still apply. */
20515#ifdef __cplusplus
20516extern "C"
20517#endif
20518char lt_dladvise_preload ();
20519int
20520main ()
20521{
20522return lt_dladvise_preload ();
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527if ac_fn_c_try_link "$LINENO"; then :
20528 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20529else
20530 ac_cv_lib_ltdl_lt_dladvise_preload=no
20531fi
20532rm -f core conftest.err conftest.$ac_objext \
20533 conftest$ac_exeext conftest.$ac_ext
20534LIBS=$ac_check_lib_save_LIBS
20535fi
20536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20537$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020538if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020539 with_included_ltdl=no
20540else
20541 with_included_ltdl=yes
20542fi
20543
20544else
20545 with_included_ltdl=yes
20546fi
20547
20548else
20549 with_included_ltdl=yes
20550fi
20551
20552
20553fi
20554
20555
20556
20557
20558# Check whether --with-ltdl_include was given.
20559if test "${with_ltdl_include+set}" = set; then :
20560 withval=$with_ltdl_include;
20561fi
20562
20563
20564if test -n "$with_ltdl_include"; then
20565 if test -f "$with_ltdl_include/ltdl.h"; then :
20566 else
cristy98dddb52010-11-04 00:30:15 +000020567 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020568 fi
20569else
20570 with_ltdl_include=no
20571fi
20572
20573
20574# Check whether --with-ltdl_lib was given.
20575if test "${with_ltdl_lib+set}" = set; then :
20576 withval=$with_ltdl_lib;
20577fi
20578
20579
20580if test -n "$with_ltdl_lib"; then
20581 if test -f "$with_ltdl_lib/libltdl.la"; then :
20582 else
cristy98dddb52010-11-04 00:30:15 +000020583 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020584 fi
20585else
20586 with_ltdl_lib=no
20587fi
20588
20589case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20590 ,yes,no,no,)
20591 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020592 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020593 "") enable_ltdl_convenience=yes
20594 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20595esac
20596LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20597LTDLDEPS=$LIBLTDL
20598LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20599
20600
20601
20602
20603
20604# For backwards non-gettext consistent compatibility...
20605INCLTDL="$LTDLINCL"
20606
20607
20608 ;;
20609 ,no,no,no,)
20610 # If the included ltdl is not to be used, then use the
20611 # preinstalled libltdl we found.
20612
20613$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20614
20615 LIBLTDL=-lltdl
20616 LTDLDEPS=
20617 LTDLINCL=
20618 ;;
20619 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020620 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020621 ;;
20622 *) with_included_ltdl=no
20623 LIBLTDL="-L$with_ltdl_lib -lltdl"
20624 LTDLDEPS=
20625 LTDLINCL="-I$with_ltdl_include"
20626 ;;
20627esac
20628INCLTDL="$LTDLINCL"
20629
20630# Report our decision...
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20632$as_echo_n "checking where to find libltdl headers... " >&6; }
20633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20634$as_echo "$LTDLINCL" >&6; }
20635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20636$as_echo_n "checking where to find libltdl library... " >&6; }
20637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20638$as_echo "$LIBLTDL" >&6; }
20639
20640
20641
20642# Check whether --enable-ltdl-install was given.
20643if test "${enable_ltdl_install+set}" = set; then :
20644 enableval=$enable_ltdl_install;
20645fi
20646
20647
20648case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20649 *yes*) ;;
20650 *) enable_ltdl_convenience=yes ;;
20651esac
20652
20653 if test x"${enable_ltdl_install-no}" != xno; then
20654 INSTALL_LTDL_TRUE=
20655 INSTALL_LTDL_FALSE='#'
20656else
20657 INSTALL_LTDL_TRUE='#'
20658 INSTALL_LTDL_FALSE=
20659fi
20660
20661 if test x"${enable_ltdl_convenience-no}" != xno; then
20662 CONVENIENCE_LTDL_TRUE=
20663 CONVENIENCE_LTDL_FALSE='#'
20664else
20665 CONVENIENCE_LTDL_TRUE='#'
20666 CONVENIENCE_LTDL_FALSE=
20667fi
20668
20669
20670
20671
20672
20673
cristy73bd4a52010-10-05 11:24:23 +000020674# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20675# the user used. This is so that ltdl.h can pick up the parent projects
20676# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20677# definitions required by ltdl.c.
20678# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20679
20680
20681
20682for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20683do :
20684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20685ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20686"
cristy98dddb52010-11-04 00:30:15 +000020687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020688 cat >>confdefs.h <<_ACEOF
20689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20690_ACEOF
20691
20692fi
20693
20694done
20695
20696
20697for ac_func in closedir opendir readdir
20698do :
20699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020701if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020702 cat >>confdefs.h <<_ACEOF
20703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20704_ACEOF
20705
20706else
20707
20708
20709 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20710
20711fi
20712done
20713
20714for ac_func in strlcat strlcpy
20715do :
20716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020718if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020719 cat >>confdefs.h <<_ACEOF
20720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20721_ACEOF
20722
20723else
20724
20725
20726 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20727
20728fi
20729done
20730
20731
20732
20733cat >>confdefs.h <<_ACEOF
20734#define LT_LIBEXT "$libext"
20735_ACEOF
20736
20737
cristyda16f162011-02-19 23:52:17 +000020738name=
20739eval "lt_libprefix=\"$libname_spec\""
20740
20741cat >>confdefs.h <<_ACEOF
20742#define LT_LIBPREFIX "$lt_libprefix"
20743_ACEOF
20744
20745
cristy73bd4a52010-10-05 11:24:23 +000020746name=ltdl
cristyda16f162011-02-19 23:52:17 +000020747eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020748
20749
20750
20751
20752
20753
20754
20755
20756# Only expand once:
20757
20758
cristy3ed852e2009-09-05 21:47:34 +000020759
20760# Check to see if building shared libraries
20761libtool_build_shared_libs='no'
20762if test "$enable_shared" = 'yes'; then
20763 libtool_build_shared_libs='yes'
20764fi
20765
20766# Check to see if building static libraries
20767libtool_build_static_libs='no'
20768if test "$enable_static" = 'yes'; then
20769 libtool_build_static_libs='yes'
20770fi
20771
cristy73bd4a52010-10-05 11:24:23 +000020772 if test "${libtool_build_shared_libs}" = 'yes'; then
20773 WITH_SHARED_LIBS_TRUE=
20774 WITH_SHARED_LIBS_FALSE='#'
20775else
20776 WITH_SHARED_LIBS_TRUE='#'
20777 WITH_SHARED_LIBS_FALSE=
20778fi
20779
cristy3ed852e2009-09-05 21:47:34 +000020780#
20781# Enable support for building loadable modules
20782#
20783
20784# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020785if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020786 withval=$with_modules; with_modules=$withval
20787else
cristy5a1cefd2010-01-06 20:42:35 +000020788 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020789fi
20790
20791
20792# Only allow building loadable modules if we are building shared libraries
20793if test "$with_modules" != 'no' ; then
20794 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020795 { $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 +000020796$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20797 with_modules='no'
20798 fi
20799fi
20800if test "$with_modules" != 'no'; then
20801
cristy8b350f62009-11-15 23:12:43 +000020802$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020803
20804fi
cristy73bd4a52010-10-05 11:24:23 +000020805 if test "$with_modules" != 'no'; then
20806 WITH_MODULES_TRUE=
20807 WITH_MODULES_FALSE='#'
20808else
20809 WITH_MODULES_TRUE='#'
20810 WITH_MODULES_FALSE=
20811fi
20812
cristy3ed852e2009-09-05 21:47:34 +000020813
20814# Enable building/use of libltdl if we are building shared libraries regardless
20815# of whether modules are built or not.
20816with_ltdl='no'
20817if test "$libtool_build_shared_libs" != 'no'; then
20818 with_ltdl='yes'
20819fi
20820
cristy73bd4a52010-10-05 11:24:23 +000020821 if test "$with_ltdl" != 'no'; then
20822 WITH_LTDL_TRUE=
20823 WITH_LTDL_FALSE='#'
20824else
20825 WITH_LTDL_TRUE='#'
20826 WITH_LTDL_FALSE=
20827fi
20828
cristy3ed852e2009-09-05 21:47:34 +000020829if test "$with_ltdl" != 'no'; then
20830
cristy8b350f62009-11-15 23:12:43 +000020831$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020832
20833
20834 # Set DLLDFLAGS
20835 if test X"$enable_shared" = Xyes; then
20836 DLLDFLAGS=-export-dynamic
20837
20838 fi
20839fi
20840
20841# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020842# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020843# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020844if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020845 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20846else
20847 enable_delegate_build='no'
20848fi
20849
20850
20851# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020852if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020853 enableval=$enable_deprecated; enable_deprecated=$enableval
20854else
20855 enable_deprecated='no'
20856fi
20857
20858
20859if test "$enable_deprecated" = 'yes'; then
20860
cristy8b350f62009-11-15 23:12:43 +000020861$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020862
20863else
20864 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20865fi
20866
20867# Build a version of ImageMagick which operates uninstalled.
20868# Used to build distributions located via MAGICK_HOME / executable path
20869# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020870if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 enableval=$enable_installed; enable_installed=$enableval
20872else
20873 enable_installed='yes'
20874fi
20875
20876
20877if test "$enable_installed" = 'yes'; then
20878
cristy8b350f62009-11-15 23:12:43 +000020879$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020880
20881else
20882 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20883fi
20884
20885# Permit enciphering and deciphering image pixels.
20886# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020887if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020888 enableval=$enable_cipher; enable_cipher=$enableval
20889else
20890 enable_cipher='yes'
20891fi
20892
20893
20894if test "$enable_cipher" = 'yes'; then
20895
cristy8b350f62009-11-15 23:12:43 +000020896$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020897
20898fi
20899
20900# Build an embeddable version of ImageMagick.
20901# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020902if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020903 enableval=$enable_embeddable; enable_embeddable=$enableval
20904else
20905 enable_embeddable='no'
20906fi
20907
20908
20909if test "$enable_embeddable" = 'yes'; then
20910
cristy8b350f62009-11-15 23:12:43 +000020911$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020912
20913fi
20914
20915# Build a high dynamic range version of ImageMagick.
20916# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020917if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020918 enableval=$enable_hdri; enable_hdri=$enableval
20919else
20920 enable_hdri='no'
20921fi
20922
20923
20924MAGICK_HDRI=""
20925if test "$enable_hdri" = 'yes'; then
20926 MAGICK_HDRI="HDRI"
20927
cristy8b350f62009-11-15 23:12:43 +000020928$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020929
cristyfd9dcd42010-08-08 18:07:02 +000020930 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020931fi
20932
cristy3ed852e2009-09-05 21:47:34 +000020933# Build a version of ImageMagick with assert statements.
20934# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020935if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020936 enableval=$enable_assert; enable_assert=$enableval
20937else
20938 enable_assert='yes'
20939fi
20940
20941
20942if test "$enable_assert" = 'no'; then
20943
cristy8b350f62009-11-15 23:12:43 +000020944$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020945
20946fi
20947
20948# Add configure option --enable-maintainer-mode which enables dependency
20949# checking and generation useful to package maintainers. This is made an
20950# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020951
20952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20953$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20954 # Check whether --enable-maintainer-mode was given.
20955if test "${enable_maintainer_mode+set}" = set; then :
20956 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20957else
20958 USE_MAINTAINER_MODE=no
20959fi
20960
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20962$as_echo "$USE_MAINTAINER_MODE" >&6; }
20963 if test $USE_MAINTAINER_MODE = yes; then
20964 MAINTAINER_MODE_TRUE=
20965 MAINTAINER_MODE_FALSE='#'
20966else
20967 MAINTAINER_MODE_TRUE='#'
20968 MAINTAINER_MODE_FALSE=
20969fi
20970
20971 MAINT=$MAINTAINER_MODE_TRUE
20972
20973
cristy3ed852e2009-09-05 21:47:34 +000020974
20975
20976# Enable ccmalloc memory debugging support
20977# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020978if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020979 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20980else
20981 enable_ccmalloc='no'
20982fi
20983
20984
20985# Enable Electric Fence memory debugging support
20986# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020987if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020988 enableval=$enable_efence; enable_efence=$enableval
20989else
20990 enable_efence='no'
20991fi
20992
20993
20994# Enable prof-based profiling support
20995# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020996if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 enableval=$enable_prof; enable_prof=$enableval
20998else
20999 enable_prof='no'
21000fi
21001
21002
21003# Enable gprof-based profiling support
21004# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021005if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021006 enableval=$enable_gprof; enable_gprof=$enableval
21007else
21008 enable_gprof='no'
21009fi
21010
21011
21012# Enable gcov-based profiling support
21013# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021014if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021015 enableval=$enable_gcov; enable_gcov=$enableval
21016else
21017 enable_gcov='no'
21018fi
21019
21020
21021enable_profiling='no'
21022if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21023 enable_profiling='yes'
21024 if test "$libtool_build_shared_libs" = 'yes'; then
21025 echo "Warning: Can not profile code using shared libraries"
21026 fi
21027fi
21028
21029# Magick API method prefix
21030
21031# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021032if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021033 withval=$with_method_prefix; with_method_prefix=$enableval
21034else
21035 with_method_prefix=''
21036fi
21037
21038
21039if test "$with_method_prefix" != ''; then
21040
21041cat >>confdefs.h <<_ACEOF
21042#define NAMESPACE_PREFIX $with_method_prefix
21043_ACEOF
21044
21045fi
21046
21047# Number of bits in a Quantum
21048
21049# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021050if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021051 withval=$with_quantum_depth; with_quantum_depth=$withval
21052else
21053 with_quantum_depth=16
21054fi
21055
21056
21057if test "$with_quantum_depth" != '8'; then
21058 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21059fi
21060
21061case "${with_quantum_depth}" in
21062 8 ) ;;
21063 16 ) ;;
21064 32 ) ;;
21065 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021066 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021067esac
cristycdae12a2010-09-19 02:24:31 +000021068if test "$enable_hdri" = 'yes'; then
21069 with_quantum_depth=16
21070fi
cristy3ed852e2009-09-05 21:47:34 +000021071QUANTUM_DEPTH="$with_quantum_depth"
21072
21073cat >>confdefs.h <<_ACEOF
21074#define QUANTUM_DEPTH $QUANTUM_DEPTH
21075_ACEOF
21076
21077
21078# Set pixel cache threshold
21079
21080# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021081if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021082 withval=$with_cache; with_cache=$withval
21083else
21084 with_cache=''
21085fi
21086
21087
21088if test "$with_cache" != ''; then
21089
21090cat >>confdefs.h <<_ACEOF
21091#define PixelCacheThreshold $with_cache
21092_ACEOF
21093
21094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21095fi
21096
21097# Disable/Enable support for full delegate paths
21098
21099# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021100if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021101 withval=$with_frozenpaths; with_frozenpaths=$withval
21102else
21103 with_frozenpaths='no'
21104fi
21105
21106
21107# Enable build/install of Magick++
21108
21109# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021110if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021111 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21112else
21113 with_magick_plus_plus='yes'
21114fi
21115
21116
21117# Disable build/install of PerlMagick.
21118
21119# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 withval=$with_perl; with_perl=$withval
21122else
cristyb5f4e2f2010-04-25 00:49:11 +000021123 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021124fi
21125
21126
21127# Options to pass when configuring PerlMagick
21128
21129# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021130if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021131 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021132fi
21133
21134
cristy3ed852e2009-09-05 21:47:34 +000021135
21136# Enable umem, object-caching memory allocation library.
21137
21138# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021139if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021140 withval=$with_umem; with_umem=$withval
21141else
21142 with_umem='no'
21143fi
21144
21145if test "$with_umem" != 'yes' ; then
21146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21147fi
21148
21149#
21150# Specify path to shared libstdc++ if not in normal location
21151#
21152
21153# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021154if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021155 withval=$with_libstdc; with_libstdc=$withval
21156else
21157 with_libstdc=''
21158fi
21159
21160
21161if test "$with_libstdc" != ''; then
21162 if test -d "$with_libstdc"; then
21163 LIBSTDCLDFLAGS="-L$with_libstdc"
21164 fi
21165fi
21166
21167
21168# Does gcc required -traditional?
21169if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021171$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021172if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021173 $as_echo_n "(cached) " >&6
21174else
21175 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021177/* end confdefs.h. */
21178#include <sgtty.h>
21179Autoconf TIOCGETP
21180_ACEOF
21181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021182 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021183 ac_cv_prog_gcc_traditional=yes
21184else
21185 ac_cv_prog_gcc_traditional=no
21186fi
21187rm -f conftest*
21188
21189
21190 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021192/* end confdefs.h. */
21193#include <termio.h>
21194Autoconf TCGETA
21195_ACEOF
21196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021197 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021198 ac_cv_prog_gcc_traditional=yes
21199fi
21200rm -f conftest*
21201
21202 fi
21203fi
cristy8b350f62009-11-15 23:12:43 +000021204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021205$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21206 if test $ac_cv_prog_gcc_traditional = yes; then
21207 CC="$CC -traditional"
21208 fi
21209fi
21210
21211
21212########
21213#
21214# Set defines required to build DLLs and modules using MinGW
21215#
21216########
21217# These options are set for multi-thread DLL module build
21218# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21219# module: _DLL
21220# executable/Magick++: _DLL _MAGICKMOD_
21221MODULE_EXTRA_CPPFLAGS=''
21222LIBRARY_EXTRA_CPPFLAGS=''
21223if test "${native_win32_build}" = 'yes'; then
21224 if test "${libtool_build_shared_libs}" = 'yes'; then
21225 CPPFLAGS="$CPPFLAGS -D_DLL"
21226 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21227 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21228 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21229 if test "$with_modules" = 'yes'; then
21230 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21231 else
21232 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21233 fi
21234 else
21235 CPPFLAGS="$CPPFLAGS -D_LIB"
21236 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21237 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21238 fi
21239 if test "$with_threads" = 'yes'; then
21240 CPPFLAGS="$CPPFLAGS -D_MT"
21241 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21242 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21243 fi
21244fi
21245
21246
21247
21248# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021250$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021251if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021252 $as_echo_n "(cached) " >&6
21253else
cristy8b350f62009-11-15 23:12:43 +000021254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021255/* end confdefs.h. */
21256#include <stdlib.h>
21257#include <stdarg.h>
21258#include <string.h>
21259#include <float.h>
21260
21261int
21262main ()
21263{
21264
21265 ;
21266 return 0;
21267}
21268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021269if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021270 ac_cv_header_stdc=yes
21271else
cristy8b350f62009-11-15 23:12:43 +000021272 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021273fi
cristy3ed852e2009-09-05 21:47:34 +000021274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275
21276if test $ac_cv_header_stdc = yes; then
21277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021279/* end confdefs.h. */
21280#include <string.h>
21281
21282_ACEOF
21283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021284 $EGREP "memchr" >/dev/null 2>&1; then :
21285
cristy3ed852e2009-09-05 21:47:34 +000021286else
21287 ac_cv_header_stdc=no
21288fi
21289rm -f conftest*
21290
21291fi
21292
21293if test $ac_cv_header_stdc = yes; then
21294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021296/* end confdefs.h. */
21297#include <stdlib.h>
21298
21299_ACEOF
21300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021301 $EGREP "free" >/dev/null 2>&1; then :
21302
cristy3ed852e2009-09-05 21:47:34 +000021303else
21304 ac_cv_header_stdc=no
21305fi
21306rm -f conftest*
21307
21308fi
21309
21310if test $ac_cv_header_stdc = yes; then
21311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021312 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021313 :
21314else
cristy8b350f62009-11-15 23:12:43 +000021315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021316/* end confdefs.h. */
21317#include <ctype.h>
21318#include <stdlib.h>
21319#if ((' ' & 0x0FF) == 0x020)
21320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21322#else
21323# define ISLOWER(c) \
21324 (('a' <= (c) && (c) <= 'i') \
21325 || ('j' <= (c) && (c) <= 'r') \
21326 || ('s' <= (c) && (c) <= 'z'))
21327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21328#endif
21329
21330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21331int
21332main ()
21333{
21334 int i;
21335 for (i = 0; i < 256; i++)
21336 if (XOR (islower (i), ISLOWER (i))
21337 || toupper (i) != TOUPPER (i))
21338 return 2;
21339 return 0;
21340}
21341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021342if ac_fn_c_try_run "$LINENO"; then :
21343
cristy3ed852e2009-09-05 21:47:34 +000021344else
cristy8b350f62009-11-15 23:12:43 +000021345 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021346fi
cristy8b350f62009-11-15 23:12:43 +000021347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21348 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021349fi
21350
cristy3ed852e2009-09-05 21:47:34 +000021351fi
21352fi
cristy8b350f62009-11-15 23:12:43 +000021353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021354$as_echo "$ac_cv_header_stdc" >&6; }
21355if test $ac_cv_header_stdc = yes; then
21356
cristy8b350f62009-11-15 23:12:43 +000021357$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021358
21359fi
21360
21361if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021362 { $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 +000021363 header files. Compilation cannot proceed. Please install the ANSI C
21364 headers and rerun this script." >&5
21365$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21366 header files. Compilation cannot proceed. Please install the ANSI C
21367 headers and rerun this script." >&2;};
21368fi
cristya0b81c32010-01-22 02:54:33 +000021369
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21371$as_echo_n "checking whether to enable assertions... " >&6; }
21372 # Check whether --enable-assert was given.
21373if test "${enable_assert+set}" = set; then :
21374 enableval=$enable_assert; ac_enable_assert=$enableval
21375 if test "x$enableval" = xno; then :
21376
21377$as_echo "#define NDEBUG 1" >>confdefs.h
21378
21379elif test "x$enableval" != xyes; then :
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21381$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21382 ac_enable_assert=yes
21383fi
21384else
21385 ac_enable_assert=yes
21386fi
21387
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21389$as_echo "$ac_enable_assert" >&6; }
21390
cristy3ed852e2009-09-05 21:47:34 +000021391ac_header_dirent=no
21392for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21393 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021395$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021396if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 $as_echo_n "(cached) " >&6
21398else
cristy8b350f62009-11-15 23:12:43 +000021399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021400/* end confdefs.h. */
21401#include <sys/types.h>
21402#include <$ac_hdr>
21403
21404int
21405main ()
21406{
21407if ((DIR *) 0)
21408return 0;
21409 ;
21410 return 0;
21411}
21412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021413if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021414 eval "$as_ac_Header=yes"
21415else
cristy8b350f62009-11-15 23:12:43 +000021416 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021417fi
cristy3ed852e2009-09-05 21:47:34 +000021418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419fi
cristy8b350f62009-11-15 23:12:43 +000021420eval ac_res=\$$as_ac_Header
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021422$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021423if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 cat >>confdefs.h <<_ACEOF
21425#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21426_ACEOF
21427
21428ac_header_dirent=$ac_hdr; break
21429fi
21430
21431done
21432# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21433if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021435$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021436if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021437 $as_echo_n "(cached) " >&6
21438else
21439 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021441/* end confdefs.h. */
21442
21443/* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21446#ifdef __cplusplus
21447extern "C"
21448#endif
21449char opendir ();
21450int
21451main ()
21452{
21453return opendir ();
21454 ;
21455 return 0;
21456}
21457_ACEOF
21458for ac_lib in '' dir; do
21459 if test -z "$ac_lib"; then
21460 ac_res="none required"
21461 else
21462 ac_res=-l$ac_lib
21463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21464 fi
cristy8b350f62009-11-15 23:12:43 +000021465 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021466 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021467fi
cristy8b350f62009-11-15 23:12:43 +000021468rm -f core conftest.err conftest.$ac_objext \
21469 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021470 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 break
21472fi
21473done
cristyda16f162011-02-19 23:52:17 +000021474if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021475
cristy3ed852e2009-09-05 21:47:34 +000021476else
21477 ac_cv_search_opendir=no
21478fi
21479rm conftest.$ac_ext
21480LIBS=$ac_func_search_save_LIBS
21481fi
cristy8b350f62009-11-15 23:12:43 +000021482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021483$as_echo "$ac_cv_search_opendir" >&6; }
21484ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021485if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21487
21488fi
21489
21490else
cristy8b350f62009-11-15 23:12:43 +000021491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021492$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021493if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021494 $as_echo_n "(cached) " >&6
21495else
21496 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021498/* end confdefs.h. */
21499
21500/* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21503#ifdef __cplusplus
21504extern "C"
21505#endif
21506char opendir ();
21507int
21508main ()
21509{
21510return opendir ();
21511 ;
21512 return 0;
21513}
21514_ACEOF
21515for ac_lib in '' x; do
21516 if test -z "$ac_lib"; then
21517 ac_res="none required"
21518 else
21519 ac_res=-l$ac_lib
21520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21521 fi
cristy8b350f62009-11-15 23:12:43 +000021522 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021524fi
cristy8b350f62009-11-15 23:12:43 +000021525rm -f core conftest.err conftest.$ac_objext \
21526 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021527 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021528 break
21529fi
21530done
cristyda16f162011-02-19 23:52:17 +000021531if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021532
cristy3ed852e2009-09-05 21:47:34 +000021533else
21534 ac_cv_search_opendir=no
21535fi
21536rm conftest.$ac_ext
21537LIBS=$ac_func_search_save_LIBS
21538fi
cristy8b350f62009-11-15 23:12:43 +000021539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021540$as_echo "$ac_cv_search_opendir" >&6; }
21541ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021542if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21544
21545fi
21546
21547fi
21548
21549
21550# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021551for 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
cristy8b350f62009-11-15 23:12:43 +000021552do :
21553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021556 cat >>confdefs.h <<_ACEOF
21557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21558_ACEOF
21559
21560fi
21561
21562done
21563
21564
21565########
21566#
21567# Checks for typedefs, structures, and compiler characteristics.
21568#
21569########
21570
cristy8b350f62009-11-15 23:12:43 +000021571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021572$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021573if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021574 $as_echo_n "(cached) " >&6
21575else
cristy8b350f62009-11-15 23:12:43 +000021576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021577/* end confdefs.h. */
21578
21579#include <stdbool.h>
21580#ifndef bool
21581 "error: bool is not defined"
21582#endif
21583#ifndef false
21584 "error: false is not defined"
21585#endif
21586#if false
21587 "error: false is not 0"
21588#endif
21589#ifndef true
21590 "error: true is not defined"
21591#endif
21592#if true != 1
21593 "error: true is not 1"
21594#endif
21595#ifndef __bool_true_false_are_defined
21596 "error: __bool_true_false_are_defined is not defined"
21597#endif
21598
21599 struct s { _Bool s: 1; _Bool t; } s;
21600
21601 char a[true == 1 ? 1 : -1];
21602 char b[false == 0 ? 1 : -1];
21603 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21604 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021605 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021606 char f[(_Bool) 0.0 == false ? 1 : -1];
21607 char g[true];
21608 char h[sizeof (_Bool)];
21609 char i[sizeof s.t];
21610 enum { j = false, k = true, l = false * true, m = true * 256 };
21611 /* The following fails for
21612 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21613 _Bool n[m];
21614 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21615 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021616 /* Catch a bug in an HP-UX C compiler. See
21617 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21618 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21619 */
21620 _Bool q = true;
21621 _Bool *pq = &q;
21622
21623int
21624main ()
21625{
21626
cristyda16f162011-02-19 23:52:17 +000021627 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021628 *pq |= q;
21629 *pq |= ! q;
21630 /* Refer to every declared value, to avoid compiler optimizations. */
21631 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21632 + !m + !n + !o + !p + !q + !pq);
21633
21634 ;
21635 return 0;
21636}
21637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021638if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021639 ac_cv_header_stdbool_h=yes
21640else
cristy8b350f62009-11-15 23:12:43 +000021641 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021642fi
cristy3ed852e2009-09-05 21:47:34 +000021643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644fi
cristy8b350f62009-11-15 23:12:43 +000021645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021646$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021647ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021648if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021649
21650cat >>confdefs.h <<_ACEOF
21651#define HAVE__BOOL 1
21652_ACEOF
21653
21654
21655fi
21656
21657if test $ac_cv_header_stdbool_h = yes; then
21658
cristy8b350f62009-11-15 23:12:43 +000021659$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021660
21661fi
21662
cristy8b350f62009-11-15 23:12:43 +000021663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021665if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021666 $as_echo_n "(cached) " >&6
21667else
cristy8b350f62009-11-15 23:12:43 +000021668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021669/* end confdefs.h. */
21670
21671int
21672main ()
21673{
21674
21675volatile int x;
21676int * volatile y = (int *) 0;
21677return !x && !y;
21678 ;
21679 return 0;
21680}
21681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021682if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021683 ac_cv_c_volatile=yes
21684else
cristy8b350f62009-11-15 23:12:43 +000021685 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021686fi
cristy3ed852e2009-09-05 21:47:34 +000021687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688fi
cristy8b350f62009-11-15 23:12:43 +000021689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021690$as_echo "$ac_cv_c_volatile" >&6; }
21691if test $ac_cv_c_volatile = no; then
21692
cristy8b350f62009-11-15 23:12:43 +000021693$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021694
21695fi
21696
cristy8b350f62009-11-15 23:12:43 +000021697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021698$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021699if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021700 $as_echo_n "(cached) " >&6
21701else
cristy8b350f62009-11-15 23:12:43 +000021702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021703/* end confdefs.h. */
21704#define x(y) #y
21705
21706char *s = x(teststring);
21707_ACEOF
21708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021709 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021710 ac_cv_c_stringize=no
21711else
21712 ac_cv_c_stringize=yes
21713fi
21714rm -f conftest*
21715
21716fi
cristy8b350f62009-11-15 23:12:43 +000021717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021718$as_echo "$ac_cv_c_stringize" >&6; }
21719if test $ac_cv_c_stringize = yes; then
21720
cristy8b350f62009-11-15 23:12:43 +000021721$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021722
21723fi
21724
cristy8b350f62009-11-15 23:12:43 +000021725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021726$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021727if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 $as_echo_n "(cached) " >&6
21729else
cristy8b350f62009-11-15 23:12:43 +000021730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021731/* end confdefs.h. */
21732#include <sys/types.h>
21733#include <sys/stat.h>
21734
21735#if defined S_ISBLK && defined S_IFDIR
21736extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21737#endif
21738
21739#if defined S_ISBLK && defined S_IFCHR
21740extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21741#endif
21742
21743#if defined S_ISLNK && defined S_IFREG
21744extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21745#endif
21746
21747#if defined S_ISSOCK && defined S_IFREG
21748extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21749#endif
21750
21751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021752if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 ac_cv_header_stat_broken=no
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021756fi
cristy3ed852e2009-09-05 21:47:34 +000021757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758fi
cristy8b350f62009-11-15 23:12:43 +000021759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021760$as_echo "$ac_cv_header_stat_broken" >&6; }
21761if test $ac_cv_header_stat_broken = yes; then
21762
cristy8b350f62009-11-15 23:12:43 +000021763$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021764
21765fi
21766
cristy8b350f62009-11-15 23:12:43 +000021767{ $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 +000021768$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021769if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021770 $as_echo_n "(cached) " >&6
21771else
cristy8b350f62009-11-15 23:12:43 +000021772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021773/* end confdefs.h. */
21774#include <sys/types.h>
21775#include <sys/time.h>
21776#include <time.h>
21777
21778int
21779main ()
21780{
21781if ((struct tm *) 0)
21782return 0;
21783 ;
21784 return 0;
21785}
21786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021787if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021788 ac_cv_header_time=yes
21789else
cristy8b350f62009-11-15 23:12:43 +000021790 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021791fi
cristy3ed852e2009-09-05 21:47:34 +000021792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793fi
cristy8b350f62009-11-15 23:12:43 +000021794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021795$as_echo "$ac_cv_header_time" >&6; }
21796if test $ac_cv_header_time = yes; then
21797
cristy8b350f62009-11-15 23:12:43 +000021798$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021799
21800fi
21801
cristy8b350f62009-11-15 23:12:43 +000021802{ $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 +000021803$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021804if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 $as_echo_n "(cached) " >&6
21806else
cristy8b350f62009-11-15 23:12:43 +000021807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021808/* end confdefs.h. */
21809#include <sys/types.h>
21810#include <time.h>
21811
21812int
21813main ()
21814{
21815struct tm tm;
21816 int *p = &tm.tm_sec;
21817 return !p;
21818 ;
21819 return 0;
21820}
21821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021822if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021823 ac_cv_struct_tm=time.h
21824else
cristy8b350f62009-11-15 23:12:43 +000021825 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021826fi
cristy3ed852e2009-09-05 21:47:34 +000021827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828fi
cristy8b350f62009-11-15 23:12:43 +000021829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021830$as_echo "$ac_cv_struct_tm" >&6; }
21831if test $ac_cv_struct_tm = sys/time.h; then
21832
cristy8b350f62009-11-15 23:12:43 +000021833$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021834
21835fi
21836
cristy92703d82010-04-26 00:18:18 +000021837ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21838#include <$ac_cv_struct_tm>
21839
21840"
cristyda16f162011-02-19 23:52:17 +000021841if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021842
21843cat >>confdefs.h <<_ACEOF
21844#define HAVE_STRUCT_TM_TM_ZONE 1
21845_ACEOF
21846
21847
21848fi
21849
21850if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21851
21852$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21853
21854else
21855 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21856"
cristyda16f162011-02-19 23:52:17 +000021857if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021858 ac_have_decl=1
21859else
21860 ac_have_decl=0
21861fi
21862
21863cat >>confdefs.h <<_ACEOF
21864#define HAVE_DECL_TZNAME $ac_have_decl
21865_ACEOF
21866
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21868$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021869if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021870 $as_echo_n "(cached) " >&6
21871else
21872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873/* end confdefs.h. */
21874#include <time.h>
21875#if !HAVE_DECL_TZNAME
21876extern char *tzname[];
21877#endif
21878
21879int
21880main ()
21881{
21882return tzname[0][0];
21883 ;
21884 return 0;
21885}
21886_ACEOF
21887if ac_fn_c_try_link "$LINENO"; then :
21888 ac_cv_var_tzname=yes
21889else
21890 ac_cv_var_tzname=no
21891fi
21892rm -f core conftest.err conftest.$ac_objext \
21893 conftest$ac_exeext conftest.$ac_ext
21894fi
21895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21896$as_echo "$ac_cv_var_tzname" >&6; }
21897 if test $ac_cv_var_tzname = yes; then
21898
21899$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21900
21901 fi
21902fi
21903
cristy8b350f62009-11-15 23:12:43 +000021904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021905$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021906if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021907 $as_echo_n "(cached) " >&6
21908else
21909 echo '#! /bin/cat
21910exit 69
21911' >conftest
21912chmod u+x conftest
21913(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21914if test $? -ne 69; then
21915 ac_cv_sys_interpreter=yes
21916else
21917 ac_cv_sys_interpreter=no
21918fi
21919rm -f conftest
21920fi
cristy8b350f62009-11-15 23:12:43 +000021921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021922$as_echo "$ac_cv_sys_interpreter" >&6; }
21923interpval=$ac_cv_sys_interpreter
21924
21925
cristy3ed852e2009-09-05 21:47:34 +000021926# If the C compiler supports the keyword inline, do nothing. Otherwise
21927# define inline to __inline__ or __inline if it accepts one of those,
21928# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021930$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021931if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021932 $as_echo_n "(cached) " >&6
21933else
21934 ac_cv_c_inline=no
21935for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021937/* end confdefs.h. */
21938#ifndef __cplusplus
21939typedef int foo_t;
21940static $ac_kw foo_t static_foo () {return 0; }
21941$ac_kw foo_t foo () {return 0; }
21942#endif
21943
21944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021945if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021947fi
cristy3ed852e2009-09-05 21:47:34 +000021948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 test "$ac_cv_c_inline" != no && break
21950done
21951
21952fi
cristy8b350f62009-11-15 23:12:43 +000021953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021954$as_echo "$ac_cv_c_inline" >&6; }
21955
cristy3ed852e2009-09-05 21:47:34 +000021956case $ac_cv_c_inline in
21957 inline | yes) ;;
21958 *)
21959 case $ac_cv_c_inline in
21960 no) ac_val=;;
21961 *) ac_val=$ac_cv_c_inline;;
21962 esac
21963 cat >>confdefs.h <<_ACEOF
21964#ifndef __cplusplus
21965#define inline $ac_val
21966#endif
21967_ACEOF
21968 ;;
21969esac
21970
21971
21972# If the C compiler supports the keyword restrict, do nothing. Otherwise
21973# define restrict to __restrict__ or __restrict if it accepts one of those,
21974# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021977if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 $as_echo_n "(cached) " >&6
21979else
21980 ac_cv_c_restrict=no
21981 # The order here caters to the fact that C++ does not require restrict.
21982 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021984/* end confdefs.h. */
21985typedef int * int_ptr;
21986 int foo (int_ptr $ac_kw ip) {
21987 return ip[0];
21988 }
21989int
21990main ()
21991{
21992int s[1];
21993 int * $ac_kw t = s;
21994 t[0] = 0;
21995 return foo(t)
21996 ;
21997 return 0;
21998}
21999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022001 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022002fi
cristy3ed852e2009-09-05 21:47:34 +000022003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 test "$ac_cv_c_restrict" != no && break
22005 done
22006
22007fi
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$ac_cv_c_restrict" >&6; }
22010
cristy3ed852e2009-09-05 21:47:34 +000022011 case $ac_cv_c_restrict in
22012 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022013 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022014 ;;
22015 *) cat >>confdefs.h <<_ACEOF
22016#define restrict $ac_cv_c_restrict
22017_ACEOF
22018 ;;
22019 esac
22020
22021
22022# If words are stored with the most significant byte first (like
22023# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022026if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022027 $as_echo_n "(cached) " >&6
22028else
22029 ac_cv_c_bigendian=unknown
22030 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022032/* end confdefs.h. */
22033#ifndef __APPLE_CC__
22034 not a universal capable compiler
22035 #endif
22036 typedef int dummy;
22037
22038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022040
22041 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022042 # there are at least two -arch flags with different values.
22043 ac_arch=
22044 ac_prev=
22045 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22046 if test -n "$ac_prev"; then
22047 case $ac_word in
22048 i?86 | x86_64 | ppc | ppc64)
22049 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22050 ac_arch=$ac_word
22051 else
22052 ac_cv_c_bigendian=universal
22053 break
22054 fi
22055 ;;
22056 esac
22057 ac_prev=
22058 elif test "x$ac_word" = "x-arch"; then
22059 ac_prev=arch
22060 fi
22061 done
cristy3ed852e2009-09-05 21:47:34 +000022062fi
cristy3ed852e2009-09-05 21:47:34 +000022063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22064 if test $ac_cv_c_bigendian = unknown; then
22065 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022067/* end confdefs.h. */
22068#include <sys/types.h>
22069 #include <sys/param.h>
22070
22071int
22072main ()
22073{
22074#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22075 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22076 && LITTLE_ENDIAN)
22077 bogus endian macros
22078 #endif
22079
22080 ;
22081 return 0;
22082}
22083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022084if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022085 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088#include <sys/types.h>
22089 #include <sys/param.h>
22090
22091int
22092main ()
22093{
22094#if BYTE_ORDER != BIG_ENDIAN
22095 not big endian
22096 #endif
22097
22098 ;
22099 return 0;
22100}
22101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022102if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022103 ac_cv_c_bigendian=yes
22104else
cristy8b350f62009-11-15 23:12:43 +000022105 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022106fi
cristy3ed852e2009-09-05 21:47:34 +000022107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022108fi
cristy3ed852e2009-09-05 21:47:34 +000022109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 fi
22111 if test $ac_cv_c_bigendian = unknown; then
22112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022114/* end confdefs.h. */
22115#include <limits.h>
22116
22117int
22118main ()
22119{
22120#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22121 bogus endian macros
22122 #endif
22123
22124 ;
22125 return 0;
22126}
22127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022128if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022129 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022131/* end confdefs.h. */
22132#include <limits.h>
22133
22134int
22135main ()
22136{
22137#ifndef _BIG_ENDIAN
22138 not big endian
22139 #endif
22140
22141 ;
22142 return 0;
22143}
22144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022145if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022146 ac_cv_c_bigendian=yes
22147else
cristy8b350f62009-11-15 23:12:43 +000022148 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022149fi
cristy3ed852e2009-09-05 21:47:34 +000022150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022151fi
cristy3ed852e2009-09-05 21:47:34 +000022152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 fi
22154 if test $ac_cv_c_bigendian = unknown; then
22155 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022156 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022157 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022159/* end confdefs.h. */
22160short int ascii_mm[] =
22161 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22162 short int ascii_ii[] =
22163 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22164 int use_ascii (int i) {
22165 return ascii_mm[i] + ascii_ii[i];
22166 }
22167 short int ebcdic_ii[] =
22168 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22169 short int ebcdic_mm[] =
22170 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22171 int use_ebcdic (int i) {
22172 return ebcdic_mm[i] + ebcdic_ii[i];
22173 }
22174 extern int foo;
22175
22176int
22177main ()
22178{
22179return use_ascii (foo) == use_ebcdic (foo);
22180 ;
22181 return 0;
22182}
22183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22186 ac_cv_c_bigendian=yes
22187 fi
22188 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22189 if test "$ac_cv_c_bigendian" = unknown; then
22190 ac_cv_c_bigendian=no
22191 else
22192 # finding both strings is unlikely to happen, but who knows?
22193 ac_cv_c_bigendian=unknown
22194 fi
22195 fi
cristy3ed852e2009-09-05 21:47:34 +000022196fi
cristy3ed852e2009-09-05 21:47:34 +000022197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22198else
cristy8b350f62009-11-15 23:12:43 +000022199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022200/* end confdefs.h. */
22201$ac_includes_default
22202int
22203main ()
22204{
22205
22206 /* Are we little or big endian? From Harbison&Steele. */
22207 union
22208 {
22209 long int l;
22210 char c[sizeof (long int)];
22211 } u;
22212 u.l = 1;
22213 return u.c[sizeof (long int) - 1] == 1;
22214
22215 ;
22216 return 0;
22217}
22218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022219if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 ac_cv_c_bigendian=no
22221else
cristy8b350f62009-11-15 23:12:43 +000022222 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022223fi
cristy8b350f62009-11-15 23:12:43 +000022224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22225 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022226fi
22227
cristy3ed852e2009-09-05 21:47:34 +000022228 fi
22229fi
cristy8b350f62009-11-15 23:12:43 +000022230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022231$as_echo "$ac_cv_c_bigendian" >&6; }
22232 case $ac_cv_c_bigendian in #(
22233 yes)
cristy8b350f62009-11-15 23:12:43 +000022234 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022235;; #(
22236 no)
22237 ;; #(
22238 universal)
22239
cristy8b350f62009-11-15 23:12:43 +000022240$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022241
22242 ;; #(
22243 *)
cristy98dddb52010-11-04 00:30:15 +000022244 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022245 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022246 esac
22247
22248
22249# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022250ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022251if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022252
cristy3ed852e2009-09-05 21:47:34 +000022253else
22254
22255cat >>confdefs.h <<_ACEOF
22256#define mode_t int
22257_ACEOF
22258
22259fi
22260
22261
22262# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022263ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022264if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022265
cristy3ed852e2009-09-05 21:47:34 +000022266else
22267
22268cat >>confdefs.h <<_ACEOF
22269#define off_t long int
22270_ACEOF
22271
22272fi
22273
22274
22275# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022276ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022277if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022278
cristy3ed852e2009-09-05 21:47:34 +000022279else
22280
22281cat >>confdefs.h <<_ACEOF
22282#define pid_t int
22283_ACEOF
22284
22285fi
22286
22287
22288# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022289ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022290if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022291
cristy3ed852e2009-09-05 21:47:34 +000022292else
22293
22294cat >>confdefs.h <<_ACEOF
22295#define size_t unsigned int
22296_ACEOF
22297
22298fi
22299
22300
22301# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022302ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022303if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022304
cristy3ed852e2009-09-05 21:47:34 +000022305else
22306
22307cat >>confdefs.h <<_ACEOF
22308#define ssize_t int
22309_ACEOF
22310
22311fi
22312
22313
22314# If the C compiler supports a working long double type with more range
22315# or precision than the double type, define HAVE_LONG_DOUBLE.
22316
cristy8b350f62009-11-15 23:12:43 +000022317 { $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 +000022318$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022319if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022320 $as_echo_n "(cached) " >&6
22321else
cristy8b350f62009-11-15 23:12:43 +000022322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022323/* end confdefs.h. */
22324#include <float.h>
22325 long double const a[] =
22326 {
22327 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22328 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22329 };
22330 long double
22331 f (long double x)
22332 {
22333 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22334 + (x ? f (x) : 'c'));
22335 }
22336
22337int
22338main ()
22339{
22340static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22341 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22342 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22343 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22344 && (int) LDBL_EPSILON == 0
22345 )];
22346test_array [0] = 0
22347
22348 ;
22349 return 0;
22350}
22351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022352if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022353 ac_cv_type_long_double_wider=yes
22354else
cristy8b350f62009-11-15 23:12:43 +000022355 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022356fi
cristy3ed852e2009-09-05 21:47:34 +000022357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358fi
cristy8b350f62009-11-15 23:12:43 +000022359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022360$as_echo "$ac_cv_type_long_double_wider" >&6; }
22361 if test $ac_cv_type_long_double_wider = yes; then
22362
cristy8b350f62009-11-15 23:12:43 +000022363$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022364
22365 fi
22366
22367
22368# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22369# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022371$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022372if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022373 $as_echo_n "(cached) " >&6
22374else
cristy8b350f62009-11-15 23:12:43 +000022375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022376/* end confdefs.h. */
22377$ac_includes_default
22378int
22379main ()
22380{
22381static int test_array [1 - 2 * !(((char) -1) < 0)];
22382test_array [0] = 0
22383
22384 ;
22385 return 0;
22386}
22387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022388if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 ac_cv_c_char_unsigned=no
22390else
cristy8b350f62009-11-15 23:12:43 +000022391 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022392fi
cristy3ed852e2009-09-05 21:47:34 +000022393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394fi
cristy8b350f62009-11-15 23:12:43 +000022395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022396$as_echo "$ac_cv_c_char_unsigned" >&6; }
22397if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022398 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022399
22400fi
22401
22402
22403# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22404# The cast to long int works around a bug in the HP C Compiler
22405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22407# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022409$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022410if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022411 $as_echo_n "(cached) " >&6
22412else
cristy8b350f62009-11-15 23:12:43 +000022413 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 +000022414
cristy3ed852e2009-09-05 21:47:34 +000022415else
cristy8b350f62009-11-15 23:12:43 +000022416 if test "$ac_cv_type_signed_short" = yes; then
22417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022419as_fn_error 77 "cannot compute sizeof (signed short)
22420See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022421 else
22422 ac_cv_sizeof_signed_short=0
22423 fi
22424fi
cristy8b350f62009-11-15 23:12:43 +000022425
cristy3ed852e2009-09-05 21:47:34 +000022426fi
cristy8b350f62009-11-15 23:12:43 +000022427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022428$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22429
22430
22431
22432cat >>confdefs.h <<_ACEOF
22433#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22434_ACEOF
22435
22436
22437
22438# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22439# The cast to long int works around a bug in the HP C Compiler
22440# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22441# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22442# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022444$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022445if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 $as_echo_n "(cached) " >&6
22447else
cristy8b350f62009-11-15 23:12:43 +000022448 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 +000022449
cristy3ed852e2009-09-05 21:47:34 +000022450else
cristy8b350f62009-11-15 23:12:43 +000022451 if test "$ac_cv_type_unsigned_short" = yes; then
22452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022454as_fn_error 77 "cannot compute sizeof (unsigned short)
22455See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022456 else
22457 ac_cv_sizeof_unsigned_short=0
22458 fi
22459fi
cristy8b350f62009-11-15 23:12:43 +000022460
cristy3ed852e2009-09-05 21:47:34 +000022461fi
cristy8b350f62009-11-15 23:12:43 +000022462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022463$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22464
22465
22466
22467cat >>confdefs.h <<_ACEOF
22468#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22469_ACEOF
22470
22471
22472
22473# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22474# The cast to long int works around a bug in the HP C Compiler
22475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22477# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022479$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022480if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022481 $as_echo_n "(cached) " >&6
22482else
cristy8b350f62009-11-15 23:12:43 +000022483 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 +000022484
cristy3ed852e2009-09-05 21:47:34 +000022485else
cristy8b350f62009-11-15 23:12:43 +000022486 if test "$ac_cv_type_signed_int" = yes; then
22487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022489as_fn_error 77 "cannot compute sizeof (signed int)
22490See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022491 else
22492 ac_cv_sizeof_signed_int=0
22493 fi
22494fi
cristy8b350f62009-11-15 23:12:43 +000022495
cristy3ed852e2009-09-05 21:47:34 +000022496fi
cristy8b350f62009-11-15 23:12:43 +000022497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022498$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22499
22500
22501
22502cat >>confdefs.h <<_ACEOF
22503#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22504_ACEOF
22505
22506
22507
22508# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22509# The cast to long int works around a bug in the HP C Compiler
22510# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22511# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22512# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022514$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022515if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022516 $as_echo_n "(cached) " >&6
22517else
cristy8b350f62009-11-15 23:12:43 +000022518 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 +000022519
cristy3ed852e2009-09-05 21:47:34 +000022520else
cristy8b350f62009-11-15 23:12:43 +000022521 if test "$ac_cv_type_unsigned_int" = yes; then
22522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022524as_fn_error 77 "cannot compute sizeof (unsigned int)
22525See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022526 else
22527 ac_cv_sizeof_unsigned_int=0
22528 fi
22529fi
cristy8b350f62009-11-15 23:12:43 +000022530
cristy3ed852e2009-09-05 21:47:34 +000022531fi
cristy8b350f62009-11-15 23:12:43 +000022532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022533$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22534
22535
22536
22537cat >>confdefs.h <<_ACEOF
22538#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22539_ACEOF
22540
22541
22542
22543# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22544# The cast to long int works around a bug in the HP C Compiler
22545# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22546# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22547# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022549$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022550if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022551 $as_echo_n "(cached) " >&6
22552else
cristy8b350f62009-11-15 23:12:43 +000022553 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 +000022554
cristy3ed852e2009-09-05 21:47:34 +000022555else
cristy8b350f62009-11-15 23:12:43 +000022556 if test "$ac_cv_type_signed_long" = yes; then
22557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022559as_fn_error 77 "cannot compute sizeof (signed long)
22560See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022561 else
22562 ac_cv_sizeof_signed_long=0
22563 fi
22564fi
cristy8b350f62009-11-15 23:12:43 +000022565
cristy3ed852e2009-09-05 21:47:34 +000022566fi
cristy8b350f62009-11-15 23:12:43 +000022567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022568$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22569
22570
22571
22572cat >>confdefs.h <<_ACEOF
22573#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22574_ACEOF
22575
22576
22577
22578# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22579# The cast to long int works around a bug in the HP C Compiler
22580# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22581# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22582# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022585if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 $as_echo_n "(cached) " >&6
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 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 +000022589
cristy3ed852e2009-09-05 21:47:34 +000022590else
cristy8b350f62009-11-15 23:12:43 +000022591 if test "$ac_cv_type_unsigned_long" = yes; then
22592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022594as_fn_error 77 "cannot compute sizeof (unsigned long)
22595See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022596 else
22597 ac_cv_sizeof_unsigned_long=0
22598 fi
22599fi
cristy8b350f62009-11-15 23:12:43 +000022600
cristy3ed852e2009-09-05 21:47:34 +000022601fi
cristy8b350f62009-11-15 23:12:43 +000022602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022603$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22604
22605
22606
22607cat >>confdefs.h <<_ACEOF
22608#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22609_ACEOF
22610
22611
22612
22613# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22614# 'signed long long' is not supported then the value defined is zero.
22615# The cast to long int works around a bug in the HP C Compiler
22616# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22617# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22618# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022620$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022621if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022622 $as_echo_n "(cached) " >&6
22623else
cristy8b350f62009-11-15 23:12:43 +000022624 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 +000022625
cristy3ed852e2009-09-05 21:47:34 +000022626else
cristy8b350f62009-11-15 23:12:43 +000022627 if test "$ac_cv_type_signed_long_long" = yes; then
22628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022630as_fn_error 77 "cannot compute sizeof (signed long long)
22631See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022632 else
22633 ac_cv_sizeof_signed_long_long=0
22634 fi
22635fi
cristy8b350f62009-11-15 23:12:43 +000022636
cristy3ed852e2009-09-05 21:47:34 +000022637fi
cristy8b350f62009-11-15 23:12:43 +000022638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022639$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22640
22641
22642
22643cat >>confdefs.h <<_ACEOF
22644#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22645_ACEOF
22646
22647
22648
22649# Obtain size of a 'unsigned long long' and define as
22650# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22651# supported then the value defined is zero.
22652# The cast to long int works around a bug in the HP C Compiler
22653# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22654# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22655# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022657$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022658if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022659 $as_echo_n "(cached) " >&6
22660else
cristy8b350f62009-11-15 23:12:43 +000022661 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 +000022662
cristy3ed852e2009-09-05 21:47:34 +000022663else
cristy8b350f62009-11-15 23:12:43 +000022664 if test "$ac_cv_type_unsigned_long_long" = yes; then
22665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022667as_fn_error 77 "cannot compute sizeof (unsigned long long)
22668See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022669 else
22670 ac_cv_sizeof_unsigned_long_long=0
22671 fi
22672fi
cristy8b350f62009-11-15 23:12:43 +000022673
cristy3ed852e2009-09-05 21:47:34 +000022674fi
cristy8b350f62009-11-15 23:12:43 +000022675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022676$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22677
22678
22679
22680cat >>confdefs.h <<_ACEOF
22681#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22682_ACEOF
22683
22684
22685
22686# Obtain size of off_t and define as SIZEOF_OFF_T
22687# The cast to long int works around a bug in the HP C Compiler
22688# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22689# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22690# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022692$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022693if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022694 $as_echo_n "(cached) " >&6
22695else
cristy8b350f62009-11-15 23:12:43 +000022696 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 +000022697
cristy3ed852e2009-09-05 21:47:34 +000022698else
cristy8b350f62009-11-15 23:12:43 +000022699 if test "$ac_cv_type_off_t" = yes; then
22700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022702as_fn_error 77 "cannot compute sizeof (off_t)
22703See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022704 else
22705 ac_cv_sizeof_off_t=0
22706 fi
22707fi
cristy8b350f62009-11-15 23:12:43 +000022708
cristy3ed852e2009-09-05 21:47:34 +000022709fi
cristy8b350f62009-11-15 23:12:43 +000022710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022711$as_echo "$ac_cv_sizeof_off_t" >&6; }
22712
22713
22714
22715cat >>confdefs.h <<_ACEOF
22716#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22717_ACEOF
22718
22719
22720
22721# Obtain size of size_t and define as SIZEOF_SIZE_T
22722# The cast to long int works around a bug in the HP C Compiler
22723# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22724# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22725# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022727$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022728if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022729 $as_echo_n "(cached) " >&6
22730else
cristy8b350f62009-11-15 23:12:43 +000022731 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 +000022732
cristy3ed852e2009-09-05 21:47:34 +000022733else
cristy8b350f62009-11-15 23:12:43 +000022734 if test "$ac_cv_type_size_t" = yes; then
22735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022737as_fn_error 77 "cannot compute sizeof (size_t)
22738See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022739 else
22740 ac_cv_sizeof_size_t=0
22741 fi
22742fi
cristy8b350f62009-11-15 23:12:43 +000022743
cristy3ed852e2009-09-05 21:47:34 +000022744fi
cristy8b350f62009-11-15 23:12:43 +000022745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022746$as_echo "$ac_cv_sizeof_size_t" >&6; }
22747
22748
22749
22750cat >>confdefs.h <<_ACEOF
22751#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22752_ACEOF
22753
22754
22755
cristy330e9352010-06-01 18:42:49 +000022756# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22757# The cast to long int works around a bug in the HP C Compiler
22758# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22759# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22760# This bug is HP SR number 8606223364.
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22762$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022763if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022764 $as_echo_n "(cached) " >&6
22765else
22766 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22767
22768else
22769 if test "$ac_cv_type_ssize_t" = yes; then
22770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022772as_fn_error 77 "cannot compute sizeof (ssize_t)
22773See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022774 else
22775 ac_cv_sizeof_ssize_t=0
22776 fi
22777fi
22778
22779fi
22780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22781$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22782
22783
22784
22785cat >>confdefs.h <<_ACEOF
22786#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22787_ACEOF
22788
22789
22790
cristy3ed852e2009-09-05 21:47:34 +000022791# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22792# The cast to long int works around a bug in the HP C Compiler
22793# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22794# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22795# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022797$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022798if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022799 $as_echo_n "(cached) " >&6
22800else
cristy8b350f62009-11-15 23:12:43 +000022801 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 +000022802
cristy3ed852e2009-09-05 21:47:34 +000022803else
cristy8b350f62009-11-15 23:12:43 +000022804 if test "$ac_cv_type_unsigned_intp" = yes; then
22805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022807as_fn_error 77 "cannot compute sizeof (unsigned int*)
22808See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022809 else
22810 ac_cv_sizeof_unsigned_intp=0
22811 fi
22812fi
cristy8b350f62009-11-15 23:12:43 +000022813
cristy3ed852e2009-09-05 21:47:34 +000022814fi
cristy8b350f62009-11-15 23:12:43 +000022815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022816$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22817
22818
22819
22820cat >>confdefs.h <<_ACEOF
22821#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22822_ACEOF
22823
22824
22825
22826#
22827# Compute sized types for current CPU and compiler options.
22828#
22829
cristy8b350f62009-11-15 23:12:43 +000022830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022831$as_echo_n "checking for signed 8-bit type... " >&6; }
22832INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022834$as_echo "$INT8_T" >&6; }
22835
22836
cristy8b350f62009-11-15 23:12:43 +000022837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022838$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22839UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo "$UINT8_T" >&6; }
22842
22843
cristy8b350f62009-11-15 23:12:43 +000022844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022845$as_echo_n "checking for signed 16-bit type... " >&6; }
22846INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022848$as_echo "$INT16_T" >&6; }
22849
22850
cristy8b350f62009-11-15 23:12:43 +000022851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022852$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22853UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022855$as_echo "$UINT16_T" >&6; }
22856
22857
cristy8b350f62009-11-15 23:12:43 +000022858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022859$as_echo_n "checking for signed 32-bit type... " >&6; }
22860INT32_T='none'
22861if test $ac_cv_sizeof_signed_int -eq 4; then
22862 INT32_T='signed int'
22863elif test $ac_cv_sizeof_signed_long -eq 4; then
22864 INT32_T='signed long'
22865fi
cristy8b350f62009-11-15 23:12:43 +000022866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022867$as_echo "$INT32_T" >&6; }
22868
22869
cristy8b350f62009-11-15 23:12:43 +000022870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022871$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22872UINT32_T='none'
22873if test $ac_cv_sizeof_unsigned_int -eq 4; then
22874 UINT32_T='unsigned int'
22875elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22876 UINT32_T='unsigned long'
22877fi
cristy8b350f62009-11-15 23:12:43 +000022878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022879$as_echo "$UINT32_T" >&6; }
22880
22881
cristy8b350f62009-11-15 23:12:43 +000022882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022883$as_echo_n "checking for signed 64-bit type... " >&6; }
22884INT64_T='none'
22885if test $ac_cv_sizeof_signed_long -eq 8; then
22886 INT64_T='signed long'
22887elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22888 INT64_T='signed long long'
22889fi
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo "$INT64_T" >&6; }
22892
22893
cristy8b350f62009-11-15 23:12:43 +000022894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022895$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22896UINT64_T='none'
22897if test $ac_cv_sizeof_unsigned_long -eq 8; then
22898 UINT64_T='unsigned long'
22899elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22900 UINT64_T='unsigned long long'
22901fi
cristy8b350f62009-11-15 23:12:43 +000022902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022903$as_echo "$UINT64_T" >&6; }
22904
22905
cristy8b350f62009-11-15 23:12:43 +000022906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022907$as_echo_n "checking for unsigned maximum type... " >&6; }
22908UINTMAX_T='none'
22909if test "$UINT64_T" != 'none'; then
22910 UINTMAX_T=$UINT64_T
22911elif test "$UINT32_T" != 'none'; then
22912 UINTMAX_T=$UINT32_T
22913fi
cristy8b350f62009-11-15 23:12:43 +000022914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022915$as_echo "$UINTMAX_T" >&6; }
22916
22917
cristy8b350f62009-11-15 23:12:43 +000022918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022919$as_echo_n "checking for pointer difference type... " >&6; }
22920UINTPTR_T='none'
22921if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22922 UINTPTR_T='unsigned long'
22923elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22924 UINTPTR_T='unsigned long long'
22925fi
cristy8b350f62009-11-15 23:12:43 +000022926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022927$as_echo "$UINTPTR_T" >&6; }
22928
22929
cristy8b350f62009-11-15 23:12:43 +000022930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022931$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022933/* end confdefs.h. */
22934
22935int
22936main ()
22937{
22938{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22939 ;
22940 return 0;
22941}
22942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022943if ac_fn_c_try_compile "$LINENO"; then :
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022945$as_echo "yes" >&6; }
22946else
cristy8b350f62009-11-15 23:12:43 +000022947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022948$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022950$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022952/* end confdefs.h. */
22953
22954int
22955main ()
22956{
22957{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22958 ;
22959 return 0;
22960}
22961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022962if ac_fn_c_try_compile "$LINENO"; then :
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022964$as_echo "yes" >&6; }
22965
cristy8b350f62009-11-15 23:12:43 +000022966$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022967
22968else
cristy8b350f62009-11-15 23:12:43 +000022969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022970$as_echo "no" >&6; }
22971
cristy8b350f62009-11-15 23:12:43 +000022972$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022973
22974fi
cristy3ed852e2009-09-05 21:47:34 +000022975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976fi
cristy3ed852e2009-09-05 21:47:34 +000022977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978
22979########
22980#
22981# Check for functions
22982#
22983########
cristy73bd4a52010-10-05 11:24:23 +000022984for ac_header in stdlib.h unistd.h
22985do :
22986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22987ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022989 cat >>confdefs.h <<_ACEOF
22990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22991_ACEOF
22992
22993fi
22994
22995done
22996
22997for ac_func in getpagesize
22998do :
22999 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023000if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023001 cat >>confdefs.h <<_ACEOF
23002#define HAVE_GETPAGESIZE 1
23003_ACEOF
23004
23005fi
23006done
23007
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23009$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023010if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023011 $as_echo_n "(cached) " >&6
23012else
23013 if test "$cross_compiling" = yes; then :
23014 magick_cv_func_mmap_fileio=no
23015else
23016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017/* end confdefs.h. */
23018$ac_includes_default
23019/* malloc might have been renamed as rpl_malloc. */
23020#undef malloc
23021
23022/*
23023 This test is derived from GNU Autoconf's similar macro.
23024 The purpose of this test is to verify that files may be memory
23025 mapped, and that memory mapping and file I/O are coherent.
23026
23027 The test creates a test file, memory maps the file, updates
23028 the file using the memory map, and then reads the file using
23029 file I/O to verify that the file contains the updates.
23030*/
23031
23032#include <fcntl.h>
23033#include <sys/mman.h>
23034
23035#if !STDC_HEADERS && !HAVE_STDLIB_H
23036char *malloc ();
23037#endif
23038
23039/* This mess was copied from the GNU getpagesize.h. */
23040#if !HAVE_GETPAGESIZE
23041/* Assume that all systems that can run configure have sys/param.h. */
23042# if !HAVE_SYS_PARAM_H
23043# define HAVE_SYS_PARAM_H 1
23044# endif
23045
23046# ifdef _SC_PAGESIZE
23047# define getpagesize() sysconf(_SC_PAGESIZE)
23048# else /* no _SC_PAGESIZE */
23049# if HAVE_SYS_PARAM_H
23050# include <sys/param.h>
23051# ifdef EXEC_PAGESIZE
23052# define getpagesize() EXEC_PAGESIZE
23053# else /* no EXEC_PAGESIZE */
23054# ifdef NBPG
23055# define getpagesize() NBPG * CLSIZE
23056# ifndef CLSIZE
23057# define CLSIZE 1
23058# endif /* no CLSIZE */
23059# else /* no NBPG */
23060# ifdef NBPC
23061# define getpagesize() NBPC
23062# else /* no NBPC */
23063# ifdef PAGESIZE
23064# define getpagesize() PAGESIZE
23065# endif /* PAGESIZE */
23066# endif /* no NBPC */
23067# endif /* no NBPG */
23068# endif /* no EXEC_PAGESIZE */
23069# else /* no HAVE_SYS_PARAM_H */
23070# define getpagesize() 8192 /* punt totally */
23071# endif /* no HAVE_SYS_PARAM_H */
23072# endif /* no _SC_PAGESIZE */
23073
23074#endif /* no HAVE_GETPAGESIZE */
23075
23076int
23077main ()
23078{
23079 char *data, *data2, *data3;
23080 int i, pagesize;
23081 int fd;
23082
23083 pagesize = getpagesize ();
23084
23085 /* First, make a file with some known garbage in it. */
23086 data = (char *) malloc (pagesize);
23087 if (!data)
23088 exit (1);
23089 for (i = 0; i < pagesize; ++i)
23090 *(data + i) = rand ();
23091 umask (0);
23092 fd = creat ("conftest.mmap", 0600);
23093 if (fd < 0)
23094 exit (1);
23095 if (write (fd, data, pagesize) != pagesize)
23096 exit (1);
23097 close (fd);
23098
23099 /* Mmap the file as read/write/shared and verify that we see the
23100 same garbage. */
23101 fd = open ("conftest.mmap", O_RDWR);
23102 if (fd < 0)
23103 exit (1);
23104 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23105 if (data2 == 0)
23106 exit (1);
23107 for (i = 0; i < pagesize; ++i)
23108 if (*(data + i) != *(data2 + i))
23109 exit (1);
23110
23111 /* Finally, make sure that changes to the mapped area
23112 percolate back to the file as seen by read(). */
23113 for (i = 0; i < pagesize; ++i)
23114 *(data2 + i) = *(data2 + i) + 1;
23115 data3 = (char *) malloc (pagesize);
23116 if (!data3)
23117 exit (1);
23118 if (read (fd, data3, pagesize) != pagesize)
23119 exit (1);
23120 for (i = 0; i < pagesize; ++i)
23121 if (*(data2 + i) != *(data3 + i))
23122 exit (1);
23123 close (fd);
23124 exit (0);
23125}
23126_ACEOF
23127if ac_fn_c_try_run "$LINENO"; then :
23128 magick_cv_func_mmap_fileio=yes
23129else
23130 magick_cv_func_mmap_fileio=no
23131fi
23132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23133 conftest.$ac_objext conftest.beam conftest.$ac_ext
23134fi
23135
23136fi
23137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23138$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23139if test $magick_cv_func_mmap_fileio = yes; then
23140
23141$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23142
23143fi
23144rm -f conftest.mmap
23145
cristy8b350f62009-11-15 23:12:43 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023147$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023148if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023149 $as_echo_n "(cached) " >&6
23150else
cristy8b350f62009-11-15 23:12:43 +000023151 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 ac_cv_func_closedir_void=yes
23153else
cristy8b350f62009-11-15 23:12:43 +000023154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023155/* end confdefs.h. */
23156$ac_includes_default
23157#include <$ac_header_dirent>
23158#ifndef __cplusplus
23159int closedir ();
23160#endif
23161
23162int
23163main ()
23164{
23165return closedir (opendir (".")) != 0;
23166 ;
23167 return 0;
23168}
23169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023170if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023171 ac_cv_func_closedir_void=no
23172else
cristy8b350f62009-11-15 23:12:43 +000023173 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023174fi
cristy8b350f62009-11-15 23:12:43 +000023175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23176 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023177fi
23178
cristy3ed852e2009-09-05 21:47:34 +000023179fi
cristy8b350f62009-11-15 23:12:43 +000023180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023181$as_echo "$ac_cv_func_closedir_void" >&6; }
23182if test $ac_cv_func_closedir_void = yes; then
23183
cristy8b350f62009-11-15 23:12:43 +000023184$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023185
23186fi
23187
cristycd4c5312009-11-22 01:19:08 +000023188
23189
23190
23191 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023192do :
23193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023194ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23195"
cristy98dddb52010-11-04 00:30:15 +000023196if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023197 cat >>confdefs.h <<_ACEOF
23198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23199_ACEOF
23200
23201fi
23202
23203done
23204
cristycd4c5312009-11-22 01:19:08 +000023205
23206
23207
23208
23209
23210
23211
cristy3ed852e2009-09-05 21:47:34 +000023212for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023213do :
23214 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023215if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023216 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023217#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023218_ACEOF
23219
23220fi
23221done
23222
cristy8b350f62009-11-15 23:12:43 +000023223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023224$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023225if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023226 $as_echo_n "(cached) " >&6
23227else
cristy8b350f62009-11-15 23:12:43 +000023228 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023229 ac_cv_func_mmap_fixed_mapped=no
23230else
cristy8b350f62009-11-15 23:12:43 +000023231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023232/* end confdefs.h. */
23233$ac_includes_default
23234/* malloc might have been renamed as rpl_malloc. */
23235#undef malloc
23236
23237/* Thanks to Mike Haertel and Jim Avera for this test.
23238 Here is a matrix of mmap possibilities:
23239 mmap private not fixed
23240 mmap private fixed at somewhere currently unmapped
23241 mmap private fixed at somewhere already mapped
23242 mmap shared not fixed
23243 mmap shared fixed at somewhere currently unmapped
23244 mmap shared fixed at somewhere already mapped
23245 For private mappings, we should verify that changes cannot be read()
23246 back from the file, nor mmap's back from the file at a different
23247 address. (There have been systems where private was not correctly
23248 implemented like the infamous i386 svr4.0, and systems where the
23249 VM page cache was not coherent with the file system buffer cache
23250 like early versions of FreeBSD and possibly contemporary NetBSD.)
23251 For shared mappings, we should conversely verify that changes get
23252 propagated back to all the places they're supposed to be.
23253
23254 Grep wants private fixed already mapped.
23255 The main things grep needs to know about mmap are:
23256 * does it exist and is it safe to write into the mmap'd area
23257 * how to use it (BSD variants) */
23258
23259#include <fcntl.h>
23260#include <sys/mman.h>
23261
23262#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23263char *malloc ();
23264#endif
23265
23266/* This mess was copied from the GNU getpagesize.h. */
23267#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023268# ifdef _SC_PAGESIZE
23269# define getpagesize() sysconf(_SC_PAGESIZE)
23270# else /* no _SC_PAGESIZE */
23271# ifdef HAVE_SYS_PARAM_H
23272# include <sys/param.h>
23273# ifdef EXEC_PAGESIZE
23274# define getpagesize() EXEC_PAGESIZE
23275# else /* no EXEC_PAGESIZE */
23276# ifdef NBPG
23277# define getpagesize() NBPG * CLSIZE
23278# ifndef CLSIZE
23279# define CLSIZE 1
23280# endif /* no CLSIZE */
23281# else /* no NBPG */
23282# ifdef NBPC
23283# define getpagesize() NBPC
23284# else /* no NBPC */
23285# ifdef PAGESIZE
23286# define getpagesize() PAGESIZE
23287# endif /* PAGESIZE */
23288# endif /* no NBPC */
23289# endif /* no NBPG */
23290# endif /* no EXEC_PAGESIZE */
23291# else /* no HAVE_SYS_PARAM_H */
23292# define getpagesize() 8192 /* punt totally */
23293# endif /* no HAVE_SYS_PARAM_H */
23294# endif /* no _SC_PAGESIZE */
23295
23296#endif /* no HAVE_GETPAGESIZE */
23297
23298int
23299main ()
23300{
23301 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023302 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023303 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023304 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023305
23306 pagesize = getpagesize ();
23307
23308 /* First, make a file with some known garbage in it. */
23309 data = (char *) malloc (pagesize);
23310 if (!data)
23311 return 1;
23312 for (i = 0; i < pagesize; ++i)
23313 *(data + i) = rand ();
23314 umask (0);
23315 fd = creat ("conftest.mmap", 0600);
23316 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023317 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023318 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023319 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023320 close (fd);
23321
cristycd4c5312009-11-22 01:19:08 +000023322 /* Next, check that the tail of a page is zero-filled. File must have
23323 non-zero length, otherwise we risk SIGBUS for entire page. */
23324 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23325 if (fd2 < 0)
23326 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023327 cdata2 = "";
23328 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023329 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023330 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023331 if (data2 == MAP_FAILED)
23332 return 6;
23333 for (i = 0; i < pagesize; ++i)
23334 if (*(data2 + i))
23335 return 7;
23336 close (fd2);
23337 if (munmap (data2, pagesize))
23338 return 8;
23339
cristy3ed852e2009-09-05 21:47:34 +000023340 /* Next, try to mmap the file at a fixed address which already has
23341 something else allocated at it. If we can, also make sure that
23342 we see the same garbage. */
23343 fd = open ("conftest.mmap", O_RDWR);
23344 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023345 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023346 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23347 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023348 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023349 for (i = 0; i < pagesize; ++i)
23350 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023351 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023352
23353 /* Finally, make sure that changes to the mapped area do not
23354 percolate back to the file as seen by read(). (This is a bug on
23355 some variants of i386 svr4.0.) */
23356 for (i = 0; i < pagesize; ++i)
23357 *(data2 + i) = *(data2 + i) + 1;
23358 data3 = (char *) malloc (pagesize);
23359 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023360 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023361 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023362 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023363 for (i = 0; i < pagesize; ++i)
23364 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023365 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023366 close (fd);
23367 return 0;
23368}
23369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023370if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023371 ac_cv_func_mmap_fixed_mapped=yes
23372else
cristy8b350f62009-11-15 23:12:43 +000023373 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023374fi
cristy8b350f62009-11-15 23:12:43 +000023375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23376 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023377fi
23378
cristy3ed852e2009-09-05 21:47:34 +000023379fi
cristy8b350f62009-11-15 23:12:43 +000023380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023381$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23382if test $ac_cv_func_mmap_fixed_mapped = yes; then
23383
cristy8b350f62009-11-15 23:12:43 +000023384$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023385
23386fi
cristycd4c5312009-11-22 01:19:08 +000023387rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023388
cristy3ed852e2009-09-05 21:47:34 +000023389for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023390do :
23391 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023392if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023393 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023394#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023395_ACEOF
23396
23397fi
23398
23399done
23400
cristy3ed852e2009-09-05 21:47:34 +000023401for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023402do :
23403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23404ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023405if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023406 cat >>confdefs.h <<_ACEOF
23407#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23408_ACEOF
23409
23410fi
23411done
23412
23413if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023415$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023416if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023417 $as_echo_n "(cached) " >&6
23418else
cristy8b350f62009-11-15 23:12:43 +000023419 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023420 ac_cv_func_fork_works=cross
23421else
cristy8b350f62009-11-15 23:12:43 +000023422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023423/* end confdefs.h. */
23424$ac_includes_default
23425int
23426main ()
23427{
23428
23429 /* By Ruediger Kuhlmann. */
23430 return fork () < 0;
23431
23432 ;
23433 return 0;
23434}
23435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023436if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023437 ac_cv_func_fork_works=yes
23438else
cristy8b350f62009-11-15 23:12:43 +000023439 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023440fi
cristy8b350f62009-11-15 23:12:43 +000023441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23442 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023443fi
23444
cristy3ed852e2009-09-05 21:47:34 +000023445fi
cristy8b350f62009-11-15 23:12:43 +000023446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023447$as_echo "$ac_cv_func_fork_works" >&6; }
23448
23449else
23450 ac_cv_func_fork_works=$ac_cv_func_fork
23451fi
23452if test "x$ac_cv_func_fork_works" = xcross; then
23453 case $host in
23454 *-*-amigaos* | *-*-msdosdjgpp*)
23455 # Override, as these systems have only a dummy fork() stub
23456 ac_cv_func_fork_works=no
23457 ;;
23458 *)
23459 ac_cv_func_fork_works=yes
23460 ;;
23461 esac
cristy8b350f62009-11-15 23:12:43 +000023462 { $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 +000023463$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23464fi
23465ac_cv_func_vfork_works=$ac_cv_func_vfork
23466if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023469if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023470 $as_echo_n "(cached) " >&6
23471else
cristy8b350f62009-11-15 23:12:43 +000023472 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023473 ac_cv_func_vfork_works=cross
23474else
cristy8b350f62009-11-15 23:12:43 +000023475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023476/* end confdefs.h. */
23477/* Thanks to Paul Eggert for this test. */
23478$ac_includes_default
23479#include <sys/wait.h>
23480#ifdef HAVE_VFORK_H
23481# include <vfork.h>
23482#endif
23483/* On some sparc systems, changes by the child to local and incoming
23484 argument registers are propagated back to the parent. The compiler
23485 is told about this with #include <vfork.h>, but some compilers
23486 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23487 static variable whose address is put into a register that is
23488 clobbered by the vfork. */
23489static void
23490#ifdef __cplusplus
23491sparc_address_test (int arg)
23492# else
23493sparc_address_test (arg) int arg;
23494#endif
23495{
23496 static pid_t child;
23497 if (!child) {
23498 child = vfork ();
23499 if (child < 0) {
23500 perror ("vfork");
23501 _exit(2);
23502 }
23503 if (!child) {
23504 arg = getpid();
23505 write(-1, "", 0);
23506 _exit (arg);
23507 }
23508 }
23509}
23510
23511int
23512main ()
23513{
23514 pid_t parent = getpid ();
23515 pid_t child;
23516
23517 sparc_address_test (0);
23518
23519 child = vfork ();
23520
23521 if (child == 0) {
23522 /* Here is another test for sparc vfork register problems. This
23523 test uses lots of local variables, at least as many local
23524 variables as main has allocated so far including compiler
23525 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23526 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23527 reuse the register of parent for one of the local variables,
23528 since it will think that parent can't possibly be used any more
23529 in this routine. Assigning to the local variable will thus
23530 munge parent in the parent process. */
23531 pid_t
23532 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23533 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23534 /* Convince the compiler that p..p7 are live; otherwise, it might
23535 use the same hardware register for all 8 local variables. */
23536 if (p != p1 || p != p2 || p != p3 || p != p4
23537 || p != p5 || p != p6 || p != p7)
23538 _exit(1);
23539
23540 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23541 from child file descriptors. If the child closes a descriptor
23542 before it execs or exits, this munges the parent's descriptor
23543 as well. Test for this by closing stdout in the child. */
23544 _exit(close(fileno(stdout)) != 0);
23545 } else {
23546 int status;
23547 struct stat st;
23548
23549 while (wait(&status) != child)
23550 ;
23551 return (
23552 /* Was there some problem with vforking? */
23553 child < 0
23554
23555 /* Did the child fail? (This shouldn't happen.) */
23556 || status
23557
23558 /* Did the vfork/compiler bug occur? */
23559 || parent != getpid()
23560
23561 /* Did the file descriptor bug occur? */
23562 || fstat(fileno(stdout), &st) != 0
23563 );
23564 }
23565}
23566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023567if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023568 ac_cv_func_vfork_works=yes
23569else
cristy8b350f62009-11-15 23:12:43 +000023570 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023571fi
cristy8b350f62009-11-15 23:12:43 +000023572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23573 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023574fi
23575
cristy3ed852e2009-09-05 21:47:34 +000023576fi
cristy8b350f62009-11-15 23:12:43 +000023577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo "$ac_cv_func_vfork_works" >&6; }
23579
23580fi;
23581if test "x$ac_cv_func_fork_works" = xcross; then
23582 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023583 { $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 +000023584$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23585fi
23586
23587if test "x$ac_cv_func_vfork_works" = xyes; then
23588
cristy8b350f62009-11-15 23:12:43 +000023589$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023590
23591else
23592
cristy8b350f62009-11-15 23:12:43 +000023593$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023594
23595fi
23596if test "x$ac_cv_func_fork_works" = xyes; then
23597
cristy8b350f62009-11-15 23:12:43 +000023598$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023599
23600fi
23601
cristy8b350f62009-11-15 23:12:43 +000023602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023603$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023604if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023605 $as_echo_n "(cached) " >&6
23606else
cristy8b350f62009-11-15 23:12:43 +000023607 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023608 ac_cv_func_memcmp_working=no
23609else
cristy8b350f62009-11-15 23:12:43 +000023610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023611/* end confdefs.h. */
23612$ac_includes_default
23613int
23614main ()
23615{
23616
23617 /* Some versions of memcmp are not 8-bit clean. */
23618 char c0 = '\100', c1 = '\200', c2 = '\201';
23619 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23620 return 1;
23621
23622 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23623 or more and with at least one buffer not starting on a 4-byte boundary.
23624 William Lewis provided this test program. */
23625 {
23626 char foo[21];
23627 char bar[21];
23628 int i;
23629 for (i = 0; i < 4; i++)
23630 {
23631 char *a = foo + i;
23632 char *b = bar + i;
23633 strcpy (a, "--------01111111");
23634 strcpy (b, "--------10000000");
23635 if (memcmp (a, b, 16) >= 0)
23636 return 1;
23637 }
23638 return 0;
23639 }
23640
23641 ;
23642 return 0;
23643}
23644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023645if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023646 ac_cv_func_memcmp_working=yes
23647else
cristy8b350f62009-11-15 23:12:43 +000023648 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023649fi
cristy8b350f62009-11-15 23:12:43 +000023650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23651 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023652fi
23653
cristy3ed852e2009-09-05 21:47:34 +000023654fi
cristy8b350f62009-11-15 23:12:43 +000023655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023656$as_echo "$ac_cv_func_memcmp_working" >&6; }
23657test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23658 *" memcmp.$ac_objext "* ) ;;
23659 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23660 ;;
23661esac
23662
23663
cristy3ed852e2009-09-05 21:47:34 +000023664for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023665do :
23666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23667ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023669 cat >>confdefs.h <<_ACEOF
23670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23671_ACEOF
23672
23673fi
23674
23675done
23676
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023679if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023680 $as_echo_n "(cached) " >&6
23681else
23682 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23683 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23684 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023686/* end confdefs.h. */
23687$ac_includes_default
23688#ifdef HAVE_SYS_SELECT_H
23689# include <sys/select.h>
23690#endif
23691#ifdef HAVE_SYS_SOCKET_H
23692# include <sys/socket.h>
23693#endif
23694
23695int
23696main ()
23697{
23698extern int select ($ac_arg1,
23699 $ac_arg234, $ac_arg234, $ac_arg234,
23700 $ac_arg5);
23701 ;
23702 return 0;
23703}
23704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023705if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023706 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023707fi
cristy3ed852e2009-09-05 21:47:34 +000023708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 done
23710 done
23711done
23712# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023713: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023714
23715fi
cristy8b350f62009-11-15 23:12:43 +000023716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023717$as_echo "$ac_cv_func_select_args" >&6; }
23718ac_save_IFS=$IFS; IFS=','
23719set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23720IFS=$ac_save_IFS
23721shift
23722
23723cat >>confdefs.h <<_ACEOF
23724#define SELECT_TYPE_ARG1 $1
23725_ACEOF
23726
23727
23728cat >>confdefs.h <<_ACEOF
23729#define SELECT_TYPE_ARG234 ($2)
23730_ACEOF
23731
23732
23733cat >>confdefs.h <<_ACEOF
23734#define SELECT_TYPE_ARG5 ($3)
23735_ACEOF
23736
23737rm -f conftest*
23738
cristyda16f162011-02-19 23:52:17 +000023739if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023740 $as_echo_n "(cached) " >&6
23741else
23742 ac_cv_func_setvbuf_reversed=no
23743fi
23744
23745
cristy8b350f62009-11-15 23:12:43 +000023746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023747$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023748if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023749 $as_echo_n "(cached) " >&6
23750else
cristy8b350f62009-11-15 23:12:43 +000023751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023752/* end confdefs.h. */
23753#include <sys/types.h>
23754#include <signal.h>
23755
23756int
23757main ()
23758{
23759return *(signal (0, 0)) (0) == 1;
23760 ;
23761 return 0;
23762}
23763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023764if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023765 ac_cv_type_signal=int
23766else
cristy8b350f62009-11-15 23:12:43 +000023767 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023768fi
cristy3ed852e2009-09-05 21:47:34 +000023769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770fi
cristy8b350f62009-11-15 23:12:43 +000023771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023772$as_echo "$ac_cv_type_signal" >&6; }
23773
23774cat >>confdefs.h <<_ACEOF
23775#define RETSIGTYPE $ac_cv_type_signal
23776_ACEOF
23777
23778
cristy8b350f62009-11-15 23:12:43 +000023779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023780$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023781if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023782 $as_echo_n "(cached) " >&6
23783else
cristy8b350f62009-11-15 23:12:43 +000023784 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023785 ac_cv_func_strtod=no
23786else
cristy8b350f62009-11-15 23:12:43 +000023787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023788/* end confdefs.h. */
23789
23790$ac_includes_default
23791#ifndef strtod
23792double strtod ();
23793#endif
23794int
23795main()
23796{
23797 {
23798 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23799 char *string = " +69";
23800 char *term;
23801 double value;
23802 value = strtod (string, &term);
23803 if (value != 69 || term != (string + 4))
23804 return 1;
23805 }
23806
23807 {
23808 /* Under Solaris 2.4, strtod returns the wrong value for the
23809 terminating character under some conditions. */
23810 char *string = "NaN";
23811 char *term;
23812 strtod (string, &term);
23813 if (term != string && *(term - 1) == 0)
23814 return 1;
23815 }
23816 return 0;
23817}
23818
23819_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023820if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023821 ac_cv_func_strtod=yes
23822else
cristy8b350f62009-11-15 23:12:43 +000023823 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023824fi
cristy8b350f62009-11-15 23:12:43 +000023825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23826 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023827fi
23828
cristy3ed852e2009-09-05 21:47:34 +000023829fi
cristy8b350f62009-11-15 23:12:43 +000023830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo "$ac_cv_func_strtod" >&6; }
23832if test $ac_cv_func_strtod = no; then
23833 case " $LIBOBJS " in
23834 *" strtod.$ac_objext "* ) ;;
23835 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23836 ;;
23837esac
23838
cristy8b350f62009-11-15 23:12:43 +000023839ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023840if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023841
cristy3ed852e2009-09-05 21:47:34 +000023842fi
23843
cristy3ed852e2009-09-05 21:47:34 +000023844if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023847if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023848 $as_echo_n "(cached) " >&6
23849else
23850 ac_check_lib_save_LIBS=$LIBS
23851LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023853/* end confdefs.h. */
23854
23855/* Override any GCC internal prototype to avoid an error.
23856 Use char because int might match the return type of a GCC
23857 builtin and then its argument prototype would still apply. */
23858#ifdef __cplusplus
23859extern "C"
23860#endif
23861char pow ();
23862int
23863main ()
23864{
23865return pow ();
23866 ;
23867 return 0;
23868}
23869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023871 ac_cv_lib_m_pow=yes
23872else
cristy8b350f62009-11-15 23:12:43 +000023873 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023874fi
cristy8b350f62009-11-15 23:12:43 +000023875rm -f core conftest.err conftest.$ac_objext \
23876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023877LIBS=$ac_check_lib_save_LIBS
23878fi
cristy8b350f62009-11-15 23:12:43 +000023879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023880$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023881if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023882 POW_LIB=-lm
23883else
cristy8b350f62009-11-15 23:12:43 +000023884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23886fi
23887
23888fi
23889
23890fi
23891
cristy3ed852e2009-09-05 21:47:34 +000023892for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023893do :
23894 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023895if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023896 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023897#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023898_ACEOF
23899
cristy8b350f62009-11-15 23:12:43 +000023900ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023901if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023902
cristy8b350f62009-11-15 23:12:43 +000023903$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023904
23905fi
23906
23907fi
23908done
23909
23910
23911
cristy161b9262010-03-20 19:34:32 +000023912#
23913# Find math library
23914#
23915MATH_LIBS=''
23916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23917$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023918if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023919 $as_echo_n "(cached) " >&6
23920else
23921 ac_check_lib_save_LIBS=$LIBS
23922LIBS="-lm $LIBS"
23923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924/* end confdefs.h. */
23925
23926/* Override any GCC internal prototype to avoid an error.
23927 Use char because int might match the return type of a GCC
23928 builtin and then its argument prototype would still apply. */
23929#ifdef __cplusplus
23930extern "C"
23931#endif
23932char sqrt ();
23933int
23934main ()
23935{
23936return sqrt ();
23937 ;
23938 return 0;
23939}
23940_ACEOF
23941if ac_fn_c_try_link "$LINENO"; then :
23942 ac_cv_lib_m_sqrt=yes
23943else
23944 ac_cv_lib_m_sqrt=no
23945fi
23946rm -f core conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
23948LIBS=$ac_check_lib_save_LIBS
23949fi
23950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23951$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023952if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023953 MATH_LIBS="-lm"
23954fi
23955
23956LIBS="$MATH_LIBS $LIBS"
23957
23958
cristy47b022b2011-01-18 22:29:21 +000023959for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _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 strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023960do :
23961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023964 cat >>confdefs.h <<_ACEOF
23965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23966_ACEOF
23967
23968fi
23969done
23970
23971
cristye43a45e2009-09-28 14:49:00 +000023972#
23973# Check for clock_gettime().
23974#
cristy8b350f62009-11-15 23:12:43 +000023975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023976$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023977if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023978 $as_echo_n "(cached) " >&6
23979else
23980 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023982/* end confdefs.h. */
23983
23984/* Override any GCC internal prototype to avoid an error.
23985 Use char because int might match the return type of a GCC
23986 builtin and then its argument prototype would still apply. */
23987#ifdef __cplusplus
23988extern "C"
23989#endif
23990char clock_gettime ();
23991int
23992main ()
23993{
23994return clock_gettime ();
23995 ;
23996 return 0;
23997}
23998_ACEOF
23999for ac_lib in '' rt; do
24000 if test -z "$ac_lib"; then
24001 ac_res="none required"
24002 else
24003 ac_res=-l$ac_lib
24004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24005 fi
cristy8b350f62009-11-15 23:12:43 +000024006 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024007 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024008fi
cristy8b350f62009-11-15 23:12:43 +000024009rm -f core conftest.err conftest.$ac_objext \
24010 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024011 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024012 break
24013fi
24014done
cristyda16f162011-02-19 23:52:17 +000024015if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024016
cristye43a45e2009-09-28 14:49:00 +000024017else
24018 ac_cv_search_clock_gettime=no
24019fi
24020rm conftest.$ac_ext
24021LIBS=$ac_func_search_save_LIBS
24022fi
cristy8b350f62009-11-15 23:12:43 +000024023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024024$as_echo "$ac_cv_search_clock_gettime" >&6; }
24025ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024026if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24028
24029
cristy8b350f62009-11-15 23:12:43 +000024030$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024031
cristy8b350f62009-11-15 23:12:43 +000024032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024033$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024035/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024036
24037 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024038int
24039main ()
24040{
24041clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024042 ;
24043 return 0;
24044}
24045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024046if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024047
cristy8b350f62009-11-15 23:12:43 +000024048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024049$as_echo "yes" >&6; }
24050
cristy8b350f62009-11-15 23:12:43 +000024051$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024052
24053
24054else
cristy8b350f62009-11-15 23:12:43 +000024055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024056$as_echo "no" >&6; }
24057
24058fi
cristye43a45e2009-09-28 14:49:00 +000024059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24060
24061else
24062
cristy8b350f62009-11-15 23:12:43 +000024063 for ac_func in gettimeofday ftime
24064do :
24065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024067if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024068 cat >>confdefs.h <<_ACEOF
24069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24070_ACEOF
24071 break
24072fi
24073done
24074
24075
24076
24077fi
24078
24079
cristy3ed852e2009-09-05 21:47:34 +000024080########
24081#
24082# Check for function prototypes
24083#
24084########
24085
cristy8b350f62009-11-15 23:12:43 +000024086ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024087#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024088"
cristyda16f162011-02-19 23:52:17 +000024089if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024090 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024091else
cristy8b350f62009-11-15 23:12:43 +000024092 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024093fi
24094
cristy3ed852e2009-09-05 21:47:34 +000024095cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024096#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024098ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024099#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024100"
cristyda16f162011-02-19 23:52:17 +000024101if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024102 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024103else
cristy8b350f62009-11-15 23:12:43 +000024104 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024105fi
24106
cristy3ed852e2009-09-05 21:47:34 +000024107cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024108#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024109_ACEOF
24110
24111
cristy8b350f62009-11-15 23:12:43 +000024112ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024113#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024114"
cristyda16f162011-02-19 23:52:17 +000024115if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024116 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024117else
cristy8b350f62009-11-15 23:12:43 +000024118 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024119fi
24120
cristy3ed852e2009-09-05 21:47:34 +000024121cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024122#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024123_ACEOF
24124
24125
cristy8b350f62009-11-15 23:12:43 +000024126ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024127#include <stdio.h>
24128#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024129"
cristyda16f162011-02-19 23:52:17 +000024130if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024131 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024132else
cristy8b350f62009-11-15 23:12:43 +000024133 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024134fi
24135
cristy3ed852e2009-09-05 21:47:34 +000024136cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024137#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024138_ACEOF
24139
24140
cristy3ed852e2009-09-05 21:47:34 +000024141########
24142#
24143# C++ Support Tests (For Magick++)
24144#
24145########
24146have_magick_plus_plus='no'
24147if test "$with_magick_plus_plus" = 'yes'; then
24148 OLIBS="$LIBS"
24149 LIBS=''
24150 ac_ext=cpp
24151ac_cpp='$CXXCPP $CPPFLAGS'
24152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24155
24156
24157 # Full set of headers used...
24158 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24159 # functional iomanip iosfwd iostream iterator list string strstream utility
24160 ac_ext=cpp
24161ac_cpp='$CXXCPP $CPPFLAGS'
24162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24165
24166 ac_ext=cpp
24167ac_cpp='$CXXCPP $CPPFLAGS'
24168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24171if test -z "$CXX"; then
24172 if test -n "$CCC"; then
24173 CXX=$CCC
24174 else
24175 if test -n "$ac_tool_prefix"; then
24176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24177 do
24178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024182if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 $as_echo_n "(cached) " >&6
24184else
24185 if test -n "$CXX"; then
24186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24187else
24188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24189for as_dir in $PATH
24190do
24191 IFS=$as_save_IFS
24192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24195 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024197 break 2
24198 fi
24199done
cristy8b350f62009-11-15 23:12:43 +000024200 done
cristy3ed852e2009-09-05 21:47:34 +000024201IFS=$as_save_IFS
24202
24203fi
24204fi
24205CXX=$ac_cv_prog_CXX
24206if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208$as_echo "$CXX" >&6; }
24209else
cristy8b350f62009-11-15 23:12:43 +000024210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo "no" >&6; }
24212fi
24213
24214
24215 test -n "$CXX" && break
24216 done
24217fi
24218if test -z "$CXX"; then
24219 ac_ct_CXX=$CXX
24220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24221do
24222 # Extract the first word of "$ac_prog", so it can be a program name with args.
24223set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024226if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024227 $as_echo_n "(cached) " >&6
24228else
24229 if test -n "$ac_ct_CXX"; then
24230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24231else
24232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24233for as_dir in $PATH
24234do
24235 IFS=$as_save_IFS
24236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24239 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241 break 2
24242 fi
24243done
cristy8b350f62009-11-15 23:12:43 +000024244 done
cristy3ed852e2009-09-05 21:47:34 +000024245IFS=$as_save_IFS
24246
24247fi
24248fi
24249ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24250if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024252$as_echo "$ac_ct_CXX" >&6; }
24253else
cristy8b350f62009-11-15 23:12:43 +000024254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024255$as_echo "no" >&6; }
24256fi
24257
24258
24259 test -n "$ac_ct_CXX" && break
24260done
24261
24262 if test "x$ac_ct_CXX" = x; then
24263 CXX="g++"
24264 else
24265 case $cross_compiling:$ac_tool_warned in
24266yes:)
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24269ac_tool_warned=yes ;;
24270esac
24271 CXX=$ac_ct_CXX
24272 fi
24273fi
24274
24275 fi
24276fi
24277# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024278$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279set X $ac_compile
24280ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024281for ac_option in --version -v -V -qversion; do
24282 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024283case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24286esac
cristy8b350f62009-11-15 23:12:43 +000024287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24288$as_echo "$ac_try_echo"; } >&5
24289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024290 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024291 if test -s conftest.err; then
24292 sed '10a\
24293... rest of stderr output deleted ...
24294 10q' conftest.err >conftest.er1
24295 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024296 fi
cristycd4c5312009-11-22 01:19:08 +000024297 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299 test $ac_status = 0; }
24300done
cristy3ed852e2009-09-05 21:47:34 +000024301
cristy8b350f62009-11-15 23:12:43 +000024302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024303$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024304if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024305 $as_echo_n "(cached) " >&6
24306else
cristy8b350f62009-11-15 23:12:43 +000024307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024308/* end confdefs.h. */
24309
24310int
24311main ()
24312{
24313#ifndef __GNUC__
24314 choke me
24315#endif
24316
24317 ;
24318 return 0;
24319}
24320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024321if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024322 ac_compiler_gnu=yes
24323else
cristy8b350f62009-11-15 23:12:43 +000024324 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024325fi
cristy3ed852e2009-09-05 21:47:34 +000024326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24327ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24328
24329fi
cristy8b350f62009-11-15 23:12:43 +000024330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024331$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24332if test $ac_compiler_gnu = yes; then
24333 GXX=yes
24334else
24335 GXX=
24336fi
24337ac_test_CXXFLAGS=${CXXFLAGS+set}
24338ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024342 $as_echo_n "(cached) " >&6
24343else
24344 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24345 ac_cxx_werror_flag=yes
24346 ac_cv_prog_cxx_g=no
24347 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024349/* end confdefs.h. */
24350
24351int
24352main ()
24353{
24354
24355 ;
24356 return 0;
24357}
24358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024359if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 ac_cv_prog_cxx_g=yes
24361else
cristy8b350f62009-11-15 23:12:43 +000024362 CXXFLAGS=""
24363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024364/* end confdefs.h. */
24365
24366int
24367main ()
24368{
24369
24370 ;
24371 return 0;
24372}
24373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024374if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024375
cristy8b350f62009-11-15 23:12:43 +000024376else
24377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024378 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024380/* end confdefs.h. */
24381
24382int
24383main ()
24384{
24385
24386 ;
24387 return 0;
24388}
24389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024390if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024391 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024392fi
cristy3ed852e2009-09-05 21:47:34 +000024393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394fi
cristy3ed852e2009-09-05 21:47:34 +000024395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396fi
cristy3ed852e2009-09-05 21:47:34 +000024397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24399fi
cristy8b350f62009-11-15 23:12:43 +000024400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024401$as_echo "$ac_cv_prog_cxx_g" >&6; }
24402if test "$ac_test_CXXFLAGS" = set; then
24403 CXXFLAGS=$ac_save_CXXFLAGS
24404elif test $ac_cv_prog_cxx_g = yes; then
24405 if test "$GXX" = yes; then
24406 CXXFLAGS="-g -O2"
24407 else
24408 CXXFLAGS="-g"
24409 fi
24410else
24411 if test "$GXX" = yes; then
24412 CXXFLAGS="-O2"
24413 else
24414 CXXFLAGS=
24415 fi
24416fi
24417ac_ext=cpp
24418ac_cpp='$CXXCPP $CPPFLAGS'
24419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24422
cristy73bd4a52010-10-05 11:24:23 +000024423depcc="$CXX" am_compiler_list=
24424
24425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24426$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024427if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024428 $as_echo_n "(cached) " >&6
24429else
24430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24431 # We make a subdir and do the tests there. Otherwise we can end up
24432 # making bogus files that we don't know about and never remove. For
24433 # instance it was reported that on HP-UX the gcc test will end up
24434 # making a dummy file named `D' -- because `-MD' means `put the output
24435 # in D'.
24436 mkdir conftest.dir
24437 # Copy depcomp to subdir because otherwise we won't find it if we're
24438 # using a relative directory.
24439 cp "$am_depcomp" conftest.dir
24440 cd conftest.dir
24441 # We will build objects and dependencies in a subdirectory because
24442 # it helps to detect inapplicable dependency modes. For instance
24443 # both Tru64's cc and ICC support -MD to output dependencies as a
24444 # side effect of compilation, but ICC will put the dependencies in
24445 # the current directory while Tru64 will put them in the object
24446 # directory.
24447 mkdir sub
24448
24449 am_cv_CXX_dependencies_compiler_type=none
24450 if test "$am_compiler_list" = ""; then
24451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24452 fi
24453 am__universal=false
24454 case " $depcc " in #(
24455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24456 esac
24457
24458 for depmode in $am_compiler_list; do
24459 # Setup a source with many dependencies, because some compilers
24460 # like to wrap large dependency lists on column 80 (with \), and
24461 # we should not choose a depcomp mode which is confused by this.
24462 #
24463 # We need to recreate these files for each test, as the compiler may
24464 # overwrite some of them when testing with obscure command lines.
24465 # This happens at least with the AIX C compiler.
24466 : > sub/conftest.c
24467 for i in 1 2 3 4 5 6; do
24468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24470 # Solaris 8's {/usr,}/bin/sh.
24471 touch sub/conftst$i.h
24472 done
24473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24474
24475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24476 # mode. It turns out that the SunPro C++ compiler does not properly
24477 # handle `-M -o', and we need to detect this. Also, some Intel
24478 # versions had trouble with output in subdirs
24479 am__obj=sub/conftest.${OBJEXT-o}
24480 am__minus_obj="-o $am__obj"
24481 case $depmode in
24482 gcc)
24483 # This depmode causes a compiler race in universal mode.
24484 test "$am__universal" = false || continue
24485 ;;
24486 nosideeffect)
24487 # after this tag, mechanisms are not by side-effect, so they'll
24488 # only be used when explicitly requested
24489 if test "x$enable_dependency_tracking" = xyes; then
24490 continue
24491 else
24492 break
24493 fi
24494 ;;
24495 msvisualcpp | msvcmsys)
24496 # This compiler won't grok `-c -o', but also, the minuso test has
24497 # not run yet. These depmodes are late enough in the game, and
24498 # so weak that their functioning should not be impacted.
24499 am__obj=conftest.${OBJEXT-o}
24500 am__minus_obj=
24501 ;;
24502 none) break ;;
24503 esac
24504 if depmode=$depmode \
24505 source=sub/conftest.c object=$am__obj \
24506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24508 >/dev/null 2>conftest.err &&
24509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24513 # icc doesn't choke on unknown options, it will just issue warnings
24514 # or remarks (even with -Werror). So we grep stderr for any message
24515 # that says an option was ignored or not supported.
24516 # When given -MP, icc 7.0 and 7.1 complain thusly:
24517 # icc: Command line warning: ignoring option '-M'; no argument required
24518 # The diagnosis changed in icc 8.0:
24519 # icc: Command line remark: option '-MP' not supported
24520 if (grep 'ignoring option' conftest.err ||
24521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24522 am_cv_CXX_dependencies_compiler_type=$depmode
24523 break
24524 fi
24525 fi
24526 done
24527
24528 cd ..
24529 rm -rf conftest.dir
24530else
24531 am_cv_CXX_dependencies_compiler_type=none
24532fi
24533
24534fi
24535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24536$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24537CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24538
24539 if
24540 test "x$enable_dependency_tracking" != xno \
24541 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24542 am__fastdepCXX_TRUE=
24543 am__fastdepCXX_FALSE='#'
24544else
24545 am__fastdepCXX_TRUE='#'
24546 am__fastdepCXX_FALSE=
24547fi
24548
24549
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24551$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024552if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024553 $as_echo_n "(cached) " >&6
24554else
24555
24556 ac_ext=cpp
24557ac_cpp='$CXXCPP $CPPFLAGS'
24558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24561
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563/* end confdefs.h. */
24564
24565int f(int x){return 1;}
24566int f(char x){return 1;}
24567int f(bool x){return 1;}
24568
24569int
24570main ()
24571{
24572bool b = true; return f(b);
24573 ;
24574 return 0;
24575}
24576_ACEOF
24577if ac_fn_cxx_try_compile "$LINENO"; then :
24578 ax_cv_cxx_bool=yes
24579else
24580 ax_cv_cxx_bool=no
24581fi
24582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583 ac_ext=cpp
24584ac_cpp='$CXXCPP $CPPFLAGS'
24585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24588
24589
24590fi
24591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24592$as_echo "$ax_cv_cxx_bool" >&6; }
24593if test "$ax_cv_cxx_bool" = yes; then
24594
24595$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24596
24597fi
24598
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24600$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024601if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024602 $as_echo_n "(cached) " >&6
24603else
24604
24605 ac_ext=cpp
24606ac_cpp='$CXXCPP $CPPFLAGS'
24607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24610
24611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24612/* end confdefs.h. */
24613namespace Outer { namespace Inner { int i = 0; }}
24614int
24615main ()
24616{
24617using namespace Outer::Inner; return i;
24618 ;
24619 return 0;
24620}
24621_ACEOF
24622if ac_fn_cxx_try_compile "$LINENO"; then :
24623 ax_cv_cxx_namespaces=yes
24624else
24625 ax_cv_cxx_namespaces=no
24626fi
24627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24628 ac_ext=cpp
24629ac_cpp='$CXXCPP $CPPFLAGS'
24630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24633
24634
24635fi
24636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24637$as_echo "$ax_cv_cxx_namespaces" >&6; }
24638if test "$ax_cv_cxx_namespaces" = yes; then
24639
24640$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24641
24642fi
24643
24644
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24646$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024647if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024648 $as_echo_n "(cached) " >&6
24649else
24650
24651 ac_ext=cpp
24652ac_cpp='$CXXCPP $CPPFLAGS'
24653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24656
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658/* end confdefs.h. */
24659#include <iostream>
24660 std::istream& is = std::cin;
24661int
24662main ()
24663{
24664
24665 ;
24666 return 0;
24667}
24668_ACEOF
24669if ac_fn_cxx_try_compile "$LINENO"; then :
24670 ax_cv_cxx_have_std_namespace=yes
24671else
24672 ax_cv_cxx_have_std_namespace=no
24673fi
24674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24675 ac_ext=cpp
24676ac_cpp='$CXXCPP $CPPFLAGS'
24677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24680
24681
24682fi
24683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24684$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24685 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24686
24687$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24688
24689 fi
24690
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24692$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024693if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024694 $as_echo_n "(cached) " >&6
24695else
24696
24697
24698 ac_ext=cpp
24699ac_cpp='$CXXCPP $CPPFLAGS'
24700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24703
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705/* end confdefs.h. */
24706#include <iostream>
24707#include <map>
24708#include <iomanip>
24709#include <cmath>
24710#ifdef HAVE_NAMESPACES
24711using namespace std;
24712#endif
24713int
24714main ()
24715{
24716return 0;
24717 ;
24718 return 0;
24719}
24720_ACEOF
24721if ac_fn_cxx_try_compile "$LINENO"; then :
24722 ac_cv_cxx_have_std_libs=yes
24723else
24724 ac_cv_cxx_have_std_libs=no
24725fi
24726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 ac_ext=cpp
24728ac_cpp='$CXXCPP $CPPFLAGS'
24729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24732
24733
24734fi
24735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24736$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24737if test "$ac_cv_cxx_have_std_libs" = yes; then
24738
24739$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24740
24741fi
24742
cristy3ed852e2009-09-05 21:47:34 +000024743
24744 OPENMP_CXXFLAGS=
24745 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024746if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024747 enableval=$enable_openmp;
24748fi
24749
24750 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24752$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024753if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024754 $as_echo_n "(cached) " >&6
24755else
cristy8b350f62009-11-15 23:12:43 +000024756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024758
24759#ifndef _OPENMP
24760 choke me
24761#endif
24762#include <omp.h>
24763int main () { return omp_get_num_threads (); }
24764
24765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024766if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024767 ac_cv_prog_cxx_openmp='none needed'
24768else
cristy8b350f62009-11-15 23:12:43 +000024769 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024770 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24771 ac_save_CXXFLAGS=$CXXFLAGS
24772 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24774/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024775
24776#ifndef _OPENMP
24777 choke me
24778#endif
24779#include <omp.h>
24780int main () { return omp_get_num_threads (); }
24781
24782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024783if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024784 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024785fi
cristy8b350f62009-11-15 23:12:43 +000024786rm -f core conftest.err conftest.$ac_objext \
24787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024788 CXXFLAGS=$ac_save_CXXFLAGS
24789 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24790 break
24791 fi
24792 done
24793fi
cristy8b350f62009-11-15 23:12:43 +000024794rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024796fi
cristy8b350f62009-11-15 23:12:43 +000024797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024798$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24799 case $ac_cv_prog_cxx_openmp in #(
24800 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024801 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024802 *)
cristy8b350f62009-11-15 23:12:43 +000024803 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024804 esac
24805 fi
24806
24807
24808 ac_ext=c
24809ac_cpp='$CPP $CPPFLAGS'
24810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24812ac_compiler_gnu=$ac_cv_c_compiler_gnu
24813
24814
cristy8b350f62009-11-15 23:12:43 +000024815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024816$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24817 if \
cristy964cb7f2010-04-25 23:18:00 +000024818 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024819 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024820 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024821 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024822 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024823 have_magick_plus_plus='yes'
24824 else
24825 have_magick_plus_plus='no (failed tests)'
24826 fi
cristy8b350f62009-11-15 23:12:43 +000024827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024828$as_echo "$have_magick_plus_plus" >&6; }
24829 LIBS="$OLIBS"
24830fi
cristy73bd4a52010-10-05 11:24:23 +000024831 if test "$have_magick_plus_plus" = 'yes'; then
24832 WITH_MAGICK_PLUS_PLUS_TRUE=
24833 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24834else
24835 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24836 WITH_MAGICK_PLUS_PLUS_FALSE=
24837fi
24838
cristy3ed852e2009-09-05 21:47:34 +000024839
24840# Only check for delegate libraries in subdirectories if requested.
24841if test "$enable_delegate_build" != 'no'; then
24842 # Check for delegate sub-directories and add -I & -L options as required.
24843 # This presumes that delegates are installed as detailed in the ImageMagick
24844 # README. If delegates are installed in a standard location where the
24845 # compiler will automatically find them then these options should not be
24846 # required.
24847
24848 #
24849 # Most delegates have includes in the same directory as the library, but not all...
24850 #
24851 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024852 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024853 if test -d "$builddir/$dir"; then
24854 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24855 else
24856 if test -d "$srcdirfull/$dir"; then
24857 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24858 fi
24859 fi
24860 done
24861
24862 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024863 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024864 if test -d "$builddir/$dir/.libs"; then
24865 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24866 else
24867 if test -d "$srcdirfull/$dir/.libs"; then
24868 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24869 fi
24870 fi
24871 if test -d "$builddir/$dir"; then
24872 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24873 else
24874 if test -d "$srcdirfull/$dir"; then
24875 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24876 fi
24877 fi
24878 done
24879fi
24880
24881# Assume that delegate headers reside under same directory as ImageMagick
24882# installation prefix.
24883MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24884
24885#
24886# Find the X11 RGB database
24887#
cristy8b350f62009-11-15 23:12:43 +000024888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024889$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024890if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024891 $as_echo_n "(cached) " >&6
24892else
24893 # Look for the header file in a standard set of common directories.
24894# Check X11 before X11Rn because it is often a symlink to the current release.
24895 for ac_dir in \
24896 /lib/usr/lib/X11 \
24897 /usr/X11/lib \
24898 /usr/X11R4/lib \
24899 /usr/X11R5/lib \
24900 /usr/X11R6/lib \
24901 /usr/X11R7/lib \
24902 /usr/X386/lib \
24903 /usr/XFree86/lib/X11 \
24904 /usr/athena/lib \
24905 /usr/lib \
24906 /usr/lib/X11 \
24907 /usr/lib/X11R4 \
24908 /usr/lib/X11R5 \
24909 /usr/lib/X11R6 \
24910 /usr/lib/X11R7 \
24911 /usr/local/X11/lib \
24912 /usr/local/X11R4/lib \
24913 /usr/local/X11R5/lib \
24914 /usr/local/X11R6/lib \
24915 /usr/local/lib \
24916 /usr/local/lib/X11 \
24917 /usr/local/lib/X11R4 \
24918 /usr/local/lib/X11R5 \
24919 /usr/local/lib/X11R6 \
24920 /usr/local/lib/X11R7 \
24921 /usr/local/x11r5/lib \
24922 /usr/lpp/Xamples/lib \
24923 /usr/openwin/lib \
24924 /usr/openwin/share/lib \
24925 /usr/unsupported/lib \
24926 /usr/x386/lib \
24927 ; do
24928 if test -f "$ac_dir/X11/rgb.txt"; then
24929 im_cv_x_configure="$ac_dir/X11/"
24930 break
24931 elif test -f "$ac_dir/rgb.txt"; then
24932 im_cv_x_configure="$ac_dir/"
24933 break
24934 fi
24935
24936 done
24937fi
cristy8b350f62009-11-15 23:12:43 +000024938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024939$as_echo "$im_cv_x_configure" >&6; }
24940X11_CONFIGURE_PATH="$im_cv_x_configure"
24941case "${build_os}" in
24942 mingw* )
24943 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24944 ;;
24945esac
24946
24947cat >>confdefs.h <<_ACEOF
24948#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24949_ACEOF
24950
24951
24952#
24953# Find OpenMP library
24954#
24955GOMP_LIBS=''
24956if test "$enable_openmp" != 'no'; then
24957 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024959$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024960if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024961 $as_echo_n "(cached) " >&6
24962else
24963 ac_check_lib_save_LIBS=$LIBS
24964LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024966/* end confdefs.h. */
24967
24968/* Override any GCC internal prototype to avoid an error.
24969 Use char because int might match the return type of a GCC
24970 builtin and then its argument prototype would still apply. */
24971#ifdef __cplusplus
24972extern "C"
24973#endif
24974char GOMP_parallel_start ();
24975int
24976main ()
24977{
24978return GOMP_parallel_start ();
24979 ;
24980 return 0;
24981}
24982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024984 ac_cv_lib_gomp_GOMP_parallel_start=yes
24985else
cristy8b350f62009-11-15 23:12:43 +000024986 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024987fi
cristy8b350f62009-11-15 23:12:43 +000024988rm -f core conftest.err conftest.$ac_objext \
24989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024990LIBS=$ac_check_lib_save_LIBS
24991fi
cristy8b350f62009-11-15 23:12:43 +000024992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024993$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000024994if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 GOMP_LIBS="-lgomp"
24996fi
24997 # gcc
24998 else
cristy8b350f62009-11-15 23:12:43 +000024999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025001if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025002 $as_echo_n "(cached) " >&6
25003else
25004 ac_check_lib_save_LIBS=$LIBS
25005LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025007/* end confdefs.h. */
25008
25009/* Override any GCC internal prototype to avoid an error.
25010 Use char because int might match the return type of a GCC
25011 builtin and then its argument prototype would still apply. */
25012#ifdef __cplusplus
25013extern "C"
25014#endif
25015char sunw_mp_register_warn ();
25016int
25017main ()
25018{
25019return sunw_mp_register_warn ();
25020 ;
25021 return 0;
25022}
25023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025025 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25026else
cristy8b350f62009-11-15 23:12:43 +000025027 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025028fi
cristy8b350f62009-11-15 23:12:43 +000025029rm -f core conftest.err conftest.$ac_objext \
25030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025031LIBS=$ac_check_lib_save_LIBS
25032fi
cristy8b350f62009-11-15 23:12:43 +000025033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025034$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025035if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025036 GOMP_LIBS="-lmtsk"
25037fi
25038 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025040$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025041if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025042 $as_echo_n "(cached) " >&6
25043else
25044 ac_check_lib_save_LIBS=$LIBS
25045LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025047/* end confdefs.h. */
25048
25049/* Override any GCC internal prototype to avoid an error.
25050 Use char because int might match the return type of a GCC
25051 builtin and then its argument prototype would still apply. */
25052#ifdef __cplusplus
25053extern "C"
25054#endif
25055char _xlsmpFlush ();
25056int
25057main ()
25058{
25059return _xlsmpFlush ();
25060 ;
25061 return 0;
25062}
25063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025065 ac_cv_lib_xlsmp__xlsmpFlush=yes
25066else
cristy8b350f62009-11-15 23:12:43 +000025067 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025068fi
cristy8b350f62009-11-15 23:12:43 +000025069rm -f core conftest.err conftest.$ac_objext \
25070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025071LIBS=$ac_check_lib_save_LIBS
25072fi
cristy8b350f62009-11-15 23:12:43 +000025073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025074$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025075if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025076 GOMP_LIBS="-lxlsmp"
25077fi
25078 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025081if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025082 $as_echo_n "(cached) " >&6
25083else
25084 ac_check_lib_save_LIBS=$LIBS
25085LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025087/* end confdefs.h. */
25088
25089/* Override any GCC internal prototype to avoid an error.
25090 Use char because int might match the return type of a GCC
25091 builtin and then its argument prototype would still apply. */
25092#ifdef __cplusplus
25093extern "C"
25094#endif
25095char mp_destroy ();
25096int
25097main ()
25098{
25099return mp_destroy ();
25100 ;
25101 return 0;
25102}
25103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025105 ac_cv_lib_mp_mp_destroy=yes
25106else
cristy8b350f62009-11-15 23:12:43 +000025107 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025108fi
cristy8b350f62009-11-15 23:12:43 +000025109rm -f core conftest.err conftest.$ac_objext \
25110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025111LIBS=$ac_check_lib_save_LIBS
25112fi
cristy8b350f62009-11-15 23:12:43 +000025113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025114$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025115if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025116 GOMP_LIBS="-lmp"
25117fi
25118 # SGI IRIX 6.5 MIPSpro C/C++
25119 fi
25120 LIBS="$GOMP_LIBS $LIBS"
25121fi
25122
25123
25124#
25125# Find Posix threads library
25126#
25127THREAD_LIBS=''
25128if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25129
25130 if test "x$PTHREAD_LIBS" = "x"; then
25131 case "${host_cpu}-${host_os}" in
25132 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025133
25134
25135
25136ac_ext=c
25137ac_cpp='$CPP $CPPFLAGS'
25138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25140ac_compiler_gnu=$ac_cv_c_compiler_gnu
25141
25142magick_pthread_lib_ok=no
25143
25144LIB=-lc_r
25145save_LIBS="$LIBS"
25146LIBS="$LIBS $LIB"
25147
25148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25149$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151/* end confdefs.h. */
25152#include <pthread.h>
25153int
25154main ()
25155{
25156 pthread_t th;
25157 pthread_join(th, 0);
25158 pthread_attr_init(0);
25159 pthread_cleanup_push(0, 0);
25160 pthread_create(0,0,0,0);
25161 pthread_cleanup_pop(0);
25162 ;
25163 return 0;
25164}
25165_ACEOF
25166if ac_fn_c_try_link "$LINENO"; then :
25167 magick_pthread_lib_ok=yes
25168fi
25169rm -f core conftest.err conftest.$ac_objext \
25170 conftest$ac_exeext conftest.$ac_ext
25171
25172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25173$as_echo "${magick_pthread_lib_ok}" >&6; }
25174if test "$magick_pthread_lib_ok" = yes
25175then
25176 PTHREAD_LIBS=-lc_r
25177 :
25178else
25179
25180 :
25181fi
25182
25183LIBS="$save_LIBS"
25184
25185ac_ext=c
25186ac_cpp='$CPP $CPPFLAGS'
25187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25189ac_compiler_gnu=$ac_cv_c_compiler_gnu
25190
25191 ;;
cristy3ed852e2009-09-05 21:47:34 +000025192 esac
25193 fi
25194
25195 for lib in pthread pthreads; do
25196 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025197
25198
25199
25200ac_ext=c
25201ac_cpp='$CPP $CPPFLAGS'
25202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25204ac_compiler_gnu=$ac_cv_c_compiler_gnu
25205
25206magick_pthread_lib_ok=no
25207
25208LIB=-l$lib
25209save_LIBS="$LIBS"
25210LIBS="$LIBS $LIB"
25211
25212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25213$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25215/* end confdefs.h. */
25216#include <pthread.h>
25217int
25218main ()
25219{
25220 pthread_t th;
25221 pthread_join(th, 0);
25222 pthread_attr_init(0);
25223 pthread_cleanup_push(0, 0);
25224 pthread_create(0,0,0,0);
25225 pthread_cleanup_pop(0);
25226 ;
25227 return 0;
25228}
25229_ACEOF
25230if ac_fn_c_try_link "$LINENO"; then :
25231 magick_pthread_lib_ok=yes
25232fi
25233rm -f core conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
25235
25236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25237$as_echo "${magick_pthread_lib_ok}" >&6; }
25238if test "$magick_pthread_lib_ok" = yes
25239then
25240 PTHREAD_LIBS=-l$lib
25241 :
25242else
25243
25244 :
25245fi
25246
25247LIBS="$save_LIBS"
25248
25249ac_ext=c
25250ac_cpp='$CPP $CPPFLAGS'
25251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25253ac_compiler_gnu=$ac_cv_c_compiler_gnu
25254
25255
cristy3ed852e2009-09-05 21:47:34 +000025256 fi
25257 done
25258
25259 THREAD_LIBS="$PTHREAD_LIBS"
25260 LIBS="$LIBS $THREAD_LIBS"
25261fi
25262
25263
25264#
25265# Check for umem.
25266#
25267have_umem='no'
25268UMEM_LIBS=''
25269if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025271$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025273$as_echo "" >&6; }
25274 failed=0
25275 passed=0
cristy8b350f62009-11-15 23:12:43 +000025276 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025277if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025278 passed=`expr $passed + 1`
25279else
25280 failed=`expr $failed + 1`
25281fi
25282
25283
cristy8b350f62009-11-15 23:12:43 +000025284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025286if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025287 $as_echo_n "(cached) " >&6
25288else
25289 ac_check_lib_save_LIBS=$LIBS
25290LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025292/* end confdefs.h. */
25293
25294/* Override any GCC internal prototype to avoid an error.
25295 Use char because int might match the return type of a GCC
25296 builtin and then its argument prototype would still apply. */
25297#ifdef __cplusplus
25298extern "C"
25299#endif
25300char umem_alloc ();
25301int
25302main ()
25303{
25304return umem_alloc ();
25305 ;
25306 return 0;
25307}
25308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025309if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025310 ac_cv_lib_umem_umem_alloc=yes
25311else
cristy8b350f62009-11-15 23:12:43 +000025312 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025313fi
cristy8b350f62009-11-15 23:12:43 +000025314rm -f core conftest.err conftest.$ac_objext \
25315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025316LIBS=$ac_check_lib_save_LIBS
25317fi
cristy8b350f62009-11-15 23:12:43 +000025318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025319$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025320if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025321 passed=`expr $passed + 1`
25322else
25323 failed=`expr $failed + 1`
25324fi
25325
cristy8b350f62009-11-15 23:12:43 +000025326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025327$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025328if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025329 $as_echo_n "(cached) " >&6
25330else
25331 ac_check_lib_save_LIBS=$LIBS
25332LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025334/* end confdefs.h. */
25335
25336/* Override any GCC internal prototype to avoid an error.
25337 Use char because int might match the return type of a GCC
25338 builtin and then its argument prototype would still apply. */
25339#ifdef __cplusplus
25340extern "C"
25341#endif
25342char umem_free ();
25343int
25344main ()
25345{
25346return umem_free ();
25347 ;
25348 return 0;
25349}
25350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025352 ac_cv_lib_umem_umem_free=yes
25353else
cristy8b350f62009-11-15 23:12:43 +000025354 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025355fi
cristy8b350f62009-11-15 23:12:43 +000025356rm -f core conftest.err conftest.$ac_objext \
25357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025358LIBS=$ac_check_lib_save_LIBS
25359fi
cristy8b350f62009-11-15 23:12:43 +000025360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025361$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025362if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025363 passed=`expr $passed + 1`
25364else
25365 failed=`expr $failed + 1`
25366fi
25367
cristy8b350f62009-11-15 23:12:43 +000025368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25370 if test $passed -gt 0; then
25371 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025373$as_echo "no -- some components failed test" >&6; }
25374 have_umem='no (failed tests)'
25375 else
25376 UMEM_LIBS='-lumem'
25377 LIBS="$UMEM_LIBS $LIBS"
25378
cristy8b350f62009-11-15 23:12:43 +000025379$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025380
cristy8b350f62009-11-15 23:12:43 +000025381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025382$as_echo "yes" >&6; }
25383 have_umem='yes'
25384 fi
25385 else
cristy8b350f62009-11-15 23:12:43 +000025386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025387$as_echo "no" >&6; }
25388 fi
25389fi
cristy73bd4a52010-10-05 11:24:23 +000025390 if test "$have_umem" = 'yes'; then
25391 HasUMEM_TRUE=
25392 HasUMEM_FALSE='#'
25393else
25394 HasUMEM_TRUE='#'
25395 HasUMEM_FALSE=
25396fi
25397
cristy3ed852e2009-09-05 21:47:34 +000025398
25399
25400#
25401# Add support for ccmalloc memory debugging library if requested
25402#
25403have_ccmalloc='no'
25404CCMALLOC_LIBS=''
25405if test "$enable_ccmalloc" = 'yes'; then
25406 # Extract the first word of "ccmalloc", so it can be a program name with args.
25407set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025410if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025411 $as_echo_n "(cached) " >&6
25412else
25413 case $CCMALLOCDelegate in
25414 [\\/]* | ?:[\\/]*)
25415 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25416 ;;
25417 *)
25418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25419for as_dir in $PATH
25420do
25421 IFS=$as_save_IFS
25422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25425 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025427 break 2
25428 fi
25429done
cristy8b350f62009-11-15 23:12:43 +000025430 done
cristy3ed852e2009-09-05 21:47:34 +000025431IFS=$as_save_IFS
25432
25433 ;;
25434esac
25435fi
25436CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25437if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025439$as_echo "$CCMALLOCDelegate" >&6; }
25440else
cristy8b350f62009-11-15 23:12:43 +000025441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025442$as_echo "no" >&6; }
25443fi
25444
25445
25446 if test -n "$CCMALLOCDelegate"; then
25447 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25448 OLIBS="$LIBS"
25449 # Assume that gcc is used with ccmalloc.
25450 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025452$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025453if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025454 $as_echo_n "(cached) " >&6
25455else
25456 ac_check_lib_save_LIBS=$LIBS
25457LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025459/* end confdefs.h. */
25460
25461/* Override any GCC internal prototype to avoid an error.
25462 Use char because int might match the return type of a GCC
25463 builtin and then its argument prototype would still apply. */
25464#ifdef __cplusplus
25465extern "C"
25466#endif
25467char ccmalloc_malloc ();
25468int
25469main ()
25470{
25471return ccmalloc_malloc ();
25472 ;
25473 return 0;
25474}
25475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025476if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025477 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25478else
cristy8b350f62009-11-15 23:12:43 +000025479 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025480fi
cristy8b350f62009-11-15 23:12:43 +000025481rm -f core conftest.err conftest.$ac_objext \
25482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025483LIBS=$ac_check_lib_save_LIBS
25484fi
cristy8b350f62009-11-15 23:12:43 +000025485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025486$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025487if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025488 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25489fi
25490
25491 if test -n "$CCMALLOC_LIBS"; then
25492 LIBS="$OLIBS"
25493 LIBS="$LIBS $CCMALLOC_LIBS"
25494 have_ccmalloc='yes'
25495 else
25496 LIBS="$OLIBS"
25497 fi
25498 fi
25499fi
25500
25501#
25502# Add support for efence memory debugging library if requested
25503#
25504if test "$enable_efence" = 'yes'; then
25505 EFENCE_LIBS='-lefence'
25506 LIBS="$EFENCE_LIBS $LIBS"
25507fi
25508
cristy3ed852e2009-09-05 21:47:34 +000025509
25510#
25511# Check for BZLIB
25512#
25513
25514
25515# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025516if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025517 withval=$with_bzlib; with_bzlib=$withval
25518else
25519 with_bzlib='yes'
25520fi
25521
25522
25523if test "$with_bzlib" != 'yes'; then
25524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25525fi
25526
25527have_bzlib='no'
25528if test "$with_bzlib" != 'no'; then
25529 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025531$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025533$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025535$as_echo "" >&6; }
25536 failed=0
25537 passed=0
25538 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025539 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025540if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025541 passed=`expr $passed + 1`
25542else
25543 failed=`expr $failed + 1`
25544fi
25545
25546
cristy8b350f62009-11-15 23:12:43 +000025547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025548$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025549if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025550 $as_echo_n "(cached) " >&6
25551else
25552 ac_check_lib_save_LIBS=$LIBS
25553LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025555/* end confdefs.h. */
25556
25557/* Override any GCC internal prototype to avoid an error.
25558 Use char because int might match the return type of a GCC
25559 builtin and then its argument prototype would still apply. */
25560#ifdef __cplusplus
25561extern "C"
25562#endif
25563char BZ2_bzDecompress ();
25564int
25565main ()
25566{
25567return BZ2_bzDecompress ();
25568 ;
25569 return 0;
25570}
25571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025573 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25574else
cristy8b350f62009-11-15 23:12:43 +000025575 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025576fi
cristy8b350f62009-11-15 23:12:43 +000025577rm -f core conftest.err conftest.$ac_objext \
25578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025579LIBS=$ac_check_lib_save_LIBS
25580fi
cristy8b350f62009-11-15 23:12:43 +000025581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025582$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025583if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025584 found_libbz=`expr $found_libbz + 1`
25585fi
25586
25587 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025589$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025590if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025591 $as_echo_n "(cached) " >&6
25592else
25593 ac_check_lib_save_LIBS=$LIBS
25594LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025596/* end confdefs.h. */
25597
25598/* Override any GCC internal prototype to avoid an error.
25599 Use char because int might match the return type of a GCC
25600 builtin and then its argument prototype would still apply. */
25601#ifdef __cplusplus
25602extern "C"
25603#endif
25604char _imp__BZ2_decompress ();
25605int
25606main ()
25607{
25608return _imp__BZ2_decompress ();
25609 ;
25610 return 0;
25611}
25612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025613if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025614 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25615else
cristy8b350f62009-11-15 23:12:43 +000025616 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025617fi
cristy8b350f62009-11-15 23:12:43 +000025618rm -f core conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025620LIBS=$ac_check_lib_save_LIBS
25621fi
cristy8b350f62009-11-15 23:12:43 +000025622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025623$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025624if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025625 found_libbz=`expr $found_libbz + 1`
25626fi
25627
25628 fi
25629 if test $found_libbz -gt 0; then
25630 passed=`expr $passed + 1`
25631 else
25632 failed=`expr $failed + 1`
25633 fi
cristy8b350f62009-11-15 23:12:43 +000025634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025635$as_echo_n "checking if BZLIB package is complete... " >&6; }
25636 if test $passed -gt 0; then
25637 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025639$as_echo "no -- some components failed test" >&6; }
25640 have_bzlib='no (failed tests)'
25641 else
25642 BZLIB_LIBS='-lbz2'
25643 LIBS="$BZLIB_LIBS $LIBS"
25644
cristy8b350f62009-11-15 23:12:43 +000025645$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025646
cristy8b350f62009-11-15 23:12:43 +000025647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo "yes" >&6; }
25649 have_bzlib='yes'
25650 fi
25651 else
cristy8b350f62009-11-15 23:12:43 +000025652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025653$as_echo "no" >&6; }
25654 fi
25655fi
cristy73bd4a52010-10-05 11:24:23 +000025656 if test "$have_bzlib" = 'yes'; then
25657 BZLIB_DELEGATE_TRUE=
25658 BZLIB_DELEGATE_FALSE='#'
25659else
25660 BZLIB_DELEGATE_TRUE='#'
25661 BZLIB_DELEGATE_FALSE=
25662fi
25663
cristy3ed852e2009-09-05 21:47:34 +000025664
25665
25666#
25667# Find the X11 include and library directories.
25668#
25669IPC_LIBS=''
25670X11_LIBS=''
25671XEXT_LIBS=''
25672XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025674$as_echo_n "checking for X... " >&6; }
25675
25676
25677# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025678if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025679 withval=$with_x;
25680fi
25681
25682# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25683if test "x$with_x" = xno; then
25684 # The user explicitly disabled X.
25685 have_x=disabled
25686else
25687 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025688 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025689 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025690 $as_echo_n "(cached) " >&6
25691else
25692 # One or both of the vars are not set, and there is no cached value.
25693ac_x_includes=no ac_x_libraries=no
25694rm -f -r conftest.dir
25695if mkdir conftest.dir; then
25696 cd conftest.dir
25697 cat >Imakefile <<'_ACEOF'
25698incroot:
25699 @echo incroot='${INCROOT}'
25700usrlibdir:
25701 @echo usrlibdir='${USRLIBDIR}'
25702libdir:
25703 @echo libdir='${LIBDIR}'
25704_ACEOF
25705 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025706 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025707 for ac_var in incroot usrlibdir libdir; do
25708 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25709 done
25710 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25711 for ac_extension in a so sl dylib la dll; do
25712 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25713 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25714 ac_im_usrlibdir=$ac_im_libdir; break
25715 fi
25716 done
25717 # Screen out bogus values from the imake configuration. They are
25718 # bogus both because they are the default anyway, and because
25719 # using them would break gcc on systems where it needs fixed includes.
25720 case $ac_im_incroot in
25721 /usr/include) ac_x_includes= ;;
25722 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25723 esac
25724 case $ac_im_usrlibdir in
25725 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25726 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25727 esac
25728 fi
25729 cd ..
25730 rm -f -r conftest.dir
25731fi
25732
25733# Standard set of common directories for X headers.
25734# Check X11 before X11Rn because it is often a symlink to the current release.
25735ac_x_header_dirs='
25736/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025737/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025738/usr/X11R6/include
25739/usr/X11R5/include
25740/usr/X11R4/include
25741
25742/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025743/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025744/usr/include/X11R6
25745/usr/include/X11R5
25746/usr/include/X11R4
25747
25748/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025749/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025750/usr/local/X11R6/include
25751/usr/local/X11R5/include
25752/usr/local/X11R4/include
25753
25754/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025755/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025756/usr/local/include/X11R6
25757/usr/local/include/X11R5
25758/usr/local/include/X11R4
25759
25760/usr/X386/include
25761/usr/x386/include
25762/usr/XFree86/include/X11
25763
25764/usr/include
25765/usr/local/include
25766/usr/unsupported/include
25767/usr/athena/include
25768/usr/local/x11r5/include
25769/usr/lpp/Xamples/include
25770
25771/usr/openwin/include
25772/usr/openwin/share/include'
25773
25774if test "$ac_x_includes" = no; then
25775 # Guess where to find include files, by looking for Xlib.h.
25776 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025778/* end confdefs.h. */
25779#include <X11/Xlib.h>
25780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025781if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025782 # We can compile using X headers with no special include directory.
25783ac_x_includes=
25784else
cristyc7083c12009-10-14 03:16:55 +000025785 for ac_dir in $ac_x_header_dirs; do
25786 if test -r "$ac_dir/X11/Xlib.h"; then
25787 ac_x_includes=$ac_dir
25788 break
25789 fi
25790done
25791fi
cristyda16f162011-02-19 23:52:17 +000025792rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025793fi # $ac_x_includes = no
25794
25795if test "$ac_x_libraries" = no; then
25796 # Check for the libraries.
25797 # See if we find them without any special options.
25798 # Don't add to $LIBS permanently.
25799 ac_save_LIBS=$LIBS
25800 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025802/* end confdefs.h. */
25803#include <X11/Xlib.h>
25804int
25805main ()
25806{
25807XrmInitialize ()
25808 ;
25809 return 0;
25810}
25811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025812if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025813 LIBS=$ac_save_LIBS
25814# We can link X programs with no special library path.
25815ac_x_libraries=
25816else
cristy8b350f62009-11-15 23:12:43 +000025817 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025818for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25819do
25820 # Don't even attempt the hair of trying to link an X program!
25821 for ac_extension in a so sl dylib la dll; do
25822 if test -r "$ac_dir/libX11.$ac_extension"; then
25823 ac_x_libraries=$ac_dir
25824 break 2
25825 fi
25826 done
25827done
25828fi
cristy8b350f62009-11-15 23:12:43 +000025829rm -f core conftest.err conftest.$ac_objext \
25830 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025831fi # $ac_x_libraries = no
25832
25833case $ac_x_includes,$ac_x_libraries in #(
25834 no,* | *,no | *\'*)
25835 # Didn't find X, or a directory has "'" in its name.
25836 ac_cv_have_x="have_x=no";; #(
25837 *)
25838 # Record where we found X for the cache.
25839 ac_cv_have_x="have_x=yes\
25840 ac_x_includes='$ac_x_includes'\
25841 ac_x_libraries='$ac_x_libraries'"
25842esac
25843fi
25844;; #(
25845 *) have_x=yes;;
25846 esac
25847 eval "$ac_cv_have_x"
25848fi # $with_x != no
25849
25850if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025852$as_echo "$have_x" >&6; }
25853 no_x=yes
25854else
25855 # If each of the values was on the command line, it overrides each guess.
25856 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25857 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25858 # Update the cache value to reflect the command line values.
25859 ac_cv_have_x="have_x=yes\
25860 ac_x_includes='$x_includes'\
25861 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025863$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25864fi
25865
cristy3ed852e2009-09-05 21:47:34 +000025866if test "$no_x" = yes; then
25867 # Not all programs may use this symbol, but it does not hurt to define it.
25868
cristy8b350f62009-11-15 23:12:43 +000025869$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025870
25871 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25872else
25873 if test -n "$x_includes"; then
25874 X_CFLAGS="$X_CFLAGS -I$x_includes"
25875 fi
25876
25877 # It would also be nice to do this for all -L options, not just this one.
25878 if test -n "$x_libraries"; then
25879 X_LIBS="$X_LIBS -L$x_libraries"
25880 # For Solaris; some versions of Sun CC require a space after -R and
25881 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025883$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25884 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25885 ac_xsave_c_werror_flag=$ac_c_werror_flag
25886 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025888/* end confdefs.h. */
25889
25890int
25891main ()
25892{
25893
25894 ;
25895 return 0;
25896}
25897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025898if ac_fn_c_try_link "$LINENO"; then :
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025900$as_echo "no" >&6; }
25901 X_LIBS="$X_LIBS -R$x_libraries"
25902else
cristy8b350f62009-11-15 23:12:43 +000025903 LIBS="$ac_xsave_LIBS -R $x_libraries"
25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025905/* end confdefs.h. */
25906
25907int
25908main ()
25909{
25910
25911 ;
25912 return 0;
25913}
25914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025915if ac_fn_c_try_link "$LINENO"; then :
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025917$as_echo "yes" >&6; }
25918 X_LIBS="$X_LIBS -R $x_libraries"
25919else
cristy8b350f62009-11-15 23:12:43 +000025920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025921$as_echo "neither works" >&6; }
25922fi
cristy8b350f62009-11-15 23:12:43 +000025923rm -f core conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025925fi
cristy8b350f62009-11-15 23:12:43 +000025926rm -f core conftest.err conftest.$ac_objext \
25927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025928 ac_c_werror_flag=$ac_xsave_c_werror_flag
25929 LIBS=$ac_xsave_LIBS
25930 fi
25931
25932 # Check for system-dependent libraries X programs must link with.
25933 # Do this before checking for the system-independent R6 libraries
25934 # (-lICE), since we may need -lsocket or whatever for X linking.
25935
25936 if test "$ISC" = yes; then
25937 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25938 else
25939 # Martyn Johnson says this is needed for Ultrix, if the X
25940 # libraries were built with DECnet support. And Karl Berry says
25941 # the Alpha needs dnet_stub (dnet does not exist).
25942 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025944/* end confdefs.h. */
25945
25946/* Override any GCC internal prototype to avoid an error.
25947 Use char because int might match the return type of a GCC
25948 builtin and then its argument prototype would still apply. */
25949#ifdef __cplusplus
25950extern "C"
25951#endif
25952char XOpenDisplay ();
25953int
25954main ()
25955{
25956return XOpenDisplay ();
25957 ;
25958 return 0;
25959}
25960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025961if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025962
cristy8b350f62009-11-15 23:12:43 +000025963else
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025965$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025966if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025967 $as_echo_n "(cached) " >&6
25968else
25969 ac_check_lib_save_LIBS=$LIBS
25970LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025972/* end confdefs.h. */
25973
25974/* Override any GCC internal prototype to avoid an error.
25975 Use char because int might match the return type of a GCC
25976 builtin and then its argument prototype would still apply. */
25977#ifdef __cplusplus
25978extern "C"
25979#endif
25980char dnet_ntoa ();
25981int
25982main ()
25983{
25984return dnet_ntoa ();
25985 ;
25986 return 0;
25987}
25988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025989if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025990 ac_cv_lib_dnet_dnet_ntoa=yes
25991else
cristy8b350f62009-11-15 23:12:43 +000025992 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025993fi
cristy8b350f62009-11-15 23:12:43 +000025994rm -f core conftest.err conftest.$ac_objext \
25995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025996LIBS=$ac_check_lib_save_LIBS
25997fi
cristy8b350f62009-11-15 23:12:43 +000025998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026000if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26002fi
26003
26004 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026006$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026007if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026008 $as_echo_n "(cached) " >&6
26009else
26010 ac_check_lib_save_LIBS=$LIBS
26011LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026013/* end confdefs.h. */
26014
26015/* Override any GCC internal prototype to avoid an error.
26016 Use char because int might match the return type of a GCC
26017 builtin and then its argument prototype would still apply. */
26018#ifdef __cplusplus
26019extern "C"
26020#endif
26021char dnet_ntoa ();
26022int
26023main ()
26024{
26025return dnet_ntoa ();
26026 ;
26027 return 0;
26028}
26029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026030if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026031 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26032else
cristy8b350f62009-11-15 23:12:43 +000026033 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026034fi
cristy8b350f62009-11-15 23:12:43 +000026035rm -f core conftest.err conftest.$ac_objext \
26036 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026037LIBS=$ac_check_lib_save_LIBS
26038fi
cristy8b350f62009-11-15 23:12:43 +000026039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026040$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026041if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026042 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26043fi
26044
26045 fi
26046fi
cristy8b350f62009-11-15 23:12:43 +000026047rm -f core conftest.err conftest.$ac_objext \
26048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026049 LIBS="$ac_xsave_LIBS"
26050
26051 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26052 # to get the SysV transport functions.
26053 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26054 # needs -lnsl.
26055 # The nsl library prevents programs from opening the X display
26056 # on Irix 5.2, according to T.E. Dickey.
26057 # The functions gethostbyname, getservbyname, and inet_addr are
26058 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026059 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026060if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026061
cristy3ed852e2009-09-05 21:47:34 +000026062fi
26063
cristy3ed852e2009-09-05 21:47:34 +000026064 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026066$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026067if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026068 $as_echo_n "(cached) " >&6
26069else
26070 ac_check_lib_save_LIBS=$LIBS
26071LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026073/* end confdefs.h. */
26074
26075/* Override any GCC internal prototype to avoid an error.
26076 Use char because int might match the return type of a GCC
26077 builtin and then its argument prototype would still apply. */
26078#ifdef __cplusplus
26079extern "C"
26080#endif
26081char gethostbyname ();
26082int
26083main ()
26084{
26085return gethostbyname ();
26086 ;
26087 return 0;
26088}
26089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 ac_cv_lib_nsl_gethostbyname=yes
26092else
cristy8b350f62009-11-15 23:12:43 +000026093 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026094fi
cristy8b350f62009-11-15 23:12:43 +000026095rm -f core conftest.err conftest.$ac_objext \
26096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097LIBS=$ac_check_lib_save_LIBS
26098fi
cristy8b350f62009-11-15 23:12:43 +000026099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026100$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026101if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26103fi
26104
26105 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026107$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026108if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 $as_echo_n "(cached) " >&6
26110else
26111 ac_check_lib_save_LIBS=$LIBS
26112LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026114/* end confdefs.h. */
26115
26116/* Override any GCC internal prototype to avoid an error.
26117 Use char because int might match the return type of a GCC
26118 builtin and then its argument prototype would still apply. */
26119#ifdef __cplusplus
26120extern "C"
26121#endif
26122char gethostbyname ();
26123int
26124main ()
26125{
26126return gethostbyname ();
26127 ;
26128 return 0;
26129}
26130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026132 ac_cv_lib_bsd_gethostbyname=yes
26133else
cristy8b350f62009-11-15 23:12:43 +000026134 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026135fi
cristy8b350f62009-11-15 23:12:43 +000026136rm -f core conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138LIBS=$ac_check_lib_save_LIBS
26139fi
cristy8b350f62009-11-15 23:12:43 +000026140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026142if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26144fi
26145
26146 fi
26147 fi
26148
26149 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26150 # socket/setsockopt and other routines are undefined under SCO ODT
26151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26152 # on later versions), says Simon Leinen: it contains gethostby*
26153 # variants that don't use the name server (or something). -lsocket
26154 # must be given before -lnsl if both are needed. We assume that
26155 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026156 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026157if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026158
cristy3ed852e2009-09-05 21:47:34 +000026159fi
26160
cristy3ed852e2009-09-05 21:47:34 +000026161 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026163$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026164if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026165 $as_echo_n "(cached) " >&6
26166else
26167 ac_check_lib_save_LIBS=$LIBS
26168LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026170/* end confdefs.h. */
26171
26172/* Override any GCC internal prototype to avoid an error.
26173 Use char because int might match the return type of a GCC
26174 builtin and then its argument prototype would still apply. */
26175#ifdef __cplusplus
26176extern "C"
26177#endif
26178char connect ();
26179int
26180main ()
26181{
26182return connect ();
26183 ;
26184 return 0;
26185}
26186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026187if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026188 ac_cv_lib_socket_connect=yes
26189else
cristy8b350f62009-11-15 23:12:43 +000026190 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026191fi
cristy8b350f62009-11-15 23:12:43 +000026192rm -f core conftest.err conftest.$ac_objext \
26193 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026194LIBS=$ac_check_lib_save_LIBS
26195fi
cristy8b350f62009-11-15 23:12:43 +000026196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026197$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026198if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026199 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26200fi
26201
26202 fi
26203
26204 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026205 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026206if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026207
cristy3ed852e2009-09-05 21:47:34 +000026208fi
26209
cristy3ed852e2009-09-05 21:47:34 +000026210 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026212$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026213if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026214 $as_echo_n "(cached) " >&6
26215else
26216 ac_check_lib_save_LIBS=$LIBS
26217LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026219/* end confdefs.h. */
26220
26221/* Override any GCC internal prototype to avoid an error.
26222 Use char because int might match the return type of a GCC
26223 builtin and then its argument prototype would still apply. */
26224#ifdef __cplusplus
26225extern "C"
26226#endif
26227char remove ();
26228int
26229main ()
26230{
26231return remove ();
26232 ;
26233 return 0;
26234}
26235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026236if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026237 ac_cv_lib_posix_remove=yes
26238else
cristy8b350f62009-11-15 23:12:43 +000026239 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026240fi
cristy8b350f62009-11-15 23:12:43 +000026241rm -f core conftest.err conftest.$ac_objext \
26242 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026243LIBS=$ac_check_lib_save_LIBS
26244fi
cristy8b350f62009-11-15 23:12:43 +000026245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026247if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26249fi
26250
26251 fi
26252
26253 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026254 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026255if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026256
cristy3ed852e2009-09-05 21:47:34 +000026257fi
26258
cristy3ed852e2009-09-05 21:47:34 +000026259 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026261$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026262if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026263 $as_echo_n "(cached) " >&6
26264else
26265 ac_check_lib_save_LIBS=$LIBS
26266LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026268/* end confdefs.h. */
26269
26270/* Override any GCC internal prototype to avoid an error.
26271 Use char because int might match the return type of a GCC
26272 builtin and then its argument prototype would still apply. */
26273#ifdef __cplusplus
26274extern "C"
26275#endif
26276char shmat ();
26277int
26278main ()
26279{
26280return shmat ();
26281 ;
26282 return 0;
26283}
26284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026286 ac_cv_lib_ipc_shmat=yes
26287else
cristy8b350f62009-11-15 23:12:43 +000026288 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026289fi
cristy8b350f62009-11-15 23:12:43 +000026290rm -f core conftest.err conftest.$ac_objext \
26291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026292LIBS=$ac_check_lib_save_LIBS
26293fi
cristy8b350f62009-11-15 23:12:43 +000026294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026295$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026296if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26298fi
26299
26300 fi
26301 fi
26302
26303 # Check for libraries that X11R6 Xt/Xaw programs need.
26304 ac_save_LDFLAGS=$LDFLAGS
26305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26307 # check for ICE first), but we must link in the order -lSM -lICE or
26308 # we get undefined symbols. So assume we have SM if we have ICE.
26309 # These have to be linked with before -lX11, unlike the other
26310 # libraries we check for below, so use a different variable.
26311 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026313$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026314if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 $as_echo_n "(cached) " >&6
26316else
26317 ac_check_lib_save_LIBS=$LIBS
26318LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026320/* end confdefs.h. */
26321
26322/* Override any GCC internal prototype to avoid an error.
26323 Use char because int might match the return type of a GCC
26324 builtin and then its argument prototype would still apply. */
26325#ifdef __cplusplus
26326extern "C"
26327#endif
26328char IceConnectionNumber ();
26329int
26330main ()
26331{
26332return IceConnectionNumber ();
26333 ;
26334 return 0;
26335}
26336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026338 ac_cv_lib_ICE_IceConnectionNumber=yes
26339else
cristy8b350f62009-11-15 23:12:43 +000026340 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026341fi
cristy8b350f62009-11-15 23:12:43 +000026342rm -f core conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026344LIBS=$ac_check_lib_save_LIBS
26345fi
cristy8b350f62009-11-15 23:12:43 +000026346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026347$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026348if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26350fi
26351
26352 LDFLAGS=$ac_save_LDFLAGS
26353
26354fi
26355
26356if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026358$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo "" >&6; }
26363 LDFLAGS="$LDFLAGS $X_LIBS"
26364 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26365 LIBS="$X11_LIBS $LIBS"
26366 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26367
26368
cristy8b350f62009-11-15 23:12:43 +000026369$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026370
26371 #
26372 # Check for X11 shared memory extension
26373 #
26374 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026375 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026376if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026377 have_shmctl='yes'
26378fi
26379
26380 if test "$have_shmctl" != 'yes'; then
26381 PERSIST_LIBS=$LIBS
26382 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026384/* end confdefs.h. */
26385
26386/* Override any GCC internal prototype to avoid an error.
26387 Use char because int might match the return type of a GCC
26388 builtin and then its argument prototype would still apply. */
26389#ifdef __cplusplus
26390extern "C"
26391#endif
26392char shmctl ();
26393int
26394main ()
26395{
26396return shmctl ();
26397 ;
26398 return 0;
26399}
26400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026402 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026403fi
cristy8b350f62009-11-15 23:12:43 +000026404rm -f core conftest.err conftest.$ac_objext \
26405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026406 LIBS=$PERSIST_LIBS
26407 fi
26408
26409 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026411$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026412if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026413 $as_echo_n "(cached) " >&6
26414else
26415 ac_check_lib_save_LIBS=$LIBS
26416LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026418/* end confdefs.h. */
26419
26420/* Override any GCC internal prototype to avoid an error.
26421 Use char because int might match the return type of a GCC
26422 builtin and then its argument prototype would still apply. */
26423#ifdef __cplusplus
26424extern "C"
26425#endif
26426char XShmAttach ();
26427int
26428main ()
26429{
26430return XShmAttach ();
26431 ;
26432 return 0;
26433}
26434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026436 ac_cv_lib_Xext_XShmAttach=yes
26437else
cristy8b350f62009-11-15 23:12:43 +000026438 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026439fi
cristy8b350f62009-11-15 23:12:43 +000026440rm -f core conftest.err conftest.$ac_objext \
26441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026442LIBS=$ac_check_lib_save_LIBS
26443fi
cristy8b350f62009-11-15 23:12:43 +000026444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026446if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026447 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026448$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026449
26450fi
26451
26452 fi
26453
26454 #
26455 # Check for X11 shape extension
26456 #
cristy8b350f62009-11-15 23:12:43 +000026457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026458$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026459if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026460 $as_echo_n "(cached) " >&6
26461else
26462 ac_check_lib_save_LIBS=$LIBS
26463LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026465/* end confdefs.h. */
26466
26467/* Override any GCC internal prototype to avoid an error.
26468 Use char because int might match the return type of a GCC
26469 builtin and then its argument prototype would still apply. */
26470#ifdef __cplusplus
26471extern "C"
26472#endif
26473char XShapeCombineMask ();
26474int
26475main ()
26476{
26477return XShapeCombineMask ();
26478 ;
26479 return 0;
26480}
26481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026483 ac_cv_lib_Xext_XShapeCombineMask=yes
26484else
cristy8b350f62009-11-15 23:12:43 +000026485 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026486fi
cristy8b350f62009-11-15 23:12:43 +000026487rm -f core conftest.err conftest.$ac_objext \
26488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026489LIBS=$ac_check_lib_save_LIBS
26490fi
cristy8b350f62009-11-15 23:12:43 +000026491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026493if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026494 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026495$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026496
26497fi
26498
cristy8b350f62009-11-15 23:12:43 +000026499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026500$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026501if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 $as_echo_n "(cached) " >&6
26503else
26504 ac_check_lib_save_LIBS=$LIBS
26505LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026507/* end confdefs.h. */
26508
26509/* Override any GCC internal prototype to avoid an error.
26510 Use char because int might match the return type of a GCC
26511 builtin and then its argument prototype would still apply. */
26512#ifdef __cplusplus
26513extern "C"
26514#endif
26515char XtSetEventDispatcher ();
26516int
26517main ()
26518{
26519return XtSetEventDispatcher ();
26520 ;
26521 return 0;
26522}
26523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026525 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26526else
cristy8b350f62009-11-15 23:12:43 +000026527 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026528fi
cristy8b350f62009-11-15 23:12:43 +000026529rm -f core conftest.err conftest.$ac_objext \
26530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026531LIBS=$ac_check_lib_save_LIBS
26532fi
cristy8b350f62009-11-15 23:12:43 +000026533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026534$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026535if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026536 XT_LIBS='-lXt'
26537fi
26538
26539 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26540fi
26541if test "$no_x" != 'yes'; then
26542 have_x='yes'
26543else
26544 have_x='no'
26545fi
cristy73bd4a52010-10-05 11:24:23 +000026546 if test "$have_x" = 'yes'; then
26547 X11_DELEGATE_TRUE=
26548 X11_DELEGATE_FALSE='#'
26549else
26550 X11_DELEGATE_TRUE='#'
26551 X11_DELEGATE_FALSE=
26552fi
26553
cristy3ed852e2009-09-05 21:47:34 +000026554
26555
26556
26557
26558#
26559# Check for ZLIB
26560#
26561
26562# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026563if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026564 withval=$with_zlib; with_zlib=$withval
26565else
26566 with_zlib='yes'
26567fi
26568
26569
26570if test "$with_zlib" != 'yes'; then
26571 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26572fi
26573
26574have_zlib='no'
26575ZLIB_LIBS=''
26576if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026578$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026580$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo "" >&6; }
26583 ZLIB_LIBS=''
26584 failed=0
26585 passed=0
cristy8b350f62009-11-15 23:12:43 +000026586 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026587if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026588 passed=`expr $passed + 1`
26589else
26590 failed=`expr $failed + 1`
26591fi
26592
26593
cristy8b350f62009-11-15 23:12:43 +000026594 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026595if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 passed=`expr $passed + 1`
26597else
26598 failed=`expr $failed + 1`
26599fi
26600
26601
cristy8b350f62009-11-15 23:12:43 +000026602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026603$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026604if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 $as_echo_n "(cached) " >&6
26606else
26607 ac_check_lib_save_LIBS=$LIBS
26608LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026610/* end confdefs.h. */
26611
26612/* Override any GCC internal prototype to avoid an error.
26613 Use char because int might match the return type of a GCC
26614 builtin and then its argument prototype would still apply. */
26615#ifdef __cplusplus
26616extern "C"
26617#endif
26618char compress ();
26619int
26620main ()
26621{
26622return compress ();
26623 ;
26624 return 0;
26625}
26626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 ac_cv_lib_z_compress=yes
26629else
cristy8b350f62009-11-15 23:12:43 +000026630 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026631fi
cristy8b350f62009-11-15 23:12:43 +000026632rm -f core conftest.err conftest.$ac_objext \
26633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026634LIBS=$ac_check_lib_save_LIBS
26635fi
cristy8b350f62009-11-15 23:12:43 +000026636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026637$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026638if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026639 passed=`expr $passed + 1`
26640else
26641 failed=`expr $failed + 1`
26642fi
26643
cristy8b350f62009-11-15 23:12:43 +000026644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026645$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026646if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026647 $as_echo_n "(cached) " >&6
26648else
26649 ac_check_lib_save_LIBS=$LIBS
26650LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026652/* end confdefs.h. */
26653
26654/* Override any GCC internal prototype to avoid an error.
26655 Use char because int might match the return type of a GCC
26656 builtin and then its argument prototype would still apply. */
26657#ifdef __cplusplus
26658extern "C"
26659#endif
26660char uncompress ();
26661int
26662main ()
26663{
26664return uncompress ();
26665 ;
26666 return 0;
26667}
26668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026669if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026670 ac_cv_lib_z_uncompress=yes
26671else
cristy8b350f62009-11-15 23:12:43 +000026672 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026673fi
cristy8b350f62009-11-15 23:12:43 +000026674rm -f core conftest.err conftest.$ac_objext \
26675 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026676LIBS=$ac_check_lib_save_LIBS
26677fi
cristy8b350f62009-11-15 23:12:43 +000026678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026679$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026680if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026681 passed=`expr $passed + 1`
26682else
26683 failed=`expr $failed + 1`
26684fi
26685
cristy8b350f62009-11-15 23:12:43 +000026686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026688if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026689 $as_echo_n "(cached) " >&6
26690else
26691 ac_check_lib_save_LIBS=$LIBS
26692LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026694/* end confdefs.h. */
26695
26696/* Override any GCC internal prototype to avoid an error.
26697 Use char because int might match the return type of a GCC
26698 builtin and then its argument prototype would still apply. */
26699#ifdef __cplusplus
26700extern "C"
26701#endif
26702char deflate ();
26703int
26704main ()
26705{
26706return deflate ();
26707 ;
26708 return 0;
26709}
26710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026711if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026712 ac_cv_lib_z_deflate=yes
26713else
cristy8b350f62009-11-15 23:12:43 +000026714 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026715fi
cristy8b350f62009-11-15 23:12:43 +000026716rm -f core conftest.err conftest.$ac_objext \
26717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026718LIBS=$ac_check_lib_save_LIBS
26719fi
cristy8b350f62009-11-15 23:12:43 +000026720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026722if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026723 passed=`expr $passed + 1`
26724else
26725 failed=`expr $failed + 1`
26726fi
26727
cristy8b350f62009-11-15 23:12:43 +000026728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026730if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 $as_echo_n "(cached) " >&6
26732else
26733 ac_check_lib_save_LIBS=$LIBS
26734LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026736/* end confdefs.h. */
26737
26738/* Override any GCC internal prototype to avoid an error.
26739 Use char because int might match the return type of a GCC
26740 builtin and then its argument prototype would still apply. */
26741#ifdef __cplusplus
26742extern "C"
26743#endif
26744char inflate ();
26745int
26746main ()
26747{
26748return inflate ();
26749 ;
26750 return 0;
26751}
26752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 ac_cv_lib_z_inflate=yes
26755else
cristy8b350f62009-11-15 23:12:43 +000026756 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026757fi
cristy8b350f62009-11-15 23:12:43 +000026758rm -f core conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026760LIBS=$ac_check_lib_save_LIBS
26761fi
cristy8b350f62009-11-15 23:12:43 +000026762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026764if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026765 passed=`expr $passed + 1`
26766else
26767 failed=`expr $failed + 1`
26768fi
26769
cristy8b350f62009-11-15 23:12:43 +000026770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026771$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026772if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026773 $as_echo_n "(cached) " >&6
26774else
26775 ac_check_lib_save_LIBS=$LIBS
26776LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026778/* end confdefs.h. */
26779
26780/* Override any GCC internal prototype to avoid an error.
26781 Use char because int might match the return type of a GCC
26782 builtin and then its argument prototype would still apply. */
26783#ifdef __cplusplus
26784extern "C"
26785#endif
26786char gzseek ();
26787int
26788main ()
26789{
26790return gzseek ();
26791 ;
26792 return 0;
26793}
26794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026796 ac_cv_lib_z_gzseek=yes
26797else
cristy8b350f62009-11-15 23:12:43 +000026798 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026799fi
cristy8b350f62009-11-15 23:12:43 +000026800rm -f core conftest.err conftest.$ac_objext \
26801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026802LIBS=$ac_check_lib_save_LIBS
26803fi
cristy8b350f62009-11-15 23:12:43 +000026804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026805$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026806if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026807 passed=`expr $passed + 1`
26808else
26809 failed=`expr $failed + 1`
26810fi
26811
cristy8b350f62009-11-15 23:12:43 +000026812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026813$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026814if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026815 $as_echo_n "(cached) " >&6
26816else
26817 ac_check_lib_save_LIBS=$LIBS
26818LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026820/* end confdefs.h. */
26821
26822/* Override any GCC internal prototype to avoid an error.
26823 Use char because int might match the return type of a GCC
26824 builtin and then its argument prototype would still apply. */
26825#ifdef __cplusplus
26826extern "C"
26827#endif
26828char gztell ();
26829int
26830main ()
26831{
26832return gztell ();
26833 ;
26834 return 0;
26835}
26836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026837if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 ac_cv_lib_z_gztell=yes
26839else
cristy8b350f62009-11-15 23:12:43 +000026840 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026841fi
cristy8b350f62009-11-15 23:12:43 +000026842rm -f core conftest.err conftest.$ac_objext \
26843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026844LIBS=$ac_check_lib_save_LIBS
26845fi
cristy8b350f62009-11-15 23:12:43 +000026846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026848if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026849 passed=`expr $passed + 1`
26850else
26851 failed=`expr $failed + 1`
26852fi
26853
cristy8b350f62009-11-15 23:12:43 +000026854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo_n "checking if ZLIB package is complete... " >&6; }
26856 if test $passed -gt 0; then
26857 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026859$as_echo "no -- some components failed test" >&6; }
26860 have_zlib='no (failed tests)'
26861 else
26862 ZLIB_LIBS='-lz'
26863 LIBS="$ZLIB_LIBS $LIBS"
26864
cristy8b350f62009-11-15 23:12:43 +000026865$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026866
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo "yes" >&6; }
26869 have_zlib='yes'
26870 fi
26871 else
cristy8b350f62009-11-15 23:12:43 +000026872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026873$as_echo "no" >&6; }
26874 fi
26875fi
cristy73bd4a52010-10-05 11:24:23 +000026876 if test "$have_zlib" = 'yes'; then
26877 ZLIB_DELEGATE_TRUE=
26878 ZLIB_DELEGATE_FALSE='#'
26879else
26880 ZLIB_DELEGATE_TRUE='#'
26881 ZLIB_DELEGATE_FALSE=
26882fi
26883
cristy3ed852e2009-09-05 21:47:34 +000026884
26885
26886#
26887# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26888#
26889LIB_DL=''
26890if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026892$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026893if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026894 $as_echo_n "(cached) " >&6
26895else
26896 ac_check_lib_save_LIBS=$LIBS
26897LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026899/* end confdefs.h. */
26900
26901/* Override any GCC internal prototype to avoid an error.
26902 Use char because int might match the return type of a GCC
26903 builtin and then its argument prototype would still apply. */
26904#ifdef __cplusplus
26905extern "C"
26906#endif
26907char dlopen ();
26908int
26909main ()
26910{
26911return dlopen ();
26912 ;
26913 return 0;
26914}
26915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026917 ac_cv_lib_dl_dlopen=yes
26918else
cristy8b350f62009-11-15 23:12:43 +000026919 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026920fi
cristy8b350f62009-11-15 23:12:43 +000026921rm -f core conftest.err conftest.$ac_objext \
26922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026923LIBS=$ac_check_lib_save_LIBS
26924fi
cristy8b350f62009-11-15 23:12:43 +000026925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026927if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026928 LIB_DL='-ldl'
26929fi
26930
26931 LIBS="$LIB_DL $LIBS"
26932fi
26933
26934
26935
26936#
26937# Check for Autotrace delegate library.
26938#
26939
26940# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026941if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026942 withval=$with_autotrace; with_autotrace=$withval
26943else
26944 with_autotrace='no'
26945fi
26946
26947
26948if test "$with_autotrace" != 'yes'; then
26949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26950fi
26951
26952have_autotrace='no'
26953AUTOTRACE_CFLAGS=""
26954AUTOTRACE_LIBS=""
26955AUTOTRACE_PKG=""
26956if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026958$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026959
26960pkg_failed=no
26961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26962$as_echo_n "checking for AUTOTRACE... " >&6; }
26963
26964if test -n "$AUTOTRACE_CFLAGS"; then
26965 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26966 elif test -n "$PKG_CONFIG"; then
26967 if test -n "$PKG_CONFIG" && \
26968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26969 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26970 ac_status=$?
26971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26972 test $ac_status = 0; }; then
26973 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26974else
26975 pkg_failed=yes
26976fi
26977 else
26978 pkg_failed=untried
26979fi
26980if test -n "$AUTOTRACE_LIBS"; then
26981 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26982 elif test -n "$PKG_CONFIG"; then
26983 if test -n "$PKG_CONFIG" && \
26984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26985 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26986 ac_status=$?
26987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26988 test $ac_status = 0; }; then
26989 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26990else
26991 pkg_failed=yes
26992fi
26993 else
26994 pkg_failed=untried
26995fi
26996
26997
26998
26999if test $pkg_failed = yes; then
27000
27001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27002 _pkg_short_errors_supported=yes
27003else
27004 _pkg_short_errors_supported=no
27005fi
27006 if test $_pkg_short_errors_supported = yes; then
27007 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27008 else
27009 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27010 fi
27011 # Put the nasty error message in config.log where it belongs
27012 echo "$AUTOTRACE_PKG_ERRORS" >&5
27013
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27015$as_echo "no" >&6; }
27016 have_autotrace=no
27017elif test $pkg_failed = untried; then
27018 have_autotrace=no
27019else
27020 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27021 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27023$as_echo "yes" >&6; }
27024 have_autotrace=yes
27025fi
cristy8b350f62009-11-15 23:12:43 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo "" >&6; }
27028fi
27029
27030if test "$have_autotrace" = 'yes'; then
27031 failed=0
27032
cristy8b350f62009-11-15 23:12:43 +000027033$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027034
27035 if test "$with_modules" = 'no'; then
27036 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27037 fi
27038fi
27039
cristy73bd4a52010-10-05 11:24:23 +000027040 if test "$have_autotrace" = 'yes'; then
27041 AUTOTRACE_DELEGATE_TRUE=
27042 AUTOTRACE_DELEGATE_FALSE='#'
27043else
27044 AUTOTRACE_DELEGATE_TRUE='#'
27045 AUTOTRACE_DELEGATE_FALSE=
27046fi
27047
cristy3ed852e2009-09-05 21:47:34 +000027048
27049
27050
27051
27052#
27053# Check for Display Postscript delegate library.
27054#
27055
27056# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027057if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027058 withval=$with_dps; with_dps=$withval
27059else
27060 with_dps='yes'
27061fi
27062
27063
27064if test "$with_dps" != 'yes'; then
27065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27066fi
27067
27068have_dps='no'
27069DPS_LIBS=''
27070if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027072$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027074$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027076$as_echo "" >&6; }
27077 failed=0
27078 passed=0
27079 PERSIST_CPPFLAGS="$CPPFLAGS"
27080 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027081 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 +000027082if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027083 passed=`expr $passed + 1`
27084else
27085 failed=`expr $failed + 1`
27086fi
27087
27088
27089 # DPS issues:
27090 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27091 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27092 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27093 # ImageMagick itself doesn't use -lXt.
27094 have_libdps='no'
27095 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027097$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027098if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027099 $as_echo_n "(cached) " >&6
27100else
27101 ac_check_lib_save_LIBS=$LIBS
27102LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027104/* end confdefs.h. */
27105
27106/* Override any GCC internal prototype to avoid an error.
27107 Use char because int might match the return type of a GCC
27108 builtin and then its argument prototype would still apply. */
27109#ifdef __cplusplus
27110extern "C"
27111#endif
27112char DPSInitialize ();
27113int
27114main ()
27115{
27116return DPSInitialize ();
27117 ;
27118 return 0;
27119}
27120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027121if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027122 ac_cv_lib_dps_DPSInitialize=yes
27123else
cristy8b350f62009-11-15 23:12:43 +000027124 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027125fi
cristy8b350f62009-11-15 23:12:43 +000027126rm -f core conftest.err conftest.$ac_objext \
27127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027128LIBS=$ac_check_lib_save_LIBS
27129fi
cristy8b350f62009-11-15 23:12:43 +000027130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027131$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027132if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027133 have_libdps='yes'
27134else
27135 have_libdps='no'
27136fi
27137
27138 if test "$have_libdps" != 'yes'; then
27139 # Unset cache variable so we can try again.
27140 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027142$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027143if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027144 $as_echo_n "(cached) " >&6
27145else
27146 ac_check_lib_save_LIBS=$LIBS
27147LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027149/* end confdefs.h. */
27150
27151/* Override any GCC internal prototype to avoid an error.
27152 Use char because int might match the return type of a GCC
27153 builtin and then its argument prototype would still apply. */
27154#ifdef __cplusplus
27155extern "C"
27156#endif
27157char DPSInitialize ();
27158int
27159main ()
27160{
27161return DPSInitialize ();
27162 ;
27163 return 0;
27164}
27165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027166if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027167 ac_cv_lib_dps_DPSInitialize=yes
27168else
cristy8b350f62009-11-15 23:12:43 +000027169 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027170fi
cristy8b350f62009-11-15 23:12:43 +000027171rm -f core conftest.err conftest.$ac_objext \
27172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027173LIBS=$ac_check_lib_save_LIBS
27174fi
cristy8b350f62009-11-15 23:12:43 +000027175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027177if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027178 have_libdps='yes'
27179else
27180 have_libdps='no'
27181fi
27182
27183 if test "$have_libdps" = 'yes'; then
27184 LIBDPS_XT='-lXt'
27185 fi
27186 fi
27187 if test "$have_libdps" = 'yes'; then
27188 passed=`expr $passed + 1`
27189 else
27190 failed=`expr $failed + 1`
27191 fi
cristy8b350f62009-11-15 23:12:43 +000027192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027193$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027194if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027195 $as_echo_n "(cached) " >&6
27196else
27197 ac_check_lib_save_LIBS=$LIBS
27198LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027200/* end confdefs.h. */
27201
27202/* Override any GCC internal prototype to avoid an error.
27203 Use char because int might match the return type of a GCC
27204 builtin and then its argument prototype would still apply. */
27205#ifdef __cplusplus
27206extern "C"
27207#endif
27208char XDPSPixelsPerPoint ();
27209int
27210main ()
27211{
27212return XDPSPixelsPerPoint ();
27213 ;
27214 return 0;
27215}
27216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027217if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027218 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27219else
cristy8b350f62009-11-15 23:12:43 +000027220 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027221fi
cristy8b350f62009-11-15 23:12:43 +000027222rm -f core conftest.err conftest.$ac_objext \
27223 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027224LIBS=$ac_check_lib_save_LIBS
27225fi
cristy8b350f62009-11-15 23:12:43 +000027226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027227$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027228if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027229 passed=`expr $passed + 1`
27230else
27231 failed=`expr $failed + 1`
27232fi
27233
cristy8b350f62009-11-15 23:12:43 +000027234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027235$as_echo_n "checking if DPS package is complete... " >&6; }
27236 if test $passed -gt 0; then
27237 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027239$as_echo "no -- some components failed test" >&6; }
27240 have_dps='no (failed tests)'
27241 CPPFLAGS="$PERSIST_CPPFLAGS"
27242 else
27243 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27244 LIBS="$DPS_LIBS $LIBS"
27245
cristy8b350f62009-11-15 23:12:43 +000027246$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027247
cristy8b350f62009-11-15 23:12:43 +000027248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo "yes" >&6; }
27250 have_dps='yes'
27251 fi
27252 else
cristy8b350f62009-11-15 23:12:43 +000027253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027254$as_echo "no" >&6; }
27255 CPPFLAGS=$PERSIST_CPPFLAGS
27256 fi
27257fi
cristy73bd4a52010-10-05 11:24:23 +000027258 if test "$have_dps" = 'yes'; then
27259 DPS_DELEGATE_TRUE=
27260 DPS_DELEGATE_FALSE='#'
27261else
27262 DPS_DELEGATE_TRUE='#'
27263 DPS_DELEGATE_FALSE=
27264fi
27265
cristy3ed852e2009-09-05 21:47:34 +000027266
27267
27268
27269#
27270# Check for DJVU delegate library.
27271#
27272
27273# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027274if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 withval=$with_djvu; with_djvu=$withval
27276else
27277 with_djvu='yes'
27278fi
27279
27280
27281if test "$with_djvu" != 'yes'; then
27282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27283fi
27284
27285have_djvu='no'
27286DJVU_LIBS=''
27287if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027291$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo "" >&6; }
27294 failed=0
27295 passed=0
cristy8b350f62009-11-15 23:12:43 +000027296 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 +000027297if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 passed=`expr $passed + 1`
27299else
27300 failed=`expr $failed + 1`
27301fi
27302
27303
cristy8b350f62009-11-15 23:12:43 +000027304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027305$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027306if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 $as_echo_n "(cached) " >&6
27308else
27309 ac_check_lib_save_LIBS=$LIBS
27310LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027312/* end confdefs.h. */
27313
27314/* Override any GCC internal prototype to avoid an error.
27315 Use char because int might match the return type of a GCC
27316 builtin and then its argument prototype would still apply. */
27317#ifdef __cplusplus
27318extern "C"
27319#endif
27320char ddjvu_context_create ();
27321int
27322main ()
27323{
27324return ddjvu_context_create ();
27325 ;
27326 return 0;
27327}
27328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27331else
cristy8b350f62009-11-15 23:12:43 +000027332 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027333fi
cristy8b350f62009-11-15 23:12:43 +000027334rm -f core conftest.err conftest.$ac_objext \
27335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027336LIBS=$ac_check_lib_save_LIBS
27337fi
cristy8b350f62009-11-15 23:12:43 +000027338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027339$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027340if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 passed=`expr $passed + 1`
27342else
27343 failed=`expr $failed + 1`
27344fi
27345
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo_n "checking if DJVU package is complete... " >&6; }
27348 if test $passed -gt 0; then
27349 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027351$as_echo "no -- some components failed test" >&6; }
27352 have_djvu='no (failed tests)'
27353 else
27354 DJVU_LIBS='-ldjvulibre'
27355 LIBS="$DJVU_LIBS $LIBS"
27356
cristy8b350f62009-11-15 23:12:43 +000027357$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027358
cristy8b350f62009-11-15 23:12:43 +000027359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "yes" >&6; }
27361 have_djvu='yes'
27362 fi
27363 else
cristy8b350f62009-11-15 23:12:43 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027365$as_echo "no" >&6; }
27366 fi
27367fi
cristy73bd4a52010-10-05 11:24:23 +000027368 if test "$have_djvu" = 'yes'; then
27369 DJVU_DELEGATE_TRUE=
27370 DJVU_DELEGATE_FALSE='#'
27371else
27372 DJVU_DELEGATE_TRUE='#'
27373 DJVU_DELEGATE_FALSE=
27374fi
27375
cristy3ed852e2009-09-05 21:47:34 +000027376
27377
27378
27379#
cristy430a7312010-01-21 20:44:04 +000027380# Set DejaVu font directory.
27381#
27382
27383# Check whether --with-dejavu-font-dir was given.
27384if test "${with_dejavu_font_dir+set}" = set; then :
27385 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27386else
27387 with_dejavu_font_dir='default'
27388fi
27389
27390
27391if test "$with_dejavu_font_dir" != 'default'; then
27392 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27393fi
27394
27395
27396#
cristy3ed852e2009-09-05 21:47:34 +000027397# Check for FFTW delegate library.
27398#
27399
27400# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027401if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 withval=$with_fftw; with_fftw=$withval
27403else
27404 with_fftw='yes'
27405fi
27406
27407
27408if test "$with_fftw" != 'yes'; then
27409 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27410fi
27411
27412have_fftw='no'
27413FFTW_LIBS=''
27414if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027416$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027418$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027420$as_echo "" >&6; }
27421 failed=0
27422 passed=0
cristy8b350f62009-11-15 23:12:43 +000027423 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027424if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027425 passed=`expr $passed + 1`
27426else
27427 failed=`expr $failed + 1`
27428fi
27429
27430
cristy8b350f62009-11-15 23:12:43 +000027431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027432$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027433if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027434 $as_echo_n "(cached) " >&6
27435else
27436 ac_check_lib_save_LIBS=$LIBS
27437LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027439/* end confdefs.h. */
27440
27441/* Override any GCC internal prototype to avoid an error.
27442 Use char because int might match the return type of a GCC
27443 builtin and then its argument prototype would still apply. */
27444#ifdef __cplusplus
27445extern "C"
27446#endif
27447char fftw_execute ();
27448int
27449main ()
27450{
27451return fftw_execute ();
27452 ;
27453 return 0;
27454}
27455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027456if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027457 ac_cv_lib_fftw3_fftw_execute=yes
27458else
cristy8b350f62009-11-15 23:12:43 +000027459 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027460fi
cristy8b350f62009-11-15 23:12:43 +000027461rm -f core conftest.err conftest.$ac_objext \
27462 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027463LIBS=$ac_check_lib_save_LIBS
27464fi
cristy8b350f62009-11-15 23:12:43 +000027465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027466$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027467if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027468 passed=`expr $passed + 1`
27469else
27470 failed=`expr $failed + 1`
27471fi
27472
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo_n "checking if FFTW package is complete... " >&6; }
27475 if test $passed -gt 0; then
27476 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "no -- some components failed test" >&6; }
27479 have_fftw='no (failed tests)'
27480 else
27481 FFTW_LIBS='-lfftw3'
27482 LIBS="$FFTW_LIBS $LIBS"
27483
cristy8b350f62009-11-15 23:12:43 +000027484$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027485
cristy8b350f62009-11-15 23:12:43 +000027486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027487$as_echo "yes" >&6; }
27488 have_fftw='yes'
27489 fi
27490 else
cristy8b350f62009-11-15 23:12:43 +000027491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027492$as_echo "no" >&6; }
27493 fi
27494fi
cristy73bd4a52010-10-05 11:24:23 +000027495 if test "$have_fftw" = 'yes'; then
27496 FFTW_DELEGATE_TRUE=
27497 FFTW_DELEGATE_FALSE='#'
27498else
27499 FFTW_DELEGATE_TRUE='#'
27500 FFTW_DELEGATE_FALSE=
27501fi
27502
cristy3ed852e2009-09-05 21:47:34 +000027503
27504
27505
27506#
27507# Check for FlashPIX delegate library.
27508#
27509
27510# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027511if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027512 withval=$with_fpx; with_fpx=$withval
27513else
27514 with_fpx='yes'
27515fi
27516
27517
27518if test "$with_fpx" != 'yes'; then
27519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27520fi
27521
27522have_fpx='no'
27523FPX_LIBS=''
27524if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo "" >&6; }
27531 failed=0
27532 passed=0
27533 ac_ext=cpp
27534ac_cpp='$CXXCPP $CPPFLAGS'
27535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27538
27539
cristy8b350f62009-11-15 23:12:43 +000027540ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027541if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027542 passed=`expr $passed + 1`
27543else
27544 failed=`expr $failed + 1`
27545fi
27546
27547
cristy8b350f62009-11-15 23:12:43 +000027548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027549$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027550if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027551 $as_echo_n "(cached) " >&6
27552else
27553 ac_check_lib_save_LIBS=$LIBS
27554LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027556/* end confdefs.h. */
27557
27558/* Override any GCC internal prototype to avoid an error.
27559 Use char because int might match the return type of a GCC
27560 builtin and then its argument prototype would still apply. */
27561#ifdef __cplusplus
27562extern "C"
27563#endif
27564char FPX_OpenImageByFilename ();
27565int
27566main ()
27567{
27568return FPX_OpenImageByFilename ();
27569 ;
27570 return 0;
27571}
27572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027573if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27575else
cristy8b350f62009-11-15 23:12:43 +000027576 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027577fi
cristy8b350f62009-11-15 23:12:43 +000027578rm -f core conftest.err conftest.$ac_objext \
27579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027580LIBS=$ac_check_lib_save_LIBS
27581fi
cristy8b350f62009-11-15 23:12:43 +000027582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027583$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027584if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027585 passed=`expr $passed + 1`
27586else
27587 failed=`expr $failed + 1`
27588fi
27589
27590 ac_ext=c
27591ac_cpp='$CPP $CPPFLAGS'
27592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27594ac_compiler_gnu=$ac_cv_c_compiler_gnu
27595
cristy8b350f62009-11-15 23:12:43 +000027596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027597$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27598 if test $passed -gt 0; then
27599 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027601$as_echo "no -- some components failed test" >&6; }
27602 have_fpx='no (failed tests)'
27603 else
27604 FPX_LIBS='-lfpx'
27605
cristy8b350f62009-11-15 23:12:43 +000027606$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027607
cristy8b350f62009-11-15 23:12:43 +000027608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027609$as_echo "yes" >&6; }
27610 have_fpx='yes'
27611 PERLMAINCC="$CXX"
27612 fi
27613 else
cristy8b350f62009-11-15 23:12:43 +000027614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027615$as_echo "no" >&6; }
27616 fi
27617fi
cristy73bd4a52010-10-05 11:24:23 +000027618 if test "$have_fpx" = 'yes'; then
27619 FPX_DELEGATE_TRUE=
27620 FPX_DELEGATE_FALSE='#'
27621else
27622 FPX_DELEGATE_TRUE='#'
27623 FPX_DELEGATE_FALSE=
27624fi
27625
cristy3ed852e2009-09-05 21:47:34 +000027626
27627
27628
27629#
27630# Check for fontconfig delegate library.
27631#
27632
27633# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027634if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027635 withval=$with_fontconfig; with_fontconfig=$withval
27636else
27637 with_fontconfig=$have_x
27638fi
27639
27640
27641if test "$with_fontconfig" != 'yes'; then
27642 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27643fi
27644
27645have_fontconfig='no'
27646FONTCONFIG_CFLAGS=""
27647FONTCONFIG_LIBS=""
27648FONTCONFIG_PKG=""
27649if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027651$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027652
27653pkg_failed=no
27654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27655$as_echo_n "checking for FONTCONFIG... " >&6; }
27656
27657if test -n "$FONTCONFIG_CFLAGS"; then
27658 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27659 elif test -n "$PKG_CONFIG"; then
27660 if test -n "$PKG_CONFIG" && \
27661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27662 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27663 ac_status=$?
27664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27665 test $ac_status = 0; }; then
27666 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27667else
27668 pkg_failed=yes
27669fi
27670 else
27671 pkg_failed=untried
27672fi
27673if test -n "$FONTCONFIG_LIBS"; then
27674 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27675 elif test -n "$PKG_CONFIG"; then
27676 if test -n "$PKG_CONFIG" && \
27677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27678 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27679 ac_status=$?
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; then
27682 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27683else
27684 pkg_failed=yes
27685fi
27686 else
27687 pkg_failed=untried
27688fi
27689
27690
27691
27692if test $pkg_failed = yes; then
27693
27694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27695 _pkg_short_errors_supported=yes
27696else
27697 _pkg_short_errors_supported=no
27698fi
27699 if test $_pkg_short_errors_supported = yes; then
27700 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27701 else
27702 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27703 fi
27704 # Put the nasty error message in config.log where it belongs
27705 echo "$FONTCONFIG_PKG_ERRORS" >&5
27706
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27708$as_echo "no" >&6; }
27709 have_fontconfig=no
27710elif test $pkg_failed = untried; then
27711 have_fontconfig=no
27712else
27713 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27714 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27716$as_echo "yes" >&6; }
27717 have_fontconfig=yes
27718fi
cristy8b350f62009-11-15 23:12:43 +000027719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "" >&6; }
27721fi
27722
27723if test "$have_fontconfig" = 'yes'; then
27724
cristy8b350f62009-11-15 23:12:43 +000027725$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027726
cristyd09bcf92010-03-25 03:04:45 +000027727 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027728 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027729 fi
cristy3ed852e2009-09-05 21:47:34 +000027730fi
27731
cristy73bd4a52010-10-05 11:24:23 +000027732 if test "$have_fontconfig" = 'yes'; then
27733 FONTCONFIG_DELEGATE_TRUE=
27734 FONTCONFIG_DELEGATE_FALSE='#'
27735else
27736 FONTCONFIG_DELEGATE_TRUE='#'
27737 FONTCONFIG_DELEGATE_FALSE=
27738fi
27739
cristy3ed852e2009-09-05 21:47:34 +000027740
27741
27742
27743
27744#
27745# Check for freetype delegate library.
27746#
27747
27748# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027749if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027750 withval=$with_freetype; with_freetype=$withval
27751else
27752 with_freetype='yes'
27753fi
27754
27755
27756
27757if test "$with_freetype" != 'yes'; then
27758 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27759fi
27760
27761have_freetype='no'
27762FREETYPE_LIBS=''
27763if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027765$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo "" >&6; }
27770 failed=0
27771 passed=0
cristy66291112009-10-03 22:44:36 +000027772 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027773 PERSIST_CPPFLAGS="$CPPFLAGS"
27774 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27775 :
27776 else
27777 freetype_config=''
27778 for ac_prog in freetype-config
27779do
27780 # Extract the first word of "$ac_prog", so it can be a program name with args.
27781set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027783$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027784if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027785 $as_echo_n "(cached) " >&6
27786else
27787 if test -n "$freetype_config"; then
27788 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27789else
27790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27791for as_dir in $PATH
27792do
27793 IFS=$as_save_IFS
27794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27797 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027799 break 2
27800 fi
27801done
cristy8b350f62009-11-15 23:12:43 +000027802 done
cristy3ed852e2009-09-05 21:47:34 +000027803IFS=$as_save_IFS
27804
27805fi
27806fi
27807freetype_config=$ac_cv_prog_freetype_config
27808if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027810$as_echo "$freetype_config" >&6; }
27811else
cristy8b350f62009-11-15 23:12:43 +000027812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027813$as_echo "no" >&6; }
27814fi
27815
27816
27817 test -n "$freetype_config" && break
27818done
27819 if test -n "$freetype_config"; then
27820 freetype_cflags=`$freetype_config --cflags`
27821 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027822 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027823 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27824 fi
27825 fi
27826
27827 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027829$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027830if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027831 $as_echo_n "(cached) " >&6
27832else
27833 ac_check_lib_save_LIBS=$LIBS
27834LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027836/* end confdefs.h. */
27837
27838/* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27841#ifdef __cplusplus
27842extern "C"
27843#endif
27844char FT_Init_FreeType ();
27845int
27846main ()
27847{
27848return FT_Init_FreeType ();
27849 ;
27850 return 0;
27851}
27852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027854 ac_cv_lib_freetype_FT_Init_FreeType=yes
27855else
cristy8b350f62009-11-15 23:12:43 +000027856 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027857fi
cristy8b350f62009-11-15 23:12:43 +000027858rm -f core conftest.err conftest.$ac_objext \
27859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027860LIBS=$ac_check_lib_save_LIBS
27861fi
cristy8b350f62009-11-15 23:12:43 +000027862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027863$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027864if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027865 FREETYPE_LIBS='-lfreetype'
27866fi
27867
27868 if test "$FREETYPE_LIBS" != ''; then
27869 passed=`expr $passed + 1`
27870 else
27871 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027872 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027873 fi
27874 fi
27875
cristy8b350f62009-11-15 23:12:43 +000027876 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027877if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 FT2BUILD_H='#include <ft2build.h>'
27879else
27880 ft2build=''
27881fi
27882
27883
cristy8b350f62009-11-15 23:12:43 +000027884 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27885"
cristyda16f162011-02-19 23:52:17 +000027886if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 have_freetype_h='yes'
27888else
27889 have_freetype_h='no'
27890fi
27891
27892
27893 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27894 passed=`expr $passed + 1`
27895 else
27896 failed=`expr $failed + 1`
27897 CPPFLAGS="$PERSIST_CPPFLAGS"
27898 fi
27899
cristy8b350f62009-11-15 23:12:43 +000027900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027901$as_echo_n "checking if FreeType package is complete... " >&6; }
27902 if test $passed -gt 0; then
27903 if test $failed -gt 0; then
27904 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo "no -- some components failed test" >&6; }
27907 have_freetype='no (failed tests)'
27908 else
27909 LIBS="$FREETYPE_LIBS $LIBS"
27910
cristy8b350f62009-11-15 23:12:43 +000027911$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027912
27913 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27914
cristy8b350f62009-11-15 23:12:43 +000027915$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027916
27917 fi
cristy8b350f62009-11-15 23:12:43 +000027918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo "yes" >&6; }
27920 have_freetype='yes'
27921 fi
27922 else
cristy8b350f62009-11-15 23:12:43 +000027923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027924$as_echo "no" >&6; }
27925 fi
27926fi
cristy73bd4a52010-10-05 11:24:23 +000027927 if test "$have_freetype" = 'yes'; then
27928 FREETYPE_DELEGATE_TRUE=
27929 FREETYPE_DELEGATE_FALSE='#'
27930else
27931 FREETYPE_DELEGATE_TRUE='#'
27932 FREETYPE_DELEGATE_FALSE=
27933fi
27934
cristy3ed852e2009-09-05 21:47:34 +000027935
27936
27937
27938
27939#
27940# Check for Ghostscript library or framework.
27941#
27942# Test for iapi.h & test for gsapi_new_instance in -lgs
27943# or -framework Ghostscript
27944
27945
27946# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027947if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 withval=$with_gslib; with_gslib=$withval
27949else
27950 with_gslib='no'
27951fi
27952
27953
cristyb7931f12009-09-25 10:22:21 +000027954gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027955if test "$with_gslib" != 'yes'; then
27956 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27957fi
27958
27959have_gslib='no'
27960GS_LIBS=''
27961if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027968 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027969 failed=0
27970 passed=0
cristy8b350f62009-11-15 23:12:43 +000027971 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 +000027972if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027973 passed=`expr $passed + 1`
27974else
27975 failed=`expr $failed + 1`
27976fi
27977
27978
cristy8b350f62009-11-15 23:12:43 +000027979 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 +000027980if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027981 passed=`expr $passed + 1`
27982else
27983 failed=`expr $failed + 1`
27984fi
27985
27986
cristy73bd4a52010-10-05 11:24:23 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27988$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027989if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027990 $as_echo_n "(cached) " >&6
27991else
27992 ac_check_framework_save_LIBS=$LIBS
27993LIBS="-framework Ghostscript $LIBS"
27994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27995/* end confdefs.h. */
27996
27997/* Override any GCC internal prototype to avoid an error.
27998 Use char because int might match the return type of a GCC
27999 builtin and then its argument prototype would still apply. */
28000#ifdef __cplusplus
28001extern "C"
28002#endif
28003char gsapi_new_instance ();
28004int
28005main ()
28006{
28007return gsapi_new_instance ();
28008 ;
28009 return 0;
28010}
28011_ACEOF
28012if ac_fn_c_try_link "$LINENO"; then :
28013 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28014else
28015 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28016fi
28017rm -f core conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext conftest.$ac_ext
28019LIBS=$ac_check_framework_save_LIBS
28020fi
28021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28022$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28023if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28024 framework=`expr $framework + 1`
28025else
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028027$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028028if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028029 $as_echo_n "(cached) " >&6
28030else
28031 ac_check_lib_save_LIBS=$LIBS
28032LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028034/* end confdefs.h. */
28035
28036/* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28039#ifdef __cplusplus
28040extern "C"
28041#endif
28042char gsapi_new_instance ();
28043int
28044main ()
28045{
28046return gsapi_new_instance ();
28047 ;
28048 return 0;
28049}
28050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028052 ac_cv_lib_gs_gsapi_new_instance=yes
28053else
cristy8b350f62009-11-15 23:12:43 +000028054 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028055fi
cristy8b350f62009-11-15 23:12:43 +000028056rm -f core conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028058LIBS=$ac_check_lib_save_LIBS
28059fi
cristy8b350f62009-11-15 23:12:43 +000028060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028061$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028062if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 passed=`expr $passed + 1`
28064else
28065 failed=`expr $failed + 1`
28066fi
cristy73bd4a52010-10-05 11:24:23 +000028067
28068fi
cristy8b350f62009-11-15 23:12:43 +000028069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28071 if test $passed -gt 0; then
28072 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028074$as_echo "no -- some components failed test" >&6; }
28075 have_gslib='no (failed tests)'
28076 else
28077 if test $framework -gt 0; then
28078 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028079 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028081$as_echo "yes, using framework." >&6; }
28082 else
cristy8b350f62009-11-15 23:12:43 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo "yes, using library." >&6; }
28085 GS_LIBS='-lgs'
28086 fi
28087 LIBS="$GS_LIBS $LIBS"
28088
cristy8b350f62009-11-15 23:12:43 +000028089$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028090
28091 have_gslib='yes'
28092 fi
28093 else
cristy8b350f62009-11-15 23:12:43 +000028094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028095$as_echo "no" >&6; }
28096 fi
28097fi
cristy73bd4a52010-10-05 11:24:23 +000028098 if test "$have_gslib" = 'yes'; then
28099 GS_DELEGATE_TRUE=
28100 GS_DELEGATE_FALSE='#'
28101else
28102 GS_DELEGATE_TRUE='#'
28103 GS_DELEGATE_FALSE=
28104fi
28105
cristy3ed852e2009-09-05 21:47:34 +000028106
28107
28108# Set default font search path
28109
28110# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028111if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 withval=$with_fontpath; with_fontpath=$withval
28113else
28114 with_fontpath=''
28115fi
28116
28117
28118if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28119 with_fontpath=''
28120else
28121
28122cat >>confdefs.h <<_ACEOF
28123#define MAGICK_FONT_PATH "$with_fontpath"
28124_ACEOF
28125
28126fi
28127if test "$with_fontpath=" != ''; then
28128 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28129fi
28130
28131# Set Ghostscript font directory
28132
28133# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028134if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028135 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28136else
28137 with_gs_font_dir='default'
28138fi
28139
28140
28141if test "$with_gs_font_dir" != 'default'; then
28142 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28143fi
28144
28145
28146#
28147# Check for GVC delegate library.
28148#
28149
28150# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028151if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 withval=$with_gvc; with_gvc=$withval
28153else
28154 with_gvc='yes'
28155fi
28156
28157
28158if test "$with_gvc" != 'yes'; then
28159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28160fi
28161
28162GVC_PKG=""
28163if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028166
28167pkg_failed=no
28168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28169$as_echo_n "checking for GVC... " >&6; }
28170
28171if test -n "$GVC_CFLAGS"; then
28172 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28173 elif test -n "$PKG_CONFIG"; then
28174 if test -n "$PKG_CONFIG" && \
28175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28176 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28177 ac_status=$?
28178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28179 test $ac_status = 0; }; then
28180 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28181else
28182 pkg_failed=yes
28183fi
28184 else
28185 pkg_failed=untried
28186fi
28187if test -n "$GVC_LIBS"; then
28188 pkg_cv_GVC_LIBS="$GVC_LIBS"
28189 elif test -n "$PKG_CONFIG"; then
28190 if test -n "$PKG_CONFIG" && \
28191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28192 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28193 ac_status=$?
28194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28195 test $ac_status = 0; }; then
28196 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28197else
28198 pkg_failed=yes
28199fi
28200 else
28201 pkg_failed=untried
28202fi
28203
28204
28205
28206if test $pkg_failed = yes; then
28207
28208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28209 _pkg_short_errors_supported=yes
28210else
28211 _pkg_short_errors_supported=no
28212fi
28213 if test $_pkg_short_errors_supported = yes; then
28214 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28215 else
28216 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28217 fi
28218 # Put the nasty error message in config.log where it belongs
28219 echo "$GVC_PKG_ERRORS" >&5
28220
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28222$as_echo "no" >&6; }
28223 have_gvc=no
28224elif test $pkg_failed = untried; then
28225 have_gvc=no
28226else
28227 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28228 GVC_LIBS=$pkg_cv_GVC_LIBS
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28230$as_echo "yes" >&6; }
28231 have_gvc=yes
28232fi
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo "" >&6; }
28235fi
28236
28237if test "$have_gvc" = 'yes'; then
28238
cristy8b350f62009-11-15 23:12:43 +000028239$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028240
28241 if test "$with_modules" = 'no'; then
28242 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28243 fi
28244fi
28245
cristy73bd4a52010-10-05 11:24:23 +000028246 if test "$have_gvc" = 'yes'; then
28247 GVC_DELEGATE_TRUE=
28248 GVC_DELEGATE_FALSE='#'
28249else
28250 GVC_DELEGATE_TRUE='#'
28251 GVC_DELEGATE_FALSE=
28252fi
28253
cristy3ed852e2009-09-05 21:47:34 +000028254
28255
28256
28257
28258#
28259# Check for JBIG delegate library.
28260#
28261
28262
28263# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028264if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028265 withval=$with_jbig; with_jbig=$withval
28266else
28267 with_jbig='yes'
28268fi
28269
28270
28271have_jbig='no'
28272JBIG_LIBS=''
28273if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028275$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028279$as_echo "" >&6; }
28280 failed=0
28281 passed=0
cristy8b350f62009-11-15 23:12:43 +000028282 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028283if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 passed=`expr $passed + 1`
28285else
28286 failed=`expr $failed + 1`
28287fi
28288
28289
cristy8b350f62009-11-15 23:12:43 +000028290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028292if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 $as_echo_n "(cached) " >&6
28294else
28295 ac_check_lib_save_LIBS=$LIBS
28296LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028298/* end confdefs.h. */
28299
28300/* Override any GCC internal prototype to avoid an error.
28301 Use char because int might match the return type of a GCC
28302 builtin and then its argument prototype would still apply. */
28303#ifdef __cplusplus
28304extern "C"
28305#endif
28306char jbg_dec_init ();
28307int
28308main ()
28309{
28310return jbg_dec_init ();
28311 ;
28312 return 0;
28313}
28314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028315if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 ac_cv_lib_jbig_jbg_dec_init=yes
28317else
cristy8b350f62009-11-15 23:12:43 +000028318 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028319fi
cristy8b350f62009-11-15 23:12:43 +000028320rm -f core conftest.err conftest.$ac_objext \
28321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028322LIBS=$ac_check_lib_save_LIBS
28323fi
cristy8b350f62009-11-15 23:12:43 +000028324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028326if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028327 passed=`expr $passed + 1`
28328else
28329 failed=`expr $failed + 1`
28330fi
28331
cristy8b350f62009-11-15 23:12:43 +000028332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo_n "checking if JBIG package is complete... " >&6; }
28334 if test $passed -gt 0; then
28335 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028337$as_echo "no -- some components failed test" >&6; }
28338 have_jbig='no (failed tests)'
28339 else
28340 JBIG_LIBS='-ljbig'
28341 LIBS="$JBIG_LIBS $LIBS"
28342
cristy8b350f62009-11-15 23:12:43 +000028343$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028344
cristy8b350f62009-11-15 23:12:43 +000028345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028346$as_echo "yes" >&6; }
28347 have_jbig='yes'
28348 fi
28349 else
cristy8b350f62009-11-15 23:12:43 +000028350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028351$as_echo "no" >&6; }
28352 fi
28353fi
cristy73bd4a52010-10-05 11:24:23 +000028354 if test "$have_jbig" = 'yes'; then
28355 JBIG_DELEGATE_TRUE=
28356 JBIG_DELEGATE_FALSE='#'
28357else
28358 JBIG_DELEGATE_TRUE='#'
28359 JBIG_DELEGATE_FALSE=
28360fi
28361
cristy3ed852e2009-09-05 21:47:34 +000028362
28363
28364
28365#
28366# Check for JPEG delegate library.
28367#
28368
28369# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028370if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028371 withval=$with_jpeg; with_jpeg=$withval
28372else
28373 with_jpeg='yes'
28374fi
28375
28376
28377if test "$with_jpeg" != 'yes'; then
28378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28379fi
28380
28381have_jpeg='no'
28382JPEG_LIBS=''
28383if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028385$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028387$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028389$as_echo "" >&6; }
28390 failed=0
28391 passed=0
cristy8b350f62009-11-15 23:12:43 +000028392 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028393if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028394 passed=`expr $passed + 1`
28395else
28396 failed=`expr $failed + 1`
28397fi
28398
28399
cristy8b350f62009-11-15 23:12:43 +000028400 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028401if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 passed=`expr $passed + 1`
28403else
28404 failed=`expr $failed + 1`
28405fi
28406
28407
cristy8b350f62009-11-15 23:12:43 +000028408 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028409if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028410 passed=`expr $passed + 1`
28411else
28412 failed=`expr $failed + 1`
28413fi
28414
28415
cristy8b350f62009-11-15 23:12:43 +000028416 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028417if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028418 passed=`expr $passed + 1`
28419else
28420 failed=`expr $failed + 1`
28421fi
28422
28423
cristy8b350f62009-11-15 23:12:43 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028426if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 $as_echo_n "(cached) " >&6
28428else
28429 ac_check_lib_save_LIBS=$LIBS
28430LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028432/* end confdefs.h. */
28433
28434/* Override any GCC internal prototype to avoid an error.
28435 Use char because int might match the return type of a GCC
28436 builtin and then its argument prototype would still apply. */
28437#ifdef __cplusplus
28438extern "C"
28439#endif
28440char jpeg_read_header ();
28441int
28442main ()
28443{
28444return jpeg_read_header ();
28445 ;
28446 return 0;
28447}
28448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 ac_cv_lib_jpeg_jpeg_read_header=yes
28451else
cristy8b350f62009-11-15 23:12:43 +000028452 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028453fi
cristy8b350f62009-11-15 23:12:43 +000028454rm -f core conftest.err conftest.$ac_objext \
28455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028456LIBS=$ac_check_lib_save_LIBS
28457fi
cristy8b350f62009-11-15 23:12:43 +000028458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028459$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028460if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028461 passed=`expr $passed + 1`
28462else
28463 failed=`expr $failed + 1`
28464fi
28465
28466
28467# Test for compatible JPEG library
28468if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028470$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028471if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028472 $as_echo_n "(cached) " >&6
28473else
cristy8b350f62009-11-15 23:12:43 +000028474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028475/* end confdefs.h. */
28476#include <stdio.h>
28477#include <stdlib.h>
28478#include <jpeglib.h>
28479
28480int
28481main ()
28482{
28483
28484#if JPEG_LIB_VERSION < 62
28485#error IJG JPEG library must be version 6b or newer!
28486#endif
28487return 0;
28488
28489 ;
28490 return 0;
28491}
28492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028493if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028494 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28495else
cristy8b350f62009-11-15 23:12:43 +000028496 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028497fi
cristy3ed852e2009-09-05 21:47:34 +000028498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499fi
cristy8b350f62009-11-15 23:12:43 +000028500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028501$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28502fi
cristy8b350f62009-11-15 23:12:43 +000028503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504$as_echo_n "checking if JPEG package is complete... " >&6; }
28505 if test $passed -gt 0; then
28506 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028508$as_echo "no -- some components failed test" >&6; }
28509 have_jpeg='no (failed tests)'
28510 else
28511 JPEG_LIBS='-ljpeg'
28512 LIBS="$JPEG_LIBS $LIBS"
28513
cristy8b350f62009-11-15 23:12:43 +000028514$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028515
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "yes" >&6; }
28518 have_jpeg='yes'
28519 fi
28520 else
cristy8b350f62009-11-15 23:12:43 +000028521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028522$as_echo "no" >&6; }
28523 fi
28524fi
cristy73bd4a52010-10-05 11:24:23 +000028525 if test "$have_jpeg" = 'yes'; then
28526 JPEG_DELEGATE_TRUE=
28527 JPEG_DELEGATE_FALSE='#'
28528else
28529 JPEG_DELEGATE_TRUE='#'
28530 JPEG_DELEGATE_FALSE=
28531fi
28532
cristy3ed852e2009-09-05 21:47:34 +000028533
28534
28535
28536#
28537# Check for JPEG Version 2 delegate library.
28538#
28539
28540# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028541if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 withval=$with_jp2; with_jp2=$withval
28543else
28544 with_jp2='yes'
28545fi
28546
28547
28548if test "$with_jp2" != 'yes'; then
28549 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28550fi
28551
28552have_jp2='no'
28553JP2_LIBS=''
28554if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028556$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028560$as_echo "" >&6; }
28561 failed=0
28562 passed=0
cristy8b350f62009-11-15 23:12:43 +000028563 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 +000028564if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028565 passed=`expr $passed + 1`
28566else
28567 failed=`expr $failed + 1`
28568fi
28569
28570
cristy8b350f62009-11-15 23:12:43 +000028571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028572$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028573if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028574 $as_echo_n "(cached) " >&6
28575else
28576 ac_check_lib_save_LIBS=$LIBS
28577LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028579/* end confdefs.h. */
28580
28581/* Override any GCC internal prototype to avoid an error.
28582 Use char because int might match the return type of a GCC
28583 builtin and then its argument prototype would still apply. */
28584#ifdef __cplusplus
28585extern "C"
28586#endif
28587char jas_stream_fopen ();
28588int
28589main ()
28590{
28591return jas_stream_fopen ();
28592 ;
28593 return 0;
28594}
28595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028596if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028597 ac_cv_lib_jasper_jas_stream_fopen=yes
28598else
cristy8b350f62009-11-15 23:12:43 +000028599 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028600fi
cristy8b350f62009-11-15 23:12:43 +000028601rm -f core conftest.err conftest.$ac_objext \
28602 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028603LIBS=$ac_check_lib_save_LIBS
28604fi
cristy8b350f62009-11-15 23:12:43 +000028605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028606$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028607if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028608 passed=`expr $passed + 1`
28609else
28610 failed=`expr $failed + 1`
28611fi
28612
cristy8b350f62009-11-15 23:12:43 +000028613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028614$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28615 if test $passed -gt 0; then
28616 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo "no -- some components failed test" >&6; }
28619 have_jp2='no (failed tests)'
28620 else
28621 JP2_LIBS='-ljasper'
28622 LIBS="$JP2_LIBS $LIBS"
28623
cristy8b350f62009-11-15 23:12:43 +000028624$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028625
cristy8b350f62009-11-15 23:12:43 +000028626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028627$as_echo "yes" >&6; }
28628 have_jp2='yes'
28629 fi
28630 else
cristy8b350f62009-11-15 23:12:43 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028632$as_echo "no" >&6; }
28633 fi
28634fi
cristy73bd4a52010-10-05 11:24:23 +000028635 if test "$have_jp2" = 'yes'; then
28636 JP2_DELEGATE_TRUE=
28637 JP2_DELEGATE_FALSE='#'
28638else
28639 JP2_DELEGATE_TRUE='#'
28640 JP2_DELEGATE_FALSE=
28641fi
28642
cristy3ed852e2009-09-05 21:47:34 +000028643
28644
28645
28646#
28647# Check for LCMS delegate library.
28648#
cristy71203402010-06-18 13:12:03 +000028649# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028650
28651# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028652if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028653 withval=$with_lcms; with_lcms=$withval
28654else
28655 with_lcms='yes'
28656fi
28657
cristy71203402010-06-18 13:12:03 +000028658if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28660fi
28661
cristy71203402010-06-18 13:12:03 +000028662# Disable LCMS2.
28663
28664# Check whether --with-lcms2 was given.
28665if test "${with_lcms2+set}" = set; then :
28666 withval=$with_lcms2; with_lcms2=$withval
28667else
28668 with_lcms2='yes'
28669fi
28670
28671if test "$with_lcms2" != 'yes' ; then
28672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28673fi
28674
28675have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028676LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028677if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28681$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028683$as_echo "" >&6; }
28684 failed=0
28685 passed=0
28686 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028687
28688 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028689 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028690if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028691 have_lcms_header='yes'
28692fi
28693
28694
28695 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028696
28697$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28698
cristy71203402010-06-18 13:12:03 +000028699 passed=`expr $passed + 1`
28700 fi
28701
28702 # Check for <lcms2/lcms2.h)
28703 if test "$have_lcms_header" != 'yes'; then
28704 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 +000028705if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028706 have_lcms_header='yes'
28707fi
28708
28709
cristy71203402010-06-18 13:12:03 +000028710 if test "$have_lcms_header" = 'yes'; then
28711 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028712
cristy71203402010-06-18 13:12:03 +000028713$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028714
cristy71203402010-06-18 13:12:03 +000028715 fi
cristyd09bcf92010-03-25 03:04:45 +000028716 fi
cristy71203402010-06-18 13:12:03 +000028717
28718 # Failed to find lcms header?
28719 if test "$have_lcms_header" != 'yes'; then
28720 failed=`expr $failed + 1`
28721 fi
28722
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28724$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028725if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028726 $as_echo_n "(cached) " >&6
28727else
28728 ac_check_lib_save_LIBS=$LIBS
28729LIBS="-llcms2 $LIBS"
28730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28731/* end confdefs.h. */
28732
28733/* Override any GCC internal prototype to avoid an error.
28734 Use char because int might match the return type of a GCC
28735 builtin and then its argument prototype would still apply. */
28736#ifdef __cplusplus
28737extern "C"
28738#endif
cristy71203402010-06-18 13:12:03 +000028739char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028740int
28741main ()
28742{
cristy71203402010-06-18 13:12:03 +000028743return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028744 ;
28745 return 0;
28746}
28747_ACEOF
28748if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028749 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028750else
cristy71203402010-06-18 13:12:03 +000028751 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028752fi
28753rm -f core conftest.err conftest.$ac_objext \
28754 conftest$ac_exeext conftest.$ac_ext
28755LIBS=$ac_check_lib_save_LIBS
28756fi
cristy71203402010-06-18 13:12:03 +000028757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28758$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028759if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028760 passed=`expr $passed + 1`
28761else
28762 failed=`expr $failed + 1`
28763fi
28764
cristy71203402010-06-18 13:12:03 +000028765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28766$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028767 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028768 if test $failed -gt 0; then
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028770$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028771 have_lcms2='no (failed tests)'
28772 else
28773 LCMS_LIBS='-llcms2'
28774 LIBS="$LCMS_LIBS $LIBS"
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028776$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028777 have_lcms2='yes'
28778 fi
cristyd09bcf92010-03-25 03:04:45 +000028779 else
cristy71203402010-06-18 13:12:03 +000028780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028781$as_echo "no" >&6; }
28782 fi
28783fi
28784
cristy71203402010-06-18 13:12:03 +000028785#
28786# Check for LCMS v1 (1.11 or later)
28787#
28788if test $have_lcms2 = 'yes'; then
28789 with_lcms='no'
28790fi
28791
28792have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028793if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28795$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28797$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28799$as_echo "" >&6; }
28800 failed=0
28801 passed=0
28802 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028803
28804 # Check for <lcms.h>
28805 if test "$have_lcms_header" != 'yes'; then
28806 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028807if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028808 have_lcms_header='yes'
28809fi
28810
28811
cristy71203402010-06-18 13:12:03 +000028812 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028813 passed=`expr $passed + 1`
28814
cristy8b350f62009-11-15 23:12:43 +000028815$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028816
cristy71203402010-06-18 13:12:03 +000028817 fi
28818 fi
28819
28820 # Check for <lcms/lcms.h>
28821 if test "$have_lcms_header" != 'yes'; then
28822 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 +000028823if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028824 have_lcms_header='yes'
28825fi
28826
28827
cristy71203402010-06-18 13:12:03 +000028828 if test "$have_lcms_header" = 'yes'; then
28829 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028830
cristy8b350f62009-11-15 23:12:43 +000028831$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028832
cristy71203402010-06-18 13:12:03 +000028833 fi
cristy3ed852e2009-09-05 21:47:34 +000028834 fi
cristy71203402010-06-18 13:12:03 +000028835
28836 # Failed to find lcms header?
28837 if test "$have_lcms_header" != 'yes'; then
28838 failed=`expr $failed + 1`
28839 fi
28840
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28842$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028843if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028844 $as_echo_n "(cached) " >&6
28845else
28846 ac_check_lib_save_LIBS=$LIBS
28847LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028849/* end confdefs.h. */
28850
28851/* Override any GCC internal prototype to avoid an error.
28852 Use char because int might match the return type of a GCC
28853 builtin and then its argument prototype would still apply. */
28854#ifdef __cplusplus
28855extern "C"
28856#endif
cristy71203402010-06-18 13:12:03 +000028857char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028858int
28859main ()
28860{
cristy71203402010-06-18 13:12:03 +000028861return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028862 ;
28863 return 0;
28864}
28865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028866if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028867 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028868else
cristy71203402010-06-18 13:12:03 +000028869 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028870fi
cristy8b350f62009-11-15 23:12:43 +000028871rm -f core conftest.err conftest.$ac_objext \
28872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028873LIBS=$ac_check_lib_save_LIBS
28874fi
cristy71203402010-06-18 13:12:03 +000028875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28876$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028877if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028878 passed=`expr $passed + 1`
28879else
28880 failed=`expr $failed + 1`
28881fi
28882
cristy8b350f62009-11-15 23:12:43 +000028883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028884$as_echo_n "checking if LCMS package is complete... " >&6; }
28885 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028886 if test $failed -gt 0; then
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028888$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028889 have_lcms='no (failed tests)'
28890 else
28891 LCMS_LIBS='-llcms'
28892 LIBS="$LCMS_LIBS $LIBS"
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028894$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028895 have_lcms='yes'
28896 fi
cristy3ed852e2009-09-05 21:47:34 +000028897 else
cristy71203402010-06-18 13:12:03 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028899$as_echo "no" >&6; }
28900 fi
28901fi
cristy71203402010-06-18 13:12:03 +000028902
cristy73bd4a52010-10-05 11:24:23 +000028903 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28904 LCMS_DELEGATE_TRUE=
28905 LCMS_DELEGATE_FALSE='#'
28906else
28907 LCMS_DELEGATE_TRUE='#'
28908 LCMS_DELEGATE_FALSE=
28909fi
28910
cristy71203402010-06-18 13:12:03 +000028911if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28912
28913$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28914
28915fi
28916
cristy3ed852e2009-09-05 21:47:34 +000028917
28918
28919
28920#
28921# Check for the LQR (Liquid Rescale) delegate library.
28922#
28923
28924# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028925if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028926 withval=$with_lqr; with_lqr=$withval
28927else
28928 with_lqr='yes'
28929fi
28930
28931
28932if test "$with_lqr" != 'yes'; then
28933 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28934fi
28935
28936have_lqr='no'
28937LQR_CFLAGS=""
28938LQR_LIBS=""
28939LQR_PKG=""
28940if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028942$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028943
28944pkg_failed=no
28945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28946$as_echo_n "checking for LQR... " >&6; }
28947
28948if test -n "$LQR_CFLAGS"; then
28949 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28950 elif test -n "$PKG_CONFIG"; then
28951 if test -n "$PKG_CONFIG" && \
28952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28953 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28954 ac_status=$?
28955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28956 test $ac_status = 0; }; then
28957 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28958else
28959 pkg_failed=yes
28960fi
28961 else
28962 pkg_failed=untried
28963fi
28964if test -n "$LQR_LIBS"; then
28965 pkg_cv_LQR_LIBS="$LQR_LIBS"
28966 elif test -n "$PKG_CONFIG"; then
28967 if test -n "$PKG_CONFIG" && \
28968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28969 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28970 ac_status=$?
28971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28972 test $ac_status = 0; }; then
28973 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28974else
28975 pkg_failed=yes
28976fi
28977 else
28978 pkg_failed=untried
28979fi
28980
28981
28982
28983if test $pkg_failed = yes; then
28984
28985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28986 _pkg_short_errors_supported=yes
28987else
28988 _pkg_short_errors_supported=no
28989fi
28990 if test $_pkg_short_errors_supported = yes; then
28991 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28992 else
28993 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28994 fi
28995 # Put the nasty error message in config.log where it belongs
28996 echo "$LQR_PKG_ERRORS" >&5
28997
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999$as_echo "no" >&6; }
29000 have_lqr=no
29001elif test $pkg_failed = untried; then
29002 have_lqr=no
29003else
29004 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29005 LQR_LIBS=$pkg_cv_LQR_LIBS
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29007$as_echo "yes" >&6; }
29008 have_lqr=yes
29009fi
cristy8b350f62009-11-15 23:12:43 +000029010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029011$as_echo "" >&6; }
29012fi
29013
29014if test "$have_lqr" = 'yes'; then
29015
cristy8b350f62009-11-15 23:12:43 +000029016$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029017
29018 CFLAGS="$LQR_CFLAGS $CFLAGS"
29019fi
29020
cristy73bd4a52010-10-05 11:24:23 +000029021 if test "$have_lqr" = 'yes'; then
29022 LQR_DELEGATE_TRUE=
29023 LQR_DELEGATE_FALSE='#'
29024else
29025 LQR_DELEGATE_TRUE='#'
29026 LQR_DELEGATE_FALSE=
29027fi
29028
cristy3ed852e2009-09-05 21:47:34 +000029029
29030
29031
29032
cristyfbb0ef02010-12-19 02:32:11 +000029033# Disable LZMA (lzma library)
29034
29035# Check whether --with-lzma was given.
29036if test "${with_lzma+set}" = set; then :
29037 withval=$with_lzma; with_lzma=$withval
29038else
29039 with_lzma='yes'
29040fi
29041
29042if test "$with_lzma" != 'yes' ; then
29043 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29044fi
29045
29046#
29047# Check for LZMA
29048#
29049have_lzma='no'
29050LZMA_LIBS=''
29051if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29053$as_echo "-------------------------------------------------------------" >&6; }
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29055$as_echo_n "checking for LZMA... " >&6; }
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29057$as_echo "" >&6; }
29058 failed=0
29059 passed=0
29060 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029061if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029062 passed=`expr $passed + 1`
29063else
29064 failed=`expr $failed + 1`
29065fi
29066
29067
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29069$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029070if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029071 $as_echo_n "(cached) " >&6
29072else
29073 ac_check_lib_save_LIBS=$LIBS
29074LIBS="-llzma $LIBS"
29075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29076/* end confdefs.h. */
29077
29078/* Override any GCC internal prototype to avoid an error.
29079 Use char because int might match the return type of a GCC
29080 builtin and then its argument prototype would still apply. */
29081#ifdef __cplusplus
29082extern "C"
29083#endif
29084char lzma_code ();
29085int
29086main ()
29087{
29088return lzma_code ();
29089 ;
29090 return 0;
29091}
29092_ACEOF
29093if ac_fn_c_try_link "$LINENO"; then :
29094 ac_cv_lib_lzma_lzma_code=yes
29095else
29096 ac_cv_lib_lzma_lzma_code=no
29097fi
29098rm -f core conftest.err conftest.$ac_objext \
29099 conftest$ac_exeext conftest.$ac_ext
29100LIBS=$ac_check_lib_save_LIBS
29101fi
29102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29103$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029104if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029105 passed=`expr $passed + 1`
29106else
29107 failed=`expr $failed + 1`
29108fi
29109
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29111$as_echo_n "checking if LZMA package is complete... " >&6; }
29112 if test $passed -gt 0; then
29113 if test $failed -gt 0; then
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29115$as_echo "no -- some components failed test" >&6; }
29116 have_lzma='no (failed tests)'
29117 else
29118 LZMA_LIBS='-llzma'
29119 LIBS="$LZMA_LIBS $LIBS"
29120
29121$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29122
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29124$as_echo "yes" >&6; }
29125 have_lzma='yes'
29126 fi
29127 else
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29129$as_echo "no" >&6; }
29130 fi
29131fi
29132 if test "$have_lzma" = 'yes'; then
29133 LZMA_DELEGATE_TRUE=
29134 LZMA_DELEGATE_FALSE='#'
29135else
29136 LZMA_DELEGATE_TRUE='#'
29137 LZMA_DELEGATE_FALSE=
29138fi
29139
29140
29141
29142
cristy3ed852e2009-09-05 21:47:34 +000029143#
29144# Check for the OpenEXR delegate library.
29145#
29146
29147# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029148if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029149 withval=$with_openexr; with_openexr=$withval
29150else
29151 with_openexr='yes'
29152fi
29153
29154
29155if test "$with_openexr" != 'yes'; then
29156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29157fi
29158
29159have_openexr='no'
29160OPENEXR_CFLAGS=""
29161OPENEXR_LIBS=""
29162OPENEXR_PKG=""
29163if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029166
29167pkg_failed=no
29168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29169$as_echo_n "checking for OPENEXR... " >&6; }
29170
29171if test -n "$OPENEXR_CFLAGS"; then
29172 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29173 elif test -n "$PKG_CONFIG"; then
29174 if test -n "$PKG_CONFIG" && \
29175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29176 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29177 ac_status=$?
29178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29179 test $ac_status = 0; }; then
29180 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29181else
29182 pkg_failed=yes
29183fi
29184 else
29185 pkg_failed=untried
29186fi
29187if test -n "$OPENEXR_LIBS"; then
29188 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29189 elif test -n "$PKG_CONFIG"; then
29190 if test -n "$PKG_CONFIG" && \
29191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29192 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29193 ac_status=$?
29194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29195 test $ac_status = 0; }; then
29196 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29197else
29198 pkg_failed=yes
29199fi
29200 else
29201 pkg_failed=untried
29202fi
29203
29204
29205
29206if test $pkg_failed = yes; then
29207
29208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29209 _pkg_short_errors_supported=yes
29210else
29211 _pkg_short_errors_supported=no
29212fi
29213 if test $_pkg_short_errors_supported = yes; then
29214 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29215 else
29216 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29217 fi
29218 # Put the nasty error message in config.log where it belongs
29219 echo "$OPENEXR_PKG_ERRORS" >&5
29220
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29222$as_echo "no" >&6; }
29223 have_openexr=no
29224elif test $pkg_failed = untried; then
29225 have_openexr=no
29226else
29227 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29228 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29230$as_echo "yes" >&6; }
29231 have_openexr=yes
29232fi
cristy8b350f62009-11-15 23:12:43 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo "" >&6; }
29235fi
29236
29237if test "$have_openexr" = 'yes'; then
29238
cristy8b350f62009-11-15 23:12:43 +000029239$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029240
29241 if test "$with_modules" = 'no'; then
29242 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29243 fi
29244fi
29245
cristy73bd4a52010-10-05 11:24:23 +000029246 if test "$have_openexr" = 'yes'; then
29247 OPENEXR_DELEGATE_TRUE=
29248 OPENEXR_DELEGATE_FALSE='#'
29249else
29250 OPENEXR_DELEGATE_TRUE='#'
29251 OPENEXR_DELEGATE_FALSE=
29252fi
29253
cristy3ed852e2009-09-05 21:47:34 +000029254
29255
29256
29257
29258#
29259# Check for PNG delegate library.
29260#
29261
29262# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029263if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029264 withval=$with_png; with_png=$withval
29265else
29266 with_png='yes'
29267fi
29268
29269
29270if test "$with_png" != 'yes'; then
29271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29272fi
29273
29274have_png='no'
29275PNG_LIBS=''
29276if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo "" >&6; }
29283 failed=0
29284 passed=0
cristy8b350f62009-11-15 23:12:43 +000029285 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029286if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 passed=`expr $passed + 1`
29288else
29289 failed=`expr $failed + 1`
29290fi
29291
29292
cristy8b350f62009-11-15 23:12:43 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029294$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029295if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029296 $as_echo_n "(cached) " >&6
29297else
29298 ac_check_lib_save_LIBS=$LIBS
29299LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029301/* end confdefs.h. */
29302
29303/* Override any GCC internal prototype to avoid an error.
29304 Use char because int might match the return type of a GCC
29305 builtin and then its argument prototype would still apply. */
29306#ifdef __cplusplus
29307extern "C"
29308#endif
29309char png_get_io_ptr ();
29310int
29311main ()
29312{
29313return png_get_io_ptr ();
29314 ;
29315 return 0;
29316}
29317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029319 ac_cv_lib_png_png_get_io_ptr=yes
29320else
cristy8b350f62009-11-15 23:12:43 +000029321 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029322fi
cristy8b350f62009-11-15 23:12:43 +000029323rm -f core conftest.err conftest.$ac_objext \
29324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029325LIBS=$ac_check_lib_save_LIBS
29326fi
cristy8b350f62009-11-15 23:12:43 +000029327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029328$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029329if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029330 passed=`expr $passed + 1`
29331else
29332 failed=`expr $failed + 1`
29333fi
29334
cristy8b350f62009-11-15 23:12:43 +000029335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo_n "checking if PNG package is complete... " >&6; }
29337 if test $passed -gt 0; then
29338 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340$as_echo "no -- some components failed test" >&6; }
29341 have_png='no (failed tests)'
29342 else
29343 PNG_LIBS='-lpng'
29344 LIBS="$PNG_LIBS $LIBS"
29345
cristy8b350f62009-11-15 23:12:43 +000029346$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029347
cristy8b350f62009-11-15 23:12:43 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029349$as_echo "yes" >&6; }
29350 have_png='yes'
29351 fi
29352 else
cristy8b350f62009-11-15 23:12:43 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354$as_echo "no" >&6; }
29355 fi
29356fi
cristy73bd4a52010-10-05 11:24:23 +000029357 if test "$have_png" = 'yes'; then
29358 PNG_DELEGATE_TRUE=
29359 PNG_DELEGATE_FALSE='#'
29360else
29361 PNG_DELEGATE_TRUE='#'
29362 PNG_DELEGATE_FALSE=
29363fi
29364
cristy3ed852e2009-09-05 21:47:34 +000029365
29366
29367
29368#
29369# Check for RSVG delegate library.
29370#
29371
29372# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029373if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 withval=$with_rsvg; with_rsvg=$withval
29375else
29376 with_rsvg=$have_x
29377fi
29378
29379
29380if test "$with_rsvg" != 'yes'; then
29381 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29382fi
29383
29384have_rsvg='no'
29385have_cairo='no'
29386RSVG_CFLAGS=""
29387RSVG_LIBS=""
29388RSVG_PKG=""
29389if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029392
29393pkg_failed=no
29394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29395$as_echo_n "checking for RSVG... " >&6; }
29396
29397if test -n "$RSVG_CFLAGS"; then
29398 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29399 elif test -n "$PKG_CONFIG"; then
29400 if test -n "$PKG_CONFIG" && \
29401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29402 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29403 ac_status=$?
29404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29405 test $ac_status = 0; }; then
29406 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29407else
29408 pkg_failed=yes
29409fi
29410 else
29411 pkg_failed=untried
29412fi
29413if test -n "$RSVG_LIBS"; then
29414 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29415 elif test -n "$PKG_CONFIG"; then
29416 if test -n "$PKG_CONFIG" && \
29417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29418 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29419 ac_status=$?
29420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29421 test $ac_status = 0; }; then
29422 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29423else
29424 pkg_failed=yes
29425fi
29426 else
29427 pkg_failed=untried
29428fi
29429
29430
29431
29432if test $pkg_failed = yes; then
29433
29434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29435 _pkg_short_errors_supported=yes
29436else
29437 _pkg_short_errors_supported=no
29438fi
29439 if test $_pkg_short_errors_supported = yes; then
29440 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29441 else
29442 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29443 fi
29444 # Put the nasty error message in config.log where it belongs
29445 echo "$RSVG_PKG_ERRORS" >&5
29446
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29448$as_echo "no" >&6; }
29449 have_rsvg=no
29450elif test $pkg_failed = untried; then
29451 have_rsvg=no
29452else
29453 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29454 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29456$as_echo "yes" >&6; }
29457 have_rsvg=yes
29458fi
cristy8b350f62009-11-15 23:12:43 +000029459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029460$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029461
29462pkg_failed=no
29463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29464$as_echo_n "checking for CAIRO_SVG... " >&6; }
29465
29466if test -n "$CAIRO_SVG_CFLAGS"; then
29467 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29468 elif test -n "$PKG_CONFIG"; then
29469 if test -n "$PKG_CONFIG" && \
29470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29471 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29472 ac_status=$?
29473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29474 test $ac_status = 0; }; then
29475 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29476else
29477 pkg_failed=yes
29478fi
29479 else
29480 pkg_failed=untried
29481fi
29482if test -n "$CAIRO_SVG_LIBS"; then
29483 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29484 elif test -n "$PKG_CONFIG"; then
29485 if test -n "$PKG_CONFIG" && \
29486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29487 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29488 ac_status=$?
29489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29490 test $ac_status = 0; }; then
29491 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29492else
29493 pkg_failed=yes
29494fi
29495 else
29496 pkg_failed=untried
29497fi
29498
29499
29500
29501if test $pkg_failed = yes; then
29502
29503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29504 _pkg_short_errors_supported=yes
29505else
29506 _pkg_short_errors_supported=no
29507fi
29508 if test $_pkg_short_errors_supported = yes; then
29509 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29510 else
29511 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29512 fi
29513 # Put the nasty error message in config.log where it belongs
29514 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29515
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29517$as_echo "no" >&6; }
29518 have_cairo=no
29519elif test $pkg_failed = untried; then
29520 have_cairo=no
29521else
29522 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29523 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29525$as_echo "yes" >&6; }
29526 have_cairo=yes
29527fi
cristy8b350f62009-11-15 23:12:43 +000029528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029529$as_echo "" >&6; }
29530fi
29531
29532if test "$have_rsvg" = 'yes'; then
29533
cristy8b350f62009-11-15 23:12:43 +000029534$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029535
29536 if test "$with_modules" = 'no'; then
29537 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29538 fi
29539fi
29540
29541if test "$have_cairo" = 'yes'; then
29542
cristy8b350f62009-11-15 23:12:43 +000029543$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029544
29545 if test "$with_modules" = 'no'; then
29546 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29547 fi
29548fi
29549
cristy73bd4a52010-10-05 11:24:23 +000029550 if test "$have_rsvg" = 'yes'; then
29551 RSVG_DELEGATE_TRUE=
29552 RSVG_DELEGATE_FALSE='#'
29553else
29554 RSVG_DELEGATE_TRUE='#'
29555 RSVG_DELEGATE_FALSE=
29556fi
29557
29558 if test "$have_cairo" = 'yes'; then
29559 CAIRO_DELEGATE_TRUE=
29560 CAIRO_DELEGATE_FALSE='#'
29561else
29562 CAIRO_DELEGATE_TRUE='#'
29563 CAIRO_DELEGATE_FALSE=
29564fi
29565
cristy3ed852e2009-09-05 21:47:34 +000029566
29567
29568
29569
29570#
29571# Check for TIFF delegate library.
29572#
29573
29574# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029575if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029576 withval=$with_tiff; with_tiff=$withval
29577else
29578 with_tiff='yes'
29579fi
29580
29581
29582if test "$with_tiff" != 'yes'; then
29583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29584fi
29585
29586have_tiff='no'
29587TIFF_LIBS=''
29588if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029590$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029592$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029594$as_echo "" >&6; }
29595 failed=0
29596 passed=0
cristy8b350f62009-11-15 23:12:43 +000029597 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029598if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029599 passed=`expr $passed + 1`
29600else
29601 failed=`expr $failed + 1`
29602fi
29603
29604
cristy8b350f62009-11-15 23:12:43 +000029605 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029606if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029607 passed=`expr $passed + 1`
29608else
29609 failed=`expr $failed + 1`
29610fi
29611
29612
cristy8b350f62009-11-15 23:12:43 +000029613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029614$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029615if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029616 $as_echo_n "(cached) " >&6
29617else
29618 ac_check_lib_save_LIBS=$LIBS
29619LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029621/* end confdefs.h. */
29622
29623/* Override any GCC internal prototype to avoid an error.
29624 Use char because int might match the return type of a GCC
29625 builtin and then its argument prototype would still apply. */
29626#ifdef __cplusplus
29627extern "C"
29628#endif
29629char TIFFOpen ();
29630int
29631main ()
29632{
29633return TIFFOpen ();
29634 ;
29635 return 0;
29636}
29637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029639 ac_cv_lib_tiff_TIFFOpen=yes
29640else
cristy8b350f62009-11-15 23:12:43 +000029641 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029642fi
cristy8b350f62009-11-15 23:12:43 +000029643rm -f core conftest.err conftest.$ac_objext \
29644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029645LIBS=$ac_check_lib_save_LIBS
29646fi
cristy8b350f62009-11-15 23:12:43 +000029647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029648$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029649if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029650 passed=`expr $passed + 1`
29651else
29652 failed=`expr $failed + 1`
29653fi
29654
cristy8b350f62009-11-15 23:12:43 +000029655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029656$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029657if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029658 $as_echo_n "(cached) " >&6
29659else
29660 ac_check_lib_save_LIBS=$LIBS
29661LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029663/* end confdefs.h. */
29664
29665/* Override any GCC internal prototype to avoid an error.
29666 Use char because int might match the return type of a GCC
29667 builtin and then its argument prototype would still apply. */
29668#ifdef __cplusplus
29669extern "C"
29670#endif
29671char TIFFClientOpen ();
29672int
29673main ()
29674{
29675return TIFFClientOpen ();
29676 ;
29677 return 0;
29678}
29679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029681 ac_cv_lib_tiff_TIFFClientOpen=yes
29682else
cristy8b350f62009-11-15 23:12:43 +000029683 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029684fi
cristy8b350f62009-11-15 23:12:43 +000029685rm -f core conftest.err conftest.$ac_objext \
29686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029687LIBS=$ac_check_lib_save_LIBS
29688fi
cristy8b350f62009-11-15 23:12:43 +000029689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029691if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029692 passed=`expr $passed + 1`
29693else
29694 failed=`expr $failed + 1`
29695fi
29696
cristyb97f1002010-07-26 14:02:57 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29698$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029699if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029700 $as_echo_n "(cached) " >&6
29701else
29702 ac_check_lib_save_LIBS=$LIBS
29703LIBS="-ltiff $LIBS"
29704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29705/* end confdefs.h. */
29706
29707/* Override any GCC internal prototype to avoid an error.
29708 Use char because int might match the return type of a GCC
29709 builtin and then its argument prototype would still apply. */
29710#ifdef __cplusplus
29711extern "C"
29712#endif
29713char TIFFIsBigEndian ();
29714int
29715main ()
29716{
29717return TIFFIsBigEndian ();
29718 ;
29719 return 0;
29720}
29721_ACEOF
29722if ac_fn_c_try_link "$LINENO"; then :
29723 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29724else
29725 ac_cv_lib_tiff_TIFFIsBigEndian=no
29726fi
29727rm -f core conftest.err conftest.$ac_objext \
29728 conftest$ac_exeext conftest.$ac_ext
29729LIBS=$ac_check_lib_save_LIBS
29730fi
29731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29732$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029733if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029734 passed=`expr $passed + 1`
29735else
29736 failed=`expr $failed + 1`
29737fi
29738
cristy8b350f62009-11-15 23:12:43 +000029739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029740$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029741if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029742 $as_echo_n "(cached) " >&6
29743else
29744 ac_check_lib_save_LIBS=$LIBS
29745LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029747/* end confdefs.h. */
29748
29749/* Override any GCC internal prototype to avoid an error.
29750 Use char because int might match the return type of a GCC
29751 builtin and then its argument prototype would still apply. */
29752#ifdef __cplusplus
29753extern "C"
29754#endif
29755char TIFFIsByteSwapped ();
29756int
29757main ()
29758{
29759return TIFFIsByteSwapped ();
29760 ;
29761 return 0;
29762}
29763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029765 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29766else
cristy8b350f62009-11-15 23:12:43 +000029767 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029768fi
cristy8b350f62009-11-15 23:12:43 +000029769rm -f core conftest.err conftest.$ac_objext \
29770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029771LIBS=$ac_check_lib_save_LIBS
29772fi
cristy8b350f62009-11-15 23:12:43 +000029773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029775if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029776 passed=`expr $passed + 1`
29777else
29778 failed=`expr $failed + 1`
29779fi
29780
cristy8b350f62009-11-15 23:12:43 +000029781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029783if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029784 $as_echo_n "(cached) " >&6
29785else
29786 ac_check_lib_save_LIBS=$LIBS
29787LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029789/* end confdefs.h. */
29790
29791/* Override any GCC internal prototype to avoid an error.
29792 Use char because int might match the return type of a GCC
29793 builtin and then its argument prototype would still apply. */
29794#ifdef __cplusplus
29795extern "C"
29796#endif
29797char TIFFReadRGBATile ();
29798int
29799main ()
29800{
29801return TIFFReadRGBATile ();
29802 ;
29803 return 0;
29804}
29805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029807 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29808else
cristy8b350f62009-11-15 23:12:43 +000029809 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029810fi
cristy8b350f62009-11-15 23:12:43 +000029811rm -f core conftest.err conftest.$ac_objext \
29812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029813LIBS=$ac_check_lib_save_LIBS
29814fi
cristy8b350f62009-11-15 23:12:43 +000029815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029817if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029818 passed=`expr $passed + 1`
29819else
29820 failed=`expr $failed + 1`
29821fi
29822
cristy8b350f62009-11-15 23:12:43 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029825if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029826 $as_echo_n "(cached) " >&6
29827else
29828 ac_check_lib_save_LIBS=$LIBS
29829LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029831/* end confdefs.h. */
29832
29833/* Override any GCC internal prototype to avoid an error.
29834 Use char because int might match the return type of a GCC
29835 builtin and then its argument prototype would still apply. */
29836#ifdef __cplusplus
29837extern "C"
29838#endif
29839char TIFFReadRGBAStrip ();
29840int
29841main ()
29842{
29843return TIFFReadRGBAStrip ();
29844 ;
29845 return 0;
29846}
29847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029849 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29850else
cristy8b350f62009-11-15 23:12:43 +000029851 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029852fi
cristy8b350f62009-11-15 23:12:43 +000029853rm -f core conftest.err conftest.$ac_objext \
29854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029855LIBS=$ac_check_lib_save_LIBS
29856fi
cristy8b350f62009-11-15 23:12:43 +000029857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029858$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029859if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029860 passed=`expr $passed + 1`
29861else
29862 failed=`expr $failed + 1`
29863fi
29864
cristy8b350f62009-11-15 23:12:43 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029866$as_echo_n "checking if TIFF package is complete... " >&6; }
29867 if test $passed -gt 0; then
29868 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029870$as_echo "no -- some components failed test" >&6; }
29871 have_tiff='no (failed tests)'
29872 else
29873 TIFF_LIBS='-ltiff'
29874 LIBS="$TIFF_LIBS $LIBS"
29875
cristy8b350f62009-11-15 23:12:43 +000029876$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029877
cristy8b350f62009-11-15 23:12:43 +000029878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029879$as_echo "yes" >&6; }
29880 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029881 for ac_header in tiffconf.h
29882do :
29883 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029884if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029886#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029887_ACEOF
29888
29889fi
29890
29891done
29892
cristy8b350f62009-11-15 23:12:43 +000029893 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029894 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29895 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029896do :
29897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29898ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029899if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029900 cat >>confdefs.h <<_ACEOF
29901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29902_ACEOF
29903
29904fi
29905done
29906
29907 fi
29908 else
cristy8b350f62009-11-15 23:12:43 +000029909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029910$as_echo "no" >&6; }
29911 fi
29912fi
cristy73bd4a52010-10-05 11:24:23 +000029913 if test "$have_tiff" = 'yes'; then
29914 TIFF_DELEGATE_TRUE=
29915 TIFF_DELEGATE_FALSE='#'
29916else
29917 TIFF_DELEGATE_TRUE='#'
29918 TIFF_DELEGATE_FALSE=
29919fi
29920
cristy3ed852e2009-09-05 21:47:34 +000029921
29922
29923
29924#
29925# Set Windows font directory.
29926#
29927
29928# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029929if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029930 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29931else
29932 with_windows_font_dir=''
29933fi
29934
29935if test "$with_windows_font_dir" != '' ; then
29936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29937fi
29938
29939
29940#
29941# Check for WMF delegate library.
29942#
29943
29944# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029945if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029946 withval=$with_wmf; with_wmf=$withval
29947else
cristy8d63d1d2010-01-06 20:38:37 +000029948 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029949fi
29950
29951
29952if test "$with_wmf" != 'yes'; then
29953 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29954fi
29955
29956have_wmf='no'
29957WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029958if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029960$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029962$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029964$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029965 failed=0
29966 passed=0
29967 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029968if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000029969 passed=`expr $passed + 1`
29970else
29971 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029972fi
29973
29974
cristy735e8942010-04-02 20:32:57 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29976$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029977if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029978 $as_echo_n "(cached) " >&6
29979else
29980 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029981LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029983/* end confdefs.h. */
29984
29985/* Override any GCC internal prototype to avoid an error.
29986 Use char because int might match the return type of a GCC
29987 builtin and then its argument prototype would still apply. */
29988#ifdef __cplusplus
29989extern "C"
29990#endif
cristy735e8942010-04-02 20:32:57 +000029991char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029992int
29993main ()
29994{
cristy735e8942010-04-02 20:32:57 +000029995return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029996 ;
29997 return 0;
29998}
29999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030000if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030001 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030002else
cristy735e8942010-04-02 20:32:57 +000030003 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030004fi
cristy8b350f62009-11-15 23:12:43 +000030005rm -f core conftest.err conftest.$ac_objext \
30006 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030007LIBS=$ac_check_lib_save_LIBS
30008fi
cristy735e8942010-04-02 20:32:57 +000030009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30010$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030011if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030012 passed=`expr $passed + 1`
30013else
30014 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030015fi
30016
cristy735e8942010-04-02 20:32:57 +000030017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30018$as_echo_n "checking if WMF package is complete... " >&6; }
30019 if test $passed -gt 0; then
30020 if test $failed -gt 0; then
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30022$as_echo "no -- some components failed test" >&6; }
30023 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030024 else
cristy735e8942010-04-02 20:32:57 +000030025 WMF_LIBS='-lwmf -lwmflite'
30026 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030027
cristy8b350f62009-11-15 23:12:43 +000030028$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030029
cristy735e8942010-04-02 20:32:57 +000030030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030031$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030032 have_wmf='yes'
30033 fi
cristy3ed852e2009-09-05 21:47:34 +000030034 else
cristy8b350f62009-11-15 23:12:43 +000030035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030036$as_echo "no" >&6; }
30037 fi
30038fi
cristy73bd4a52010-10-05 11:24:23 +000030039 if test "$have_wmf" = 'yes'; then
30040 WMF_DELEGATE_TRUE=
30041 WMF_DELEGATE_FALSE='#'
30042else
30043 WMF_DELEGATE_TRUE='#'
30044 WMF_DELEGATE_FALSE=
30045fi
30046
cristy3ed852e2009-09-05 21:47:34 +000030047
30048
30049
30050
cristy735e8942010-04-02 20:32:57 +000030051
cristy3ed852e2009-09-05 21:47:34 +000030052#
30053# Check for XML delegate library.
30054#
30055
30056# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030057if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 withval=$with_xml; with_xml=$withval
30059else
30060 with_xml=$have_x
30061fi
30062
30063
30064if test "$with_xml" != 'yes' ; then
30065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30066fi
30067
30068have_xml='no'
30069XML_LIBS=''
30070if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030072$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030074$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030076$as_echo "" >&6; }
30077 PERSIST_LDFLAGS=$LDFLAGS
30078 PERSIST_CPPFLAGS=$CPPFLAGS
30079 xml2_config=''
30080 for ac_prog in xml2-config
30081do
30082 # Extract the first word of "$ac_prog", so it can be a program name with args.
30083set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030086if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030087 $as_echo_n "(cached) " >&6
30088else
30089 if test -n "$xml2_config"; then
30090 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30091else
30092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30093for as_dir in $PATH
30094do
30095 IFS=$as_save_IFS
30096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30099 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030101 break 2
30102 fi
30103done
cristy8b350f62009-11-15 23:12:43 +000030104 done
cristy3ed852e2009-09-05 21:47:34 +000030105IFS=$as_save_IFS
30106
30107fi
30108fi
30109xml2_config=$ac_cv_prog_xml2_config
30110if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo "$xml2_config" >&6; }
30113else
cristy8b350f62009-11-15 23:12:43 +000030114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030115$as_echo "no" >&6; }
30116fi
30117
30118
30119 test -n "$xml2_config" && break
30120done
30121 if test -n "$xml2_config"; then
30122 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30123 # the shared library installed under /usr/lib, whereas the package
30124 # installs itself under $prefix/libxml and $prefix/lib.
30125 xml2_prefix=`xml2-config --prefix`
30126 if test -d "${xml2_prefix}/include/libxml2"; then
30127 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30128 fi
30129 if test "${xml2_prefix}" != '/usr'; then
30130 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30131 fi
30132 fi
30133 failed=0
30134 passed=0
cristy8b350f62009-11-15 23:12:43 +000030135 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030136if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030137 passed=`expr $passed + 1`
30138else
30139 failed=`expr $failed + 1`
30140fi
30141
30142
cristy8b350f62009-11-15 23:12:43 +000030143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030144$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030145if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030146 $as_echo_n "(cached) " >&6
30147else
30148 ac_check_lib_save_LIBS=$LIBS
30149LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030151/* end confdefs.h. */
30152
30153/* Override any GCC internal prototype to avoid an error.
30154 Use char because int might match the return type of a GCC
30155 builtin and then its argument prototype would still apply. */
30156#ifdef __cplusplus
30157extern "C"
30158#endif
30159char xmlParseExternalEntity ();
30160int
30161main ()
30162{
30163return xmlParseExternalEntity ();
30164 ;
30165 return 0;
30166}
30167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030169 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30170else
cristy8b350f62009-11-15 23:12:43 +000030171 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030172fi
cristy8b350f62009-11-15 23:12:43 +000030173rm -f core conftest.err conftest.$ac_objext \
30174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030175LIBS=$ac_check_lib_save_LIBS
30176fi
cristy8b350f62009-11-15 23:12:43 +000030177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030178$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030179if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030180 passed=`expr $passed + 1`
30181else
30182 failed=`expr $failed + 1`
30183fi
30184
cristy8b350f62009-11-15 23:12:43 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030186$as_echo_n "checking if XML package is complete... " >&6; }
30187 if test $passed -gt 0; then
30188 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo "no -- some components failed test" >&6; }
30191 have_xml='no (failed tests)'
30192 LDFLAGS="$PERSIST_LDFLAGS"
30193 CPPFLAGS="$PERSIST_CPPFLAGS"
30194 else
30195 XML_LIBS='-lxml2'
30196 LIBS="$XML_LIBS $LIBS"
30197
cristy8b350f62009-11-15 23:12:43 +000030198$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030199
cristy8b350f62009-11-15 23:12:43 +000030200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo "yes" >&6; }
30202 have_xml='yes'
30203 fi
30204 else
cristy8b350f62009-11-15 23:12:43 +000030205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030206$as_echo "no" >&6; }
30207 fi
30208fi
cristy73bd4a52010-10-05 11:24:23 +000030209 if test "$have_xml" = 'yes'; then
30210 XML_DELEGATE_TRUE=
30211 XML_DELEGATE_FALSE='#'
30212else
30213 XML_DELEGATE_TRUE='#'
30214 XML_DELEGATE_FALSE=
30215fi
30216
cristy3ed852e2009-09-05 21:47:34 +000030217
30218
30219
30220# Substitute compiler name to build/link PerlMagick
30221#
30222
30223
30224#
30225# Configure install Paths
30226#
30227
30228# Subdirectory under lib to place ImageMagick lib files
30229LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30230
30231cat >>confdefs.h <<_ACEOF
30232#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30233_ACEOF
30234
30235
30236# Path to ImageMagick bin directory
30237EXECUTABLE_PATH="${BIN_DIR}"
30238DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30239case "${build_os}" in
30240 mingw* )
30241 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30242 ;;
30243esac
30244
30245cat >>confdefs.h <<_ACEOF
30246#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30247_ACEOF
30248
30249
30250
30251# Path to ImageMagick lib
30252LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30253DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30254case "${build_os}" in
30255 mingw* )
30256 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30257 ;;
30258esac
30259
30260cat >>confdefs.h <<_ACEOF
30261#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30262_ACEOF
30263
30264
30265
30266# Subdirectory under lib to place ImageMagick configuration files
30267CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30268
30269cat >>confdefs.h <<_ACEOF
30270#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30271_ACEOF
30272
30273CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30274DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30275case "${build_os}" in
30276 mingw* )
30277 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30278 ;;
30279esac
30280
30281cat >>confdefs.h <<_ACEOF
30282#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30283_ACEOF
30284
30285
30286
30287#
30288# Subdirectory under lib to place ImageMagick coder module files
30289CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30290
30291cat >>confdefs.h <<_ACEOF
30292#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30293_ACEOF
30294
30295CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30296DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30297case "${build_os}" in
30298 mingw* )
30299 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30300 ;;
30301esac
30302
30303cat >>confdefs.h <<_ACEOF
30304#define CODER_PATH "$DEFINE_CODER_PATH"
30305_ACEOF
30306
30307
30308
30309#
30310# Subdirectory under lib to place ImageMagick filter module files
30311FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30312
30313cat >>confdefs.h <<_ACEOF
30314#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30315_ACEOF
30316
30317FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30318DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30319case "${build_os}" in
30320 mingw* )
30321 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30322 ;;
30323esac
30324
30325cat >>confdefs.h <<_ACEOF
30326#define FILTER_PATH "$DEFINE_FILTER_PATH"
30327_ACEOF
30328
30329
30330
30331#
30332# Path to ImageMagick documentation files
30333DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30334DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
30335DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
30336case "${build_os}" in
30337 mingw* )
30338 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30339 ;;
30340esac
30341
30342cat >>confdefs.h <<_ACEOF
30343#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30344_ACEOF
30345
30346
30347
30348#
30349# Path to ImageMagick share files
30350SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30351SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30352DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30353case "${build_os}" in
30354 mingw* )
30355 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30356 ;;
30357esac
30358
30359cat >>confdefs.h <<_ACEOF
30360#define SHARE_PATH "$DEFINE_SHARE_PATH"
30361_ACEOF
30362
30363
30364
30365# Subdirectory under share to place ImageMagick configuration files
30366SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30367
30368cat >>confdefs.h <<_ACEOF
30369#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30370_ACEOF
30371
30372SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30373DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
30374case "${build_os}" in
30375 mingw* )
30376 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30377 ;;
30378esac
30379
30380cat >>confdefs.h <<_ACEOF
30381#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30382_ACEOF
30383
30384
30385
30386#
30387# program_transform_name is formed for use in a Makefile, so create a
30388# modified version for use in a shell script.
30389configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30390
30391# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030393$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030395$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030397$as_echo "" >&6; }
30398AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030399BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030400BZIPDelegateDefault='bzip2'
30401BrowseDelegateDefault='xdg-open'
30402CGMDecodeDelegateDefault='ralcgm'
30403CatDelegateDefault='cat'
30404DNGDecodeDelegateDefault='ufraw-batch'
30405GVCDecodeDelegateDefault='dot'
30406DVIDecodeDelegateDefault='dvips'
30407EchoDelegateDefault='echo'
30408EditorDelegateDefault='xterm'
30409FIGDecodeDelegateDefault='fig2dev'
30410ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30411DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30412MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30413GnuplotDecodeDelegateDefault='gnuplot'
30414HDRDecodeDelegateDefault='ra_pfm'
30415HPGLDecodeDelegateDefault='hp2xx'
30416HTMLDecodeDelegateDefault='html2ps'
30417ILBMDecodeDelegateDefault='ilbmtoppm'
30418ILBMEncodeDelegateDefault='ppmtoilbm'
30419LPDelegateDefault='lp'
30420LPRDelegateDefault='lpr'
30421LZWDecodeDelegateDefault='uncompress'
30422LZWEncodeDelegateDefault='compress'
30423LaunchDelegateDefault='gimp'
30424MANDelegateDefault='groff'
30425MPEGDecodeDelegateDefault='ffmpeg'
30426MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030427MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030428MVDelegateDefault='mv'
30429PCLDelegateDefault='pcl6'
30430PGPDecodeDelegateDefault='pgpv'
30431POVDelegateDefault='povray'
30432if test "$native_win32_build" = 'yes'; then
30433 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030434elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030435 PSDelegateDefault='gsc'
30436else
30437 PSDelegateDefault='gs'
30438fi
30439RLEEncodeDelegateDefault='rawtorle'
30440RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030441RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030442SCANDecodeDelegateDefault='scanimage'
30443TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030444UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000030445WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000030446WMFDecodeDelegateDefault='wmf2eps'
30447WWWDecodeDelegateDefault='curl'
30448XPSDelegateDefault='gxps'
30449ZipDelegateDefault='gzip'
30450
30451# Search for delegates
30452# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30453set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030456if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030457 $as_echo_n "(cached) " >&6
30458else
30459 case $AutotraceDecodeDelegate in
30460 [\\/]* | ?:[\\/]*)
30461 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30462 ;;
30463 *)
30464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30465for as_dir in $PATH
30466do
30467 IFS=$as_save_IFS
30468 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30471 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030473 break 2
30474 fi
30475done
cristy8b350f62009-11-15 23:12:43 +000030476 done
cristy3ed852e2009-09-05 21:47:34 +000030477IFS=$as_save_IFS
30478
30479 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30480 ;;
30481esac
30482fi
30483AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30484if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030486$as_echo "$AutotraceDecodeDelegate" >&6; }
30487else
cristy8b350f62009-11-15 23:12:43 +000030488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030489$as_echo "no" >&6; }
30490fi
30491
30492
cristy3ed852e2009-09-05 21:47:34 +000030493# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30494set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030497if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030498 $as_echo_n "(cached) " >&6
30499else
30500 case $BlenderDecodeDelegate in
30501 [\\/]* | ?:[\\/]*)
30502 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30503 ;;
30504 *)
30505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30506for as_dir in $PATH
30507do
30508 IFS=$as_save_IFS
30509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30512 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030514 break 2
30515 fi
30516done
cristy8b350f62009-11-15 23:12:43 +000030517 done
cristy3ed852e2009-09-05 21:47:34 +000030518IFS=$as_save_IFS
30519
30520 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30521 ;;
30522esac
30523fi
30524BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30525if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030527$as_echo "$BlenderDecodeDelegate" >&6; }
30528else
cristy8b350f62009-11-15 23:12:43 +000030529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030530$as_echo "no" >&6; }
30531fi
30532
30533
30534# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30535set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030538if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030539 $as_echo_n "(cached) " >&6
30540else
30541 case $BZIPDelegate in
30542 [\\/]* | ?:[\\/]*)
30543 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30544 ;;
30545 *)
30546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30547for as_dir in $PATH
30548do
30549 IFS=$as_save_IFS
30550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30553 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030555 break 2
30556 fi
30557done
cristy8b350f62009-11-15 23:12:43 +000030558 done
cristy3ed852e2009-09-05 21:47:34 +000030559IFS=$as_save_IFS
30560
30561 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30562 ;;
30563esac
30564fi
30565BZIPDelegate=$ac_cv_path_BZIPDelegate
30566if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030568$as_echo "$BZIPDelegate" >&6; }
30569else
cristy8b350f62009-11-15 23:12:43 +000030570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030571$as_echo "no" >&6; }
30572fi
30573
30574
30575# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30576set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030578$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030579if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030580 $as_echo_n "(cached) " >&6
30581else
30582 case $BrowseDelegate in
30583 [\\/]* | ?:[\\/]*)
30584 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30585 ;;
30586 *)
30587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30588for as_dir in $PATH
30589do
30590 IFS=$as_save_IFS
30591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30594 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596 break 2
30597 fi
30598done
cristy8b350f62009-11-15 23:12:43 +000030599 done
cristy3ed852e2009-09-05 21:47:34 +000030600IFS=$as_save_IFS
30601
30602 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30603 ;;
30604esac
30605fi
30606BrowseDelegate=$ac_cv_path_BrowseDelegate
30607if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030609$as_echo "$BrowseDelegate" >&6; }
30610else
cristy8b350f62009-11-15 23:12:43 +000030611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030612$as_echo "no" >&6; }
30613fi
30614
30615
30616# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30617set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030619$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030620if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030621 $as_echo_n "(cached) " >&6
30622else
30623 case $CGMDecodeDelegate in
30624 [\\/]* | ?:[\\/]*)
30625 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30626 ;;
30627 *)
30628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30629for as_dir in $PATH
30630do
30631 IFS=$as_save_IFS
30632 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30635 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637 break 2
30638 fi
30639done
cristy8b350f62009-11-15 23:12:43 +000030640 done
cristy3ed852e2009-09-05 21:47:34 +000030641IFS=$as_save_IFS
30642
30643 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30644 ;;
30645esac
30646fi
30647CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30648if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030650$as_echo "$CGMDecodeDelegate" >&6; }
30651else
cristy8b350f62009-11-15 23:12:43 +000030652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030653$as_echo "no" >&6; }
30654fi
30655
30656
30657# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30658set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030660$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030661if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030662 $as_echo_n "(cached) " >&6
30663else
30664 case $CatDelegate in
30665 [\\/]* | ?:[\\/]*)
30666 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30667 ;;
30668 *)
30669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30670for as_dir in $PATH
30671do
30672 IFS=$as_save_IFS
30673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30676 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030678 break 2
30679 fi
30680done
cristy8b350f62009-11-15 23:12:43 +000030681 done
cristy3ed852e2009-09-05 21:47:34 +000030682IFS=$as_save_IFS
30683
30684 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30685 ;;
30686esac
30687fi
30688CatDelegate=$ac_cv_path_CatDelegate
30689if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030691$as_echo "$CatDelegate" >&6; }
30692else
cristy8b350f62009-11-15 23:12:43 +000030693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030694$as_echo "no" >&6; }
30695fi
30696
30697
30698# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30699set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030702if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030703 $as_echo_n "(cached) " >&6
30704else
30705 case $DNGDecodeDelegate in
30706 [\\/]* | ?:[\\/]*)
30707 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30708 ;;
30709 *)
30710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30711for as_dir in $PATH
30712do
30713 IFS=$as_save_IFS
30714 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030715 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30717 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030719 break 2
30720 fi
30721done
cristy8b350f62009-11-15 23:12:43 +000030722 done
cristy3ed852e2009-09-05 21:47:34 +000030723IFS=$as_save_IFS
30724
30725 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30726 ;;
30727esac
30728fi
30729DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30730if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030732$as_echo "$DNGDecodeDelegate" >&6; }
30733else
cristy8b350f62009-11-15 23:12:43 +000030734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030735$as_echo "no" >&6; }
30736fi
30737
30738
30739# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30740set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030743if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030744 $as_echo_n "(cached) " >&6
30745else
30746 case $GVCDecodeDelegate in
30747 [\\/]* | ?:[\\/]*)
30748 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30749 ;;
30750 *)
30751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30752for as_dir in $PATH
30753do
30754 IFS=$as_save_IFS
30755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30758 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030760 break 2
30761 fi
30762done
cristy8b350f62009-11-15 23:12:43 +000030763 done
cristy3ed852e2009-09-05 21:47:34 +000030764IFS=$as_save_IFS
30765
30766 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30767 ;;
30768esac
30769fi
30770GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30771if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030773$as_echo "$GVCDecodeDelegate" >&6; }
30774else
cristy8b350f62009-11-15 23:12:43 +000030775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030776$as_echo "no" >&6; }
30777fi
30778
30779
30780# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30781set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030783$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030784if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030785 $as_echo_n "(cached) " >&6
30786else
30787 case $DVIDecodeDelegate in
30788 [\\/]* | ?:[\\/]*)
30789 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30790 ;;
30791 *)
30792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30793for as_dir in $PATH
30794do
30795 IFS=$as_save_IFS
30796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30799 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030801 break 2
30802 fi
30803done
cristy8b350f62009-11-15 23:12:43 +000030804 done
cristy3ed852e2009-09-05 21:47:34 +000030805IFS=$as_save_IFS
30806
30807 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30808 ;;
30809esac
30810fi
30811DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30812if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030814$as_echo "$DVIDecodeDelegate" >&6; }
30815else
cristy8b350f62009-11-15 23:12:43 +000030816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030817$as_echo "no" >&6; }
30818fi
30819
30820
30821# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30822set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030825if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030826 $as_echo_n "(cached) " >&6
30827else
30828 case $EchoDelegate in
30829 [\\/]* | ?:[\\/]*)
30830 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30831 ;;
30832 *)
30833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30834for as_dir in $PATH
30835do
30836 IFS=$as_save_IFS
30837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30840 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030842 break 2
30843 fi
30844done
cristy8b350f62009-11-15 23:12:43 +000030845 done
cristy3ed852e2009-09-05 21:47:34 +000030846IFS=$as_save_IFS
30847
30848 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30849 ;;
30850esac
30851fi
30852EchoDelegate=$ac_cv_path_EchoDelegate
30853if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030855$as_echo "$EchoDelegate" >&6; }
30856else
cristy8b350f62009-11-15 23:12:43 +000030857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030858$as_echo "no" >&6; }
30859fi
30860
30861
30862# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30863set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030866if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030867 $as_echo_n "(cached) " >&6
30868else
30869 case $EditorDelegate in
30870 [\\/]* | ?:[\\/]*)
30871 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30872 ;;
30873 *)
30874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30875for as_dir in $PATH
30876do
30877 IFS=$as_save_IFS
30878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30881 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030883 break 2
30884 fi
30885done
cristy8b350f62009-11-15 23:12:43 +000030886 done
cristy3ed852e2009-09-05 21:47:34 +000030887IFS=$as_save_IFS
30888
30889 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30890 ;;
30891esac
30892fi
30893EditorDelegate=$ac_cv_path_EditorDelegate
30894if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030896$as_echo "$EditorDelegate" >&6; }
30897else
cristy8b350f62009-11-15 23:12:43 +000030898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030899$as_echo "no" >&6; }
30900fi
30901
30902
30903# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30904set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030907if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030908 $as_echo_n "(cached) " >&6
30909else
30910 case $FIGDecodeDelegate in
30911 [\\/]* | ?:[\\/]*)
30912 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30913 ;;
30914 *)
30915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30916for as_dir in $PATH
30917do
30918 IFS=$as_save_IFS
30919 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30922 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030924 break 2
30925 fi
30926done
cristy8b350f62009-11-15 23:12:43 +000030927 done
cristy3ed852e2009-09-05 21:47:34 +000030928IFS=$as_save_IFS
30929
30930 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30931 ;;
30932esac
30933fi
30934FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30935if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030937$as_echo "$FIGDecodeDelegate" >&6; }
30938else
cristy8b350f62009-11-15 23:12:43 +000030939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030940$as_echo "no" >&6; }
30941fi
30942
30943
30944# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30945set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030948if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030949 $as_echo_n "(cached) " >&6
30950else
30951 case $ConvertDelegate in
30952 [\\/]* | ?:[\\/]*)
30953 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30954 ;;
30955 *)
30956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30957for as_dir in $PATH
30958do
30959 IFS=$as_save_IFS
30960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30963 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030965 break 2
30966 fi
30967done
cristy8b350f62009-11-15 23:12:43 +000030968 done
cristy3ed852e2009-09-05 21:47:34 +000030969IFS=$as_save_IFS
30970
30971 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30972 ;;
30973esac
30974fi
30975ConvertDelegate=$ac_cv_path_ConvertDelegate
30976if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030978$as_echo "$ConvertDelegate" >&6; }
30979else
cristy8b350f62009-11-15 23:12:43 +000030980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030981$as_echo "no" >&6; }
30982fi
30983
30984
30985# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30986set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030989if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030990 $as_echo_n "(cached) " >&6
30991else
30992 case $DisplayDelegate in
30993 [\\/]* | ?:[\\/]*)
30994 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30995 ;;
30996 *)
30997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30998for as_dir in $PATH
30999do
31000 IFS=$as_save_IFS
31001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31004 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031006 break 2
31007 fi
31008done
cristy8b350f62009-11-15 23:12:43 +000031009 done
cristy3ed852e2009-09-05 21:47:34 +000031010IFS=$as_save_IFS
31011
31012 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31013 ;;
31014esac
31015fi
31016DisplayDelegate=$ac_cv_path_DisplayDelegate
31017if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031019$as_echo "$DisplayDelegate" >&6; }
31020else
cristy8b350f62009-11-15 23:12:43 +000031021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031022$as_echo "no" >&6; }
31023fi
31024
31025
31026# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31027set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031030if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031031 $as_echo_n "(cached) " >&6
31032else
31033 case $MogrifyDelegate in
31034 [\\/]* | ?:[\\/]*)
31035 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31036 ;;
31037 *)
31038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31039for as_dir in $PATH
31040do
31041 IFS=$as_save_IFS
31042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31045 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047 break 2
31048 fi
31049done
cristy8b350f62009-11-15 23:12:43 +000031050 done
cristy3ed852e2009-09-05 21:47:34 +000031051IFS=$as_save_IFS
31052
31053 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31054 ;;
31055esac
31056fi
31057MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31058if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031060$as_echo "$MogrifyDelegate" >&6; }
31061else
cristy8b350f62009-11-15 23:12:43 +000031062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031063$as_echo "no" >&6; }
31064fi
31065
31066
31067# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31068set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031071if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031072 $as_echo_n "(cached) " >&6
31073else
31074 case $GnuplotDecodeDelegate in
31075 [\\/]* | ?:[\\/]*)
31076 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31077 ;;
31078 *)
31079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31080for as_dir in $PATH
31081do
31082 IFS=$as_save_IFS
31083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31086 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031088 break 2
31089 fi
31090done
cristy8b350f62009-11-15 23:12:43 +000031091 done
cristy3ed852e2009-09-05 21:47:34 +000031092IFS=$as_save_IFS
31093
31094 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31095 ;;
31096esac
31097fi
31098GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31099if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031101$as_echo "$GnuplotDecodeDelegate" >&6; }
31102else
cristy8b350f62009-11-15 23:12:43 +000031103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031104$as_echo "no" >&6; }
31105fi
31106
31107
31108# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
31109set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031112if ${ac_cv_path_HDRDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031113 $as_echo_n "(cached) " >&6
31114else
31115 case $HDRDecodeDelegate in
31116 [\\/]* | ?:[\\/]*)
31117 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
31118 ;;
31119 *)
31120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31121for as_dir in $PATH
31122do
31123 IFS=$as_save_IFS
31124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31127 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129 break 2
31130 fi
31131done
cristy8b350f62009-11-15 23:12:43 +000031132 done
cristy3ed852e2009-09-05 21:47:34 +000031133IFS=$as_save_IFS
31134
31135 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
31136 ;;
31137esac
31138fi
31139HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
31140if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031142$as_echo "$HDRDecodeDelegate" >&6; }
31143else
cristy8b350f62009-11-15 23:12:43 +000031144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031145$as_echo "no" >&6; }
31146fi
31147
31148
31149# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31150set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031153if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031154 $as_echo_n "(cached) " >&6
31155else
31156 case $HPGLDecodeDelegate in
31157 [\\/]* | ?:[\\/]*)
31158 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31159 ;;
31160 *)
31161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31162for as_dir in $PATH
31163do
31164 IFS=$as_save_IFS
31165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31168 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031170 break 2
31171 fi
31172done
cristy8b350f62009-11-15 23:12:43 +000031173 done
cristy3ed852e2009-09-05 21:47:34 +000031174IFS=$as_save_IFS
31175
31176 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31177 ;;
31178esac
31179fi
31180HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31181if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "$HPGLDecodeDelegate" >&6; }
31184else
cristy8b350f62009-11-15 23:12:43 +000031185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031186$as_echo "no" >&6; }
31187fi
31188
31189
31190# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31191set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031194if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031195 $as_echo_n "(cached) " >&6
31196else
31197 case $HTMLDecodeDelegate in
31198 [\\/]* | ?:[\\/]*)
31199 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31200 ;;
31201 *)
31202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31203for as_dir in $PATH
31204do
31205 IFS=$as_save_IFS
31206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31209 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211 break 2
31212 fi
31213done
cristy8b350f62009-11-15 23:12:43 +000031214 done
cristy3ed852e2009-09-05 21:47:34 +000031215IFS=$as_save_IFS
31216
31217 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31218 ;;
31219esac
31220fi
31221HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31222if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031224$as_echo "$HTMLDecodeDelegate" >&6; }
31225else
cristy8b350f62009-11-15 23:12:43 +000031226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031227$as_echo "no" >&6; }
31228fi
31229
31230
31231# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31232set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031235if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031236 $as_echo_n "(cached) " >&6
31237else
31238 case $ILBMDecodeDelegate in
31239 [\\/]* | ?:[\\/]*)
31240 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31241 ;;
31242 *)
31243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31244for as_dir in $PATH
31245do
31246 IFS=$as_save_IFS
31247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31250 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252 break 2
31253 fi
31254done
cristy8b350f62009-11-15 23:12:43 +000031255 done
cristy3ed852e2009-09-05 21:47:34 +000031256IFS=$as_save_IFS
31257
31258 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31259 ;;
31260esac
31261fi
31262ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31263if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031265$as_echo "$ILBMDecodeDelegate" >&6; }
31266else
cristy8b350f62009-11-15 23:12:43 +000031267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031268$as_echo "no" >&6; }
31269fi
31270
31271
31272# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31273set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031276if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031277 $as_echo_n "(cached) " >&6
31278else
31279 case $ILBMEncodeDelegate in
31280 [\\/]* | ?:[\\/]*)
31281 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31282 ;;
31283 *)
31284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31285for as_dir in $PATH
31286do
31287 IFS=$as_save_IFS
31288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31291 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293 break 2
31294 fi
31295done
cristy8b350f62009-11-15 23:12:43 +000031296 done
cristy3ed852e2009-09-05 21:47:34 +000031297IFS=$as_save_IFS
31298
31299 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31300 ;;
31301esac
31302fi
31303ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31304if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031306$as_echo "$ILBMEncodeDelegate" >&6; }
31307else
cristy8b350f62009-11-15 23:12:43 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031309$as_echo "no" >&6; }
31310fi
31311
31312
31313# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31314set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031317if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031318 $as_echo_n "(cached) " >&6
31319else
31320 case $LPDelegate in
31321 [\\/]* | ?:[\\/]*)
31322 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31323 ;;
31324 *)
31325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31326for as_dir in $PATH
31327do
31328 IFS=$as_save_IFS
31329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31332 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334 break 2
31335 fi
31336done
cristy8b350f62009-11-15 23:12:43 +000031337 done
cristy3ed852e2009-09-05 21:47:34 +000031338IFS=$as_save_IFS
31339
31340 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31341 ;;
31342esac
31343fi
31344LPDelegate=$ac_cv_path_LPDelegate
31345if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "$LPDelegate" >&6; }
31348else
cristy8b350f62009-11-15 23:12:43 +000031349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031350$as_echo "no" >&6; }
31351fi
31352
31353
31354# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31355set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031358if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031359 $as_echo_n "(cached) " >&6
31360else
31361 case $LPRDelegate in
31362 [\\/]* | ?:[\\/]*)
31363 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31364 ;;
31365 *)
31366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31367for as_dir in $PATH
31368do
31369 IFS=$as_save_IFS
31370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31373 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375 break 2
31376 fi
31377done
cristy8b350f62009-11-15 23:12:43 +000031378 done
cristy3ed852e2009-09-05 21:47:34 +000031379IFS=$as_save_IFS
31380
31381 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31382 ;;
31383esac
31384fi
31385LPRDelegate=$ac_cv_path_LPRDelegate
31386if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031388$as_echo "$LPRDelegate" >&6; }
31389else
cristy8b350f62009-11-15 23:12:43 +000031390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031391$as_echo "no" >&6; }
31392fi
31393
31394
31395# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31396set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031399if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031400 $as_echo_n "(cached) " >&6
31401else
31402 case $LZWDecodeDelegate in
31403 [\\/]* | ?:[\\/]*)
31404 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31405 ;;
31406 *)
31407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31408for as_dir in $PATH
31409do
31410 IFS=$as_save_IFS
31411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31414 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416 break 2
31417 fi
31418done
cristy8b350f62009-11-15 23:12:43 +000031419 done
cristy3ed852e2009-09-05 21:47:34 +000031420IFS=$as_save_IFS
31421
31422 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31423 ;;
31424esac
31425fi
31426LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31427if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo "$LZWDecodeDelegate" >&6; }
31430else
cristy8b350f62009-11-15 23:12:43 +000031431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031432$as_echo "no" >&6; }
31433fi
31434
31435
31436# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31437set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031439$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031440if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031441 $as_echo_n "(cached) " >&6
31442else
31443 case $LZWEncodeDelegate in
31444 [\\/]* | ?:[\\/]*)
31445 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31446 ;;
31447 *)
31448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31449for as_dir in $PATH
31450do
31451 IFS=$as_save_IFS
31452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31455 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457 break 2
31458 fi
31459done
cristy8b350f62009-11-15 23:12:43 +000031460 done
cristy3ed852e2009-09-05 21:47:34 +000031461IFS=$as_save_IFS
31462
31463 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31464 ;;
31465esac
31466fi
31467LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31468if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031470$as_echo "$LZWEncodeDelegate" >&6; }
31471else
cristy8b350f62009-11-15 23:12:43 +000031472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031473$as_echo "no" >&6; }
31474fi
31475
31476
31477# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31478set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031481if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031482 $as_echo_n "(cached) " >&6
31483else
31484 case $LaunchDelegate in
31485 [\\/]* | ?:[\\/]*)
31486 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31487 ;;
31488 *)
31489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31490for as_dir in $PATH
31491do
31492 IFS=$as_save_IFS
31493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31496 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498 break 2
31499 fi
31500done
cristy8b350f62009-11-15 23:12:43 +000031501 done
cristy3ed852e2009-09-05 21:47:34 +000031502IFS=$as_save_IFS
31503
31504 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31505 ;;
31506esac
31507fi
31508LaunchDelegate=$ac_cv_path_LaunchDelegate
31509if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031511$as_echo "$LaunchDelegate" >&6; }
31512else
cristy8b350f62009-11-15 23:12:43 +000031513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031514$as_echo "no" >&6; }
31515fi
31516
31517
31518# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31519set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031522if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031523 $as_echo_n "(cached) " >&6
31524else
31525 case $MANDelegate in
31526 [\\/]* | ?:[\\/]*)
31527 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31528 ;;
31529 *)
31530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31531for as_dir in $PATH
31532do
31533 IFS=$as_save_IFS
31534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31537 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539 break 2
31540 fi
31541done
cristy8b350f62009-11-15 23:12:43 +000031542 done
cristy3ed852e2009-09-05 21:47:34 +000031543IFS=$as_save_IFS
31544
31545 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31546 ;;
31547esac
31548fi
31549MANDelegate=$ac_cv_path_MANDelegate
31550if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031552$as_echo "$MANDelegate" >&6; }
31553else
cristy8b350f62009-11-15 23:12:43 +000031554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031555$as_echo "no" >&6; }
31556fi
31557
31558
31559# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31560set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031563if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031564 $as_echo_n "(cached) " >&6
31565else
31566 case $MPEGDecodeDelegate in
31567 [\\/]* | ?:[\\/]*)
31568 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31569 ;;
31570 *)
31571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31572for as_dir in $PATH
31573do
31574 IFS=$as_save_IFS
31575 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31578 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031580 break 2
31581 fi
31582done
cristy8b350f62009-11-15 23:12:43 +000031583 done
cristy3ed852e2009-09-05 21:47:34 +000031584IFS=$as_save_IFS
31585
31586 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31587 ;;
31588esac
31589fi
31590MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31591if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031593$as_echo "$MPEGDecodeDelegate" >&6; }
31594else
cristy8b350f62009-11-15 23:12:43 +000031595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031596$as_echo "no" >&6; }
31597fi
31598
31599
31600# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31601set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031603$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031604if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031605 $as_echo_n "(cached) " >&6
31606else
31607 case $MPEGEncodeDelegate in
31608 [\\/]* | ?:[\\/]*)
31609 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31610 ;;
31611 *)
31612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31613for as_dir in $PATH
31614do
31615 IFS=$as_save_IFS
31616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31619 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031621 break 2
31622 fi
31623done
cristy8b350f62009-11-15 23:12:43 +000031624 done
cristy3ed852e2009-09-05 21:47:34 +000031625IFS=$as_save_IFS
31626
31627 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31628 ;;
31629esac
31630fi
31631MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31632if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031634$as_echo "$MPEGEncodeDelegate" >&6; }
31635else
cristy8b350f62009-11-15 23:12:43 +000031636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031637$as_echo "no" >&6; }
31638fi
31639
31640
cristy935c86e2010-06-05 23:50:07 +000031641# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31642set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031645if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031646 $as_echo_n "(cached) " >&6
31647else
31648 case $MrSIDDecodeDelegate in
31649 [\\/]* | ?:[\\/]*)
31650 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31651 ;;
31652 *)
31653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31654for as_dir in $PATH
31655do
31656 IFS=$as_save_IFS
31657 test -z "$as_dir" && as_dir=.
31658 for ac_exec_ext in '' $ac_executable_extensions; do
31659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31660 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31662 break 2
31663 fi
31664done
31665 done
31666IFS=$as_save_IFS
31667
31668 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31669 ;;
31670esac
31671fi
31672MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31673if test -n "$MrSIDDecodeDelegate"; then
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31675$as_echo "$MrSIDDecodeDelegate" >&6; }
31676else
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678$as_echo "no" >&6; }
31679fi
31680
31681
cristy3ed852e2009-09-05 21:47:34 +000031682# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31683set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031686if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031687 $as_echo_n "(cached) " >&6
31688else
31689 case $MVDelegate in
31690 [\\/]* | ?:[\\/]*)
31691 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31692 ;;
31693 *)
31694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31695for as_dir in $PATH
31696do
31697 IFS=$as_save_IFS
31698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31701 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031703 break 2
31704 fi
31705done
cristy8b350f62009-11-15 23:12:43 +000031706 done
cristy3ed852e2009-09-05 21:47:34 +000031707IFS=$as_save_IFS
31708
31709 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31710 ;;
31711esac
31712fi
31713MVDelegate=$ac_cv_path_MVDelegate
31714if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031716$as_echo "$MVDelegate" >&6; }
31717else
cristy8b350f62009-11-15 23:12:43 +000031718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031719$as_echo "no" >&6; }
31720fi
31721
31722
31723# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31724set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031727if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031728 $as_echo_n "(cached) " >&6
31729else
31730 case $PCLDelegate in
31731 [\\/]* | ?:[\\/]*)
31732 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31733 ;;
31734 *)
31735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31736for as_dir in $PATH
31737do
31738 IFS=$as_save_IFS
31739 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31742 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031744 break 2
31745 fi
31746done
cristy8b350f62009-11-15 23:12:43 +000031747 done
cristy3ed852e2009-09-05 21:47:34 +000031748IFS=$as_save_IFS
31749
31750 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31751 ;;
31752esac
31753fi
31754PCLDelegate=$ac_cv_path_PCLDelegate
31755if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "$PCLDelegate" >&6; }
31758else
cristy8b350f62009-11-15 23:12:43 +000031759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031760$as_echo "no" >&6; }
31761fi
31762
31763
31764# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31765set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031768if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031769 $as_echo_n "(cached) " >&6
31770else
31771 case $PGPDecodeDelegate in
31772 [\\/]* | ?:[\\/]*)
31773 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31774 ;;
31775 *)
31776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31777for as_dir in $PATH
31778do
31779 IFS=$as_save_IFS
31780 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31783 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031785 break 2
31786 fi
31787done
cristy8b350f62009-11-15 23:12:43 +000031788 done
cristy3ed852e2009-09-05 21:47:34 +000031789IFS=$as_save_IFS
31790
31791 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31792 ;;
31793esac
31794fi
31795PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31796if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031798$as_echo "$PGPDecodeDelegate" >&6; }
31799else
cristy8b350f62009-11-15 23:12:43 +000031800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031801$as_echo "no" >&6; }
31802fi
31803
31804
31805# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31806set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031809if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031810 $as_echo_n "(cached) " >&6
31811else
31812 case $POVDelegate in
31813 [\\/]* | ?:[\\/]*)
31814 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31815 ;;
31816 *)
31817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31818for as_dir in $PATH
31819do
31820 IFS=$as_save_IFS
31821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31824 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031826 break 2
31827 fi
31828done
cristy8b350f62009-11-15 23:12:43 +000031829 done
cristy3ed852e2009-09-05 21:47:34 +000031830IFS=$as_save_IFS
31831
31832 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31833 ;;
31834esac
31835fi
31836POVDelegate=$ac_cv_path_POVDelegate
31837if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839$as_echo "$POVDelegate" >&6; }
31840else
cristy8b350f62009-11-15 23:12:43 +000031841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031842$as_echo "no" >&6; }
31843fi
31844
31845
31846for ac_prog in gsx gsc "$PSDelegateDefault"
31847do
31848 # Extract the first word of "$ac_prog", so it can be a program name with args.
31849set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031852if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031853 $as_echo_n "(cached) " >&6
31854else
31855 case $PSDelegate in
31856 [\\/]* | ?:[\\/]*)
31857 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31858 ;;
31859 *)
31860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31861for as_dir in $PATH
31862do
31863 IFS=$as_save_IFS
31864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31867 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031869 break 2
31870 fi
31871done
cristy8b350f62009-11-15 23:12:43 +000031872 done
cristy3ed852e2009-09-05 21:47:34 +000031873IFS=$as_save_IFS
31874
31875 ;;
31876esac
31877fi
31878PSDelegate=$ac_cv_path_PSDelegate
31879if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031881$as_echo "$PSDelegate" >&6; }
31882else
cristy8b350f62009-11-15 23:12:43 +000031883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo "no" >&6; }
31885fi
31886
31887
31888 test -n "$PSDelegate" && break
31889done
31890test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31891
31892# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31893set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031895$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031896if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031897 $as_echo_n "(cached) " >&6
31898else
31899 case $RLEEncodeDelegate in
31900 [\\/]* | ?:[\\/]*)
31901 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31902 ;;
31903 *)
31904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31905for as_dir in $PATH
31906do
31907 IFS=$as_save_IFS
31908 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31911 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031913 break 2
31914 fi
31915done
cristy8b350f62009-11-15 23:12:43 +000031916 done
cristy3ed852e2009-09-05 21:47:34 +000031917IFS=$as_save_IFS
31918
31919 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31920 ;;
31921esac
31922fi
31923RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31924if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031926$as_echo "$RLEEncodeDelegate" >&6; }
31927else
cristy8b350f62009-11-15 23:12:43 +000031928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031929$as_echo "no" >&6; }
31930fi
31931
31932
31933# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31934set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031937if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031938 $as_echo_n "(cached) " >&6
31939else
31940 case $RMDelegate in
31941 [\\/]* | ?:[\\/]*)
31942 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31943 ;;
31944 *)
31945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31946for as_dir in $PATH
31947do
31948 IFS=$as_save_IFS
31949 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31952 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954 break 2
31955 fi
31956done
cristy8b350f62009-11-15 23:12:43 +000031957 done
cristy3ed852e2009-09-05 21:47:34 +000031958IFS=$as_save_IFS
31959
31960 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31961 ;;
31962esac
31963fi
31964RMDelegate=$ac_cv_path_RMDelegate
31965if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031967$as_echo "$RMDelegate" >&6; }
31968else
cristy8b350f62009-11-15 23:12:43 +000031969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031970$as_echo "no" >&6; }
31971fi
31972
31973
cristy4689cf02010-02-17 21:15:45 +000031974# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31975set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031978if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000031979 $as_echo_n "(cached) " >&6
31980else
31981 case $RSVGDecodeDelegate in
31982 [\\/]* | ?:[\\/]*)
31983 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31984 ;;
31985 *)
31986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31987for as_dir in $PATH
31988do
31989 IFS=$as_save_IFS
31990 test -z "$as_dir" && as_dir=.
31991 for ac_exec_ext in '' $ac_executable_extensions; do
31992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31993 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31995 break 2
31996 fi
31997done
31998 done
31999IFS=$as_save_IFS
32000
32001 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32002 ;;
32003esac
32004fi
32005RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32006if test -n "$RSVGDecodeDelegate"; then
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32008$as_echo "$RSVGDecodeDelegate" >&6; }
32009else
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32011$as_echo "no" >&6; }
32012fi
32013
32014
cristy3ed852e2009-09-05 21:47:34 +000032015# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32016set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032019if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032020 $as_echo_n "(cached) " >&6
32021else
32022 case $SCANDecodeDelegate in
32023 [\\/]* | ?:[\\/]*)
32024 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32025 ;;
32026 *)
32027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32028for as_dir in $PATH
32029do
32030 IFS=$as_save_IFS
32031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32034 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032036 break 2
32037 fi
32038done
cristy8b350f62009-11-15 23:12:43 +000032039 done
cristy3ed852e2009-09-05 21:47:34 +000032040IFS=$as_save_IFS
32041
32042 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32043 ;;
32044esac
32045fi
32046SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32047if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032049$as_echo "$SCANDecodeDelegate" >&6; }
32050else
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "no" >&6; }
32053fi
32054
32055
32056# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32057set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032060if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032061 $as_echo_n "(cached) " >&6
32062else
32063 case $TXTDelegate in
32064 [\\/]* | ?:[\\/]*)
32065 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32066 ;;
32067 *)
32068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32069for as_dir in $PATH
32070do
32071 IFS=$as_save_IFS
32072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32075 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032077 break 2
32078 fi
32079done
cristy8b350f62009-11-15 23:12:43 +000032080 done
cristy3ed852e2009-09-05 21:47:34 +000032081IFS=$as_save_IFS
32082
32083 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32084 ;;
32085esac
32086fi
32087TXTDelegate=$ac_cv_path_TXTDelegate
32088if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032090$as_echo "$TXTDelegate" >&6; }
32091else
cristy8b350f62009-11-15 23:12:43 +000032092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032093$as_echo "no" >&6; }
32094fi
32095
32096
cristy5ac9ac82010-07-29 13:24:24 +000032097# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32098set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32100$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032101if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032102 $as_echo_n "(cached) " >&6
32103else
32104 case $UniconvertorDelegate in
32105 [\\/]* | ?:[\\/]*)
32106 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32107 ;;
32108 *)
32109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32110for as_dir in $PATH
32111do
32112 IFS=$as_save_IFS
32113 test -z "$as_dir" && as_dir=.
32114 for ac_exec_ext in '' $ac_executable_extensions; do
32115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32116 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32118 break 2
32119 fi
32120done
32121 done
32122IFS=$as_save_IFS
32123
32124 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32125 ;;
32126esac
32127fi
32128UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32129if test -n "$UniconvertorDelegate"; then
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32131$as_echo "$UniconvertorDelegate" >&6; }
32132else
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32134$as_echo "no" >&6; }
32135fi
32136
32137
cristy23f7a922010-10-11 00:27:48 +000032138# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
32139set dummy "$WEBPDelegateDefault"; ac_word=$2
32140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32141$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032142if ${ac_cv_path_WEBPDelegate+:} false; then :
cristy23f7a922010-10-11 00:27:48 +000032143 $as_echo_n "(cached) " >&6
32144else
32145 case $WEBPDelegate in
32146 [\\/]* | ?:[\\/]*)
32147 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
32148 ;;
32149 *)
32150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32151for as_dir in $PATH
32152do
32153 IFS=$as_save_IFS
32154 test -z "$as_dir" && as_dir=.
32155 for ac_exec_ext in '' $ac_executable_extensions; do
32156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32157 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
32158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32159 break 2
32160 fi
32161done
32162 done
32163IFS=$as_save_IFS
32164
32165 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
32166 ;;
32167esac
32168fi
32169WEBPDelegate=$ac_cv_path_WEBPDelegate
32170if test -n "$WEBPDelegate"; then
32171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
32172$as_echo "$WEBPDelegate" >&6; }
32173else
32174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32175$as_echo "no" >&6; }
32176fi
32177
32178
cristy3ed852e2009-09-05 21:47:34 +000032179# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32180set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032183if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032184 $as_echo_n "(cached) " >&6
32185else
32186 case $WMFDecodeDelegate in
32187 [\\/]* | ?:[\\/]*)
32188 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32189 ;;
32190 *)
32191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32192for as_dir in $PATH
32193do
32194 IFS=$as_save_IFS
32195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32198 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200 break 2
32201 fi
32202done
cristy8b350f62009-11-15 23:12:43 +000032203 done
cristy3ed852e2009-09-05 21:47:34 +000032204IFS=$as_save_IFS
32205
32206 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32207 ;;
32208esac
32209fi
32210WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32211if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032213$as_echo "$WMFDecodeDelegate" >&6; }
32214else
cristy8b350f62009-11-15 23:12:43 +000032215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032216$as_echo "no" >&6; }
32217fi
32218
32219
32220# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32221set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032224if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032225 $as_echo_n "(cached) " >&6
32226else
32227 case $WWWDecodeDelegate in
32228 [\\/]* | ?:[\\/]*)
32229 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32230 ;;
32231 *)
32232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32233for as_dir in $PATH
32234do
32235 IFS=$as_save_IFS
32236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32239 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241 break 2
32242 fi
32243done
cristy8b350f62009-11-15 23:12:43 +000032244 done
cristy3ed852e2009-09-05 21:47:34 +000032245IFS=$as_save_IFS
32246
32247 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32248 ;;
32249esac
32250fi
32251WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32252if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032254$as_echo "$WWWDecodeDelegate" >&6; }
32255else
cristy8b350f62009-11-15 23:12:43 +000032256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032257$as_echo "no" >&6; }
32258fi
32259
32260
32261# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32262set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032265if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032266 $as_echo_n "(cached) " >&6
32267else
32268 case $XPSDelegate in
32269 [\\/]* | ?:[\\/]*)
32270 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32271 ;;
32272 *)
32273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32274for as_dir in $PATH
32275do
32276 IFS=$as_save_IFS
32277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32280 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282 break 2
32283 fi
32284done
cristy8b350f62009-11-15 23:12:43 +000032285 done
cristy3ed852e2009-09-05 21:47:34 +000032286IFS=$as_save_IFS
32287
32288 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32289 ;;
32290esac
32291fi
32292XPSDelegate=$ac_cv_path_XPSDelegate
32293if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032295$as_echo "$XPSDelegate" >&6; }
32296else
cristy8b350f62009-11-15 23:12:43 +000032297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032298$as_echo "no" >&6; }
32299fi
32300
32301
32302# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32303set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032306if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032307 $as_echo_n "(cached) " >&6
32308else
32309 case $ZipDelegate in
32310 [\\/]* | ?:[\\/]*)
32311 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32312 ;;
32313 *)
32314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32315for as_dir in $PATH
32316do
32317 IFS=$as_save_IFS
32318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32321 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323 break 2
32324 fi
32325done
cristy8b350f62009-11-15 23:12:43 +000032326 done
cristy3ed852e2009-09-05 21:47:34 +000032327IFS=$as_save_IFS
32328
32329 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32330 ;;
32331esac
32332fi
32333ZipDelegate=$ac_cv_path_ZipDelegate
32334if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032336$as_echo "$ZipDelegate" >&6; }
32337else
cristy8b350f62009-11-15 23:12:43 +000032338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032339$as_echo "no" >&6; }
32340fi
32341
32342
32343
32344# Prefer lpr to lp; lp needs options tacked on.
32345if test "$LPRDelegate" != no; then
32346 PrintDelegate="$LPRDelegate"
32347else
32348 PrintDelegate="$LPDelegate -c -s"
32349fi
32350
32351
32352# Installed ImageMagick utiltity paths
32353ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32354DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32355MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32356
32357# Set delegate booleans
32358have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32359have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32360have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32361have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32362have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032363have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032364have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32365have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
32366have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
32367have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32368have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32369
32370#
32371# Test for font directories
32372#
32373type_include_files=''
32374
cristy430a7312010-01-21 20:44:04 +000032375# Dejavu fonts.
32376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32377$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32378dejavu_font_dir=''
32379if test "${with_dejavu_font_dir}" != 'default'; then
32380 dejavu_font_dir="${with_dejavu_font_dir}/"
32381else
32382 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32383 if test -f "${font_dir}DejaVuSerif.ttf"; then
32384 dejavu_font_dir="${font_dir}"
32385 break 1
32386 fi
32387 done
32388fi
32389if test "${dejavu_font_dir}x" != 'x'; then
32390 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32392$as_echo "$dejavu_font_dir" >&6; }
32393else
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32395$as_echo "not found!" >&6; };
32396fi
32397
32398
cristy3ed852e2009-09-05 21:47:34 +000032399# Windows
32400windows_font_dir=''
32401if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32402 windows_font_dir="${with_windows_font_dir}/"
32403fi
cristy430a7312010-01-21 20:44:04 +000032404if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032405 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32406 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32407 fi
32408 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32409 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32410 fi
32411 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32412 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32413 fi
32414fi
cristy430a7312010-01-21 20:44:04 +000032415if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032416 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32417fi
32418
32419
32420# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032422$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32423ghostscript_font_dir=''
32424if test "${with_gs_font_dir}" != 'default'; then
32425 ghostscript_font_dir="${with_gs_font_dir}/"
32426else
32427 if test "${native_win32_build}" = 'yes'; then
32428 # Native Windows Build
32429 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32430 if test -f "${font_dir}a010013l.pfb"; then
32431 ghostscript_font_dir="$font_dir"
32432 break 1
32433 fi
32434 done
32435 if test "${PSDelegate}" != 'gswin32c'; then
32436 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32437 fi
32438 else
32439 # Linux / Mac OS X / Unix Build
32440 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
32441 if test -f "${font_dir}a010013l.pfb"; then
32442 ghostscript_font_dir="${font_dir}"
32443 break 1
32444 fi
32445 done
32446 if test "${ghostscript_font_dir}x" = 'x'; then
32447 if test "$PSDelegate" != 'gs'; then
32448 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32449 fi
32450 fi
32451 fi
32452fi
32453if test "${ghostscript_font_dir}x" != 'x'; then
32454 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032456$as_echo "$ghostscript_font_dir" >&6; }
32457else
cristy8b350f62009-11-15 23:12:43 +000032458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032459$as_echo "not found!" >&6; };
32460fi
32461
32462case "${build_os}" in
32463 mingw* )
32464 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32465 ;;
32466esac
32467
32468
32469
32470#
32471# Handle case where user doesn't want frozen paths
32472#
32473if test "$with_frozenpaths" != 'yes'; then
32474 # Re-set delegate definitions to default (no paths)
32475 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032476 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32477 BZIPDelegate="$BZIPDelegateDefault"
32478 BrowseDelegate="$BrowseDelegateDefault"
32479 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32480 CatDelegate="$CatDelegateDefault"
32481 ConvertDelegate="$ConvertDelegateDefault"
32482 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32483 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32484 EchoDelegate="$EchoDelegateDefault"
32485 EditorDelegate="$EditorDelegateDefault"
32486 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32487 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32488 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32489 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32490 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32491 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32492 LPDelegate="$LPDelegateDefault"
32493 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32494 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32495 LaunchDelegate="$LaunchDelegateDefault"
32496 MANDelegate="$MANDelegateDefault"
32497 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32498 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032499 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032500 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32501 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032502 PCLDelegate="$PCLDelegateDefault"
32503 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32504 POVDelegate="$POVDelegateDefault"
32505 PSDelegate="$PSDelegateDefault"
32506 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
32507 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32508 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032509 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032510 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32511 ShowImageDelegate="$ShowImageDelegateDefault"
32512 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032513 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000032514 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032515 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32516 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32517 XPSDelegate="$XPSDelegateDefault"
32518 ZipDelegate="$ZipDelegateDefault"
32519fi
32520
32521# Delegate substitutions
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
cristy935c86e2010-06-05 23:50:07 +000032564
cristy5ac9ac82010-07-29 13:24:24 +000032565
cristy3ed852e2009-09-05 21:47:34 +000032566#
32567# RPM support.
32568#
32569RPM=''
32570for ac_prog in gnutar gtar tar
32571do
32572 # Extract the first word of "$ac_prog", so it can be a program name with args.
32573set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032575$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032576if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032577 $as_echo_n "(cached) " >&6
32578else
32579 if test -n "$TAR"; then
32580 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32581else
32582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32583for as_dir in $PATH
32584do
32585 IFS=$as_save_IFS
32586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32589 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032591 break 2
32592 fi
32593done
cristy8b350f62009-11-15 23:12:43 +000032594 done
cristy3ed852e2009-09-05 21:47:34 +000032595IFS=$as_save_IFS
32596
32597fi
32598fi
32599TAR=$ac_cv_prog_TAR
32600if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo "$TAR" >&6; }
32603else
cristy8b350f62009-11-15 23:12:43 +000032604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032605$as_echo "no" >&6; }
32606fi
32607
32608
32609 test -n "$TAR" && break
32610done
32611
32612for ac_prog in perl
32613do
32614 # Extract the first word of "$ac_prog", so it can be a program name with args.
32615set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032618if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032619 $as_echo_n "(cached) " >&6
32620else
32621 if test -n "$PERL"; then
32622 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32623else
32624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32625for as_dir in $PATH
32626do
32627 IFS=$as_save_IFS
32628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32631 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633 break 2
32634 fi
32635done
cristy8b350f62009-11-15 23:12:43 +000032636 done
cristy3ed852e2009-09-05 21:47:34 +000032637IFS=$as_save_IFS
32638
32639fi
32640fi
32641PERL=$ac_cv_prog_PERL
32642if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032644$as_echo "$PERL" >&6; }
32645else
cristy8b350f62009-11-15 23:12:43 +000032646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647$as_echo "no" >&6; }
32648fi
32649
32650
32651 test -n "$PERL" && break
32652done
32653
32654for ac_prog in rpmbuild rpm
32655do
32656 # Extract the first word of "$ac_prog", so it can be a program name with args.
32657set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032660if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032661 $as_echo_n "(cached) " >&6
32662else
32663 if test -n "$RPM"; then
32664 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32665else
32666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32667for as_dir in $PATH
32668do
32669 IFS=$as_save_IFS
32670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32673 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675 break 2
32676 fi
32677done
cristy8b350f62009-11-15 23:12:43 +000032678 done
cristy3ed852e2009-09-05 21:47:34 +000032679IFS=$as_save_IFS
32680
32681fi
32682fi
32683RPM=$ac_cv_prog_RPM
32684if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686$as_echo "$RPM" >&6; }
32687else
cristy8b350f62009-11-15 23:12:43 +000032688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689$as_echo "no" >&6; }
32690fi
32691
32692
32693 test -n "$RPM" && break
32694done
32695
32696
cristy73bd4a52010-10-05 11:24:23 +000032697ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32698
32699
32700AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32701
32702
32703AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32704
32705
32706AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32707
32708
32709 if test "x$RPM" != "x" ; then
32710 RPM_DELEGATE_TRUE=
32711 RPM_DELEGATE_FALSE='#'
32712else
32713 RPM_DELEGATE_TRUE='#'
32714 RPM_DELEGATE_FALSE=
32715fi
32716
cristy3ed852e2009-09-05 21:47:34 +000032717
32718#
32719# 7ZIP support (http://p7zip.sourceforge.net/)
32720#
32721P7ZIP=''
32722for ac_prog in 7za
32723do
32724 # Extract the first word of "$ac_prog", so it can be a program name with args.
32725set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032728if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032729 $as_echo_n "(cached) " >&6
32730else
32731 if test -n "$P7ZIP"; then
32732 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32733else
32734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32735for as_dir in $PATH
32736do
32737 IFS=$as_save_IFS
32738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32741 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743 break 2
32744 fi
32745done
cristy8b350f62009-11-15 23:12:43 +000032746 done
cristy3ed852e2009-09-05 21:47:34 +000032747IFS=$as_save_IFS
32748
32749fi
32750fi
32751P7ZIP=$ac_cv_prog_P7ZIP
32752if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032754$as_echo "$P7ZIP" >&6; }
32755else
cristy8b350f62009-11-15 23:12:43 +000032756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032757$as_echo "no" >&6; }
32758fi
32759
32760
32761 test -n "$P7ZIP" && break
32762done
32763
32764
cristy73bd4a52010-10-05 11:24:23 +000032765 if test "x$P7ZIP" != "x" ; then
32766 P7ZIP_DELEGATE_TRUE=
32767 P7ZIP_DELEGATE_FALSE='#'
32768else
32769 P7ZIP_DELEGATE_TRUE='#'
32770 P7ZIP_DELEGATE_FALSE=
32771fi
32772
cristy3ed852e2009-09-05 21:47:34 +000032773
32774#
32775# ZIP support (http://www.info-zip.org/Zip.html)
32776#
32777ZIP=''
32778for ac_prog in zip
32779do
32780 # Extract the first word of "$ac_prog", so it can be a program name with args.
32781set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032783$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032784if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032785 $as_echo_n "(cached) " >&6
32786else
32787 if test -n "$ZIP"; then
32788 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32789else
32790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32791for as_dir in $PATH
32792do
32793 IFS=$as_save_IFS
32794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32797 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032799 break 2
32800 fi
32801done
cristy8b350f62009-11-15 23:12:43 +000032802 done
cristy3ed852e2009-09-05 21:47:34 +000032803IFS=$as_save_IFS
32804
32805fi
32806fi
32807ZIP=$ac_cv_prog_ZIP
32808if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032810$as_echo "$ZIP" >&6; }
32811else
cristy8b350f62009-11-15 23:12:43 +000032812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813$as_echo "no" >&6; }
32814fi
32815
32816
32817 test -n "$ZIP" && break
32818done
32819
32820
cristy73bd4a52010-10-05 11:24:23 +000032821 if test "x$ZIP" != "x" ; then
32822 ZIP_DELEGATE_TRUE=
32823 ZIP_DELEGATE_FALSE='#'
32824else
32825 ZIP_DELEGATE_TRUE='#'
32826 ZIP_DELEGATE_FALSE=
32827fi
32828
cristy3ed852e2009-09-05 21:47:34 +000032829
32830#
32831# GhostPCL related configuration.
32832#
32833PCLColorDevice=ppmraw
32834PCLCMYKDevice=bmpsep8
32835PCLMonoDevice=pbmraw
32836if test -z "$PCLVersion"; then
32837 PCLVersion='unknown'
32838fi
32839if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032845$as_echo "" >&6; }
32846 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032848$as_echo_n "checking for pcl color device... " >&6; }
32849 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32850 :
32851 else
32852 PCLColorDevice=ppmraw
32853 fi
cristy8b350f62009-11-15 23:12:43 +000032854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032855$as_echo "$PCLColorDevice" >&6; }
32856
32857 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859$as_echo_n "checking for pcl CMYK device... " >&6; }
32860 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32861 :
32862 else
32863 PCLCMYKDevice=$PCLColorDevice
32864 fi
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$PCLCMYKDevice" >&6; }
32867
32868 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo_n "checking for pcl mono device... " >&6; }
32871 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32872 :
32873 else
32874 PCLMonoDevice=$PCLColorDevice
32875 fi
cristy8b350f62009-11-15 23:12:43 +000032876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo "$PCLMonoDevice" >&6; }
32878fi
32879
32880
32881
32882
32883
32884
32885#
32886# GhostXPS related configuration.
32887#
32888XPSColorDevice=ppmraw
32889XPSCMYKDevice=bmpsep8
32890XPSMonoDevice=pbmraw
32891if test -z "$XPSVersion"; then
32892 XPSVersion='unknown'
32893fi
32894if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032896$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo "" >&6; }
32901 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032903$as_echo_n "checking for xps color device... " >&6; }
32904 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32905 :
32906 else
32907 XPSColorDevice=ppmraw
32908 fi
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "$XPSColorDevice" >&6; }
32911
32912 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo_n "checking for xps CMYK device... " >&6; }
32915 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32916 :
32917 else
32918 XPSCMYKDevice=$XPSColorDevice
32919 fi
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo "$XPSCMYKDevice" >&6; }
32922
32923 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo_n "checking for xps mono device... " >&6; }
32926 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32927 :
32928 else
32929 XPSMonoDevice=$XPSColorDevice
32930 fi
cristy8b350f62009-11-15 23:12:43 +000032931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo "$XPSMonoDevice" >&6; }
32933fi
32934
32935
32936
32937
32938
32939
32940#
32941# Ghostscript related configuration.
32942#
cristya97426c2011-02-04 01:41:27 +000032943GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032944GSColorDevice=pnmraw
32945GSCMYKDevice=pam
32946GSMonoDevice=pbmraw
32947GSPDFDevice=pdfwrite
32948GSPSDevice=pswrite
32949GSEPSDevice=epswrite
32950GSVersion='unknown'
32951if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032957$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959$as_echo_n "checking for Ghostscript version... " >&6; }
32960 if GSVersion=`$PSDelegate --version`; then
32961 :
32962 else
32963 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32964 fi
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo "$GSVersion" >&6; }
32967
32968 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo_n "checking for gs alpha device... " >&6; }
32971 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32972 :
32973 else
32974 GSAlphaDevice=pnmraw
32975 fi
cristy8b350f62009-11-15 23:12:43 +000032976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032977$as_echo "$GSAlphaDevice" >&6; }
32978
32979 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032981$as_echo_n "checking for gs color device... " >&6; }
32982 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32983 :
32984 else
32985 GSColorDevice=pnmraw
32986 fi
cristy8b350f62009-11-15 23:12:43 +000032987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032988$as_echo "$GSColorDevice" >&6; }
32989
32990 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo_n "checking for gs CMYK device... " >&6; }
32993 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32994 :
32995 else
32996 GSCMYKDevice=bmpsep8
32997 fi
cristy8b350f62009-11-15 23:12:43 +000032998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo "$GSCMYKDevice" >&6; }
33000
33001 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo_n "checking for gs mono device... " >&6; }
33004 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33005 :
33006 else
33007 GSMonoDevice=$GSColorDevice
33008 fi
cristy8b350f62009-11-15 23:12:43 +000033009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010$as_echo "$GSMonoDevice" >&6; }
33011
33012 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo_n "checking for gs PDF writing device... " >&6; }
33015 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33016 :
33017 else
33018 GSPDFDevice=nodevice
33019 fi
cristy8b350f62009-11-15 23:12:43 +000033020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo "$GSPDFDevice" >&6; }
33022
33023 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025$as_echo_n "checking for gs PS writing device... " >&6; }
33026 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33027 :
33028 else
33029 GSPSDevice=nodevice
33030 fi
cristy8b350f62009-11-15 23:12:43 +000033031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032$as_echo "$GSPSDevice" >&6; }
33033
33034 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo_n "checking for gs EPS writing device... " >&6; }
33037 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33038 :
33039 else
33040 GSEPSDevice=nodevice
33041 fi
cristy8b350f62009-11-15 23:12:43 +000033042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043$as_echo "$GSEPSDevice" >&6; }
33044fi
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055#
33056# PerlMagick-related configuration
33057#
33058
33059# Look for PERL if PerlMagick requested
33060# If name/path of desired PERL interpreter is specified, look for that one first
33061have_perl='no'
33062if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo "" >&6; }
33069 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033072if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033073 $as_echo_n "(cached) " >&6
33074else
33075 ac_cv_path_PERL="$with_perl"
33076fi
cristy8b350f62009-11-15 23:12:43 +000033077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo "$ac_cv_path_PERL" >&6; };
33079 PERL=$ac_cv_path_PERL
33080 have_perl="$ac_cv_path_PERL"
33081 else
33082 for ac_prog in perl perl5
33083do
33084 # Extract the first word of "$ac_prog", so it can be a program name with args.
33085set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033088if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033089 $as_echo_n "(cached) " >&6
33090else
33091 case $PERL in
33092 [\\/]* | ?:[\\/]*)
33093 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33094 ;;
33095 *)
33096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33097for as_dir in $PATH
33098do
33099 IFS=$as_save_IFS
33100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33103 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105 break 2
33106 fi
33107done
cristy8b350f62009-11-15 23:12:43 +000033108 done
cristy3ed852e2009-09-05 21:47:34 +000033109IFS=$as_save_IFS
33110
33111 ;;
33112esac
33113fi
33114PERL=$ac_cv_path_PERL
33115if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117$as_echo "$PERL" >&6; }
33118else
cristy8b350f62009-11-15 23:12:43 +000033119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033120$as_echo "no" >&6; }
33121fi
33122
33123
33124 test -n "$PERL" && break
33125done
33126 if test "$ac_cv_path_PERL"; then
33127 have_perl="$ac_cv_path_PERL"
33128 fi
33129 fi
33130fi
33131
cristy949301e2010-01-06 01:38:40 +000033132if test "$with_perl" != 'yes' ; then
33133 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33134fi
33135
33136PERL_SUPPORTS_DESTDIR='no'
33137
cristy3ed852e2009-09-05 21:47:34 +000033138with_perl_static='no'
33139with_perl_dynamic='no'
33140if test "$have_perl" != 'no'; then
33141 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33142 with_perl_static='yes'
33143 fi
33144 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33145 with_perl_dynamic='yes'
33146 fi
33147 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033148
33149
33150
33151
33152 if test -n "$PERL"; then :
33153
33154 ax_perl_version="5.8.1"
33155
33156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33157$as_echo_n "checking for perl version... " >&6; }
33158
33159 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33160
33161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33162$as_echo "$perl_version" >&6; }
33163
33164 PERL_VERSION=$perl_version
33165
33166
33167
33168
33169
33170 # Used to indicate true or false condition
33171 ax_compare_version=false
33172
33173 # Convert the two version strings to be compared into a format that
33174 # allows a simple string comparison. The end result is that a version
33175 # string of the form 1.12.5-r617 will be converted to the form
33176 # 0001001200050617. In other words, each number is zero padded to four
33177 # digits, and non digits are removed.
33178
33179 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33180 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33181 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33182 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33183 -e 's/[^0-9]//g'`
33184
33185
33186 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33187 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33188 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33189 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33190 -e 's/[^0-9]//g'`
33191
33192
33193 ax_compare_version=`echo "x$ax_compare_version_A
33194x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33195
33196
33197
33198 if test "$ax_compare_version" = "true" ; then
33199
33200 :
33201 PERL_SUPPORTS_DESTDIR='yes'
33202
33203 else
33204 :
33205 PERL_SUPPORTS_DESTDIR='no'
33206
33207 fi
33208
33209
33210else
33211
33212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33213$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33214 PERL_SUPPORTS_DESTDIR='no'
33215
cristy3ed852e2009-09-05 21:47:34 +000033216fi
cristy73bd4a52010-10-05 11:24:23 +000033217
33218fi
33219 if test "$have_perl" != 'no'; then
33220 WITH_PERL_TRUE=
33221 WITH_PERL_FALSE='#'
33222else
33223 WITH_PERL_TRUE='#'
33224 WITH_PERL_FALSE=
33225fi
33226
33227 if test $with_perl_static = 'yes'; then
33228 WITH_PERL_STATIC_TRUE=
33229 WITH_PERL_STATIC_FALSE='#'
33230else
33231 WITH_PERL_STATIC_TRUE='#'
33232 WITH_PERL_STATIC_FALSE=
33233fi
33234
33235 if test $with_perl_dynamic = 'yes'; then
33236 WITH_PERL_DYNAMIC_TRUE=
33237 WITH_PERL_DYNAMIC_FALSE='#'
33238else
33239 WITH_PERL_DYNAMIC_TRUE='#'
33240 WITH_PERL_DYNAMIC_FALSE=
33241fi
33242
cristy3ed852e2009-09-05 21:47:34 +000033243
33244
33245# Determine path to pick up MagickCore library from for use with building PerlMagick
33246MAGICKCORE_PATH="${LIB_DIR}"
33247if test $with_perl_static = 'yes'; then
33248 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33249 libtool_objdir=$objdir
33250
33251 # Linker search path to library, followed by -lMagickCore
33252 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33253fi
33254
33255
33256# Create a simple string containing format names for all delegate libraries
33257DELEGATES=''
33258if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33259if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33260if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33261if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33262if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33263if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33264if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33265if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33266if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33267if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33268if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33269if test "$have_jpeg" = 'yes'; then
33270 DELEGATES="$DELEGATES jpeg";
33271 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33272fi
33273if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033274if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033275if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33276if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033277if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033278if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33279if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33280if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33281if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33282if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33283if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33284if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33285if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33286if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33287
33288
33289
33290#
33291# Handle special compiler flags
33292#
33293
33294# Add '-p' if prof source profiling support enabled
33295if test "$enable_prof" = 'yes'; then
33296 CFLAGS="-p $CFLAGS"
33297 CXXFLAGS="-p $CXXFLAGS"
33298 LDFLAGS="-p $LDFLAGS"
33299fi
33300
33301# Add '-pg' if gprof source profiling support enabled
33302if test "$enable_gprof" = 'yes'; then
33303 CFLAGS="-pg $CFLAGS"
33304 CXXFLAGS="-pg $CXXFLAGS"
33305 LDFLAGS="-pg $LDFLAGS"
33306fi
33307
33308# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33309# This is a gcc-specific feature
33310if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033312$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033313if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033314 $as_echo_n "(cached) " >&6
33315else
33316 ac_check_lib_save_LIBS=$LIBS
33317LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033319/* end confdefs.h. */
33320
33321/* Override any GCC internal prototype to avoid an error.
33322 Use char because int might match the return type of a GCC
33323 builtin and then its argument prototype would still apply. */
33324#ifdef __cplusplus
33325extern "C"
33326#endif
33327char _gcov_init ();
33328int
33329main ()
33330{
33331return _gcov_init ();
33332 ;
33333 return 0;
33334}
33335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033337 ac_cv_lib_gcov__gcov_init=yes
33338else
cristy8b350f62009-11-15 23:12:43 +000033339 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033340fi
cristy8b350f62009-11-15 23:12:43 +000033341rm -f core conftest.err conftest.$ac_objext \
33342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033343LIBS=$ac_check_lib_save_LIBS
33344fi
cristy8b350f62009-11-15 23:12:43 +000033345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033346$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033347if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033348 cat >>confdefs.h <<_ACEOF
33349#define HAVE_LIBGCOV 1
33350_ACEOF
33351
33352 LIBS="-lgcov $LIBS"
33353
33354fi
33355
cristy8b350f62009-11-15 23:12:43 +000033356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033357$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033358if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033359 $as_echo_n "(cached) " >&6
33360else
33361 ac_check_lib_save_LIBS=$LIBS
33362LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033364/* end confdefs.h. */
33365
33366/* Override any GCC internal prototype to avoid an error.
33367 Use char because int might match the return type of a GCC
33368 builtin and then its argument prototype would still apply. */
33369#ifdef __cplusplus
33370extern "C"
33371#endif
33372char __gcov_init ();
33373int
33374main ()
33375{
33376return __gcov_init ();
33377 ;
33378 return 0;
33379}
33380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033382 ac_cv_lib_gcov___gcov_init=yes
33383else
cristy8b350f62009-11-15 23:12:43 +000033384 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033385fi
cristy8b350f62009-11-15 23:12:43 +000033386rm -f core conftest.err conftest.$ac_objext \
33387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033388LIBS=$ac_check_lib_save_LIBS
33389fi
cristy8b350f62009-11-15 23:12:43 +000033390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033392if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033393 cat >>confdefs.h <<_ACEOF
33394#define HAVE_LIBGCOV 1
33395_ACEOF
33396
33397 LIBS="-lgcov $LIBS"
33398
33399fi
33400
33401 case "$target_os" in
33402 darwin*)
33403 OSX_GCOV_LDFLAG="-Wl,-single_module"
33404 ;;
33405 *)
33406 OSX_GCOV_LDFLAG=""
33407 ;;
33408 esac
33409
33410 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33411 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33412 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33413fi
33414
33415#
33416# Build library dependency list for libMagickCore
33417#
33418
33419MAGICK_LIBLTDL='' # Libltdl for build
33420MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33421MAGICK_LTDLDEPS='' # extra libltdl dependencies
33422if test "$with_ltdl" != 'no'
33423then
33424 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33425 MAGICK_API_LIBLTDL='-lltdl'
33426 fi
33427 MAGICK_LIBLTDL=${LIBLTDL}
33428 MAGICK_LTDLDEPS=${LTDLDEPS}
33429fi
33430
33431
33432
33433if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033434 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 +000033435else
cristyfbb0ef02010-12-19 02:32:11 +000033436 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000033437fi
33438
33439
33440#
33441# Remove extraneous spaces from output variables (asthetic)
33442#
33443X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33444X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33445X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33446X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33447
33448CC=`echo $CC | sed -e 's/ */ /g'`
33449CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33450CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33451CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33452DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33453DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33454LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33455TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33456MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33457#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33458
33459# Pass only user-provided LIBS as "global" libraries
33460LIBS=$USER_LIBS
33461
33462#AC_SUBST(CPPFLAGS)
33463
33464#AC_SUBST(LDFLAGS)
33465#AC_SUBST(X_PRE_LIBS)
33466#AC_SUBST(X_LIBS)
33467#AC_SUBST(X_EXTRA_LIBS)
33468
33469MAGICK_CFLAGS=$CFLAGS
33470MAGICK_CXXFLAGS="$CXXFLAGS"
33471MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33472MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33473MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33474MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33475
33476
33477
33478
33479
33480
33481
33482
cristyfd9dcd42010-08-08 18:07:02 +000033483
cristy3ed852e2009-09-05 21:47:34 +000033484# Set configured scripts to executable.
33485ac_config_commands="$ac_config_commands default"
33486
33487ac_config_commands="$ac_config_commands MagickCore-config.in"
33488
33489ac_config_commands="$ac_config_commands Magick-config.in"
33490
33491ac_config_commands="$ac_config_commands MagickWand-config.in"
33492
33493ac_config_commands="$ac_config_commands Wand-config.in"
33494
33495ac_config_commands="$ac_config_commands Magick++-config.in"
33496
33497ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33498
33499
cristy8b350f62009-11-15 23:12:43 +000033500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033501$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "Update ImageMagick configuration" >&6; }
33504cat >confcache <<\_ACEOF
33505# This file is a shell script that caches the results of configure
33506# tests run on this system so they can be shared between configure
33507# scripts and configure runs, see configure's option --config-cache.
33508# It is not useful on other systems. If it contains results you don't
33509# want to keep, you may remove or edit it.
33510#
33511# config.status only pays attention to the cache file if you give it
33512# the --recheck option to rerun configure.
33513#
33514# `ac_cv_env_foo' variables (set or unset) will be overridden when
33515# loading this file, other *unset* `ac_cv_foo' will be assigned the
33516# following values.
33517
33518_ACEOF
33519
33520# The following way of writing the cache mishandles newlines in values,
33521# but we know of no workaround that is simple, portable, and efficient.
33522# So, we kill variables containing newlines.
33523# Ultrix sh set writes to stderr and can't be redirected directly,
33524# and sets the high bit in the cache file unless we assign to the vars.
33525(
33526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33527 eval ac_val=\$$ac_var
33528 case $ac_val in #(
33529 *${as_nl}*)
33530 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33533 esac
33534 case $ac_var in #(
33535 _ | IFS | as_nl) ;; #(
33536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033537 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033538 esac ;;
33539 esac
33540 done
33541
33542 (set) 2>&1 |
33543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33544 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033545 # `set' does not quote correctly, so add quotes: double-quote
33546 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033547 sed -n \
33548 "s/'/'\\\\''/g;
33549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33550 ;; #(
33551 *)
33552 # `set' quotes correctly as required by POSIX, so do not add quotes.
33553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33554 ;;
33555 esac |
33556 sort
33557) |
33558 sed '
33559 /^ac_cv_env_/b end
33560 t clear
33561 :clear
33562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33563 t end
33564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33565 :end' >>confcache
33566if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33567 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033568 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033570$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033571 if test ! -f "$cache_file" || test -h "$cache_file"; then
33572 cat confcache >"$cache_file"
33573 else
33574 case $cache_file in #(
33575 */* | ?:*)
33576 mv -f confcache "$cache_file"$$ &&
33577 mv -f "$cache_file"$$ "$cache_file" ;; #(
33578 *)
33579 mv -f confcache "$cache_file" ;;
33580 esac
33581 fi
33582 fi
cristy3ed852e2009-09-05 21:47:34 +000033583 else
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33586 fi
33587fi
33588rm -f confcache
33589
33590test "x$prefix" = xNONE && prefix=$ac_default_prefix
33591# Let make expand exec_prefix.
33592test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33593
33594DEFS=-DHAVE_CONFIG_H
33595
33596ac_libobjs=
33597ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033598U=
cristy3ed852e2009-09-05 21:47:34 +000033599for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33600 # 1. Remove the extension, and $U if already installed.
33601 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33602 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33604 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033605 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33606 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033607done
33608LIBOBJS=$ac_libobjs
33609
33610LTLIBOBJS=$ac_ltlibobjs
33611
33612
cristy73bd4a52010-10-05 11:24:23 +000033613 if test -n "$EXEEXT"; then
33614 am__EXEEXT_TRUE=
33615 am__EXEEXT_FALSE='#'
33616else
33617 am__EXEEXT_TRUE='#'
33618 am__EXEEXT_FALSE=
33619fi
cristy3ed852e2009-09-05 21:47:34 +000033620
cristy73bd4a52010-10-05 11:24:23 +000033621if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033622 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033623Usually this means the macro was only invoked conditionally." "$LINENO" 5
33624fi
33625if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033626 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033627Usually this means the macro was only invoked conditionally." "$LINENO" 5
33628fi
33629if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033630 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033631Usually this means the macro was only invoked conditionally." "$LINENO" 5
33632fi
33633if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033634 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033635Usually this means the macro was only invoked conditionally." "$LINENO" 5
33636fi
33637if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033638 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033639Usually this means the macro was only invoked conditionally." "$LINENO" 5
33640fi
33641if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033642 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033643Usually this means the macro was only invoked conditionally." "$LINENO" 5
33644fi
33645if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033646 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033647Usually this means the macro was only invoked conditionally." "$LINENO" 5
33648fi
33649if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033650 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033651Usually this means the macro was only invoked conditionally." "$LINENO" 5
33652fi
cristy73bd4a52010-10-05 11:24:23 +000033653if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033654 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033655Usually this means the macro was only invoked conditionally." "$LINENO" 5
33656fi
33657if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033658 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033659Usually this means the macro was only invoked conditionally." "$LINENO" 5
33660fi
33661LT_CONFIG_H=config/config.h
33662
33663 _ltdl_libobjs=
33664 _ltdl_ltlibobjs=
33665 if test -n "$_LT_LIBOBJS"; then
33666 # Remove the extension.
33667 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33668 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33669 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33670 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33671 done
33672 fi
33673 ltdl_LIBOBJS=$_ltdl_libobjs
33674
33675 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33676
33677
33678if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033679 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033680Usually this means the macro was only invoked conditionally." "$LINENO" 5
33681fi
33682if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033683 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033684Usually this means the macro was only invoked conditionally." "$LINENO" 5
33685fi
33686if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033687 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033688Usually this means the macro was only invoked conditionally." "$LINENO" 5
33689fi
33690if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033691 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033692Usually this means the macro was only invoked conditionally." "$LINENO" 5
33693fi
33694
33695if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033696 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033697Usually this means the macro was only invoked conditionally." "$LINENO" 5
33698fi
33699if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033700 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033701Usually this means the macro was only invoked conditionally." "$LINENO" 5
33702fi
33703if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033704 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033705Usually this means the macro was only invoked conditionally." "$LINENO" 5
33706fi
33707if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033708 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033709Usually this means the macro was only invoked conditionally." "$LINENO" 5
33710fi
33711if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033712 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033713Usually this means the macro was only invoked conditionally." "$LINENO" 5
33714fi
33715if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033716 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033717Usually this means the macro was only invoked conditionally." "$LINENO" 5
33718fi
33719if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033720 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033721Usually this means the macro was only invoked conditionally." "$LINENO" 5
33722fi
33723if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033724 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033725Usually this means the macro was only invoked conditionally." "$LINENO" 5
33726fi
33727if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033728 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033729Usually this means the macro was only invoked conditionally." "$LINENO" 5
33730fi
33731if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033732 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033733Usually this means the macro was only invoked conditionally." "$LINENO" 5
33734fi
33735if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033736 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033737Usually this means the macro was only invoked conditionally." "$LINENO" 5
33738fi
33739if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033740 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033741Usually this means the macro was only invoked conditionally." "$LINENO" 5
33742fi
33743if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033744 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033745Usually this means the macro was only invoked conditionally." "$LINENO" 5
33746fi
33747if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033748 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033749Usually this means the macro was only invoked conditionally." "$LINENO" 5
33750fi
33751if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033752 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033753Usually this means the macro was only invoked conditionally." "$LINENO" 5
33754fi
33755if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033756 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033757Usually this means the macro was only invoked conditionally." "$LINENO" 5
33758fi
33759if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033760 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033761Usually this means the macro was only invoked conditionally." "$LINENO" 5
33762fi
33763if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033764 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033765Usually this means the macro was only invoked conditionally." "$LINENO" 5
33766fi
33767if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033768 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033769Usually this means the macro was only invoked conditionally." "$LINENO" 5
33770fi
33771if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033772 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033773Usually this means the macro was only invoked conditionally." "$LINENO" 5
33774fi
cristyfbb0ef02010-12-19 02:32:11 +000033775if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33776 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33777Usually this means the macro was only invoked conditionally." "$LINENO" 5
33778fi
cristy73bd4a52010-10-05 11:24:23 +000033779if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033780 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033781Usually this means the macro was only invoked conditionally." "$LINENO" 5
33782fi
33783if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033784 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033785Usually this means the macro was only invoked conditionally." "$LINENO" 5
33786fi
33787if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033788 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033789Usually this means the macro was only invoked conditionally." "$LINENO" 5
33790fi
33791if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033792 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033793Usually this means the macro was only invoked conditionally." "$LINENO" 5
33794fi
33795if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033796 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033797Usually this means the macro was only invoked conditionally." "$LINENO" 5
33798fi
33799if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033800 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033801Usually this means the macro was only invoked conditionally." "$LINENO" 5
33802fi
33803if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033804 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033805Usually this means the macro was only invoked conditionally." "$LINENO" 5
33806fi
33807if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033808 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033809Usually this means the macro was only invoked conditionally." "$LINENO" 5
33810fi
33811if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033812 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033813Usually this means the macro was only invoked conditionally." "$LINENO" 5
33814fi
33815if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033816 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033817Usually this means the macro was only invoked conditionally." "$LINENO" 5
33818fi
33819if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033820 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033821Usually this means the macro was only invoked conditionally." "$LINENO" 5
33822fi
33823if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033824 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033825Usually this means the macro was only invoked conditionally." "$LINENO" 5
33826fi
33827if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033828 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033829Usually this means the macro was only invoked conditionally." "$LINENO" 5
33830fi
cristy3ed852e2009-09-05 21:47:34 +000033831
cristyda16f162011-02-19 23:52:17 +000033832: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033833ac_write_fail=0
33834ac_clean_files_save=$ac_clean_files
33835ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033836{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033838as_write_fail=0
33839cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033840#! $SHELL
33841# Generated by $as_me.
33842# Run this file to recreate the current configuration.
33843# Compiler output produced by configure, useful for debugging
33844# configure, is in config.log if it exists.
33845
33846debug=false
33847ac_cs_recheck=false
33848ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033849
cristy8b350f62009-11-15 23:12:43 +000033850SHELL=\${CONFIG_SHELL-$SHELL}
33851export SHELL
33852_ASEOF
33853cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33854## -------------------- ##
33855## M4sh Initialization. ##
33856## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033857
33858# Be more Bourne compatible
33859DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033861 emulate sh
33862 NULLCMD=:
33863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33864 # is contrary to our usage. Disable this feature.
33865 alias -g '${1+"$@"}'='"$@"'
33866 setopt NO_GLOB_SUBST
33867else
cristy8b350f62009-11-15 23:12:43 +000033868 case `(set -o) 2>/dev/null` in #(
33869 *posix*) :
33870 set -o posix ;; #(
33871 *) :
33872 ;;
cristy3ed852e2009-09-05 21:47:34 +000033873esac
cristy3ed852e2009-09-05 21:47:34 +000033874fi
33875
33876
cristy3ed852e2009-09-05 21:47:34 +000033877as_nl='
33878'
33879export as_nl
33880# Printing a long string crashes Solaris 7 /usr/bin/printf.
33881as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33883as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033884# Prefer a ksh shell builtin over an external printf program on Solaris,
33885# but without wasting forks for bash or zsh.
33886if test -z "$BASH_VERSION$ZSH_VERSION" \
33887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33888 as_echo='print -r --'
33889 as_echo_n='print -rn --'
33890elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033891 as_echo='printf %s\n'
33892 as_echo_n='printf %s'
33893else
33894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33896 as_echo_n='/usr/ucb/echo -n'
33897 else
33898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33899 as_echo_n_body='eval
33900 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033901 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033902 *"$as_nl"*)
33903 expr "X$arg" : "X\\(.*\\)$as_nl";
33904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33905 esac;
33906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33907 '
33908 export as_echo_n_body
33909 as_echo_n='sh -c $as_echo_n_body as_echo'
33910 fi
33911 export as_echo_body
33912 as_echo='sh -c $as_echo_body as_echo'
33913fi
33914
33915# The user is always right.
33916if test "${PATH_SEPARATOR+set}" != set; then
33917 PATH_SEPARATOR=:
33918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33920 PATH_SEPARATOR=';'
33921 }
33922fi
33923
cristy3ed852e2009-09-05 21:47:34 +000033924
33925# IFS
33926# We need space, tab and new line, in precisely that order. Quoting is
33927# there to prevent editors from complaining about space-tab.
33928# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33929# splitting by setting IFS to empty value.)
33930IFS=" "" $as_nl"
33931
33932# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033933as_myself=
cristy8b350f62009-11-15 23:12:43 +000033934case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033935 *[\\/]* ) as_myself=$0 ;;
33936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33937for as_dir in $PATH
33938do
33939 IFS=$as_save_IFS
33940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33942 done
cristy3ed852e2009-09-05 21:47:34 +000033943IFS=$as_save_IFS
33944
33945 ;;
33946esac
33947# We did not find ourselves, most probably we were run as `sh COMMAND'
33948# in which case we are not to be found in the path.
33949if test "x$as_myself" = x; then
33950 as_myself=$0
33951fi
33952if test ! -f "$as_myself"; then
33953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033954 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033955fi
33956
cristy8b350f62009-11-15 23:12:43 +000033957# Unset variables that we do not need and which cause bugs (e.g. in
33958# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33959# suppresses any "Segmentation fault" message there. '((' could
33960# trigger a bug in pdksh 5.2.14.
33961for as_var in BASH_ENV ENV MAIL MAILPATH
33962do eval test x\${$as_var+set} = xset \
33963 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033964done
33965PS1='$ '
33966PS2='> '
33967PS4='+ '
33968
33969# NLS nuisances.
33970LC_ALL=C
33971export LC_ALL
33972LANGUAGE=C
33973export LANGUAGE
33974
cristy8b350f62009-11-15 23:12:43 +000033975# CDPATH.
33976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33977
33978
cristy98dddb52010-11-04 00:30:15 +000033979# as_fn_error STATUS ERROR [LINENO LOG_FD]
33980# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033981# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33982# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033983# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033984as_fn_error ()
33985{
cristy98dddb52010-11-04 00:30:15 +000033986 as_status=$1; test $as_status -eq 0 && as_status=1
33987 if test "$4"; then
33988 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33989 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033990 fi
cristy98dddb52010-11-04 00:30:15 +000033991 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033992 as_fn_exit $as_status
33993} # as_fn_error
33994
33995
33996# as_fn_set_status STATUS
33997# -----------------------
33998# Set $? to STATUS, without forking.
33999as_fn_set_status ()
34000{
34001 return $1
34002} # as_fn_set_status
34003
34004# as_fn_exit STATUS
34005# -----------------
34006# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34007as_fn_exit ()
34008{
34009 set +e
34010 as_fn_set_status $1
34011 exit $1
34012} # as_fn_exit
34013
34014# as_fn_unset VAR
34015# ---------------
34016# Portably unset VAR.
34017as_fn_unset ()
34018{
34019 { eval $1=; unset $1;}
34020}
34021as_unset=as_fn_unset
34022# as_fn_append VAR VALUE
34023# ----------------------
34024# Append the text in VALUE to the end of the definition contained in VAR. Take
34025# advantage of any shell optimizations that allow amortized linear growth over
34026# repeated appends, instead of the typical quadratic growth present in naive
34027# implementations.
34028if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34029 eval 'as_fn_append ()
34030 {
34031 eval $1+=\$2
34032 }'
34033else
34034 as_fn_append ()
34035 {
34036 eval $1=\$$1\$2
34037 }
34038fi # as_fn_append
34039
34040# as_fn_arith ARG...
34041# ------------------
34042# Perform arithmetic evaluation on the ARGs, and store the result in the
34043# global $as_val. Take advantage of shells that can avoid forks. The arguments
34044# must be portable across $(()) and expr.
34045if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34046 eval 'as_fn_arith ()
34047 {
34048 as_val=$(( $* ))
34049 }'
34050else
34051 as_fn_arith ()
34052 {
34053 as_val=`expr "$@" || test $? -eq 1`
34054 }
34055fi # as_fn_arith
34056
34057
cristy3ed852e2009-09-05 21:47:34 +000034058if expr a : '\(a\)' >/dev/null 2>&1 &&
34059 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34060 as_expr=expr
34061else
34062 as_expr=false
34063fi
34064
34065if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34066 as_basename=basename
34067else
34068 as_basename=false
34069fi
34070
cristy8b350f62009-11-15 23:12:43 +000034071if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34072 as_dirname=dirname
34073else
34074 as_dirname=false
34075fi
cristy3ed852e2009-09-05 21:47:34 +000034076
cristy3ed852e2009-09-05 21:47:34 +000034077as_me=`$as_basename -- "$0" ||
34078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34079 X"$0" : 'X\(//\)$' \| \
34080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34081$as_echo X/"$0" |
34082 sed '/^.*\/\([^/][^/]*\)\/*$/{
34083 s//\1/
34084 q
34085 }
34086 /^X\/\(\/\/\)$/{
34087 s//\1/
34088 q
34089 }
34090 /^X\/\(\/\).*/{
34091 s//\1/
34092 q
34093 }
34094 s/.*/./; q'`
34095
cristy8b350f62009-11-15 23:12:43 +000034096# Avoid depending upon Character Ranges.
34097as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34099as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34100as_cr_digits='0123456789'
34101as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034102
34103ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034104case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034105-n*)
cristy8b350f62009-11-15 23:12:43 +000034106 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034107 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034108 xy) ECHO_C='\c';;
34109 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34110 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034111 esac;;
34112*)
34113 ECHO_N='-n';;
34114esac
cristy3ed852e2009-09-05 21:47:34 +000034115
34116rm -f conf$$ conf$$.exe conf$$.file
34117if test -d conf$$.dir; then
34118 rm -f conf$$.dir/conf$$.file
34119else
34120 rm -f conf$$.dir
34121 mkdir conf$$.dir 2>/dev/null
34122fi
34123if (echo >conf$$.file) 2>/dev/null; then
34124 if ln -s conf$$.file conf$$ 2>/dev/null; then
34125 as_ln_s='ln -s'
34126 # ... but there are two gotchas:
34127 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34128 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34129 # In both cases, we have to default to `cp -p'.
34130 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34131 as_ln_s='cp -p'
34132 elif ln conf$$.file conf$$ 2>/dev/null; then
34133 as_ln_s=ln
34134 else
34135 as_ln_s='cp -p'
34136 fi
34137else
34138 as_ln_s='cp -p'
34139fi
34140rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34141rmdir conf$$.dir 2>/dev/null
34142
cristy8b350f62009-11-15 23:12:43 +000034143
34144# as_fn_mkdir_p
34145# -------------
34146# Create "$as_dir" as a directory, including parents if necessary.
34147as_fn_mkdir_p ()
34148{
34149
34150 case $as_dir in #(
34151 -*) as_dir=./$as_dir;;
34152 esac
34153 test -d "$as_dir" || eval $as_mkdir_p || {
34154 as_dirs=
34155 while :; do
34156 case $as_dir in #(
34157 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34158 *) as_qdir=$as_dir;;
34159 esac
34160 as_dirs="'$as_qdir' $as_dirs"
34161 as_dir=`$as_dirname -- "$as_dir" ||
34162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34163 X"$as_dir" : 'X\(//\)[^/]' \| \
34164 X"$as_dir" : 'X\(//\)$' \| \
34165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34166$as_echo X"$as_dir" |
34167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34168 s//\1/
34169 q
34170 }
34171 /^X\(\/\/\)[^/].*/{
34172 s//\1/
34173 q
34174 }
34175 /^X\(\/\/\)$/{
34176 s//\1/
34177 q
34178 }
34179 /^X\(\/\).*/{
34180 s//\1/
34181 q
34182 }
34183 s/.*/./; q'`
34184 test -d "$as_dir" && break
34185 done
34186 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034187 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034188
34189
34190} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034191if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034192 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034193else
34194 test -d ./-p && rmdir ./-p
34195 as_mkdir_p=false
34196fi
34197
34198if test -x / >/dev/null 2>&1; then
34199 as_test_x='test -x'
34200else
34201 if ls -dL / >/dev/null 2>&1; then
34202 as_ls_L_option=L
34203 else
34204 as_ls_L_option=
34205 fi
34206 as_test_x='
34207 eval sh -c '\''
34208 if test -d "$1"; then
34209 test -d "$1/.";
34210 else
cristy8b350f62009-11-15 23:12:43 +000034211 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034212 -*)set "./$1";;
34213 esac;
cristy8b350f62009-11-15 23:12:43 +000034214 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034215 ???[sx]*):;;*)false;;esac;fi
34216 '\'' sh
34217 '
34218fi
34219as_executable_p=$as_test_x
34220
34221# Sed expression to map a string onto a valid CPP name.
34222as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34223
34224# Sed expression to map a string onto a valid variable name.
34225as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34226
34227
34228exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034229## ----------------------------------- ##
34230## Main body of $CONFIG_STATUS script. ##
34231## ----------------------------------- ##
34232_ASEOF
34233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034234
cristy8b350f62009-11-15 23:12:43 +000034235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34236# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034237# report actual input values of CONFIG_FILES etc. instead of their
34238# values after options handling.
34239ac_log="
cristy0805e062011-01-30 02:56:36 +000034240This file was extended by ImageMagick $as_me 6.6.7, which was
cristyda16f162011-02-19 23:52:17 +000034241generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034242
34243 CONFIG_FILES = $CONFIG_FILES
34244 CONFIG_HEADERS = $CONFIG_HEADERS
34245 CONFIG_LINKS = $CONFIG_LINKS
34246 CONFIG_COMMANDS = $CONFIG_COMMANDS
34247 $ $0 $@
34248
34249on `(hostname || uname -n) 2>/dev/null | sed 1q`
34250"
34251
34252_ACEOF
34253
34254case $ac_config_files in *"
34255"*) set x $ac_config_files; shift; ac_config_files=$*;;
34256esac
34257
34258case $ac_config_headers in *"
34259"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34260esac
34261
34262
34263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34264# Files that config.status was made for.
34265config_files="$ac_config_files"
34266config_headers="$ac_config_headers"
34267config_commands="$ac_config_commands"
34268
34269_ACEOF
34270
34271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34272ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034273\`$as_me' instantiates files and other configuration actions
34274from templates according to the current configuration. Unless the files
34275and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034276
cristy8b350f62009-11-15 23:12:43 +000034277Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034278
34279 -h, --help print this help, then exit
34280 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034281 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034282 -q, --quiet, --silent
34283 do not print progress messages
34284 -d, --debug don't remove temporary files
34285 --recheck update $as_me by reconfiguring in the same conditions
34286 --file=FILE[:TEMPLATE]
34287 instantiate the configuration file FILE
34288 --header=FILE[:TEMPLATE]
34289 instantiate the configuration header FILE
34290
34291Configuration files:
34292$config_files
34293
34294Configuration headers:
34295$config_headers
34296
34297Configuration commands:
34298$config_commands
34299
cristy8b350f62009-11-15 23:12:43 +000034300Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034301
34302_ACEOF
34303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034304ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034305ac_cs_version="\\
cristy0805e062011-01-30 02:56:36 +000034306ImageMagick config.status 6.6.7
cristyda16f162011-02-19 23:52:17 +000034307configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034308 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034309
cristy98dddb52010-11-04 00:30:15 +000034310Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034311This config.status script is free software; the Free Software Foundation
34312gives unlimited permission to copy, distribute and modify it."
34313
34314ac_pwd='$ac_pwd'
34315srcdir='$srcdir'
34316INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034317MKDIR_P='$MKDIR_P'
34318AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034319test -n "\$AWK" || AWK=awk
34320_ACEOF
34321
34322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34323# The default lists apply if the user does not specify any file.
34324ac_need_defaults=:
34325while test $# != 0
34326do
34327 case $1 in
cristyda16f162011-02-19 23:52:17 +000034328 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34331 ac_shift=:
34332 ;;
cristyda16f162011-02-19 23:52:17 +000034333 --*=)
34334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34335 ac_optarg=
34336 ac_shift=:
34337 ;;
cristy3ed852e2009-09-05 21:47:34 +000034338 *)
34339 ac_option=$1
34340 ac_optarg=$2
34341 ac_shift=shift
34342 ;;
34343 esac
34344
34345 case $ac_option in
34346 # Handling of the options.
34347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34348 ac_cs_recheck=: ;;
34349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34350 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034351 --config | --confi | --conf | --con | --co | --c )
34352 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034353 --debug | --debu | --deb | --de | --d | -d )
34354 debug=: ;;
34355 --file | --fil | --fi | --f )
34356 $ac_shift
34357 case $ac_optarg in
34358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034359 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034360 esac
cristy8b350f62009-11-15 23:12:43 +000034361 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034362 ac_need_defaults=false;;
34363 --header | --heade | --head | --hea )
34364 $ac_shift
34365 case $ac_optarg in
34366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34367 esac
cristy8b350f62009-11-15 23:12:43 +000034368 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034369 ac_need_defaults=false;;
34370 --he | --h)
34371 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034372 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034373Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034374 --help | --hel | -h )
34375 $as_echo "$ac_cs_usage"; exit ;;
34376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34378 ac_cs_silent=: ;;
34379
34380 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034381 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034382Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034383
cristy8b350f62009-11-15 23:12:43 +000034384 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034385 ac_need_defaults=false ;;
34386
34387 esac
34388 shift
34389done
34390
34391ac_configure_extra_args=
34392
34393if $ac_cs_silent; then
34394 exec 6>/dev/null
34395 ac_configure_extra_args="$ac_configure_extra_args --silent"
34396fi
34397
34398_ACEOF
34399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34400if \$ac_cs_recheck; then
34401 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34402 shift
34403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34404 CONFIG_SHELL='$SHELL'
34405 export CONFIG_SHELL
34406 exec "\$@"
34407fi
34408
34409_ACEOF
34410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34411exec 5>>config.log
34412{
34413 echo
34414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34415## Running $as_me. ##
34416_ASBOX
34417 $as_echo "$ac_log"
34418} >&5
34419
34420_ACEOF
34421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034422#
34423# INIT-COMMANDS
34424#
34425PACKAGE="$PACKAGE"
34426AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34427
34428
34429# The HP-UX ksh and POSIX shell print the target directory to stdout
34430# if CDPATH is set.
34431(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34432
34433sed_quote_subst='$sed_quote_subst'
34434double_quote_subst='$double_quote_subst'
34435delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034436SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34437Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34438GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34439EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34440FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34441SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34442ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34443LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34444macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34445macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34446AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34447DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34448OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34449enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34450enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34451pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34452enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34453host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34454host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34455host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34456build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34457build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34458build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34459NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34460LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34461max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34462ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34463exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34464lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34465lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34466lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034467lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34468lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034469reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34470reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34471deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34472file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034473file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34474want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34475sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034476AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34477AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034478archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034479STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34480RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34481old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34482old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34483old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34484lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34485CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34486CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34487compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34488GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34489lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34490lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34491lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34492lt_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 +000034493nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34494lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034495objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34496MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34497lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034498lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034499lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034500lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34501lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34502need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034503MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034504DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34505NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34506LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34507OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34508OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34509libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34510shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34511extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34512archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34513enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34514export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34515whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34516compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34517old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34518old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34519archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34520archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34521module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34522module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34523with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34524allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34525no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34526hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34527hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34528hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34529hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34530hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34531hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34532hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34533hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34534inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34535link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034536always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34537export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34538exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34539include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34540prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034541postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034542file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34543variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34544need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34545need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34546version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34547runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34548shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34549shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34550libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34551library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34552soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34553install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34554postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34555postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34556finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34557finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34558hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34559sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34560sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34561hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34562enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34563enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34564enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34565old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34566striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34567compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34568predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34569postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34570predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34571postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34572compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34573LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34574reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34575reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34576old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34577compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34578GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34579lt_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 +000034580lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034581lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034582lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34583lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34584archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34585enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34586export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34587whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34588compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34589old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34590old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34591archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34592archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34593module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34594module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34595with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34596allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34597no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34598hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34599hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34600hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34601hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34602hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34603hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34604hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34605hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34606inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34607link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034608always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34609export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34610exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34611include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34612prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034613postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034614file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34615hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34616compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34617predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34618postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34619predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34620postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34621compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034622
34623LTCC='$LTCC'
34624LTCFLAGS='$LTCFLAGS'
34625compiler='$compiler_DEFAULT'
34626
cristy0c60a692010-11-04 01:09:47 +000034627# A function that is used when there is no print builtin or printf.
34628func_fallback_echo ()
34629{
34630 eval 'cat <<_LTECHO_EOF
34631\$1
34632_LTECHO_EOF'
34633}
34634
cristy73bd4a52010-10-05 11:24:23 +000034635# Quote evaled strings.
34636for var in SED \
34637GREP \
34638EGREP \
34639FGREP \
cristy0c60a692010-11-04 01:09:47 +000034640SHELL \
34641ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034642LD \
cristy0c60a692010-11-04 01:09:47 +000034643AS \
34644DLLTOOL \
34645OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034646NM \
34647LN_S \
34648lt_SP2NL \
34649lt_NL2SP \
34650reload_flag \
34651deplibs_check_method \
34652file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034653file_magic_glob \
34654want_nocaseglob \
34655sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034656AR \
34657AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034658archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034659STRIP \
34660RANLIB \
34661CC \
34662CFLAGS \
34663compiler \
34664lt_cv_sys_global_symbol_pipe \
34665lt_cv_sys_global_symbol_to_cdecl \
34666lt_cv_sys_global_symbol_to_c_name_address \
34667lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034668nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034669lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034670lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034671lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034672lt_prog_compiler_static \
34673lt_cv_prog_compiler_c_o \
34674need_locks \
cristyda16f162011-02-19 23:52:17 +000034675MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034676DSYMUTIL \
34677NMEDIT \
34678LIPO \
34679OTOOL \
34680OTOOL64 \
34681shrext_cmds \
34682export_dynamic_flag_spec \
34683whole_archive_flag_spec \
34684compiler_needs_object \
34685with_gnu_ld \
34686allow_undefined_flag \
34687no_undefined_flag \
34688hardcode_libdir_flag_spec \
34689hardcode_libdir_flag_spec_ld \
34690hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034691exclude_expsyms \
34692include_expsyms \
34693file_list_spec \
34694variables_saved_for_relink \
34695libname_spec \
34696library_names_spec \
34697soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034698install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034699finish_eval \
34700old_striplib \
34701striplib \
34702compiler_lib_search_dirs \
34703predep_objects \
34704postdep_objects \
34705predeps \
34706postdeps \
34707compiler_lib_search_path \
34708LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034709reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034710compiler_CXX \
34711lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034712lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034713lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034714lt_prog_compiler_static_CXX \
34715lt_cv_prog_compiler_c_o_CXX \
34716export_dynamic_flag_spec_CXX \
34717whole_archive_flag_spec_CXX \
34718compiler_needs_object_CXX \
34719with_gnu_ld_CXX \
34720allow_undefined_flag_CXX \
34721no_undefined_flag_CXX \
34722hardcode_libdir_flag_spec_CXX \
34723hardcode_libdir_flag_spec_ld_CXX \
34724hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034725exclude_expsyms_CXX \
34726include_expsyms_CXX \
34727file_list_spec_CXX \
34728compiler_lib_search_dirs_CXX \
34729predep_objects_CXX \
34730postdep_objects_CXX \
34731predeps_CXX \
34732postdeps_CXX \
34733compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034734 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034735 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034736 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034737 ;;
34738 *)
34739 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34740 ;;
34741 esac
34742done
34743
34744# Double-quote double-evaled strings.
34745for var in reload_cmds \
34746old_postinstall_cmds \
34747old_postuninstall_cmds \
34748old_archive_cmds \
34749extract_expsyms_cmds \
34750old_archive_from_new_cmds \
34751old_archive_from_expsyms_cmds \
34752archive_cmds \
34753archive_expsym_cmds \
34754module_cmds \
34755module_expsym_cmds \
34756export_symbols_cmds \
34757prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034758postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034759postinstall_cmds \
34760postuninstall_cmds \
34761finish_cmds \
34762sys_lib_search_path_spec \
34763sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034764reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034765old_archive_cmds_CXX \
34766old_archive_from_new_cmds_CXX \
34767old_archive_from_expsyms_cmds_CXX \
34768archive_cmds_CXX \
34769archive_expsym_cmds_CXX \
34770module_cmds_CXX \
34771module_expsym_cmds_CXX \
34772export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034773prelink_cmds_CXX \
34774postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034775 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034776 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034777 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034778 ;;
34779 *)
34780 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34781 ;;
34782 esac
34783done
34784
cristy73bd4a52010-10-05 11:24:23 +000034785ac_aux_dir='$ac_aux_dir'
34786xsi_shell='$xsi_shell'
34787lt_shell_append='$lt_shell_append'
34788
34789# See if we are running on zsh, and set the options which allow our
34790# commands through without removal of \ escapes INIT.
34791if test -n "\${ZSH_VERSION+set}" ; then
34792 setopt NO_GLOB_SUBST
34793fi
34794
34795
34796 PACKAGE='$PACKAGE'
34797 VERSION='$VERSION'
34798 TIMESTAMP='$TIMESTAMP'
34799 RM='$RM'
34800 ofile='$ofile'
34801
34802
34803
34804
34805
34806
cristy3ed852e2009-09-05 21:47:34 +000034807_ACEOF
34808
34809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34810
34811# Handling of arguments.
34812for ac_config_target in $ac_config_targets
34813do
34814 case $ac_config_target in
34815 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034816 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034817 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34818 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34819 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34820 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34821 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034822 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034823 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34824 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34825 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34826 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34827 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34828 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34829 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34830 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34831 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34832 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34833 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34834 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34835 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34836 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34837 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34838 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34839 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34840 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34841 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34842 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34843 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34844 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34845 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34846 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34847 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34848 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34849 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34850 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34851 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34852 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34853 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34854 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34855 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034856 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34857 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034858 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34859 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34860 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34861 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34862 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34863 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34864 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34865
cristy98dddb52010-11-04 00:30:15 +000034866 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034867 esac
34868done
34869
34870
34871# If the user did not use the arguments to specify the items to instantiate,
34872# then the envvar interface is used. Set only those that are not.
34873# We use the long form for the default assignment because of an extremely
34874# bizarre bug on SunOS 4.1.3.
34875if $ac_need_defaults; then
34876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34879fi
34880
34881# Have a temporary directory for convenience. Make it in the build tree
34882# simply because there is no reason against having it here, and in addition,
34883# creating and moving files from /tmp can sometimes cause problems.
34884# Hook for its removal unless debugging.
34885# Note that there is a small window in which the directory will not be cleaned:
34886# after its creation but before its name has been assigned to `$tmp'.
34887$debug ||
34888{
cristyda16f162011-02-19 23:52:17 +000034889 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034890 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034891 : "${ac_tmp:=$tmp}"
34892 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034893' 0
cristy8b350f62009-11-15 23:12:43 +000034894 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034895}
34896# Create a (secure) tmp directory for tmp files.
34897
34898{
34899 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034900 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034901} ||
34902{
34903 tmp=./conf$$-$RANDOM
34904 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034905} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034906ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034907
34908# Set up the scripts for CONFIG_FILES section.
34909# No need to generate them if there are no CONFIG_FILES.
34910# This happens for instance with `./config.status config.h'.
34911if test -n "$CONFIG_FILES"; then
34912
34913
cristy8b350f62009-11-15 23:12:43 +000034914ac_cr=`echo X | tr X '\015'`
34915# On cygwin, bash can eat \r inside `` if the user requested igncr.
34916# But we know of no other shell where ac_cr would be empty at this
34917# point, so we can use a bashism as a fallback.
34918if test "x$ac_cr" = x; then
34919 eval ac_cr=\$\'\\r\'
34920fi
cristy3ed852e2009-09-05 21:47:34 +000034921ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34922if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034923 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034924else
34925 ac_cs_awk_cr=$ac_cr
34926fi
34927
cristyda16f162011-02-19 23:52:17 +000034928echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034929_ACEOF
34930
34931
34932{
34933 echo "cat >conf$$subs.awk <<_ACEOF" &&
34934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34935 echo "_ACEOF"
34936} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34938ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034939ac_delim='%!_!# '
34940for ac_last_try in false false false false false :; do
34941 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034942 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034943
34944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34945 if test $ac_delim_n = $ac_delim_num; then
34946 break
34947 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034949 else
34950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34951 fi
34952done
34953rm -f conf$$subs.sh
34954
34955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034956cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034957_ACEOF
34958sed -n '
34959h
34960s/^/S["/; s/!.*/"]=/
34961p
34962g
34963s/^[^!]*!//
34964:repl
34965t repl
34966s/'"$ac_delim"'$//
34967t delim
34968:nl
34969h
cristycd4c5312009-11-22 01:19:08 +000034970s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034971t more1
34972s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34973p
34974n
34975b repl
34976:more1
34977s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34978p
34979g
34980s/.\{148\}//
34981t nl
34982:delim
34983h
cristycd4c5312009-11-22 01:19:08 +000034984s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034985t more2
34986s/["\\]/\\&/g; s/^/"/; s/$/"/
34987p
34988b
34989:more2
34990s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34991p
34992g
34993s/.\{148\}//
34994t delim
34995' <conf$$subs.awk | sed '
34996/^[^""]/{
34997 N
34998 s/\n//
34999}
35000' >>$CONFIG_STATUS || ac_write_fail=1
35001rm -f conf$$subs.awk
35002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35003_ACAWK
cristyda16f162011-02-19 23:52:17 +000035004cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035005 for (key in S) S_is_set[key] = 1
35006 FS = ""
35007
35008}
35009{
35010 line = $ 0
35011 nfields = split(line, field, "@")
35012 substed = 0
35013 len = length(field[1])
35014 for (i = 2; i < nfields; i++) {
35015 key = field[i]
35016 keylen = length(key)
35017 if (S_is_set[key]) {
35018 value = S[key]
35019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35020 len += length(value) + length(field[++i])
35021 substed = 1
35022 } else
35023 len += 1 + keylen
35024 }
35025
35026 print line
35027}
35028
35029_ACAWK
35030_ACEOF
35031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35032if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35033 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35034else
35035 cat
cristyda16f162011-02-19 23:52:17 +000035036fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035037 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035038_ACEOF
35039
cristy98dddb52010-11-04 00:30:15 +000035040# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35041# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035042# trailing colons and then remove the whole line if VPATH becomes empty
35043# (actually we leave an empty line to preserve line numbers).
35044if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035045 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35046h
35047s///
35048s/^/:/
35049s/[ ]*$/:/
35050s/:\$(srcdir):/:/g
35051s/:\${srcdir}:/:/g
35052s/:@srcdir@:/:/g
35053s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035054s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035055x
35056s/\(=[ ]*\).*/\1/
35057G
35058s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035059s/^[^=]*=[ ]*$//
35060}'
35061fi
35062
35063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35064fi # test -n "$CONFIG_FILES"
35065
35066# Set up the scripts for CONFIG_HEADERS section.
35067# No need to generate them if there are no CONFIG_HEADERS.
35068# This happens for instance with `./config.status Makefile'.
35069if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035070cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035071BEGIN {
35072_ACEOF
35073
35074# Transform confdefs.h into an awk script `defines.awk', embedded as
35075# here-document in config.status, that substitutes the proper values into
35076# config.h.in to produce config.h.
35077
35078# Create a delimiter string that does not exist in confdefs.h, to ease
35079# handling of long lines.
35080ac_delim='%!_!# '
35081for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035082 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35083 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035084 break
35085 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035086 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035087 else
35088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35089 fi
35090done
35091
35092# For the awk script, D is an array of macro values keyed by name,
35093# likewise P contains macro parameters if any. Preserve backslash
35094# newline sequences.
35095
35096ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35097sed -n '
35098s/.\{148\}/&'"$ac_delim"'/g
35099t rset
35100:rset
35101s/^[ ]*#[ ]*define[ ][ ]*/ /
35102t def
35103d
35104:def
35105s/\\$//
35106t bsnl
35107s/["\\]/\\&/g
35108s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35109D["\1"]=" \3"/p
35110s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35111d
35112:bsnl
35113s/["\\]/\\&/g
35114s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35115D["\1"]=" \3\\\\\\n"\\/p
35116t cont
35117s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35118t cont
35119d
35120:cont
35121n
35122s/.\{148\}/&'"$ac_delim"'/g
35123t clear
35124:clear
35125s/\\$//
35126t bsnlc
35127s/["\\]/\\&/g; s/^/"/; s/$/"/p
35128d
35129:bsnlc
35130s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35131b cont
35132' <confdefs.h | sed '
35133s/'"$ac_delim"'/"\\\
35134"/g' >>$CONFIG_STATUS || ac_write_fail=1
35135
35136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35137 for (key in D) D_is_set[key] = 1
35138 FS = ""
35139}
35140/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35141 line = \$ 0
35142 split(line, arg, " ")
35143 if (arg[1] == "#") {
35144 defundef = arg[2]
35145 mac1 = arg[3]
35146 } else {
35147 defundef = substr(arg[1], 2)
35148 mac1 = arg[2]
35149 }
35150 split(mac1, mac2, "(") #)
35151 macro = mac2[1]
35152 prefix = substr(line, 1, index(line, defundef) - 1)
35153 if (D_is_set[macro]) {
35154 # Preserve the white space surrounding the "#".
35155 print prefix "define", macro P[macro] D[macro]
35156 next
35157 } else {
35158 # Replace #undef with comments. This is necessary, for example,
35159 # in the case of _POSIX_SOURCE, which is predefined and required
35160 # on some systems where configure will not decide to define it.
35161 if (defundef == "undef") {
35162 print "/*", prefix defundef, macro, "*/"
35163 next
35164 }
35165 }
35166}
35167{ print }
35168_ACAWK
35169_ACEOF
35170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035171 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035172fi # test -n "$CONFIG_HEADERS"
35173
35174
35175eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35176shift
35177for ac_tag
35178do
35179 case $ac_tag in
35180 :[FHLC]) ac_mode=$ac_tag; continue;;
35181 esac
35182 case $ac_mode$ac_tag in
35183 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035184 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035185 :[FH]-) ac_tag=-:-;;
35186 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35187 esac
35188 ac_save_IFS=$IFS
35189 IFS=:
35190 set x $ac_tag
35191 IFS=$ac_save_IFS
35192 shift
35193 ac_file=$1
35194 shift
35195
35196 case $ac_mode in
35197 :L) ac_source=$1;;
35198 :[FH])
35199 ac_file_inputs=
35200 for ac_f
35201 do
35202 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035203 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035204 *) # Look for the file first in the build tree, then in the source tree
35205 # (if the path is not absolute). The absolute path cannot be DOS-style,
35206 # because $ac_f cannot contain `:'.
35207 test -f "$ac_f" ||
35208 case $ac_f in
35209 [\\/$]*) false;;
35210 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35211 esac ||
cristy98dddb52010-11-04 00:30:15 +000035212 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035213 esac
35214 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035215 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035216 done
35217
35218 # Let's still pretend it is `configure' which instantiates (i.e., don't
35219 # use $as_me), people would be surprised to read:
35220 # /* config.h. Generated by config.status. */
35221 configure_input='Generated from '`
35222 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35223 `' by configure.'
35224 if test x"$ac_file" != x-; then
35225 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035227$as_echo "$as_me: creating $ac_file" >&6;}
35228 fi
35229 # Neutralize special characters interpreted by sed in replacement strings.
35230 case $configure_input in #(
35231 *\&* | *\|* | *\\* )
35232 ac_sed_conf_input=`$as_echo "$configure_input" |
35233 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35234 *) ac_sed_conf_input=$configure_input;;
35235 esac
35236
35237 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035238 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035240 esac
35241 ;;
35242 esac
35243
35244 ac_dir=`$as_dirname -- "$ac_file" ||
35245$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35246 X"$ac_file" : 'X\(//\)[^/]' \| \
35247 X"$ac_file" : 'X\(//\)$' \| \
35248 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35249$as_echo X"$ac_file" |
35250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35251 s//\1/
35252 q
35253 }
35254 /^X\(\/\/\)[^/].*/{
35255 s//\1/
35256 q
35257 }
35258 /^X\(\/\/\)$/{
35259 s//\1/
35260 q
35261 }
35262 /^X\(\/\).*/{
35263 s//\1/
35264 q
35265 }
35266 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035267 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035268 ac_builddir=.
35269
35270case "$ac_dir" in
35271.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35272*)
35273 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35274 # A ".." for each directory in $ac_dir_suffix.
35275 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35276 case $ac_top_builddir_sub in
35277 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35278 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35279 esac ;;
35280esac
35281ac_abs_top_builddir=$ac_pwd
35282ac_abs_builddir=$ac_pwd$ac_dir_suffix
35283# for backward compatibility:
35284ac_top_builddir=$ac_top_build_prefix
35285
35286case $srcdir in
35287 .) # We are building in place.
35288 ac_srcdir=.
35289 ac_top_srcdir=$ac_top_builddir_sub
35290 ac_abs_top_srcdir=$ac_pwd ;;
35291 [\\/]* | ?:[\\/]* ) # Absolute name.
35292 ac_srcdir=$srcdir$ac_dir_suffix;
35293 ac_top_srcdir=$srcdir
35294 ac_abs_top_srcdir=$srcdir ;;
35295 *) # Relative name.
35296 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35297 ac_top_srcdir=$ac_top_build_prefix$srcdir
35298 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35299esac
35300ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35301
35302
35303 case $ac_mode in
35304 :F)
35305 #
35306 # CONFIG_FILE
35307 #
35308
35309 case $INSTALL in
35310 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35311 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35312 esac
cristy73bd4a52010-10-05 11:24:23 +000035313 ac_MKDIR_P=$MKDIR_P
35314 case $MKDIR_P in
35315 [\\/$]* | ?:[\\/]* ) ;;
35316 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35317 esac
cristy3ed852e2009-09-05 21:47:34 +000035318_ACEOF
35319
35320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35321# If the template does not know about datarootdir, expand it.
35322# FIXME: This hack should be removed a few years after 2.60.
35323ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035324ac_sed_dataroot='
35325/datarootdir/ {
35326 p
35327 q
35328}
35329/@datadir@/p
35330/@docdir@/p
35331/@infodir@/p
35332/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035333/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035334case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35335*datarootdir*) ac_datarootdir_seen=yes;;
35336*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035338$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35339_ACEOF
35340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35341 ac_datarootdir_hack='
35342 s&@datadir@&$datadir&g
35343 s&@docdir@&$docdir&g
35344 s&@infodir@&$infodir&g
35345 s&@localedir@&$localedir&g
35346 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035347 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035348esac
35349_ACEOF
35350
35351# Neutralize VPATH when `$srcdir' = `.'.
35352# Shell code in configure.ac might set extrasub.
35353# FIXME: do we really want to maintain this feature?
35354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35355ac_sed_extra="$ac_vpsub
35356$extrasub
35357_ACEOF
35358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35359:t
35360/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35361s|@configure_input@|$ac_sed_conf_input|;t t
35362s&@top_builddir@&$ac_top_builddir_sub&;t t
35363s&@top_build_prefix@&$ac_top_build_prefix&;t t
35364s&@srcdir@&$ac_srcdir&;t t
35365s&@abs_srcdir@&$ac_abs_srcdir&;t t
35366s&@top_srcdir@&$ac_top_srcdir&;t t
35367s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35368s&@builddir@&$ac_builddir&;t t
35369s&@abs_builddir@&$ac_abs_builddir&;t t
35370s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35371s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035372s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035373$ac_datarootdir_hack
35374"
cristyda16f162011-02-19 23:52:17 +000035375eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35376 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035377
35378test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035379 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35380 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35381 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035383which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035384$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035385which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035386
cristyda16f162011-02-19 23:52:17 +000035387 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035388 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035389 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35390 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035391 esac \
cristy98dddb52010-11-04 00:30:15 +000035392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035393 ;;
35394 :H)
35395 #
35396 # CONFIG_HEADER
35397 #
35398 if test x"$ac_file" != x-; then
35399 {
35400 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35402 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035404 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035405 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035406$as_echo "$as_me: $ac_file is unchanged" >&6;}
35407 else
35408 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035409 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035411 fi
35412 else
35413 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035414 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035415 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035416 fi
cristy73bd4a52010-10-05 11:24:23 +000035417# Compute "$ac_file"'s index in $config_headers.
35418_am_arg="$ac_file"
35419_am_stamp_count=1
35420for _am_header in $config_headers :; do
35421 case $_am_header in
35422 $_am_arg | $_am_arg:* )
35423 break ;;
35424 * )
35425 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35426 esac
35427done
35428echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35429$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35430 X"$_am_arg" : 'X\(//\)[^/]' \| \
35431 X"$_am_arg" : 'X\(//\)$' \| \
35432 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35433$as_echo X"$_am_arg" |
35434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35435 s//\1/
35436 q
35437 }
35438 /^X\(\/\/\)[^/].*/{
35439 s//\1/
35440 q
35441 }
35442 /^X\(\/\/\)$/{
35443 s//\1/
35444 q
35445 }
35446 /^X\(\/\).*/{
35447 s//\1/
35448 q
35449 }
35450 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035451 ;;
35452
cristy8b350f62009-11-15 23:12:43 +000035453 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035454$as_echo "$as_me: executing $ac_file commands" >&6;}
35455 ;;
35456 esac
35457
35458
35459 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035460 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35461ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35462ac_prefix_conf_PKG=`echo MagickCore`
35463ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35464ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35465ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35466if test ".$ac_prefix_conf_INP" = "."; then
35467 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35468 case "$ac_file" in
35469 *.h) ac_prefix_conf_INP=$ac_file ;;
35470 *)
35471 esac
35472 test ".$ac_prefix_conf_INP" != "." && break
35473 done
35474fi
35475if test ".$ac_prefix_conf_INP" = "."; then
35476 case "$ac_prefix_conf_OUT" in
35477 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35478 ;;
35479 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35480 ;;
35481 *) ac_prefix_conf_INP=config.h
35482 ;;
35483 esac
35484fi
35485if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035486 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035487else
35488 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35489 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35490 fi fi
35491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35492$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35493 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035494 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35495 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35496 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35497 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35498 $as_echo "#endif/" >> conftest.prefix
35499 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35500 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35501 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035502 # now executing _script on _DEF input to create _OUT output file
35503 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35504 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35505 echo ' ' >>$tmp/pconfig.h
35506 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35507
35508 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35509 echo ' ' >>$tmp/pconfig.h
35510 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35511 echo "#endif" >>$tmp/pconfig.h
35512 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35513 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35514$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35515 else
35516 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35517$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35518 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35519 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35520 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35521$as_echo X"$ac_prefix_conf_OUT" |
35522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35523 s//\1/
35524 q
35525 }
35526 /^X\(\/\/\)[^/].*/{
35527 s//\1/
35528 q
35529 }
35530 /^X\(\/\/\)$/{
35531 s//\1/
35532 q
35533 }
35534 /^X\(\/\).*/{
35535 s//\1/
35536 q
35537 }
35538 s/.*/./; q'`
35539 as_dir="$ac_dir"; as_fn_mkdir_p
35540 rm -f "$ac_prefix_conf_OUT"
35541 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35542 fi
35543 cp conftest.prefix _configs.sed
35544 else
cristy98dddb52010-11-04 00:30:15 +000035545 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 +000035546 fi
35547 rm -f conftest.*
35548fi
35549 ;;
35550 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35551 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35552 # are listed without --file. Let's play safe and only enable the eval
35553 # if we detect the quoting.
35554 case $CONFIG_FILES in
35555 *\'*) eval set x "$CONFIG_FILES" ;;
35556 *) set x $CONFIG_FILES ;;
35557 esac
35558 shift
35559 for mf
35560 do
35561 # Strip MF so we end up with the name of the file.
35562 mf=`echo "$mf" | sed -e 's/:.*$//'`
35563 # Check whether this is an Automake generated Makefile or not.
35564 # We used to match only the files named `Makefile.in', but
35565 # some people rename them; so instead we look at the file content.
35566 # Grep'ing the first line is not enough: some people post-process
35567 # each Makefile.in and add a new line on top of each file to say so.
35568 # Grep'ing the whole file is not good either: AIX grep has a line
35569 # limit of 2048, but all sed's we know have understand at least 4000.
35570 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35571 dirpart=`$as_dirname -- "$mf" ||
35572$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35573 X"$mf" : 'X\(//\)[^/]' \| \
35574 X"$mf" : 'X\(//\)$' \| \
35575 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35576$as_echo X"$mf" |
35577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35578 s//\1/
35579 q
35580 }
35581 /^X\(\/\/\)[^/].*/{
35582 s//\1/
35583 q
35584 }
35585 /^X\(\/\/\)$/{
35586 s//\1/
35587 q
35588 }
35589 /^X\(\/\).*/{
35590 s//\1/
35591 q
35592 }
35593 s/.*/./; q'`
35594 else
35595 continue
35596 fi
35597 # Extract the definition of DEPDIR, am__include, and am__quote
35598 # from the Makefile without running `make'.
35599 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35600 test -z "$DEPDIR" && continue
35601 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35602 test -z "am__include" && continue
35603 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35604 # When using ansi2knr, U may be empty or an underscore; expand it
35605 U=`sed -n 's/^U = //p' < "$mf"`
35606 # Find all dependency output files, they are included files with
35607 # $(DEPDIR) in their names. We invoke sed twice because it is the
35608 # simplest approach to changing $(DEPDIR) to its actual value in the
35609 # expansion.
35610 for file in `sed -n "
35611 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35612 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35613 # Make sure the directory exists.
35614 test -f "$dirpart/$file" && continue
35615 fdir=`$as_dirname -- "$file" ||
35616$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35617 X"$file" : 'X\(//\)[^/]' \| \
35618 X"$file" : 'X\(//\)$' \| \
35619 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35620$as_echo X"$file" |
35621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35622 s//\1/
35623 q
35624 }
35625 /^X\(\/\/\)[^/].*/{
35626 s//\1/
35627 q
35628 }
35629 /^X\(\/\/\)$/{
35630 s//\1/
35631 q
35632 }
35633 /^X\(\/\).*/{
35634 s//\1/
35635 q
35636 }
35637 s/.*/./; q'`
35638 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35639 # echo "creating $dirpart/$file"
35640 echo '# dummy' > "$dirpart/$file"
35641 done
35642 done
35643}
35644 ;;
35645 "libtool":C)
35646
35647 # See if we are running on zsh, and set the options which allow our
35648 # commands through without removal of \ escapes.
35649 if test -n "${ZSH_VERSION+set}" ; then
35650 setopt NO_GLOB_SUBST
35651 fi
35652
35653 cfgfile="${ofile}T"
35654 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35655 $RM "$cfgfile"
35656
35657 cat <<_LT_EOF >> "$cfgfile"
35658#! $SHELL
35659
35660# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35661# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35663# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35664#
35665# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035666# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35667# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035668# Written by Gordon Matzigkeit, 1996
35669#
35670# This file is part of GNU Libtool.
35671#
35672# GNU Libtool is free software; you can redistribute it and/or
35673# modify it under the terms of the GNU General Public License as
35674# published by the Free Software Foundation; either version 2 of
35675# the License, or (at your option) any later version.
35676#
35677# As a special exception to the GNU General Public License,
35678# if you distribute this file as part of a program or library that
35679# is built using GNU Libtool, you may include this file under the
35680# same distribution terms that you use for the rest of that program.
35681#
35682# GNU Libtool is distributed in the hope that it will be useful,
35683# but WITHOUT ANY WARRANTY; without even the implied warranty of
35684# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35685# GNU General Public License for more details.
35686#
35687# You should have received a copy of the GNU General Public License
35688# along with GNU Libtool; see the file COPYING. If not, a copy
35689# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35690# obtained by writing to the Free Software Foundation, Inc.,
35691# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35692
35693
35694# The names of the tagged configurations supported by this script.
35695available_tags="CXX "
35696
35697# ### BEGIN LIBTOOL CONFIG
35698
35699# A sed program that does not truncate output.
35700SED=$lt_SED
35701
35702# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35703Xsed="\$SED -e 1s/^X//"
35704
35705# A grep program that handles long lines.
35706GREP=$lt_GREP
35707
35708# An ERE matcher.
35709EGREP=$lt_EGREP
35710
35711# A literal string matcher.
35712FGREP=$lt_FGREP
35713
cristy0c60a692010-11-04 01:09:47 +000035714# Shell to use when invoking shell scripts.
35715SHELL=$lt_SHELL
35716
35717# An echo program that protects backslashes.
35718ECHO=$lt_ECHO
35719
cristy73bd4a52010-10-05 11:24:23 +000035720# Which release of libtool.m4 was used?
35721macro_version=$macro_version
35722macro_revision=$macro_revision
35723
35724# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035725AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035726
35727# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035728DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035729
35730# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035731OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035732
35733# Whether or not to build shared libraries.
35734build_libtool_libs=$enable_shared
35735
35736# Whether or not to build static libraries.
35737build_old_libs=$enable_static
35738
35739# What type of objects to build.
35740pic_mode=$pic_mode
35741
35742# Whether or not to optimize for fast installation.
35743fast_install=$enable_fast_install
35744
35745# The host system.
35746host_alias=$host_alias
35747host=$host
35748host_os=$host_os
35749
35750# The build system.
35751build_alias=$build_alias
35752build=$build
35753build_os=$build_os
35754
35755# A BSD- or MS-compatible name lister.
35756NM=$lt_NM
35757
35758# Whether we need soft or hard links.
35759LN_S=$lt_LN_S
35760
35761# What is the maximum length of a command?
35762max_cmd_len=$max_cmd_len
35763
35764# Object file suffix (normally "o").
35765objext=$ac_objext
35766
35767# Executable file suffix (normally "").
35768exeext=$exeext
35769
35770# whether the shell understands "unset".
35771lt_unset=$lt_unset
35772
35773# turn spaces into newlines.
35774SP2NL=$lt_lt_SP2NL
35775
35776# turn newlines into spaces.
35777NL2SP=$lt_lt_NL2SP
35778
cristyda16f162011-02-19 23:52:17 +000035779# convert \$build file names to \$host format.
35780to_host_file_cmd=$lt_cv_to_host_file_cmd
35781
35782# convert \$build files to toolchain format.
35783to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35784
cristy73bd4a52010-10-05 11:24:23 +000035785# Method to check whether dependent libraries are shared objects.
35786deplibs_check_method=$lt_deplibs_check_method
35787
cristyda16f162011-02-19 23:52:17 +000035788# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035789file_magic_cmd=$lt_file_magic_cmd
35790
cristyda16f162011-02-19 23:52:17 +000035791# How to find potential files when deplibs_check_method = "file_magic".
35792file_magic_glob=$lt_file_magic_glob
35793
35794# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35795want_nocaseglob=$lt_want_nocaseglob
35796
35797# Command to associate shared and link libraries.
35798sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35799
cristy73bd4a52010-10-05 11:24:23 +000035800# The archiver.
35801AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035802
35803# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035804AR_FLAGS=$lt_AR_FLAGS
35805
cristyda16f162011-02-19 23:52:17 +000035806# How to feed a file listing to the archiver.
35807archiver_list_spec=$lt_archiver_list_spec
35808
cristy73bd4a52010-10-05 11:24:23 +000035809# A symbol stripping program.
35810STRIP=$lt_STRIP
35811
35812# Commands used to install an old-style archive.
35813RANLIB=$lt_RANLIB
35814old_postinstall_cmds=$lt_old_postinstall_cmds
35815old_postuninstall_cmds=$lt_old_postuninstall_cmds
35816
cristy0c60a692010-11-04 01:09:47 +000035817# Whether to use a lock for old archive extraction.
35818lock_old_archive_extraction=$lock_old_archive_extraction
35819
cristy73bd4a52010-10-05 11:24:23 +000035820# A C compiler.
35821LTCC=$lt_CC
35822
35823# LTCC compiler flags.
35824LTCFLAGS=$lt_CFLAGS
35825
35826# Take the output of nm and produce a listing of raw symbols and C names.
35827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35828
35829# Transform the output of nm in a proper C declaration.
35830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35831
35832# Transform the output of nm in a C name address pair.
35833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35834
35835# Transform the output of nm in a C name address pair when lib prefix is needed.
35836global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35837
cristyda16f162011-02-19 23:52:17 +000035838# Specify filename containing input files for \$NM.
35839nm_file_list_spec=$lt_nm_file_list_spec
35840
35841# The root where to search for dependent libraries,and in which our libraries should be installed.
35842lt_sysroot=$lt_sysroot
35843
cristy73bd4a52010-10-05 11:24:23 +000035844# The name of the directory that contains temporary libtool files.
35845objdir=$objdir
35846
cristy73bd4a52010-10-05 11:24:23 +000035847# Used to examine libraries when file_magic_cmd begins with "file".
35848MAGIC_CMD=$MAGIC_CMD
35849
35850# Must we lock files when doing compilation?
35851need_locks=$lt_need_locks
35852
cristyda16f162011-02-19 23:52:17 +000035853# Manifest tool.
35854MANIFEST_TOOL=$lt_MANIFEST_TOOL
35855
cristy73bd4a52010-10-05 11:24:23 +000035856# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35857DSYMUTIL=$lt_DSYMUTIL
35858
35859# Tool to change global to local symbols on Mac OS X.
35860NMEDIT=$lt_NMEDIT
35861
35862# Tool to manipulate fat objects and archives on Mac OS X.
35863LIPO=$lt_LIPO
35864
35865# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35866OTOOL=$lt_OTOOL
35867
35868# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35869OTOOL64=$lt_OTOOL64
35870
35871# Old archive suffix (normally "a").
35872libext=$libext
35873
35874# Shared library suffix (normally ".so").
35875shrext_cmds=$lt_shrext_cmds
35876
35877# The commands to extract the exported symbol list from a shared archive.
35878extract_expsyms_cmds=$lt_extract_expsyms_cmds
35879
35880# Variables whose values should be saved in libtool wrapper scripts and
35881# restored at link time.
35882variables_saved_for_relink=$lt_variables_saved_for_relink
35883
35884# Do we need the "lib" prefix for modules?
35885need_lib_prefix=$need_lib_prefix
35886
35887# Do we need a version for libraries?
35888need_version=$need_version
35889
35890# Library versioning type.
35891version_type=$version_type
35892
35893# Shared library runtime path variable.
35894runpath_var=$runpath_var
35895
35896# Shared library path variable.
35897shlibpath_var=$shlibpath_var
35898
35899# Is shlibpath searched before the hard-coded library search path?
35900shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35901
35902# Format of library name prefix.
35903libname_spec=$lt_libname_spec
35904
35905# List of archive names. First name is the real one, the rest are links.
35906# The last name is the one that the linker finds with -lNAME
35907library_names_spec=$lt_library_names_spec
35908
35909# The coded name of the library, if different from the real name.
35910soname_spec=$lt_soname_spec
35911
cristy0c60a692010-11-04 01:09:47 +000035912# Permission mode override for installation of shared libraries.
35913install_override_mode=$lt_install_override_mode
35914
cristy73bd4a52010-10-05 11:24:23 +000035915# Command to use after installation of a shared archive.
35916postinstall_cmds=$lt_postinstall_cmds
35917
35918# Command to use after uninstallation of a shared archive.
35919postuninstall_cmds=$lt_postuninstall_cmds
35920
35921# Commands used to finish a libtool library installation in a directory.
35922finish_cmds=$lt_finish_cmds
35923
35924# As "finish_cmds", except a single script fragment to be evaled but
35925# not shown.
35926finish_eval=$lt_finish_eval
35927
35928# Whether we should hardcode library paths into libraries.
35929hardcode_into_libs=$hardcode_into_libs
35930
35931# Compile-time system search path for libraries.
35932sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35933
35934# Run-time system search path for libraries.
35935sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35936
35937# Whether dlopen is supported.
35938dlopen_support=$enable_dlopen
35939
35940# Whether dlopen of programs is supported.
35941dlopen_self=$enable_dlopen_self
35942
35943# Whether dlopen of statically linked programs is supported.
35944dlopen_self_static=$enable_dlopen_self_static
35945
35946# Commands to strip libraries.
35947old_striplib=$lt_old_striplib
35948striplib=$lt_striplib
35949
35950
35951# The linker used to build libraries.
35952LD=$lt_LD
35953
cristy0c60a692010-11-04 01:09:47 +000035954# How to create reloadable object files.
35955reload_flag=$lt_reload_flag
35956reload_cmds=$lt_reload_cmds
35957
cristy73bd4a52010-10-05 11:24:23 +000035958# Commands used to build an old-style archive.
35959old_archive_cmds=$lt_old_archive_cmds
35960
35961# A language specific compiler.
35962CC=$lt_compiler
35963
35964# Is the compiler the GNU compiler?
35965with_gcc=$GCC
35966
35967# Compiler flag to turn off builtin functions.
35968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35969
cristy73bd4a52010-10-05 11:24:23 +000035970# Additional compiler flags for building library objects.
35971pic_flag=$lt_lt_prog_compiler_pic
35972
cristyda16f162011-02-19 23:52:17 +000035973# How to pass a linker flag through the compiler.
35974wl=$lt_lt_prog_compiler_wl
35975
cristy73bd4a52010-10-05 11:24:23 +000035976# Compiler flag to prevent dynamic linking.
35977link_static_flag=$lt_lt_prog_compiler_static
35978
35979# Does compiler simultaneously support -c and -o options?
35980compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35981
35982# Whether or not to add -lc for building shared libraries.
35983build_libtool_need_lc=$archive_cmds_need_lc
35984
35985# Whether or not to disallow shared libs when runtime libs are static.
35986allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35987
35988# Compiler flag to allow reflexive dlopens.
35989export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35990
35991# Compiler flag to generate shared objects directly from archives.
35992whole_archive_flag_spec=$lt_whole_archive_flag_spec
35993
35994# Whether the compiler copes with passing no objects directly.
35995compiler_needs_object=$lt_compiler_needs_object
35996
35997# Create an old-style archive from a shared archive.
35998old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35999
36000# Create a temporary old-style archive to link instead of a shared archive.
36001old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36002
36003# Commands used to build a shared archive.
36004archive_cmds=$lt_archive_cmds
36005archive_expsym_cmds=$lt_archive_expsym_cmds
36006
36007# Commands used to build a loadable module if different from building
36008# a shared archive.
36009module_cmds=$lt_module_cmds
36010module_expsym_cmds=$lt_module_expsym_cmds
36011
36012# Whether we are building with GNU ld or not.
36013with_gnu_ld=$lt_with_gnu_ld
36014
36015# Flag that allows shared libraries with undefined symbols to be built.
36016allow_undefined_flag=$lt_allow_undefined_flag
36017
36018# Flag that enforces no undefined symbols.
36019no_undefined_flag=$lt_no_undefined_flag
36020
36021# Flag to hardcode \$libdir into a binary during linking.
36022# This must work even if \$libdir does not exist
36023hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36024
36025# If ld is used when linking, flag to hardcode \$libdir into a binary
36026# during linking. This must work even if \$libdir does not exist.
36027hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36028
36029# Whether we need a single "-rpath" flag with a separated argument.
36030hardcode_libdir_separator=$lt_hardcode_libdir_separator
36031
36032# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36033# DIR into the resulting binary.
36034hardcode_direct=$hardcode_direct
36035
36036# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36037# DIR into the resulting binary and the resulting library dependency is
36038# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36039# library is relocated.
36040hardcode_direct_absolute=$hardcode_direct_absolute
36041
36042# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36043# into the resulting binary.
36044hardcode_minus_L=$hardcode_minus_L
36045
36046# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36047# into the resulting binary.
36048hardcode_shlibpath_var=$hardcode_shlibpath_var
36049
36050# Set to "yes" if building a shared library automatically hardcodes DIR
36051# into the library and all subsequent libraries and executables linked
36052# against it.
36053hardcode_automatic=$hardcode_automatic
36054
36055# Set to yes if linker adds runtime paths of dependent libraries
36056# to runtime path list.
36057inherit_rpath=$inherit_rpath
36058
36059# Whether libtool must link a program against all its dependency libraries.
36060link_all_deplibs=$link_all_deplibs
36061
cristy73bd4a52010-10-05 11:24:23 +000036062# Set to "yes" if exported symbols are required.
36063always_export_symbols=$always_export_symbols
36064
36065# The commands to list exported symbols.
36066export_symbols_cmds=$lt_export_symbols_cmds
36067
36068# Symbols that should not be listed in the preloaded symbols.
36069exclude_expsyms=$lt_exclude_expsyms
36070
36071# Symbols that must always be exported.
36072include_expsyms=$lt_include_expsyms
36073
36074# Commands necessary for linking programs (against libraries) with templates.
36075prelink_cmds=$lt_prelink_cmds
36076
cristyda16f162011-02-19 23:52:17 +000036077# Commands necessary for finishing linking programs.
36078postlink_cmds=$lt_postlink_cmds
36079
cristy73bd4a52010-10-05 11:24:23 +000036080# Specify filename containing input files.
36081file_list_spec=$lt_file_list_spec
36082
36083# How to hardcode a shared library path into an executable.
36084hardcode_action=$hardcode_action
36085
36086# The directories searched by this compiler when creating a shared library.
36087compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36088
36089# Dependencies to place before and after the objects being linked to
36090# create a shared library.
36091predep_objects=$lt_predep_objects
36092postdep_objects=$lt_postdep_objects
36093predeps=$lt_predeps
36094postdeps=$lt_postdeps
36095
36096# The library search path used internally by the compiler when linking
36097# a shared library.
36098compiler_lib_search_path=$lt_compiler_lib_search_path
36099
36100# ### END LIBTOOL CONFIG
36101
36102_LT_EOF
36103
36104 case $host_os in
36105 aix3*)
36106 cat <<\_LT_EOF >> "$cfgfile"
36107# AIX sometimes has problems with the GCC collect2 program. For some
36108# reason, if we set the COLLECT_NAMES environment variable, the problems
36109# vanish in a puff of smoke.
36110if test "X${COLLECT_NAMES+set}" != Xset; then
36111 COLLECT_NAMES=
36112 export COLLECT_NAMES
36113fi
36114_LT_EOF
36115 ;;
36116 esac
36117
36118
36119ltmain="$ac_aux_dir/ltmain.sh"
36120
36121
36122 # We use sed instead of cat because bash on DJGPP gets confused if
36123 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36124 # text mode, it properly converts lines to CR/LF. This bash problem
36125 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036126 sed '$q' "$ltmain" >> "$cfgfile" \
36127 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036128
cristyda16f162011-02-19 23:52:17 +000036129 if test x"$xsi_shell" = xyes; then
36130 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36131func_dirname ()\
36132{\
36133\ case ${1} in\
36134\ */*) func_dirname_result="${1%/*}${2}" ;;\
36135\ * ) func_dirname_result="${3}" ;;\
36136\ esac\
36137} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36138 && mv -f "$cfgfile.tmp" "$cfgfile" \
36139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36140test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036141
36142
cristyda16f162011-02-19 23:52:17 +000036143 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36144func_basename ()\
36145{\
36146\ func_basename_result="${1##*/}"\
36147} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36148 && mv -f "$cfgfile.tmp" "$cfgfile" \
36149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36150test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036151
36152
cristyda16f162011-02-19 23:52:17 +000036153 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36154func_dirname_and_basename ()\
36155{\
36156\ case ${1} in\
36157\ */*) func_dirname_result="${1%/*}${2}" ;;\
36158\ * ) func_dirname_result="${3}" ;;\
36159\ esac\
36160\ func_basename_result="${1##*/}"\
36161} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36162 && mv -f "$cfgfile.tmp" "$cfgfile" \
36163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36164test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036165
cristyda16f162011-02-19 23:52:17 +000036166
36167 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36168func_stripname ()\
36169{\
36170\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36171\ # positional parameters, so assign one to ordinary parameter first.\
36172\ func_stripname_result=${3}\
36173\ func_stripname_result=${func_stripname_result#"${1}"}\
36174\ func_stripname_result=${func_stripname_result%"${2}"}\
36175} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36176 && mv -f "$cfgfile.tmp" "$cfgfile" \
36177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36178test 0 -eq $? || _lt_function_replace_fail=:
36179
36180
36181 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36182func_split_long_opt ()\
36183{\
36184\ func_split_long_opt_name=${1%%=*}\
36185\ func_split_long_opt_arg=${1#*=}\
36186} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36187 && mv -f "$cfgfile.tmp" "$cfgfile" \
36188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36189test 0 -eq $? || _lt_function_replace_fail=:
36190
36191
36192 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36193func_split_short_opt ()\
36194{\
36195\ func_split_short_opt_arg=${1#??}\
36196\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36197} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36198 && mv -f "$cfgfile.tmp" "$cfgfile" \
36199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36200test 0 -eq $? || _lt_function_replace_fail=:
36201
36202
36203 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36204func_lo2o ()\
36205{\
36206\ case ${1} in\
36207\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36208\ *) func_lo2o_result=${1} ;;\
36209\ esac\
36210} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36211 && mv -f "$cfgfile.tmp" "$cfgfile" \
36212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36213test 0 -eq $? || _lt_function_replace_fail=:
36214
36215
36216 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36217func_xform ()\
36218{\
36219 func_xform_result=${1%.*}.lo\
36220} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36221 && mv -f "$cfgfile.tmp" "$cfgfile" \
36222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36223test 0 -eq $? || _lt_function_replace_fail=:
36224
36225
36226 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36227func_arith ()\
36228{\
36229 func_arith_result=$(( $* ))\
36230} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36231 && mv -f "$cfgfile.tmp" "$cfgfile" \
36232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36233test 0 -eq $? || _lt_function_replace_fail=:
36234
36235
36236 sed -e '/^func_len ()$/,/^} # func_len /c\
36237func_len ()\
36238{\
36239 func_len_result=${#1}\
36240} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36241 && mv -f "$cfgfile.tmp" "$cfgfile" \
36242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36243test 0 -eq $? || _lt_function_replace_fail=:
36244
36245fi
36246
36247if test x"$lt_shell_append" = xyes; then
36248 sed -e '/^func_append ()$/,/^} # func_append /c\
36249func_append ()\
36250{\
36251 eval "${1}+=\\${2}"\
36252} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36253 && mv -f "$cfgfile.tmp" "$cfgfile" \
36254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36255test 0 -eq $? || _lt_function_replace_fail=:
36256
36257
36258 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36259func_append_quoted ()\
36260{\
36261\ func_quote_for_eval "${2}"\
36262\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36263} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36264 && mv -f "$cfgfile.tmp" "$cfgfile" \
36265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36266test 0 -eq $? || _lt_function_replace_fail=:
36267
36268
36269 # Save a `func_append' function call where possible by direct use of '+='
36270 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36271 && mv -f "$cfgfile.tmp" "$cfgfile" \
36272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36273 test 0 -eq $? || _lt_function_replace_fail=:
36274else
36275 # Save a `func_append' function call even when '+=' is not available
36276 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36277 && mv -f "$cfgfile.tmp" "$cfgfile" \
36278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36279 test 0 -eq $? || _lt_function_replace_fail=:
36280fi
36281
36282if test x"$_lt_function_replace_fail" = x":"; then
36283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36284$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36285fi
36286
36287
36288 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36290 chmod +x "$ofile"
36291
36292
36293 cat <<_LT_EOF >> "$ofile"
36294
36295# ### BEGIN LIBTOOL TAG CONFIG: CXX
36296
36297# The linker used to build libraries.
36298LD=$lt_LD_CXX
36299
cristy0c60a692010-11-04 01:09:47 +000036300# How to create reloadable object files.
36301reload_flag=$lt_reload_flag_CXX
36302reload_cmds=$lt_reload_cmds_CXX
36303
cristy73bd4a52010-10-05 11:24:23 +000036304# Commands used to build an old-style archive.
36305old_archive_cmds=$lt_old_archive_cmds_CXX
36306
36307# A language specific compiler.
36308CC=$lt_compiler_CXX
36309
36310# Is the compiler the GNU compiler?
36311with_gcc=$GCC_CXX
36312
36313# Compiler flag to turn off builtin functions.
36314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36315
cristy73bd4a52010-10-05 11:24:23 +000036316# Additional compiler flags for building library objects.
36317pic_flag=$lt_lt_prog_compiler_pic_CXX
36318
cristyda16f162011-02-19 23:52:17 +000036319# How to pass a linker flag through the compiler.
36320wl=$lt_lt_prog_compiler_wl_CXX
36321
cristy73bd4a52010-10-05 11:24:23 +000036322# Compiler flag to prevent dynamic linking.
36323link_static_flag=$lt_lt_prog_compiler_static_CXX
36324
36325# Does compiler simultaneously support -c and -o options?
36326compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36327
36328# Whether or not to add -lc for building shared libraries.
36329build_libtool_need_lc=$archive_cmds_need_lc_CXX
36330
36331# Whether or not to disallow shared libs when runtime libs are static.
36332allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36333
36334# Compiler flag to allow reflexive dlopens.
36335export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36336
36337# Compiler flag to generate shared objects directly from archives.
36338whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36339
36340# Whether the compiler copes with passing no objects directly.
36341compiler_needs_object=$lt_compiler_needs_object_CXX
36342
36343# Create an old-style archive from a shared archive.
36344old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36345
36346# Create a temporary old-style archive to link instead of a shared archive.
36347old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36348
36349# Commands used to build a shared archive.
36350archive_cmds=$lt_archive_cmds_CXX
36351archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36352
36353# Commands used to build a loadable module if different from building
36354# a shared archive.
36355module_cmds=$lt_module_cmds_CXX
36356module_expsym_cmds=$lt_module_expsym_cmds_CXX
36357
36358# Whether we are building with GNU ld or not.
36359with_gnu_ld=$lt_with_gnu_ld_CXX
36360
36361# Flag that allows shared libraries with undefined symbols to be built.
36362allow_undefined_flag=$lt_allow_undefined_flag_CXX
36363
36364# Flag that enforces no undefined symbols.
36365no_undefined_flag=$lt_no_undefined_flag_CXX
36366
36367# Flag to hardcode \$libdir into a binary during linking.
36368# This must work even if \$libdir does not exist
36369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36370
36371# If ld is used when linking, flag to hardcode \$libdir into a binary
36372# during linking. This must work even if \$libdir does not exist.
36373hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36374
36375# Whether we need a single "-rpath" flag with a separated argument.
36376hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36377
36378# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36379# DIR into the resulting binary.
36380hardcode_direct=$hardcode_direct_CXX
36381
36382# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36383# DIR into the resulting binary and the resulting library dependency is
36384# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36385# library is relocated.
36386hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36387
36388# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36389# into the resulting binary.
36390hardcode_minus_L=$hardcode_minus_L_CXX
36391
36392# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36393# into the resulting binary.
36394hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36395
36396# Set to "yes" if building a shared library automatically hardcodes DIR
36397# into the library and all subsequent libraries and executables linked
36398# against it.
36399hardcode_automatic=$hardcode_automatic_CXX
36400
36401# Set to yes if linker adds runtime paths of dependent libraries
36402# to runtime path list.
36403inherit_rpath=$inherit_rpath_CXX
36404
36405# Whether libtool must link a program against all its dependency libraries.
36406link_all_deplibs=$link_all_deplibs_CXX
36407
cristy73bd4a52010-10-05 11:24:23 +000036408# Set to "yes" if exported symbols are required.
36409always_export_symbols=$always_export_symbols_CXX
36410
36411# The commands to list exported symbols.
36412export_symbols_cmds=$lt_export_symbols_cmds_CXX
36413
36414# Symbols that should not be listed in the preloaded symbols.
36415exclude_expsyms=$lt_exclude_expsyms_CXX
36416
36417# Symbols that must always be exported.
36418include_expsyms=$lt_include_expsyms_CXX
36419
36420# Commands necessary for linking programs (against libraries) with templates.
36421prelink_cmds=$lt_prelink_cmds_CXX
36422
cristyda16f162011-02-19 23:52:17 +000036423# Commands necessary for finishing linking programs.
36424postlink_cmds=$lt_postlink_cmds_CXX
36425
cristy73bd4a52010-10-05 11:24:23 +000036426# Specify filename containing input files.
36427file_list_spec=$lt_file_list_spec_CXX
36428
36429# How to hardcode a shared library path into an executable.
36430hardcode_action=$hardcode_action_CXX
36431
36432# The directories searched by this compiler when creating a shared library.
36433compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36434
36435# Dependencies to place before and after the objects being linked to
36436# create a shared library.
36437predep_objects=$lt_predep_objects_CXX
36438postdep_objects=$lt_postdep_objects_CXX
36439predeps=$lt_predeps_CXX
36440postdeps=$lt_postdeps_CXX
36441
36442# The library search path used internally by the compiler when linking
36443# a shared library.
36444compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36445
36446# ### END LIBTOOL TAG CONFIG: CXX
36447_LT_EOF
36448
36449 ;;
cristy3ed852e2009-09-05 21:47:34 +000036450 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36451 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36452 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36453 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36454 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36455 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36456
36457 esac
36458done # for ac_tag
36459
36460
cristy8b350f62009-11-15 23:12:43 +000036461as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036462_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036463ac_clean_files=$ac_clean_files_save
36464
36465test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036466 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036467
36468
36469# configure is writing to config.log, and then calls config.status.
36470# config.status does its own redirection, appending to config.log.
36471# Unfortunately, on DOS this fails, as config.log is still kept open
36472# by configure, so config.status won't be able to write to it; its
36473# output is simply discarded. So we exec the FD to /dev/null,
36474# effectively closing config.log, so it can be properly (re)opened and
36475# appended to by config.status. When coming back to configure, we
36476# need to make the FD available again.
36477if test "$no_create" != yes; then
36478 ac_cs_success=:
36479 ac_config_status_args=
36480 test "$silent" = yes &&
36481 ac_config_status_args="$ac_config_status_args --quiet"
36482 exec 5>/dev/null
36483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36484 exec 5>>config.log
36485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36486 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036487 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036488fi
36489if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036491$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36492fi
36493
36494
36495rm -f magick-version
36496
cristy430a7312010-01-21 20:44:04 +000036497result_dejavu_font_dir='none'
36498if test "${dejavu_font_dir}x" != 'x'; then
36499 result_dejavu_font_dir=$dejavu_font_dir
36500fi
36501
cristy3ed852e2009-09-05 21:47:34 +000036502result_ghostscript_font_dir='none'
36503if test "${ghostscript_font_dir}x" != 'x'; then
36504 result_ghostscript_font_dir=$ghostscript_font_dir
36505fi
36506
36507result_windows_font_dir='none'
36508if test "${windows_font_dir}x" != 'x'; then
36509 result_windows_font_dir=${windows_font_dir}
36510fi
36511
cristy8b350f62009-11-15 23:12:43 +000036512{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036513ImageMagick is configured as follows. Please verify that this configuration
36514matches your expectations.
36515
36516Host system type: $host
36517Build system type: $build
36518
36519 Option Value
36520-------------------------------------------------------------------------------
36521Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36522Static libraries --enable-static=$enable_static $libtool_build_static_libs
36523Module support --with-modules=$with_modules $with_modules
36524GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36525Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36526High Dynamic Range Imagery
36527 --enable-hdri=$enable_hdri $enable_hdri
36528
36529Delegate Configuration:
36530BZLIB --with-bzlib=$with_bzlib $have_bzlib
36531Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036532Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036533DJVU --with-djvu=$with_djvu $have_djvu
36534DPS --with-dps=$with_dps $have_dps
36535FFTW --with-fftw=$with_fftw $have_fftw
36536FlashPIX --with-fpx=$with_fpx $have_fpx
36537FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36538FreeType --with-freetype=$with_freetype $have_freetype
36539GhostPCL None $PCLDelegate ($PCLVersion)
36540GhostXPS None $XPSDelegate ($XPSVersion)
36541Ghostscript None $PSDelegate ($GSVersion)
36542Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36543Ghostscript lib --with-gslib=$with_gslib $have_gslib
36544Graphviz --with-gvc=$with_gvc $have_gvc
36545JBIG --with-jbig=$with_jbig $have_jbig
36546JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36547JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036548LCMS v1 --with-lcms=$with_lcms $have_lcms
36549LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036550LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036551LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036552Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36553OpenEXR --with-openexr=$with_openexr $have_openexr
36554PERL --with-perl=$with_perl $have_perl
36555PNG --with-png=$with_png $have_png
36556RSVG --with-rsvg=$with_rsvg $have_rsvg
36557TIFF --with-tiff=$with_tiff $have_tiff
36558Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36559WMF --with-wmf=$with_wmf $have_wmf
36560X11 --with-x=$with_x $have_x
36561XML --with-xml=$with_xml $have_xml
36562ZLIB --with-zlib=$with_zlib $have_zlib
36563
36564X11 Configuration:
36565 X_CFLAGS = $X_CFLAGS
36566 X_PRE_LIBS = $X_PRE_LIBS
36567 X_LIBS = $X_LIBS
36568 X_EXTRA_LIBS = $X_EXTRA_LIBS
36569
36570Options used to compile and link:
36571 PREFIX = $PREFIX_DIR
36572 EXEC-PREFIX = $EXEC_PREFIX_DIR
36573 VERSION = $PACKAGE_VERSION
36574 CC = $CC
36575 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036576 CPPFLAGS = $MAGICK_CPPFLAGS
36577 PCFLAGS = $MAGICK_PCFLAGS
36578 DEFS = $DEFS
36579 LDFLAGS = $LDFLAGS
36580 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36581 LIBS = $MAGICK_LIBS
36582 CXX = $CXX
36583 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036584 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036585" >&5
36586$as_echo "
36587ImageMagick is configured as follows. Please verify that this configuration
36588matches your expectations.
36589
36590Host system type: $host
36591Build system type: $build
36592
36593 Option Value
36594-------------------------------------------------------------------------------
36595Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36596Static libraries --enable-static=$enable_static $libtool_build_static_libs
36597Module support --with-modules=$with_modules $with_modules
36598GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36599Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36600High Dynamic Range Imagery
36601 --enable-hdri=$enable_hdri $enable_hdri
36602
36603Delegate Configuration:
36604BZLIB --with-bzlib=$with_bzlib $have_bzlib
36605Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036606Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036607DJVU --with-djvu=$with_djvu $have_djvu
36608DPS --with-dps=$with_dps $have_dps
36609FFTW --with-fftw=$with_fftw $have_fftw
36610FlashPIX --with-fpx=$with_fpx $have_fpx
36611FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36612FreeType --with-freetype=$with_freetype $have_freetype
36613GhostPCL None $PCLDelegate ($PCLVersion)
36614GhostXPS None $XPSDelegate ($XPSVersion)
36615Ghostscript None $PSDelegate ($GSVersion)
36616Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36617Ghostscript lib --with-gslib=$with_gslib $have_gslib
36618Graphviz --with-gvc=$with_gvc $have_gvc
36619JBIG --with-jbig=$with_jbig $have_jbig
36620JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36621JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036622LCMS v1 --with-lcms=$with_lcms $have_lcms
36623LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036624LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036625LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036626Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36627OpenEXR --with-openexr=$with_openexr $have_openexr
36628PERL --with-perl=$with_perl $have_perl
36629PNG --with-png=$with_png $have_png
36630RSVG --with-rsvg=$with_rsvg $have_rsvg
36631TIFF --with-tiff=$with_tiff $have_tiff
36632Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36633WMF --with-wmf=$with_wmf $have_wmf
36634X11 --with-x=$with_x $have_x
36635XML --with-xml=$with_xml $have_xml
36636ZLIB --with-zlib=$with_zlib $have_zlib
36637
36638X11 Configuration:
36639 X_CFLAGS = $X_CFLAGS
36640 X_PRE_LIBS = $X_PRE_LIBS
36641 X_LIBS = $X_LIBS
36642 X_EXTRA_LIBS = $X_EXTRA_LIBS
36643
36644Options used to compile and link:
36645 PREFIX = $PREFIX_DIR
36646 EXEC-PREFIX = $EXEC_PREFIX_DIR
36647 VERSION = $PACKAGE_VERSION
36648 CC = $CC
36649 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036650 CPPFLAGS = $MAGICK_CPPFLAGS
36651 PCFLAGS = $MAGICK_PCFLAGS
36652 DEFS = $DEFS
36653 LDFLAGS = $LDFLAGS
36654 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36655 LIBS = $MAGICK_LIBS
36656 CXX = $CXX
36657 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036658 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036659" >&6; }