blob: 859bb601e621c06ef99cd1334a430ae5cd86ceeb [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000738WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000742WEBP_LIBS
743WEBP_DELEGATE_FALSE
744WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746TIFF_DELEGATE_FALSE
747TIFF_DELEGATE_TRUE
748CAIRO_DELEGATE_FALSE
749CAIRO_DELEGATE_TRUE
750RSVG_DELEGATE_FALSE
751RSVG_DELEGATE_TRUE
752CAIRO_SVG_LIBS
753CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000754RSVG_LIBS
755RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000756PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757PNG_DELEGATE_FALSE
758PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000759PANGOFT2_DELEGATE_FALSE
760PANGOFT2_DELEGATE_TRUE
761PANGO_DELEGATE_FALSE
762PANGO_DELEGATE_TRUE
763PANGO_LIBS
764PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000765OPENEXR_DELEGATE_FALSE
766OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000767OPENEXR_LIBS
768OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000771LZMA_LIBS
772LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000773LQR_DELEGATE_FALSE
774LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775LQR_LIBS
776LQR_CFLAGS
777LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778LCMS_DELEGATE_FALSE
779LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JP2_DELEGATE_FALSE
782JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JPEG_DELEGATE_FALSE
785JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787JBIG_DELEGATE_FALSE
788JBIG_DELEGATE_TRUE
789GVC_DELEGATE_FALSE
790GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791GVC_LIBS
792GVC_CFLAGS
793GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794GS_DELEGATE_FALSE
795GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FREETYPE_DELEGATE_FALSE
798FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000799freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000800FONTCONFIG_DELEGATE_FALSE
801FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802FONTCONFIG_LIBS
803FONTCONFIG_CFLAGS
804FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FPX_DELEGATE_FALSE
806FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808FFTW_DELEGATE_FALSE
809FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DJVU_DELEGATE_FALSE
812DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814DPS_DELEGATE_FALSE
815DPS_DELEGATE_TRUE
816AUTOTRACE_DELEGATE_FALSE
817AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818AUTOTRACE_LIBS
819AUTOTRACE_CFLAGS
820LIB_DL
821ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822ZLIB_DELEGATE_FALSE
823ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824XEXT_LIBS
825X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826X11_DELEGATE_FALSE
827X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828X_EXTRA_LIBS
829X_LIBS
830X_PRE_LIBS
831X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000832XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000833BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834BZLIB_DELEGATE_FALSE
835BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836CCMALLOCDelegate
837UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838HasUMEM_FALSE
839HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840THREAD_LIBS
841GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842WITH_MAGICK_PLUS_PLUS_FALSE
843WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000845MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000846POW_LIB
847LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000856UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000858INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000859INT32_T
860UINT16_T
861INT16_T
862UINT8_T
863INT8_T
864LIBRARY_EXTRA_CPPFLAGS
865MODULE_EXTRA_CPPFLAGS
866LIBSTDCLDFLAGS
867PERL_MAKE_OPTIONS
868QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872MAGICK_HDRI
873DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_LTDL_FALSE
875WITH_LTDL_TRUE
876WITH_MODULES_FALSE
877WITH_MODULES_TRUE
878WITH_SHARED_LIBS_FALSE
879WITH_SHARED_LIBS_TRUE
880LTDLOPEN
881LT_CONFIG_H
882CONVENIENCE_LTDL_FALSE
883CONVENIENCE_LTDL_TRUE
884INSTALL_LTDL_FALSE
885INSTALL_LTDL_TRUE
886ARGZ_H
887sys_symbol_underscore
888LIBADD_DL
889LT_DLPREOPEN
890LIBADD_DLD_LINK
891LIBADD_SHL_LOAD
892LIBADD_DLOPEN
893LT_DLLOADERS
894INCLTDL
895LTDLINCL
896LTDLDEPS
897LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000898LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000899CXXCPP
900OTOOL64
901OTOOL
902LIPO
903NMEDIT
904DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000905MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000906RANLIB
cristyda16f162011-02-19 23:52:17 +0000907ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000908AR
909NM
910ac_ct_DUMPBIN
911DUMPBIN
912LIBTOOL
913OBJDUMP
914DLLTOOL
915AS
cristy3ed852e2009-09-05 21:47:34 +0000916LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000917CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000918CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000919OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000920PTHREAD_CFLAGS
921PTHREAD_LIBS
922PTHREAD_CC
923ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000924SHAREARCH_DIR
925INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000926WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000927USING_CL_FALSE
928USING_CL_TRUE
929CYGWIN_BUILD_FALSE
930CYGWIN_BUILD_TRUE
931WIN32_NATIVE_BUILD_FALSE
932WIN32_NATIVE_BUILD_TRUE
933WINGDI32_DELEGATE_FALSE
934WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000935GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000937LN_S
cristy3ed852e2009-09-05 21:47:34 +0000938LD
cristy73bd4a52010-10-05 11:24:23 +0000939FGREP
940SED
941am__fastdepCXX_FALSE
942am__fastdepCXX_TRUE
943CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000944ac_ct_CXX
945CXXFLAGS
946CXX
cristya0b81c32010-01-22 02:54:33 +0000947EGREP
948GREP
949CPP
cristy73bd4a52010-10-05 11:24:23 +0000950am__fastdepCC_FALSE
951am__fastdepCC_TRUE
952CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000953am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000954AMDEPBACKSLASH
955AMDEP_FALSE
956AMDEP_TRUE
957am__quote
958am__include
959DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000960OBJEXT
961EXEEXT
962ac_ct_CC
963CPPFLAGS
964LDFLAGS
965CFLAGS
966CC
967DIRSEP
968MAGICK_FILTER_MODULE_PATH
969MAGICK_CONFIGURE_BUILD_PATH
970MAGICK_CONFIGURE_SRC_PATH
971MAGICK_CODER_MODULE_PATH
972MAN_DIR
973INFO_DIR
974PERSISTINCLUDE_DIR
975INCLUDE_DIR
976LIB_DIR
977LOCALSTATE_DIR
978SHAREDSTATE_DIR
979SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000980DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000981DATA_DIR
982LIBEXEC_DIR
983SBIN_DIR
984BIN_DIR
985EXEC_PREFIX_DIR
986PREFIX_DIR
987CONFIG_STATUS_DEPENDENCIES
988MAGICK_LIB_VERSION_NUMBER
989MAGICK_LIB_VERSION_TEXT
990MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000991AM_BACKSLASH
992AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000993AM_DEFAULT_V
994AM_V
cristy73bd4a52010-10-05 11:24:23 +0000995am__untar
996am__tar
997AMTAR
998am__leading_dot
999SET_MAKE
1000AWK
1001mkdir_p
1002MKDIR_P
1003INSTALL_STRIP_PROGRAM
1004STRIP
1005install_sh
1006MAKEINFO
1007AUTOHEADER
1008AUTOMAKE
1009AUTOCONF
1010ACLOCAL
1011VERSION
1012PACKAGE
1013CYGPATH_W
1014am__isrc
1015INSTALL_DATA
1016INSTALL_SCRIPT
1017INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001018PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001019PACKAGE_RELEASE_DATE
1020PACKAGE_LIB_VERSION_NUMBER
1021PACKAGE_LIB_VERSION
1022PACKAGE_CHANGE_DATE
1023PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001024PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001025MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001026MAGICK_LIBRARY_VERSION_INFO
1027MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001028MAGICK_LIBRARY_AGE
1029MAGICK_LIBRARY_REVISION
1030MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001031MAGICK_TARGET_OS
1032MAGICK_TARGET_VENDOR
1033MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001034target_os
1035target_vendor
1036target_cpu
1037target
1038host_os
1039host_vendor
1040host_cpu
1041host
1042build_os
1043build_vendor
1044build_cpu
1045build
1046CONFIGURE_ARGS
1047DISTCHECK_CONFIG_FLAGS
1048target_alias
1049host_alias
1050build_alias
1051LIBS
1052ECHO_T
1053ECHO_N
1054ECHO_C
1055DEFS
1056mandir
1057localedir
1058libdir
1059psdir
1060pdfdir
1061dvidir
1062htmldir
1063infodir
1064docdir
1065oldincludedir
1066includedir
1067localstatedir
1068sharedstatedir
1069sysconfdir
1070datadir
1071datarootdir
1072libexecdir
1073sbindir
1074bindir
1075program_transform_name
1076prefix
1077exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001078PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001079PACKAGE_BUGREPORT
1080PACKAGE_STRING
1081PACKAGE_VERSION
1082PACKAGE_TARNAME
1083PACKAGE_NAME
1084PATH_SEPARATOR
1085SHELL'
1086ac_subst_files=''
1087ac_user_opts='
1088enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001089enable_silent_rules
1090enable_dependency_tracking
1091with_gnu_ld
1092with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001093enable_bounds_checking
1094enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001095with_includearch_dir
1096with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001097with_threads
1098enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001099enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001100enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001101enable_shared
1102enable_static
1103with_pic
1104enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001105with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001106enable_libtool_lock
1107with_included_ltdl
1108with_ltdl_include
1109with_ltdl_lib
1110enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001111with_modules
1112enable_delegate_build
1113enable_deprecated
1114enable_installed
1115enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001116enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001117enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001118enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001119enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001120enable_ccmalloc
1121enable_efence
1122enable_prof
1123enable_gprof
1124enable_gcov
1125with_method_prefix
1126with_quantum_depth
1127with_cache
1128with_frozenpaths
1129with_magick_plus_plus
1130with_perl
1131with_perl_options
1132with_umem
1133with_libstdc
1134with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001135with_x
cristy3ed852e2009-09-05 21:47:34 +00001136with_zlib
1137with_autotrace
1138with_dps
1139with_djvu
cristy430a7312010-01-21 20:44:04 +00001140with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001141with_fftw
1142with_fpx
1143with_fontconfig
1144with_freetype
1145with_gslib
1146with_fontpath
1147with_gs_font_dir
1148with_gvc
1149with_jbig
1150with_jpeg
1151with_jp2
1152with_lcms
cristy71203402010-06-18 13:12:03 +00001153with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001154with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001155with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001156with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001157with_pango
cristy3ed852e2009-09-05 21:47:34 +00001158with_png
1159with_rsvg
1160with_tiff
cristyb1860752011-03-14 00:27:46 +00001161with_webp
cristy3ed852e2009-09-05 21:47:34 +00001162with_windows_font_dir
1163with_wmf
1164with_xml
1165'
1166 ac_precious_vars='build_alias
1167host_alias
1168target_alias
1169CC
1170CFLAGS
1171LDFLAGS
1172LIBS
1173CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001174CPP
cristy3ed852e2009-09-05 21:47:34 +00001175CXX
1176CXXFLAGS
1177CCC
cristy73bd4a52010-10-05 11:24:23 +00001178PKG_CONFIG
1179CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001180XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001181AUTOTRACE_CFLAGS
1182AUTOTRACE_LIBS
1183FONTCONFIG_CFLAGS
1184FONTCONFIG_LIBS
1185GVC_CFLAGS
1186GVC_LIBS
1187LQR_CFLAGS
1188LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001189LZMA_CFLAGS
1190LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001191OPENEXR_CFLAGS
1192OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001193PANGO_CFLAGS
1194PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001195RSVG_CFLAGS
1196RSVG_LIBS
1197CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001198CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001199
1200
1201# Initialize some variables set by options.
1202ac_init_help=
1203ac_init_version=false
1204ac_unrecognized_opts=
1205ac_unrecognized_sep=
1206# The variables have the same names as the options, with
1207# dashes changed to underlines.
1208cache_file=/dev/null
1209exec_prefix=NONE
1210no_create=
1211no_recursion=
1212prefix=NONE
1213program_prefix=NONE
1214program_suffix=NONE
1215program_transform_name=s,x,x,
1216silent=
1217site=
1218srcdir=
1219verbose=
1220x_includes=NONE
1221x_libraries=NONE
1222
1223# Installation directory options.
1224# These are left unexpanded so users can "make install exec_prefix=/foo"
1225# and all the variables that are supposed to be based on exec_prefix
1226# by default will actually change.
1227# Use braces instead of parens because sh, perl, etc. also accept them.
1228# (The list follows the same order as the GNU Coding Standards.)
1229bindir='${exec_prefix}/bin'
1230sbindir='${exec_prefix}/sbin'
1231libexecdir='${exec_prefix}/libexec'
1232datarootdir='${prefix}/share'
1233datadir='${datarootdir}'
1234sysconfdir='${prefix}/etc'
1235sharedstatedir='${prefix}/com'
1236localstatedir='${prefix}/var'
1237includedir='${prefix}/include'
1238oldincludedir='/usr/include'
1239docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1240infodir='${datarootdir}/info'
1241htmldir='${docdir}'
1242dvidir='${docdir}'
1243pdfdir='${docdir}'
1244psdir='${docdir}'
1245libdir='${exec_prefix}/lib'
1246localedir='${datarootdir}/locale'
1247mandir='${datarootdir}/man'
1248
1249ac_prev=
1250ac_dashdash=
1251for ac_option
1252do
1253 # If the previous option needs an argument, assign it.
1254 if test -n "$ac_prev"; then
1255 eval $ac_prev=\$ac_option
1256 ac_prev=
1257 continue
1258 fi
1259
1260 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001261 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1262 *=) ac_optarg= ;;
1263 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001264 esac
1265
1266 # Accept the important Cygnus configure options, so we can diagnose typos.
1267
1268 case $ac_dashdash$ac_option in
1269 --)
1270 ac_dashdash=yes ;;
1271
1272 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1273 ac_prev=bindir ;;
1274 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1275 bindir=$ac_optarg ;;
1276
1277 -build | --build | --buil | --bui | --bu)
1278 ac_prev=build_alias ;;
1279 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1280 build_alias=$ac_optarg ;;
1281
1282 -cache-file | --cache-file | --cache-fil | --cache-fi \
1283 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1284 ac_prev=cache_file ;;
1285 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1286 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1287 cache_file=$ac_optarg ;;
1288
1289 --config-cache | -C)
1290 cache_file=config.cache ;;
1291
1292 -datadir | --datadir | --datadi | --datad)
1293 ac_prev=datadir ;;
1294 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1295 datadir=$ac_optarg ;;
1296
1297 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1298 | --dataroo | --dataro | --datar)
1299 ac_prev=datarootdir ;;
1300 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1301 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1302 datarootdir=$ac_optarg ;;
1303
1304 -disable-* | --disable-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001308 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1312 *"
1313"enable_$ac_useropt"
1314"*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval enable_$ac_useropt=no ;;
1319
1320 -docdir | --docdir | --docdi | --doc | --do)
1321 ac_prev=docdir ;;
1322 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1323 docdir=$ac_optarg ;;
1324
1325 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1326 ac_prev=dvidir ;;
1327 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1328 dvidir=$ac_optarg ;;
1329
1330 -enable-* | --enable-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001334 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339"enable_$ac_useropt"
1340"*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval enable_$ac_useropt=\$ac_optarg ;;
1345
1346 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1347 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1348 | --exec | --exe | --ex)
1349 ac_prev=exec_prefix ;;
1350 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1351 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1352 | --exec=* | --exe=* | --ex=*)
1353 exec_prefix=$ac_optarg ;;
1354
1355 -gas | --gas | --ga | --g)
1356 # Obsolete; use --with-gas.
1357 with_gas=yes ;;
1358
1359 -help | --help | --hel | --he | -h)
1360 ac_init_help=long ;;
1361 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1362 ac_init_help=recursive ;;
1363 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1364 ac_init_help=short ;;
1365
1366 -host | --host | --hos | --ho)
1367 ac_prev=host_alias ;;
1368 -host=* | --host=* | --hos=* | --ho=*)
1369 host_alias=$ac_optarg ;;
1370
1371 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1372 ac_prev=htmldir ;;
1373 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1374 | --ht=*)
1375 htmldir=$ac_optarg ;;
1376
1377 -includedir | --includedir | --includedi | --included | --include \
1378 | --includ | --inclu | --incl | --inc)
1379 ac_prev=includedir ;;
1380 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1381 | --includ=* | --inclu=* | --incl=* | --inc=*)
1382 includedir=$ac_optarg ;;
1383
1384 -infodir | --infodir | --infodi | --infod | --info | --inf)
1385 ac_prev=infodir ;;
1386 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1387 infodir=$ac_optarg ;;
1388
1389 -libdir | --libdir | --libdi | --libd)
1390 ac_prev=libdir ;;
1391 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1392 libdir=$ac_optarg ;;
1393
1394 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1395 | --libexe | --libex | --libe)
1396 ac_prev=libexecdir ;;
1397 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1398 | --libexe=* | --libex=* | --libe=*)
1399 libexecdir=$ac_optarg ;;
1400
1401 -localedir | --localedir | --localedi | --localed | --locale)
1402 ac_prev=localedir ;;
1403 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1404 localedir=$ac_optarg ;;
1405
1406 -localstatedir | --localstatedir | --localstatedi | --localstated \
1407 | --localstate | --localstat | --localsta | --localst | --locals)
1408 ac_prev=localstatedir ;;
1409 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1410 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1411 localstatedir=$ac_optarg ;;
1412
1413 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1414 ac_prev=mandir ;;
1415 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1416 mandir=$ac_optarg ;;
1417
1418 -nfp | --nfp | --nf)
1419 # Obsolete; use --without-fp.
1420 with_fp=no ;;
1421
1422 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1423 | --no-cr | --no-c | -n)
1424 no_create=yes ;;
1425
1426 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1427 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1428 no_recursion=yes ;;
1429
1430 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1431 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1432 | --oldin | --oldi | --old | --ol | --o)
1433 ac_prev=oldincludedir ;;
1434 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1435 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1436 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1437 oldincludedir=$ac_optarg ;;
1438
1439 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1440 ac_prev=prefix ;;
1441 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1442 prefix=$ac_optarg ;;
1443
1444 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1445 | --program-pre | --program-pr | --program-p)
1446 ac_prev=program_prefix ;;
1447 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1448 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1449 program_prefix=$ac_optarg ;;
1450
1451 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1452 | --program-suf | --program-su | --program-s)
1453 ac_prev=program_suffix ;;
1454 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1455 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1456 program_suffix=$ac_optarg ;;
1457
1458 -program-transform-name | --program-transform-name \
1459 | --program-transform-nam | --program-transform-na \
1460 | --program-transform-n | --program-transform- \
1461 | --program-transform | --program-transfor \
1462 | --program-transfo | --program-transf \
1463 | --program-trans | --program-tran \
1464 | --progr-tra | --program-tr | --program-t)
1465 ac_prev=program_transform_name ;;
1466 -program-transform-name=* | --program-transform-name=* \
1467 | --program-transform-nam=* | --program-transform-na=* \
1468 | --program-transform-n=* | --program-transform-=* \
1469 | --program-transform=* | --program-transfor=* \
1470 | --program-transfo=* | --program-transf=* \
1471 | --program-trans=* | --program-tran=* \
1472 | --progr-tra=* | --program-tr=* | --program-t=*)
1473 program_transform_name=$ac_optarg ;;
1474
1475 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1476 ac_prev=pdfdir ;;
1477 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1478 pdfdir=$ac_optarg ;;
1479
1480 -psdir | --psdir | --psdi | --psd | --ps)
1481 ac_prev=psdir ;;
1482 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1483 psdir=$ac_optarg ;;
1484
1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486 | -silent | --silent | --silen | --sile | --sil)
1487 silent=yes ;;
1488
1489 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1490 ac_prev=sbindir ;;
1491 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1492 | --sbi=* | --sb=*)
1493 sbindir=$ac_optarg ;;
1494
1495 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1496 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1497 | --sharedst | --shareds | --shared | --share | --shar \
1498 | --sha | --sh)
1499 ac_prev=sharedstatedir ;;
1500 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1501 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1502 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1503 | --sha=* | --sh=*)
1504 sharedstatedir=$ac_optarg ;;
1505
1506 -site | --site | --sit)
1507 ac_prev=site ;;
1508 -site=* | --site=* | --sit=*)
1509 site=$ac_optarg ;;
1510
1511 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1512 ac_prev=srcdir ;;
1513 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1514 srcdir=$ac_optarg ;;
1515
1516 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1517 | --syscon | --sysco | --sysc | --sys | --sy)
1518 ac_prev=sysconfdir ;;
1519 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1520 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1521 sysconfdir=$ac_optarg ;;
1522
1523 -target | --target | --targe | --targ | --tar | --ta | --t)
1524 ac_prev=target_alias ;;
1525 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1526 target_alias=$ac_optarg ;;
1527
1528 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1529 verbose=yes ;;
1530
1531 -version | --version | --versio | --versi | --vers | -V)
1532 ac_init_version=: ;;
1533
1534 -with-* | --with-*)
1535 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1536 # Reject names that are not valid shell variable names.
1537 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001538 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001539 ac_useropt_orig=$ac_useropt
1540 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1541 case $ac_user_opts in
1542 *"
1543"with_$ac_useropt"
1544"*) ;;
1545 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1546 ac_unrecognized_sep=', ';;
1547 esac
1548 eval with_$ac_useropt=\$ac_optarg ;;
1549
1550 -without-* | --without-*)
1551 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1552 # Reject names that are not valid shell variable names.
1553 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001554 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001555 ac_useropt_orig=$ac_useropt
1556 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1557 case $ac_user_opts in
1558 *"
1559"with_$ac_useropt"
1560"*) ;;
1561 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1562 ac_unrecognized_sep=', ';;
1563 esac
1564 eval with_$ac_useropt=no ;;
1565
1566 --x)
1567 # Obsolete; use --with-x.
1568 with_x=yes ;;
1569
1570 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1571 | --x-incl | --x-inc | --x-in | --x-i)
1572 ac_prev=x_includes ;;
1573 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1574 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1575 x_includes=$ac_optarg ;;
1576
1577 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1578 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1579 ac_prev=x_libraries ;;
1580 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1581 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1582 x_libraries=$ac_optarg ;;
1583
cristy98dddb52010-11-04 00:30:15 +00001584 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1585Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001586 ;;
1587
1588 *=*)
1589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1590 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001591 case $ac_envvar in #(
1592 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001593 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001594 esac
cristy3ed852e2009-09-05 21:47:34 +00001595 eval $ac_envvar=\$ac_optarg
1596 export $ac_envvar ;;
1597
1598 *)
1599 # FIXME: should be removed in autoconf 3.0.
1600 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1602 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001603 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001604 ;;
1605
1606 esac
1607done
1608
1609if test -n "$ac_prev"; then
1610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001612fi
1613
1614if test -n "$ac_unrecognized_opts"; then
1615 case $enable_option_checking in
1616 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001617 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001618 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1619 esac
1620fi
1621
1622# Check all directory arguments for consistency.
1623for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1624 datadir sysconfdir sharedstatedir localstatedir includedir \
1625 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1626 libdir localedir mandir
1627do
1628 eval ac_val=\$$ac_var
1629 # Remove trailing slashes.
1630 case $ac_val in
1631 */ )
1632 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1633 eval $ac_var=\$ac_val;;
1634 esac
1635 # Be sure to have absolute directory names.
1636 case $ac_val in
1637 [\\/$]* | ?:[\\/]* ) continue;;
1638 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1639 esac
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001641done
1642
1643# There might be people who depend on the old broken behavior: `$host'
1644# used to hold the argument of --host etc.
1645# FIXME: To remove some day.
1646build=$build_alias
1647host=$host_alias
1648target=$target_alias
1649
1650# FIXME: To remove some day.
1651if test "x$host_alias" != x; then
1652 if test "x$build_alias" = x; then
1653 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001654 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1655 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001656 elif test "x$build_alias" != "x$host_alias"; then
1657 cross_compiling=yes
1658 fi
1659fi
1660
1661ac_tool_prefix=
1662test -n "$host_alias" && ac_tool_prefix=$host_alias-
1663
1664test "$silent" = yes && exec 6>/dev/null
1665
1666
1667ac_pwd=`pwd` && test -n "$ac_pwd" &&
1668ac_ls_di=`ls -di .` &&
1669ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001670 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001671test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001672 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001673
1674
1675# Find the source files, if location was not specified.
1676if test -z "$srcdir"; then
1677 ac_srcdir_defaulted=yes
1678 # Try the directory containing this script, then the parent directory.
1679 ac_confdir=`$as_dirname -- "$as_myself" ||
1680$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1681 X"$as_myself" : 'X\(//\)[^/]' \| \
1682 X"$as_myself" : 'X\(//\)$' \| \
1683 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1684$as_echo X"$as_myself" |
1685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1686 s//\1/
1687 q
1688 }
1689 /^X\(\/\/\)[^/].*/{
1690 s//\1/
1691 q
1692 }
1693 /^X\(\/\/\)$/{
1694 s//\1/
1695 q
1696 }
1697 /^X\(\/\).*/{
1698 s//\1/
1699 q
1700 }
1701 s/.*/./; q'`
1702 srcdir=$ac_confdir
1703 if test ! -r "$srcdir/$ac_unique_file"; then
1704 srcdir=..
1705 fi
1706else
1707 ac_srcdir_defaulted=no
1708fi
1709if test ! -r "$srcdir/$ac_unique_file"; then
1710 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001711 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001712fi
1713ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1714ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001715 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001716 pwd)`
1717# When building in place, set srcdir=.
1718if test "$ac_abs_confdir" = "$ac_pwd"; then
1719 srcdir=.
1720fi
1721# Remove unnecessary trailing slashes from srcdir.
1722# Double slashes in file names in object file debugging info
1723# mess up M-x gdb in Emacs.
1724case $srcdir in
1725*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1726esac
1727for ac_var in $ac_precious_vars; do
1728 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1729 eval ac_env_${ac_var}_value=\$${ac_var}
1730 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1731 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1732done
1733
1734#
1735# Report the --help message.
1736#
1737if test "$ac_init_help" = "long"; then
1738 # Omit some internal or obsolete options to make the list less imposing.
1739 # This message is too long to be a string in the A/UX 3.1 sh.
1740 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001741\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001742
1743Usage: $0 [OPTION]... [VAR=VALUE]...
1744
1745To assign environment variables (e.g., CC, CFLAGS...), specify them as
1746VAR=VALUE. See below for descriptions of some of the useful variables.
1747
1748Defaults for the options are specified in brackets.
1749
1750Configuration:
1751 -h, --help display this help and exit
1752 --help=short display options specific to this package
1753 --help=recursive display the short help of all the included packages
1754 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001755 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001756 --cache-file=FILE cache test results in FILE [disabled]
1757 -C, --config-cache alias for \`--cache-file=config.cache'
1758 -n, --no-create do not create output files
1759 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1760
1761Installation directories:
1762 --prefix=PREFIX install architecture-independent files in PREFIX
1763 [$ac_default_prefix]
1764 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1765 [PREFIX]
1766
1767By default, \`make install' will install all the files in
1768\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1769an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1770for instance \`--prefix=\$HOME'.
1771
1772For better control, use the options below.
1773
1774Fine tuning of the installation directories:
1775 --bindir=DIR user executables [EPREFIX/bin]
1776 --sbindir=DIR system admin executables [EPREFIX/sbin]
1777 --libexecdir=DIR program executables [EPREFIX/libexec]
1778 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1779 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1780 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1781 --libdir=DIR object code libraries [EPREFIX/lib]
1782 --includedir=DIR C header files [PREFIX/include]
1783 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1784 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1785 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1786 --infodir=DIR info documentation [DATAROOTDIR/info]
1787 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1788 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001789 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001790 --htmldir=DIR html documentation [DOCDIR]
1791 --dvidir=DIR dvi documentation [DOCDIR]
1792 --pdfdir=DIR pdf documentation [DOCDIR]
1793 --psdir=DIR ps documentation [DOCDIR]
1794_ACEOF
1795
1796 cat <<\_ACEOF
1797
cristy73bd4a52010-10-05 11:24:23 +00001798Program names:
1799 --program-prefix=PREFIX prepend PREFIX to installed program names
1800 --program-suffix=SUFFIX append SUFFIX to installed program names
1801 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1802
cristy3ed852e2009-09-05 21:47:34 +00001803X features:
1804 --x-includes=DIR X include files are in DIR
1805 --x-libraries=DIR X library files are in DIR
1806
1807System types:
1808 --build=BUILD configure for building on BUILD [guessed]
1809 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1810 --target=TARGET configure for building compilers for TARGET [HOST]
1811_ACEOF
1812fi
1813
1814if test -n "$ac_init_help"; then
1815 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001816 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001817 esac
1818 cat <<\_ACEOF
1819
1820Optional Features:
1821 --disable-option-checking ignore unrecognized --enable/--with options
1822 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1823 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001824 --enable-silent-rules less verbose build output (undo: `make V=1')
1825 --disable-silent-rules verbose build output (undo: `make V=0')
1826 --disable-dependency-tracking speeds up one-time build
1827 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001828 --bounds-checking enable run-time bounds-checking
1829 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001830 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001831 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001832 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001833 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001834 --enable-shared[=PKGS] build shared libraries [default=yes]
1835 --enable-static[=PKGS] build static libraries [default=yes]
1836 --enable-fast-install[=PKGS]
1837 optimize for fast installation [default=yes]
1838 --disable-libtool-lock avoid locking (might break parallel builds)
1839 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001840 --enable-delegate-build look for delegate libraries in build directory
1841 --disable-deprecated exclude deprecated methods in MagickCore and
1842 MagickWand API's
1843 --disable-installed Formally install ImageMagick under PREFIX
1844 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001845 --enable-zero-configuration
1846 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001847 zero-configuration ImageMagick
1848 --enable-hdri accurately represent the wide range of intensity
1849 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001850 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001851 --enable-maintainer-mode enable make rules and dependencies not useful
1852 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001853 --enable-ccmalloc enable 'ccmalloc' memory debug support
1854 --enable-efence enable 'efence' memory debug support
1855 --enable-prof enable 'prof' profiling support
1856 --enable-gprof enable 'gprof' profiling support
1857 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001858 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001859
1860Optional Packages:
1861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001863 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001864 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy670aa3c2011-11-03 00:54:00 +00001865 --includearch-dir=DIR ARCH specific include directory
1866 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001867 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001868 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001869 both]
cristyda16f162011-02-19 23:52:17 +00001870 --with-sysroot=DIR Search for dependent libraries within DIR
1871 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001872 --with-included-ltdl use the GNU ltdl sources included here
1873 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1874 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001875 --with-modules enable building dynamically loadable modules
1876 --with-method-prefix=PREFIX
1877 prefix MagickCore API methods
1878 --with-quantum-depth=DEPTH
1879 number of bits in a pixel quantum (default 16)
1880 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1881 memory)
1882 --with-frozenpaths freeze delegate paths
1883 --without-magick-plus-plus
1884 disable build/install of Magick++
1885 --with-perl enable build/install of PerlMagick
1886 --with-perl-options=OPTIONS
1887 options to pass on command-line when generating
1888 PerlMagick's build file
1889 --with-umem enable umem memory allocation library support
1890 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1891 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001892 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001893 --without-zlib disable ZLIB support
1894 --with-autotrace enable autotrace support
1895 --without-dps disable Display Postscript support
1896 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001897 --with-dejavu-font-dir=DIR
1898 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001899 --without-fftw disable FFTW support
1900 --without-fpx disable FlashPIX support
1901 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001902 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001903 --without-gslib enable Ghostscript library support
1904 --with-fontpath=DIR prepend to default font search path
1905 --with-gs-font-dir=DIR Ghostscript font directory
1906 --without-gvc disable GVC support
1907 --without-jbig disable JBIG support
1908 --without-jpeg disable JPEG support
1909 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001910 --without-lcms disable lcms (v1.1X) support
1911 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001912 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001913 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001915 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001916 --without-png disable PNG support
1917 --without-rsvg disable RSVG support
1918 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001919 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001920 --with-windows-font-dir=DIR
1921 directory containing MS-Windows fonts
cristy50c2b692012-02-06 14:45:10 +00001922 --without-wmf disable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-xml disable XML support
1924
1925Some influential environment variables:
1926 CC C compiler command
1927 CFLAGS C compiler flags
1928 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1929 nonstandard directory <lib dir>
1930 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001931 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001932 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001933 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001934 CXX C++ compiler command
1935 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001936 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001937 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001938 XMKMF Path to xmkmf, Makefile generator for X Window System
1939 AUTOTRACE_CFLAGS
1940 C compiler flags for AUTOTRACE, overriding pkg-config
1941 AUTOTRACE_LIBS
1942 linker flags for AUTOTRACE, overriding pkg-config
1943 FONTCONFIG_CFLAGS
1944 C compiler flags for FONTCONFIG, overriding pkg-config
1945 FONTCONFIG_LIBS
1946 linker flags for FONTCONFIG, overriding pkg-config
1947 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1948 GVC_LIBS linker flags for GVC, overriding pkg-config
1949 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1950 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001951 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1952 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001953 OPENEXR_CFLAGS
1954 C compiler flags for OPENEXR, overriding pkg-config
1955 OPENEXR_LIBS
1956 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001957 PANGO_CFLAGS
1958 C compiler flags for PANGO, overriding pkg-config
1959 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001960 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1961 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1962 CAIRO_SVG_CFLAGS
1963 C compiler flags for CAIRO_SVG, overriding pkg-config
1964 CAIRO_SVG_LIBS
1965 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001966
1967Use these variables to override the choices made by `configure' or to help
1968it to find libraries and programs with nonstandard names/locations.
1969
1970Report bugs to <http://www.imagemagick.org>.
1971_ACEOF
1972ac_status=$?
1973fi
1974
1975if test "$ac_init_help" = "recursive"; then
1976 # If there are subdirs, report their specific --help.
1977 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1978 test -d "$ac_dir" ||
1979 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1980 continue
1981 ac_builddir=.
1982
1983case "$ac_dir" in
1984.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985*)
1986 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1987 # A ".." for each directory in $ac_dir_suffix.
1988 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1989 case $ac_top_builddir_sub in
1990 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1991 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1992 esac ;;
1993esac
1994ac_abs_top_builddir=$ac_pwd
1995ac_abs_builddir=$ac_pwd$ac_dir_suffix
1996# for backward compatibility:
1997ac_top_builddir=$ac_top_build_prefix
1998
1999case $srcdir in
2000 .) # We are building in place.
2001 ac_srcdir=.
2002 ac_top_srcdir=$ac_top_builddir_sub
2003 ac_abs_top_srcdir=$ac_pwd ;;
2004 [\\/]* | ?:[\\/]* ) # Absolute name.
2005 ac_srcdir=$srcdir$ac_dir_suffix;
2006 ac_top_srcdir=$srcdir
2007 ac_abs_top_srcdir=$srcdir ;;
2008 *) # Relative name.
2009 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2010 ac_top_srcdir=$ac_top_build_prefix$srcdir
2011 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2012esac
2013ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2014
2015 cd "$ac_dir" || { ac_status=$?; continue; }
2016 # Check for guested configure.
2017 if test -f "$ac_srcdir/configure.gnu"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2020 elif test -f "$ac_srcdir/configure"; then
2021 echo &&
2022 $SHELL "$ac_srcdir/configure" --help=recursive
2023 else
2024 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2025 fi || ac_status=$?
2026 cd "$ac_pwd" || { ac_status=$?; break; }
2027 done
2028fi
2029
2030test -n "$ac_init_help" && exit $ac_status
2031if $ac_init_version; then
2032 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002033ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002034generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002035
cristy98dddb52010-11-04 00:30:15 +00002036Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002037This configure script is free software; the Free Software Foundation
2038gives unlimited permission to copy, distribute and modify it.
2039_ACEOF
2040 exit
2041fi
cristy8b350f62009-11-15 23:12:43 +00002042
2043## ------------------------ ##
2044## Autoconf initialization. ##
2045## ------------------------ ##
2046
2047# ac_fn_c_try_compile LINENO
2048# --------------------------
2049# Try to compile conftest.$ac_ext, and return whether this succeeded.
2050ac_fn_c_try_compile ()
2051{
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 rm -f conftest.$ac_objext
2054 if { { ac_try="$ac_compile"
2055case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058esac
2059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060$as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_compile") 2>conftest.err
2062 ac_status=$?
2063 if test -s conftest.err; then
2064 grep -v '^ *+' conftest.err >conftest.er1
2065 cat conftest.er1 >&5
2066 mv -f conftest.er1 conftest.err
2067 fi
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } && {
2070 test -z "$ac_c_werror_flag" ||
2071 test ! -s conftest.err
2072 } && test -s conftest.$ac_objext; then :
2073 ac_retval=0
2074else
2075 $as_echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=1
2079fi
cristyda16f162011-02-19 23:52:17 +00002080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002081 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002082
2083} # ac_fn_c_try_compile
2084
cristy95646052009-11-28 23:05:30 +00002085# ac_fn_c_try_cpp LINENO
2086# ----------------------
2087# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2088ac_fn_c_try_cpp ()
2089{
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_cpp conftest.$ac_ext"
2092case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097$as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099 ac_status=$?
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2104 fi
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002106 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 }; then :
2110 ac_retval=0
2111else
2112 $as_echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_retval=1
2116fi
cristyda16f162011-02-19 23:52:17 +00002117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002118 as_fn_set_status $ac_retval
2119
2120} # ac_fn_c_try_cpp
2121
cristy8b350f62009-11-15 23:12:43 +00002122# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2123# -------------------------------------------------------
2124# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2125# the include files in INCLUDES and setting the cache variable VAR
2126# accordingly.
2127ac_fn_c_check_header_mongrel ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002130 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002133if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002134 $as_echo_n "(cached) " >&6
2135fi
2136eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139else
2140 # Is the header compilable?
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2142$as_echo_n "checking $2 usability... " >&6; }
2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146#include <$2>
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_header_compiler=yes
2150else
2151 ac_header_compiler=no
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2155$as_echo "$ac_header_compiler" >&6; }
2156
2157# Is the header present?
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2159$as_echo_n "checking $2 presence... " >&6; }
2160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h. */
2162#include <$2>
2163_ACEOF
2164if ac_fn_c_try_cpp "$LINENO"; then :
2165 ac_header_preproc=yes
2166else
2167 ac_header_preproc=no
2168fi
cristyda16f162011-02-19 23:52:17 +00002169rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2171$as_echo "$ac_header_preproc" >&6; }
2172
2173# So? What about this header?
2174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2175 yes:no: )
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2177$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 ;;
2181 no:yes:* )
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2183$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2185$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2187$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2189$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002192( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002193## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002194## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002195 ) | sed "s/^/$as_me: WARNING: /" >&2
2196 ;;
2197esac
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002200if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002201 $as_echo_n "(cached) " >&6
2202else
2203 eval "$3=\$ac_header_compiler"
2204fi
2205eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208fi
cristyda16f162011-02-19 23:52:17 +00002209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002210
2211} # ac_fn_c_check_header_mongrel
2212
2213# ac_fn_c_try_run LINENO
2214# ----------------------
2215# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2216# that executables *can* be run.
2217ac_fn_c_try_run ()
2218{
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 if { { ac_try="$ac_link"
2221case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2224esac
2225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226$as_echo "$ac_try_echo"; } >&5
2227 (eval "$ac_link") 2>&5
2228 ac_status=$?
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2231 { { case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236$as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_try") 2>&5
2238 ac_status=$?
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; }; }; then :
2241 ac_retval=0
2242else
2243 $as_echo "$as_me: program exited with status $ac_status" >&5
2244 $as_echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 ac_retval=$ac_status
2248fi
2249 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002251 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002252
2253} # ac_fn_c_try_run
2254
2255# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2256# -------------------------------------------------------
2257# Tests whether HEADER exists and can be compiled using the include files in
2258# INCLUDES, setting the cache variable VAR accordingly.
2259ac_fn_c_check_header_compile ()
2260{
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002264if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002265 $as_echo_n "(cached) " >&6
2266else
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268/* end confdefs.h. */
2269$4
2270#include <$2>
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273 eval "$3=yes"
2274else
2275 eval "$3=no"
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278fi
2279eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002283
2284} # ac_fn_c_check_header_compile
2285
cristya0b81c32010-01-22 02:54:33 +00002286# ac_fn_cxx_try_compile LINENO
2287# ----------------------------
2288# Try to compile conftest.$ac_ext, and return whether this succeeded.
2289ac_fn_cxx_try_compile ()
2290{
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 rm -f conftest.$ac_objext
2293 if { { ac_try="$ac_compile"
2294case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297esac
2298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299$as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_compile") 2>conftest.err
2301 ac_status=$?
2302 if test -s conftest.err; then
2303 grep -v '^ *+' conftest.err >conftest.er1
2304 cat conftest.er1 >&5
2305 mv -f conftest.er1 conftest.err
2306 fi
2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308 test $ac_status = 0; } && {
2309 test -z "$ac_cxx_werror_flag" ||
2310 test ! -s conftest.err
2311 } && test -s conftest.$ac_objext; 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
cristyda16f162011-02-19 23:52:17 +00002319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002320 as_fn_set_status $ac_retval
2321
2322} # ac_fn_cxx_try_compile
2323
cristy8b350f62009-11-15 23:12:43 +00002324# ac_fn_c_try_link LINENO
2325# -----------------------
2326# Try to link conftest.$ac_ext, and return whether this succeeded.
2327ac_fn_c_try_link ()
2328{
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 rm -f conftest.$ac_objext conftest$ac_exeext
2331 if { { ac_try="$ac_link"
2332case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335esac
2336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337$as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_link") 2>conftest.err
2339 ac_status=$?
2340 if test -s conftest.err; then
2341 grep -v '^ *+' conftest.err >conftest.er1
2342 cat conftest.er1 >&5
2343 mv -f conftest.er1 conftest.err
2344 fi
2345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346 test $ac_status = 0; } && {
2347 test -z "$ac_c_werror_flag" ||
2348 test ! -s conftest.err
2349 } && test -s conftest$ac_exeext && {
2350 test "$cross_compiling" = yes ||
2351 $as_test_x conftest$ac_exeext
2352 }; then :
2353 ac_retval=0
2354else
2355 $as_echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 ac_retval=1
2359fi
2360 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2361 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2362 # interfere with the next link command; also delete a directory that is
2363 # left behind by Apple's compiler. We do this before executing the actions.
2364 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002366 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002367
2368} # ac_fn_c_try_link
2369
cristy73bd4a52010-10-05 11:24:23 +00002370# ac_fn_c_check_func LINENO FUNC VAR
2371# ----------------------------------
2372# Tests whether FUNC exists, setting the cache variable VAR accordingly
2373ac_fn_c_check_func ()
2374{
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002378if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002379 $as_echo_n "(cached) " >&6
2380else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382/* end confdefs.h. */
2383/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2385#define $2 innocuous_$2
2386
2387/* System header to define __stub macros and hopefully few prototypes,
2388 which can conflict with char $2 (); below.
2389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2390 <limits.h> exists even on freestanding compilers. */
2391
2392#ifdef __STDC__
2393# include <limits.h>
2394#else
2395# include <assert.h>
2396#endif
2397
2398#undef $2
2399
2400/* Override any GCC internal prototype to avoid an error.
2401 Use char because int might match the return type of a GCC
2402 builtin and then its argument prototype would still apply. */
2403#ifdef __cplusplus
2404extern "C"
2405#endif
2406char $2 ();
2407/* The GNU C library defines this for functions which it implements
2408 to always fail with ENOSYS. Some functions are actually named
2409 something starting with __ and the normal name is an alias. */
2410#if defined __stub_$2 || defined __stub___$2
2411choke me
2412#endif
2413
2414int
2415main ()
2416{
2417return $2 ();
2418 ;
2419 return 0;
2420}
2421_ACEOF
2422if ac_fn_c_try_link "$LINENO"; then :
2423 eval "$3=yes"
2424else
2425 eval "$3=no"
2426fi
2427rm -f core conftest.err conftest.$ac_objext \
2428 conftest$ac_exeext conftest.$ac_ext
2429fi
2430eval ac_res=\$$3
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002434
2435} # ac_fn_c_check_func
2436
2437# ac_fn_cxx_try_cpp LINENO
2438# ------------------------
2439# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2440ac_fn_cxx_try_cpp ()
2441{
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 if { { ac_try="$ac_cpp conftest.$ac_ext"
2444case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
2448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449$as_echo "$ac_try_echo"; } >&5
2450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2451 ac_status=$?
2452 if test -s conftest.err; then
2453 grep -v '^ *+' conftest.err >conftest.er1
2454 cat conftest.er1 >&5
2455 mv -f conftest.er1 conftest.err
2456 fi
2457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002458 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002459 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2460 test ! -s conftest.err
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
cristyda16f162011-02-19 23:52:17 +00002469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002470 as_fn_set_status $ac_retval
2471
2472} # ac_fn_cxx_try_cpp
2473
2474# ac_fn_cxx_try_link LINENO
2475# -------------------------
2476# Try to link conftest.$ac_ext, and return whether this succeeded.
2477ac_fn_cxx_try_link ()
2478{
2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480 rm -f conftest.$ac_objext conftest$ac_exeext
2481 if { { ac_try="$ac_link"
2482case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487$as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_link") 2>conftest.err
2489 ac_status=$?
2490 if test -s conftest.err; then
2491 grep -v '^ *+' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2493 mv -f conftest.er1 conftest.err
2494 fi
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } && {
2497 test -z "$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2499 } && test -s conftest$ac_exeext && {
2500 test "$cross_compiling" = yes ||
2501 $as_test_x conftest$ac_exeext
2502 }; then :
2503 ac_retval=0
2504else
2505 $as_echo "$as_me: failed program was:" >&5
2506sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_retval=1
2509fi
2510 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2511 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2512 # interfere with the next link command; also delete a directory that is
2513 # left behind by Apple's compiler. We do this before executing the actions.
2514 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002516 as_fn_set_status $ac_retval
2517
2518} # ac_fn_cxx_try_link
2519
cristy98dddb52010-11-04 00:30:15 +00002520# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2521# ---------------------------------------------
2522# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2523# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002524ac_fn_c_check_decl ()
2525{
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002527 as_decl_name=`echo $2|sed 's/ *(.*//'`
2528 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2530$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002531if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002532 $as_echo_n "(cached) " >&6
2533else
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535/* end confdefs.h. */
2536$4
2537int
2538main ()
2539{
cristy98dddb52010-11-04 00:30:15 +00002540#ifndef $as_decl_name
2541#ifdef __cplusplus
2542 (void) $as_decl_use;
2543#else
2544 (void) $as_decl_name;
2545#endif
cristy73bd4a52010-10-05 11:24:23 +00002546#endif
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552if ac_fn_c_try_compile "$LINENO"; then :
2553 eval "$3=yes"
2554else
2555 eval "$3=no"
2556fi
2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558fi
2559eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002563
2564} # ac_fn_c_check_decl
2565
cristy8b350f62009-11-15 23:12:43 +00002566# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2567# -------------------------------------------
2568# Tests whether TYPE exists after having included INCLUDES, setting cache
2569# variable VAR accordingly.
2570ac_fn_c_check_type ()
2571{
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002575if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002576 $as_echo_n "(cached) " >&6
2577else
2578 eval "$3=no"
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580/* end confdefs.h. */
2581$4
2582int
2583main ()
2584{
2585if (sizeof ($2))
2586 return 0;
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591if ac_fn_c_try_compile "$LINENO"; then :
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593/* end confdefs.h. */
2594$4
2595int
2596main ()
2597{
2598if (sizeof (($2)))
2599 return 0;
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604if ac_fn_c_try_compile "$LINENO"; then :
2605
2606else
2607 eval "$3=yes"
2608fi
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612fi
2613eval ac_res=\$$3
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002617
2618} # ac_fn_c_check_type
2619
cristy92703d82010-04-26 00:18:18 +00002620# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2621# ----------------------------------------------------
2622# Tries to find if the field MEMBER exists in type AGGR, after including
2623# INCLUDES, setting cache variable VAR accordingly.
2624ac_fn_c_check_member ()
2625{
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2628$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002629if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002630 $as_echo_n "(cached) " >&6
2631else
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633/* end confdefs.h. */
2634$5
2635int
2636main ()
2637{
2638static $2 ac_aggr;
2639if (ac_aggr.$3)
2640return 0;
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645if ac_fn_c_try_compile "$LINENO"; then :
2646 eval "$4=yes"
2647else
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$5
2651int
2652main ()
2653{
2654static $2 ac_aggr;
2655if (sizeof ac_aggr.$3)
2656return 0;
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 eval "$4=yes"
2663else
2664 eval "$4=no"
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669fi
2670eval ac_res=\$$4
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2672$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002674
2675} # ac_fn_c_check_member
2676
cristy501c8042011-05-26 17:46:28 +00002677# ac_fn_c_find_intX_t LINENO BITS VAR
2678# -----------------------------------
2679# Finds a signed integer type with width BITS, setting cache variable VAR
2680# accordingly.
2681ac_fn_c_find_intX_t ()
2682{
2683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2685$as_echo_n "checking for int$2_t... " >&6; }
2686if eval \${$3+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688else
2689 eval "$3=no"
2690 # Order is important - never check a type that is potentially smaller
2691 # than half of the expected target width.
2692 for ac_type in int$2_t 'int' 'long int' \
2693 'long long int' 'short int' 'signed char'; do
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695/* end confdefs.h. */
2696$ac_includes_default
2697 enum { N = $2 / 2 - 1 };
2698int
2699main ()
2700{
2701static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2702test_array [0] = 0
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708if ac_fn_c_try_compile "$LINENO"; then :
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h. */
2711$ac_includes_default
2712 enum { N = $2 / 2 - 1 };
2713int
2714main ()
2715{
2716static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2717 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2718test_array [0] = 0
2719
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724if ac_fn_c_try_compile "$LINENO"; then :
2725
2726else
2727 case $ac_type in #(
2728 int$2_t) :
2729 eval "$3=yes" ;; #(
2730 *) :
2731 eval "$3=\$ac_type" ;;
2732esac
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 if eval test \"x\$"$3"\" = x"no"; then :
2738
2739else
2740 break
2741fi
2742 done
2743fi
2744eval ac_res=\$$3
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746$as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748
2749} # ac_fn_c_find_intX_t
2750
2751# ac_fn_c_find_uintX_t LINENO BITS VAR
2752# ------------------------------------
2753# Finds an unsigned integer type with width BITS, setting cache variable VAR
2754# accordingly.
2755ac_fn_c_find_uintX_t ()
2756{
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2759$as_echo_n "checking for uint$2_t... " >&6; }
2760if eval \${$3+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762else
2763 eval "$3=no"
2764 # Order is important - never check a type that is potentially smaller
2765 # than half of the expected target width.
2766 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2767 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h. */
2770$ac_includes_default
2771int
2772main ()
2773{
2774static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2775test_array [0] = 0
2776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_compile "$LINENO"; then :
2782 case $ac_type in #(
2783 uint$2_t) :
2784 eval "$3=yes" ;; #(
2785 *) :
2786 eval "$3=\$ac_type" ;;
2787esac
2788fi
2789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 if eval test \"x\$"$3"\" = x"no"; then :
2791
2792else
2793 break
2794fi
2795 done
2796fi
2797eval ac_res=\$$3
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2799$as_echo "$ac_res" >&6; }
2800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2801
2802} # ac_fn_c_find_uintX_t
2803
cristy8b350f62009-11-15 23:12:43 +00002804# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2805# --------------------------------------------
2806# Tries to find the compile-time value of EXPR in a program that includes
2807# INCLUDES, setting VAR accordingly. Returns whether the value could be
2808# computed
2809ac_fn_c_compute_int ()
2810{
2811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2812 if test "$cross_compiling" = yes; then
2813 # Depending upon the size, compute the lo and hi bounds.
2814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816$4
2817int
2818main ()
2819{
2820static int test_array [1 - 2 * !(($2) >= 0)];
2821test_array [0] = 0
2822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827if ac_fn_c_try_compile "$LINENO"; then :
2828 ac_lo=0 ac_mid=0
2829 while :; do
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831/* end confdefs.h. */
2832$4
2833int
2834main ()
2835{
2836static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2837test_array [0] = 0
2838
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_compile "$LINENO"; then :
2844 ac_hi=$ac_mid; break
2845else
2846 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2847 if test $ac_lo -le $ac_mid; then
2848 ac_lo= ac_hi=
2849 break
2850 fi
2851 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2852fi
2853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 done
2855else
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h. */
2858$4
2859int
2860main ()
2861{
2862static int test_array [1 - 2 * !(($2) < 0)];
2863test_array [0] = 0
2864
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869if ac_fn_c_try_compile "$LINENO"; then :
2870 ac_hi=-1 ac_mid=-1
2871 while :; do
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873/* end confdefs.h. */
2874$4
2875int
2876main ()
2877{
2878static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2879test_array [0] = 0
2880
2881 ;
2882 return 0;
2883}
2884_ACEOF
2885if ac_fn_c_try_compile "$LINENO"; then :
2886 ac_lo=$ac_mid; break
2887else
2888 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2889 if test $ac_mid -le $ac_hi; then
2890 ac_lo= ac_hi=
2891 break
2892 fi
2893 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2894fi
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 done
2897else
2898 ac_lo= ac_hi=
2899fi
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901fi
2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903# Binary search between lo and hi bounds.
2904while test "x$ac_lo" != "x$ac_hi"; do
2905 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h. */
2908$4
2909int
2910main ()
2911{
2912static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2913test_array [0] = 0
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919if ac_fn_c_try_compile "$LINENO"; then :
2920 ac_hi=$ac_mid
2921else
2922 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2923fi
2924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925done
2926case $ac_lo in #((
2927?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2928'') ac_retval=1 ;;
2929esac
2930 else
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932/* end confdefs.h. */
2933$4
2934static long int longval () { return $2; }
2935static unsigned long int ulongval () { return $2; }
2936#include <stdio.h>
2937#include <stdlib.h>
2938int
2939main ()
2940{
2941
2942 FILE *f = fopen ("conftest.val", "w");
2943 if (! f)
2944 return 1;
2945 if (($2) < 0)
2946 {
2947 long int i = longval ();
2948 if (i != ($2))
2949 return 1;
2950 fprintf (f, "%ld", i);
2951 }
2952 else
2953 {
2954 unsigned long int i = ulongval ();
2955 if (i != ($2))
2956 return 1;
2957 fprintf (f, "%lu", i);
2958 }
2959 /* Do not output a trailing newline, as this causes \r\n confusion
2960 on some platforms. */
2961 return ferror (f) || fclose (f) != 0;
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
2967if ac_fn_c_try_run "$LINENO"; then :
2968 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2969else
2970 ac_retval=1
2971fi
2972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2973 conftest.$ac_objext conftest.beam conftest.$ac_ext
2974rm -f conftest.val
2975
2976 fi
cristyda16f162011-02-19 23:52:17 +00002977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002978 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002979
2980} # ac_fn_c_compute_int
2981
2982# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2983# ---------------------------------------------------------
2984# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2985# the include files in INCLUDES and setting the cache variable VAR
2986# accordingly.
2987ac_fn_cxx_check_header_mongrel ()
2988{
2989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002990 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2992$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002993if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002994 $as_echo_n "(cached) " >&6
2995fi
2996eval ac_res=\$$3
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2998$as_echo "$ac_res" >&6; }
2999else
3000 # Is the header compilable?
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3002$as_echo_n "checking $2 usability... " >&6; }
3003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004/* end confdefs.h. */
3005$4
3006#include <$2>
3007_ACEOF
3008if ac_fn_cxx_try_compile "$LINENO"; then :
3009 ac_header_compiler=yes
3010else
3011 ac_header_compiler=no
3012fi
3013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3015$as_echo "$ac_header_compiler" >&6; }
3016
3017# Is the header present?
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3019$as_echo_n "checking $2 presence... " >&6; }
3020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021/* end confdefs.h. */
3022#include <$2>
3023_ACEOF
3024if ac_fn_cxx_try_cpp "$LINENO"; then :
3025 ac_header_preproc=yes
3026else
3027 ac_header_preproc=no
3028fi
cristyda16f162011-02-19 23:52:17 +00003029rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3031$as_echo "$ac_header_preproc" >&6; }
3032
3033# So? What about this header?
3034case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3035 yes:no: )
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3037$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3040 ;;
3041 no:yes:* )
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3043$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3045$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3047$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3049$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3051$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003052( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003053## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003054## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003055 ) | sed "s/^/$as_me: WARNING: /" >&2
3056 ;;
3057esac
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3059$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003060if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003061 $as_echo_n "(cached) " >&6
3062else
3063 eval "$3=\$ac_header_compiler"
3064fi
3065eval ac_res=\$$3
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3067$as_echo "$ac_res" >&6; }
3068fi
cristyda16f162011-02-19 23:52:17 +00003069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003070
3071} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003072cat >config.log <<_ACEOF
3073This file contains any messages produced by compilers while
3074running configure, to aid debugging if configure makes a mistake.
3075
cristy29eb34e2011-10-16 00:46:08 +00003076It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003077generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003078
3079 $ $0 $@
3080
3081_ACEOF
3082exec 5>>config.log
3083{
3084cat <<_ASUNAME
3085## --------- ##
3086## Platform. ##
3087## --------- ##
3088
3089hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3090uname -m = `(uname -m) 2>/dev/null || echo unknown`
3091uname -r = `(uname -r) 2>/dev/null || echo unknown`
3092uname -s = `(uname -s) 2>/dev/null || echo unknown`
3093uname -v = `(uname -v) 2>/dev/null || echo unknown`
3094
3095/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3096/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3097
3098/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3099/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3100/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3101/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3102/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3103/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3104/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3105
3106_ASUNAME
3107
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003113 $as_echo "PATH: $as_dir"
3114 done
cristy3ed852e2009-09-05 21:47:34 +00003115IFS=$as_save_IFS
3116
3117} >&5
3118
3119cat >&5 <<_ACEOF
3120
3121
3122## ----------- ##
3123## Core tests. ##
3124## ----------- ##
3125
3126_ACEOF
3127
3128
3129# Keep a trace of the command line.
3130# Strip out --no-create and --no-recursion so they do not pile up.
3131# Strip out --silent because we don't want to record it for future runs.
3132# Also quote any args containing shell meta-characters.
3133# Make two passes to allow for proper duplicate-argument suppression.
3134ac_configure_args=
3135ac_configure_args0=
3136ac_configure_args1=
3137ac_must_keep_next=false
3138for ac_pass in 1 2
3139do
3140 for ac_arg
3141 do
3142 case $ac_arg in
3143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3145 | -silent | --silent | --silen | --sile | --sil)
3146 continue ;;
3147 *\'*)
3148 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3149 esac
3150 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003152 2)
cristy8b350f62009-11-15 23:12:43 +00003153 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003154 if test $ac_must_keep_next = true; then
3155 ac_must_keep_next=false # Got value, back to normal.
3156 else
3157 case $ac_arg in
3158 *=* | --config-cache | -C | -disable-* | --disable-* \
3159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3161 | -with-* | --with-* | -without-* | --without-* | --x)
3162 case "$ac_configure_args0 " in
3163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3164 esac
3165 ;;
3166 -* ) ac_must_keep_next=true ;;
3167 esac
3168 fi
cristy8b350f62009-11-15 23:12:43 +00003169 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003170 ;;
3171 esac
3172 done
3173done
cristy8b350f62009-11-15 23:12:43 +00003174{ ac_configure_args0=; unset ac_configure_args0;}
3175{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003176
3177# When interrupted or exit'd, cleanup temporary files, and complete
3178# config.log. We remove comments because anyway the quotes in there
3179# would cause problems or look ugly.
3180# WARNING: Use '\'' to represent an apostrophe within the trap.
3181# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3182trap 'exit_status=$?
3183 # Save into config.log some information that might help in debugging.
3184 {
3185 echo
3186
cristy98dddb52010-11-04 00:30:15 +00003187 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003188## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003189## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003190 echo
3191 # The following way of writing the cache mishandles newlines in values,
3192(
3193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3194 eval ac_val=\$$ac_var
3195 case $ac_val in #(
3196 *${as_nl}*)
3197 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003199$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3200 esac
3201 case $ac_var in #(
3202 _ | IFS | as_nl) ;; #(
3203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003204 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003205 esac ;;
3206 esac
3207 done
3208 (set) 2>&1 |
3209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3210 *${as_nl}ac_space=\ *)
3211 sed -n \
3212 "s/'\''/'\''\\\\'\'''\''/g;
3213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3214 ;; #(
3215 *)
3216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3217 ;;
3218 esac |
3219 sort
3220)
3221 echo
3222
cristy98dddb52010-11-04 00:30:15 +00003223 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003224## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003225## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003226 echo
3227 for ac_var in $ac_subst_vars
3228 do
3229 eval ac_val=\$$ac_var
3230 case $ac_val in
3231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3232 esac
3233 $as_echo "$ac_var='\''$ac_val'\''"
3234 done | sort
3235 echo
3236
3237 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003238 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003239## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003240## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003241 echo
3242 for ac_var in $ac_subst_files
3243 do
3244 eval ac_val=\$$ac_var
3245 case $ac_val in
3246 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3247 esac
3248 $as_echo "$ac_var='\''$ac_val'\''"
3249 done | sort
3250 echo
3251 fi
3252
3253 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003254 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003255## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003256## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003257 echo
3258 cat confdefs.h
3259 echo
3260 fi
3261 test "$ac_signal" != 0 &&
3262 $as_echo "$as_me: caught signal $ac_signal"
3263 $as_echo "$as_me: exit $exit_status"
3264 } >&5
3265 rm -f core *.core core.conftest.* &&
3266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3267 exit $exit_status
3268' 0
3269for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003271done
3272ac_signal=0
3273
3274# confdefs.h avoids OS command line length limits that DEFS can exceed.
3275rm -f -r conftest* confdefs.h
3276
cristy8b350f62009-11-15 23:12:43 +00003277$as_echo "/* confdefs.h */" > confdefs.h
3278
cristy3ed852e2009-09-05 21:47:34 +00003279# Predefined preprocessor variables.
3280
3281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE_NAME "$PACKAGE_NAME"
3283_ACEOF
3284
cristy3ed852e2009-09-05 21:47:34 +00003285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3287_ACEOF
3288
cristy3ed852e2009-09-05 21:47:34 +00003289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_VERSION "$PACKAGE_VERSION"
3291_ACEOF
3292
cristy3ed852e2009-09-05 21:47:34 +00003293cat >>confdefs.h <<_ACEOF
3294#define PACKAGE_STRING "$PACKAGE_STRING"
3295_ACEOF
3296
cristy3ed852e2009-09-05 21:47:34 +00003297cat >>confdefs.h <<_ACEOF
3298#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3299_ACEOF
3300
cristy8b350f62009-11-15 23:12:43 +00003301cat >>confdefs.h <<_ACEOF
3302#define PACKAGE_URL "$PACKAGE_URL"
3303_ACEOF
3304
cristy3ed852e2009-09-05 21:47:34 +00003305
3306# Let the site file select an alternate cache file if it wants to.
3307# Prefer an explicitly selected file to automatically selected ones.
3308ac_site_file1=NONE
3309ac_site_file2=NONE
3310if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003311 # We do not want a PATH search for config.site.
3312 case $CONFIG_SITE in #((
3313 -*) ac_site_file1=./$CONFIG_SITE;;
3314 */*) ac_site_file1=$CONFIG_SITE;;
3315 *) ac_site_file1=./$CONFIG_SITE;;
3316 esac
cristy3ed852e2009-09-05 21:47:34 +00003317elif test "x$prefix" != xNONE; then
3318 ac_site_file1=$prefix/share/config.site
3319 ac_site_file2=$prefix/etc/config.site
3320else
3321 ac_site_file1=$ac_default_prefix/share/config.site
3322 ac_site_file2=$ac_default_prefix/etc/config.site
3323fi
3324for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3325do
3326 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003327 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3330 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003331 . "$ac_site_file" \
3332 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334as_fn_error $? "failed to load site script $ac_site_file
3335See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003336 fi
3337done
3338
3339if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003340 # Some versions of bash will fail to source /dev/null (special files
3341 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$as_me: loading cache $cache_file" >&6;}
3345 case $cache_file in
3346 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3347 *) . "./$cache_file";;
3348 esac
3349 fi
3350else
cristy8b350f62009-11-15 23:12:43 +00003351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003352$as_echo "$as_me: creating cache $cache_file" >&6;}
3353 >$cache_file
3354fi
3355
cristycd4c5312009-11-22 01:19:08 +00003356as_fn_append ac_header_list " stdlib.h"
3357as_fn_append ac_header_list " unistd.h"
3358as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003359# Check that the precious variables saved in the cache have kept the same
3360# value.
3361ac_cache_corrupted=false
3362for ac_var in $ac_precious_vars; do
3363 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3364 eval ac_new_set=\$ac_env_${ac_var}_set
3365 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3366 eval ac_new_val=\$ac_env_${ac_var}_value
3367 case $ac_old_set,$ac_new_set in
3368 set,)
cristy8b350f62009-11-15 23:12:43 +00003369 { $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 +00003370$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3371 ac_cache_corrupted=: ;;
3372 ,set)
cristy8b350f62009-11-15 23:12:43 +00003373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003374$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3375 ac_cache_corrupted=: ;;
3376 ,);;
3377 *)
3378 if test "x$ac_old_val" != "x$ac_new_val"; then
3379 # differences in whitespace do not lead to failure.
3380 ac_old_val_w=`echo x $ac_old_val`
3381 ac_new_val_w=`echo x $ac_new_val`
3382 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3385 ac_cache_corrupted=:
3386 else
cristy8b350f62009-11-15 23:12:43 +00003387 { $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 +00003388$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3389 eval $ac_var=\$ac_old_val
3390 fi
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003393 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003394$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3395 fi;;
3396 esac
3397 # Pass precious variables to config.status.
3398 if test "$ac_new_set" = set; then
3399 case $ac_new_val in
3400 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3401 *) ac_arg=$ac_var=$ac_new_val ;;
3402 esac
3403 case " $ac_configure_args " in
3404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003405 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003406 esac
3407 fi
3408done
3409if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003413$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003414 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003415fi
cristy8b350f62009-11-15 23:12:43 +00003416## -------------------- ##
3417## Main body of script. ##
3418## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003419
3420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
3427
3428ac_aux_dir=
3429for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003430 if test -f "$ac_dir/install-sh"; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/install-sh -c"
3433 break
3434 elif test -f "$ac_dir/install.sh"; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/install.sh -c"
3437 break
3438 elif test -f "$ac_dir/shtool"; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/shtool install -c"
3441 break
3442 fi
cristy3ed852e2009-09-05 21:47:34 +00003443done
3444if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003445 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003446fi
3447
3448# These three variables are undocumented and unsupported,
3449# and are intended to be withdrawn in a future Autoconf release.
3450# They can cause serious problems if a builder's source tree is in a directory
3451# whose full name contains unusual characters.
3452ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3453ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3454ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3455
3456
3457
3458
3459ac_config_headers="$ac_config_headers config/config.h"
3460
cristy24fc1fe2010-10-23 21:13:01 +00003461
cristy4c08aed2011-07-01 19:47:50 +00003462ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003463
cristy4c08aed2011-07-01 19:47:50 +00003464ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003465
3466
3467#
3468# Save initial user-tunable values
3469#
3470USER_LIBS=$LIBS
3471for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3472 eval isset=\${$var+set}
3473 if test "$isset" = 'set'; then
3474 eval val=$`echo $var`
3475 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3476 fi
3477done
3478
3479
3480CONFIGURE_ARGS="$0 ${ac_configure_args}"
3481
3482
3483# Source file containing package/library versioning information.
3484. ${srcdir}/version.sh
3485
cristy15a88782010-01-31 23:24:49 +00003486echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003487# Make sure we can run config.sub.
3488$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003489 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003490
cristy8b350f62009-11-15 23:12:43 +00003491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003492$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003493if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003494 $as_echo_n "(cached) " >&6
3495else
3496 ac_build_alias=$build_alias
3497test "x$ac_build_alias" = x &&
3498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3499test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003500 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003501ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003503
3504fi
cristy8b350f62009-11-15 23:12:43 +00003505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003506$as_echo "$ac_cv_build" >&6; }
3507case $ac_cv_build in
3508*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003509*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003510esac
3511build=$ac_cv_build
3512ac_save_IFS=$IFS; IFS='-'
3513set x $ac_cv_build
3514shift
3515build_cpu=$1
3516build_vendor=$2
3517shift; shift
3518# Remember, the first character of IFS is used to create $*,
3519# except with old shells:
3520build_os=$*
3521IFS=$ac_save_IFS
3522case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3523
3524
cristy8b350f62009-11-15 23:12:43 +00003525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003526$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003527if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003528 $as_echo_n "(cached) " >&6
3529else
3530 if test "x$host_alias" = x; then
3531 ac_cv_host=$ac_cv_build
3532else
3533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003535fi
3536
3537fi
cristy8b350f62009-11-15 23:12:43 +00003538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003539$as_echo "$ac_cv_host" >&6; }
3540case $ac_cv_host in
3541*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003542*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003543esac
3544host=$ac_cv_host
3545ac_save_IFS=$IFS; IFS='-'
3546set x $ac_cv_host
3547shift
3548host_cpu=$1
3549host_vendor=$2
3550shift; shift
3551# Remember, the first character of IFS is used to create $*,
3552# except with old shells:
3553host_os=$*
3554IFS=$ac_save_IFS
3555case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3556
3557
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003560if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003561 $as_echo_n "(cached) " >&6
3562else
3563 if test "x$target_alias" = x; then
3564 ac_cv_target=$ac_cv_host
3565else
3566 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568fi
3569
3570fi
cristy8b350f62009-11-15 23:12:43 +00003571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003572$as_echo "$ac_cv_target" >&6; }
3573case $ac_cv_target in
3574*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003575*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003576esac
3577target=$ac_cv_target
3578ac_save_IFS=$IFS; IFS='-'
3579set x $ac_cv_target
3580shift
3581target_cpu=$1
3582target_vendor=$2
3583shift; shift
3584# Remember, the first character of IFS is used to create $*,
3585# except with old shells:
3586target_os=$*
3587IFS=$ac_save_IFS
3588case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3589
3590
3591# The aliases save the names the user supplied, while $host etc.
3592# will get canonicalized.
3593test -n "$target_alias" &&
3594 test "$program_prefix$program_suffix$program_transform_name" = \
3595 NONENONEs,x,x, &&
3596 program_prefix=${target_alias}-
3597
cristy837d6dc2010-02-27 01:16:57 +00003598
3599
3600
cristy19615b82011-04-13 20:02:01 +00003601MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003602
3603
cristy19615b82011-04-13 20:02:01 +00003604MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003605
3606
cristy19615b82011-04-13 20:02:01 +00003607MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003608
3609
cristy3ed852e2009-09-05 21:47:34 +00003610# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003611MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3612
3613MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3614
cristy4bb5dbb2012-02-07 14:07:25 +00003615MAGICK_SVN_REVISION=6747
cristyd694ca32011-03-27 21:42:54 +00003616
3617
cristy3ed852e2009-09-05 21:47:34 +00003618
3619
3620# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3622$as_echo_n "checking whether build environment is sane... " >&6; }
3623# Just in case
3624sleep 1
3625echo timestamp > conftest.file
3626# Reject unsafe characters in $srcdir or the absolute working directory
3627# name. Accept space and tab only in the latter.
3628am_lf='
3629'
3630case `pwd` in
3631 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003632 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003633esac
3634case $srcdir in
3635 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003636 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003637esac
cristy3ed852e2009-09-05 21:47:34 +00003638
cristy73bd4a52010-10-05 11:24:23 +00003639# Do `set' in a subshell so we don't clobber the current shell's
3640# arguments. Must try -L first in case configure is actually a
3641# symlink; some systems play weird games with the mod time of symlinks
3642# (eg FreeBSD returns the mod time of the symlink's containing
3643# directory).
3644if (
3645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3646 if test "$*" = "X"; then
3647 # -L didn't work.
3648 set X `ls -t "$srcdir/configure" conftest.file`
3649 fi
3650 rm -f conftest.file
3651 if test "$*" != "X $srcdir/configure conftest.file" \
3652 && test "$*" != "X conftest.file $srcdir/configure"; then
3653
3654 # If neither matched, then we have a broken ls. This can happen
3655 # if, for instance, CONFIG_SHELL is bash and it inherits a
3656 # broken ls alias from the environment. This has actually
3657 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003658 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003659alias in your environment" "$LINENO" 5
3660 fi
3661
3662 test "$2" = conftest.file
3663 )
3664then
3665 # Ok.
3666 :
3667else
cristy98dddb52010-11-04 00:30:15 +00003668 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003669Check your system clock" "$LINENO" 5
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672$as_echo "yes" >&6; }
3673
3674am__api_version='1.11'
3675
3676# Find a good install program. We prefer a C program (faster),
3677# so one script is as good as another. But avoid the broken or
3678# incompatible versions:
3679# SysV /etc/install, /usr/sbin/install
3680# SunOS /usr/etc/install
3681# IRIX /sbin/install
3682# AIX /bin/install
3683# AmigaOS /C/install, which installs bootblocks on floppy discs
3684# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3685# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3686# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3687# OS/2's system install, which has a completely different semantic
3688# ./install, which can be erroneously created by make from ./install.sh.
3689# Reject install programs that cannot install multiple files.
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3691$as_echo_n "checking for a BSD-compatible install... " >&6; }
3692if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003693if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003694 $as_echo_n "(cached) " >&6
3695else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 # Account for people who put trailing slashes in PATH elements.
3702case $as_dir/ in #((
3703 ./ | .// | /[cC]/* | \
3704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3706 /usr/ucb/* ) ;;
3707 *)
3708 # OSF1 and SCO ODT 3.0 have their own names for install.
3709 # Don't use installbsd from OSF since it installs stuff as root
3710 # by default.
3711 for ac_prog in ginstall scoinst install; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3714 if test $ac_prog = install &&
3715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3716 # AIX install. It has an incompatible calling convention.
3717 :
3718 elif test $ac_prog = install &&
3719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # program-specific install script used by HP pwplus--don't use.
3721 :
3722 else
3723 rm -rf conftest.one conftest.two conftest.dir
3724 echo one > conftest.one
3725 echo two > conftest.two
3726 mkdir conftest.dir
3727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3728 test -s conftest.one && test -s conftest.two &&
3729 test -s conftest.dir/conftest.one &&
3730 test -s conftest.dir/conftest.two
3731 then
3732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3733 break 3
3734 fi
3735 fi
3736 fi
3737 done
3738 done
3739 ;;
3740esac
3741
3742 done
3743IFS=$as_save_IFS
3744
3745rm -rf conftest.one conftest.two conftest.dir
3746
3747fi
3748 if test "${ac_cv_path_install+set}" = set; then
3749 INSTALL=$ac_cv_path_install
3750 else
3751 # As a last resort, use the slow shell script. Don't cache a
3752 # value for INSTALL within a source directory, because that will
3753 # break other packages using the cache if that directory is
3754 # removed, or if the value is a relative name.
3755 INSTALL=$ac_install_sh
3756 fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3759$as_echo "$INSTALL" >&6; }
3760
3761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3762# It thinks the first close brace ends the variable substitution.
3763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3764
3765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3766
3767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3768
3769test "$program_prefix" != NONE &&
3770 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3771# Use a double $ so make ignores it.
3772test "$program_suffix" != NONE &&
3773 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3774# Double any \ or $.
3775# By default was `s,x,x', remove it if useless.
3776ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3777program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3778
3779# expand $ac_aux_dir to an absolute path
3780am_aux_dir=`cd $ac_aux_dir && pwd`
3781
3782if test x"${MISSING+set}" != xset; then
3783 case $am_aux_dir in
3784 *\ * | *\ *)
3785 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3786 *)
3787 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3788 esac
3789fi
3790# Use eval to expand $SHELL
3791if eval "$MISSING --run true"; then
3792 am_missing_run="$MISSING --run "
3793else
3794 am_missing_run=
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3796$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3797fi
3798
3799if test x"${install_sh}" != xset; then
3800 case $am_aux_dir in
3801 *\ * | *\ *)
3802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3803 *)
3804 install_sh="\${SHELL} $am_aux_dir/install-sh"
3805 esac
3806fi
3807
3808# Installed binaries are usually stripped using `strip' when the user
3809# run `make install-strip'. However `strip' might not be the right
3810# tool to use in cross-compilation environments, therefore Automake
3811# will honor the `STRIP' environment variable to overrule this program.
3812if test "$cross_compiling" != no; then
3813 if test -n "$ac_tool_prefix"; then
3814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3815set dummy ${ac_tool_prefix}strip; ac_word=$2
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003818if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003819 $as_echo_n "(cached) " >&6
3820else
3821 if test -n "$STRIP"; then
3822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3823else
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835done
3836 done
3837IFS=$as_save_IFS
3838
3839fi
3840fi
3841STRIP=$ac_cv_prog_STRIP
3842if test -n "$STRIP"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3844$as_echo "$STRIP" >&6; }
3845else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849
3850
3851fi
3852if test -z "$ac_cv_prog_STRIP"; then
3853 ac_ct_STRIP=$STRIP
3854 # Extract the first word of "strip", so it can be a program name with args.
3855set dummy strip; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003858if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003859 $as_echo_n "(cached) " >&6
3860else
3861 if test -n "$ac_ct_STRIP"; then
3862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_ac_ct_STRIP="strip"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875done
3876 done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3882if test -n "$ac_ct_STRIP"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3884$as_echo "$ac_ct_STRIP" >&6; }
3885else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890 if test "x$ac_ct_STRIP" = x; then
3891 STRIP=":"
3892 else
3893 case $cross_compiling:$ac_tool_warned in
3894yes:)
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897ac_tool_warned=yes ;;
3898esac
3899 STRIP=$ac_ct_STRIP
3900 fi
3901else
3902 STRIP="$ac_cv_prog_STRIP"
3903fi
3904
3905fi
3906INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3907
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3909$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3910if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003911 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003912 $as_echo_n "(cached) " >&6
3913else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in mkdir gmkdir; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3922 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3923 'mkdir (GNU coreutils) '* | \
3924 'mkdir (coreutils) '* | \
3925 'mkdir (fileutils) '4.1*)
3926 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3927 break 3;;
3928 esac
3929 done
3930 done
3931 done
3932IFS=$as_save_IFS
3933
3934fi
3935
3936 test -d ./--version && rmdir ./--version
3937 if test "${ac_cv_path_mkdir+set}" = set; then
3938 MKDIR_P="$ac_cv_path_mkdir -p"
3939 else
3940 # As a last resort, use the slow shell script. Don't cache a
3941 # value for MKDIR_P within a source directory, because that will
3942 # break other packages using the cache if that directory is
3943 # removed, or if the value is a relative name.
3944 MKDIR_P="$ac_install_sh -d"
3945 fi
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3948$as_echo "$MKDIR_P" >&6; }
3949
3950mkdir_p="$MKDIR_P"
3951case $mkdir_p in
3952 [\\/$]* | ?:[\\/]*) ;;
3953 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3954esac
3955
3956for ac_prog in gawk mawk nawk awk
3957do
3958 # Extract the first word of "$ac_prog", so it can be a program name with args.
3959set dummy $ac_prog; ac_word=$2
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003962if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003963 $as_echo_n "(cached) " >&6
3964else
3965 if test -n "$AWK"; then
3966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 ac_cv_prog_AWK="$ac_prog"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980 done
3981IFS=$as_save_IFS
3982
3983fi
3984fi
3985AWK=$ac_cv_prog_AWK
3986if test -n "$AWK"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3988$as_echo "$AWK" >&6; }
3989else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992fi
3993
3994
3995 test -n "$AWK" && break
3996done
3997
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3999$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4000set x ${MAKE-make}
4001ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004002if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004003 $as_echo_n "(cached) " >&6
4004else
4005 cat >conftest.make <<\_ACEOF
4006SHELL = /bin/sh
4007all:
4008 @echo '@@@%%%=$(MAKE)=@@@%%%'
4009_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004010# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004011case `${MAKE-make} -f conftest.make 2>/dev/null` in
4012 *@@@%%%=?*=@@@%%%*)
4013 eval ac_cv_prog_make_${ac_make}_set=yes;;
4014 *)
4015 eval ac_cv_prog_make_${ac_make}_set=no;;
4016esac
4017rm -f conftest.make
4018fi
4019if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021$as_echo "yes" >&6; }
4022 SET_MAKE=
4023else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
4026 SET_MAKE="MAKE=${MAKE-make}"
4027fi
4028
4029rm -rf .tst 2>/dev/null
4030mkdir .tst 2>/dev/null
4031if test -d .tst; then
4032 am__leading_dot=.
4033else
4034 am__leading_dot=_
4035fi
4036rmdir .tst 2>/dev/null
4037
cristya448bd22011-10-14 12:38:13 +00004038# Check whether --enable-silent-rules was given.
4039if test "${enable_silent_rules+set}" = set; then :
4040 enableval=$enable_silent_rules;
4041fi
4042
4043case $enable_silent_rules in
4044yes) AM_DEFAULT_VERBOSITY=0;;
4045no) AM_DEFAULT_VERBOSITY=1;;
4046*) AM_DEFAULT_VERBOSITY=1;;
4047esac
cristyc3fb77b2012-02-06 01:49:41 +00004048am_make=${MAKE-make}
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4050$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4051if ${am_cv_make_support_nested_variables+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 if $as_echo 'TRUE=$(BAR$(V))
4055BAR0=false
4056BAR1=true
4057V=1
4058am__doit:
4059 @$(TRUE)
4060.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4061 am_cv_make_support_nested_variables=yes
4062else
4063 am_cv_make_support_nested_variables=no
4064fi
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4067$as_echo "$am_cv_make_support_nested_variables" >&6; }
4068if test $am_cv_make_support_nested_variables = yes; then
4069 AM_V='$(V)'
4070 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4071else
4072 AM_V=$AM_DEFAULT_VERBOSITY
4073 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4074fi
cristya448bd22011-10-14 12:38:13 +00004075AM_BACKSLASH='\'
4076
cristy73bd4a52010-10-05 11:24:23 +00004077if test "`cd $srcdir && pwd`" != "`pwd`"; then
4078 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4079 # is not polluted with repeated "-I."
4080 am__isrc=' -I$(srcdir)'
4081 # test to see if srcdir already configured
4082 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004083 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004084 fi
4085fi
4086
4087# test whether we have cygpath
4088if test -z "$CYGPATH_W"; then
4089 if (cygpath --version) >/dev/null 2>/dev/null; then
4090 CYGPATH_W='cygpath -w'
4091 else
4092 CYGPATH_W=echo
4093 fi
4094fi
4095
4096
4097# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004098 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004099 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004100
4101
cristya448bd22011-10-14 12:38:13 +00004102cat >>confdefs.h <<_ACEOF
4103#define PACKAGE "$PACKAGE"
4104_ACEOF
4105
4106
4107cat >>confdefs.h <<_ACEOF
4108#define VERSION "$VERSION"
4109_ACEOF
4110
cristy73bd4a52010-10-05 11:24:23 +00004111# Some tools Automake needs.
4112
4113ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4114
4115
4116AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4117
4118
4119AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4120
4121
4122AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4123
4124
4125MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4126
4127# We need awk for the "check" target. The system "awk" is bad on
4128# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004129# Always define AMTAR for backward compatibility. Yes, it's still used
4130# in the wild :-( We should find a proper way to deprecate it ...
4131AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004132
cristyc3fb77b2012-02-06 01:49:41 +00004133am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004134
4135
4136
4137
4138
cristy3ed852e2009-09-05 21:47:34 +00004139
4140# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004141# Check whether --enable-silent-rules was given.
4142if test "${enable_silent_rules+set}" = set; then :
4143 enableval=$enable_silent_rules;
4144fi
4145
4146case $enable_silent_rules in
4147yes) AM_DEFAULT_VERBOSITY=0;;
4148no) AM_DEFAULT_VERBOSITY=1;;
4149*) AM_DEFAULT_VERBOSITY=0;;
4150esac
cristyc3fb77b2012-02-06 01:49:41 +00004151am_make=${MAKE-make}
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4153$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4154if ${am_cv_make_support_nested_variables+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 if $as_echo 'TRUE=$(BAR$(V))
4158BAR0=false
4159BAR1=true
4160V=1
4161am__doit:
4162 @$(TRUE)
4163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4164 am_cv_make_support_nested_variables=yes
4165else
4166 am_cv_make_support_nested_variables=no
4167fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4170$as_echo "$am_cv_make_support_nested_variables" >&6; }
4171if test $am_cv_make_support_nested_variables = yes; then
4172 AM_V='$(V)'
4173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4174else
4175 AM_V=$AM_DEFAULT_VERBOSITY
4176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4177fi
cristy73bd4a52010-10-05 11:24:23 +00004178AM_BACKSLASH='\'
4179
cristy3ed852e2009-09-05 21:47:34 +00004180
4181MAGICK_LIB_VERSION="0x"
4182if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4183 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4184fi
4185MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4186if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4187 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4188fi
4189MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4190if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4191 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4192fi
4193MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4194
4195
4196# Definition used to define MagickLibVersionText in version.h
4197MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4198
4199
4200# Definition used to define MagickLibVersionNumber in version.h
4201MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4202
4203
4204# Regenerate config.status if ChangeLog or version.sh is updated.
4205CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4206
4207
4208PERLMAINCC=$CC
4209
4210MAGICK_CFLAGS=''
4211MAGICK_CPPFLAGS=$CPPFLAGS_USER
4212MAGICK_PCFLAGS=$CPPFLAGS_USER
4213MAGICK_LDFLAGS=''
4214MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004215MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004216
4217#
4218# Evaluate shell variable equivalents to Makefile directory variables
4219#
4220if test "x$prefix" = xNONE; then
4221 prefix=$ac_default_prefix
4222fi
4223# Let make expand exec_prefix.
4224if test "x$exec_prefix" = xNONE; then
4225 exec_prefix='${prefix}'
4226fi
4227
4228#
4229eval "eval PREFIX_DIR=${prefix}"
4230
4231eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4232
4233eval "eval BIN_DIR=$bindir"
4234
4235eval "eval SBIN_DIR=$sbindir"
4236
4237eval "eval LIBEXEC_DIR=$libexecdir"
4238
4239eval "eval DATA_DIR=$datadir"
4240
cristyd55889c2011-03-27 00:50:24 +00004241eval "eval DOC_DIR=$docdir"
4242
cristy3ed852e2009-09-05 21:47:34 +00004243eval "eval SYSCONF_DIR=$sysconfdir"
4244
4245eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4246
4247eval "eval LOCALSTATE_DIR=$localstatedir"
4248
4249eval "eval LIB_DIR=$libdir"
4250
4251eval "eval INCLUDE_DIR=$includedir"
4252
4253eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4254
4255eval "eval INFO_DIR=$infodir"
4256
4257eval "eval MAN_DIR=$mandir"
4258
4259
4260# Get full paths to source and build directories
4261srcdirfull="`cd $srcdir && pwd`"
4262builddir="`pwd`"
4263
4264#
4265# Compute variables useful for running uninstalled software.
4266#
4267MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4268MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4269MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4270MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4271DIRSEP=':'
4272case "${build_os}" in
4273 mingw* )
4274 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4275 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4276 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4277 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4278 DIRSEP=';'
4279 ;;
4280esac
4281case "${host_os}" in
4282 mingw* )
4283 DIRSEP=';'
4284 ;;
4285esac
4286
4287
4288
4289
4290
4291
cristya0b81c32010-01-22 02:54:33 +00004292
4293#
4294# Enable OS features.
4295#
cristy73bd4a52010-10-05 11:24:23 +00004296DEPDIR="${am__leading_dot}deps"
4297
4298ac_config_commands="$ac_config_commands depfiles"
4299
4300
4301am_make=${MAKE-make}
4302cat > confinc << 'END'
4303am__doit:
4304 @echo this is the am__doit target
4305.PHONY: am__doit
4306END
4307# If we don't find an include directive, just comment out the code.
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4309$as_echo_n "checking for style of include used by $am_make... " >&6; }
4310am__include="#"
4311am__quote=
4312_am_result=none
4313# First try GNU make style include.
4314echo "include confinc" > confmf
4315# Ignore all kinds of additional output from `make'.
4316case `$am_make -s -f confmf 2> /dev/null` in #(
4317*the\ am__doit\ target*)
4318 am__include=include
4319 am__quote=
4320 _am_result=GNU
4321 ;;
4322esac
4323# Now try BSD make style include.
4324if test "$am__include" = "#"; then
4325 echo '.include "confinc"' > confmf
4326 case `$am_make -s -f confmf 2> /dev/null` in #(
4327 *the\ am__doit\ target*)
4328 am__include=.include
4329 am__quote="\""
4330 _am_result=BSD
4331 ;;
4332 esac
4333fi
4334
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4337$as_echo "$_am_result" >&6; }
4338rm -f confinc confmf
4339
4340# Check whether --enable-dependency-tracking was given.
4341if test "${enable_dependency_tracking+set}" = set; then :
4342 enableval=$enable_dependency_tracking;
4343fi
4344
4345if test "x$enable_dependency_tracking" != xno; then
4346 am_depcomp="$ac_aux_dir/depcomp"
4347 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004348 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004349fi
4350 if test "x$enable_dependency_tracking" != xno; then
4351 AMDEP_TRUE=
4352 AMDEP_FALSE='#'
4353else
4354 AMDEP_TRUE='#'
4355 AMDEP_FALSE=
4356fi
4357
4358
cristy3ed852e2009-09-05 21:47:34 +00004359ac_ext=c
4360ac_cpp='$CPP $CPPFLAGS'
4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364if test -n "$ac_tool_prefix"; then
4365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4366set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004369if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004370 $as_echo_n "(cached) " >&6
4371else
4372 if test -n "$CC"; then
4373 ac_cv_prog_CC="$CC" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004384 break 2
4385 fi
4386done
cristy8b350f62009-11-15 23:12:43 +00004387 done
cristy3ed852e2009-09-05 21:47:34 +00004388IFS=$as_save_IFS
4389
4390fi
4391fi
4392CC=$ac_cv_prog_CC
4393if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004395$as_echo "$CC" >&6; }
4396else
cristy8b350f62009-11-15 23:12:43 +00004397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004398$as_echo "no" >&6; }
4399fi
4400
4401
4402fi
4403if test -z "$ac_cv_prog_CC"; then
4404 ac_ct_CC=$CC
4405 # Extract the first word of "gcc", so it can be a program name with args.
4406set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004409if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004410 $as_echo_n "(cached) " >&6
4411else
4412 if test -n "$ac_ct_CC"; then
4413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004424 break 2
4425 fi
4426done
cristy8b350f62009-11-15 23:12:43 +00004427 done
cristy3ed852e2009-09-05 21:47:34 +00004428IFS=$as_save_IFS
4429
4430fi
4431fi
4432ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004435$as_echo "$ac_ct_CC" >&6; }
4436else
cristy8b350f62009-11-15 23:12:43 +00004437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438$as_echo "no" >&6; }
4439fi
4440
4441 if test "x$ac_ct_CC" = x; then
4442 CC=""
4443 else
4444 case $cross_compiling:$ac_tool_warned in
4445yes:)
cristy8b350f62009-11-15 23:12:43 +00004446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448ac_tool_warned=yes ;;
4449esac
4450 CC=$ac_ct_CC
4451 fi
4452else
4453 CC="$ac_cv_prog_CC"
4454fi
4455
4456if test -z "$CC"; then
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4459set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004462if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 $as_echo_n "(cached) " >&6
4464else
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477 break 2
4478 fi
4479done
cristy8b350f62009-11-15 23:12:43 +00004480 done
cristy3ed852e2009-09-05 21:47:34 +00004481IFS=$as_save_IFS
4482
4483fi
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "$CC" >&6; }
4489else
cristy8b350f62009-11-15 23:12:43 +00004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo "no" >&6; }
4492fi
4493
4494
4495 fi
4496fi
4497if test -z "$CC"; then
4498 # Extract the first word of "cc", so it can be a program name with args.
4499set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004502if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004503 $as_echo_n "(cached) " >&6
4504else
4505 if test -n "$CC"; then
4506 ac_cv_prog_CC="$CC" # Let the user override the test.
4507else
4508 ac_prog_rejected=no
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4517 ac_prog_rejected=yes
4518 continue
4519 fi
4520 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004522 break 2
4523 fi
4524done
cristy8b350f62009-11-15 23:12:43 +00004525 done
cristy3ed852e2009-09-05 21:47:34 +00004526IFS=$as_save_IFS
4527
4528if test $ac_prog_rejected = yes; then
4529 # We found a bogon in the path, so make sure we never use it.
4530 set dummy $ac_cv_prog_CC
4531 shift
4532 if test $# != 0; then
4533 # We chose a different compiler from the bogus one.
4534 # However, it has the same basename, so the bogon will be chosen
4535 # first if we set CC to just the basename; use the full file name.
4536 shift
4537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4538 fi
4539fi
4540fi
4541fi
4542CC=$ac_cv_prog_CC
4543if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545$as_echo "$CC" >&6; }
4546else
cristy8b350f62009-11-15 23:12:43 +00004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo "no" >&6; }
4549fi
4550
4551
4552fi
4553if test -z "$CC"; then
4554 if test -n "$ac_tool_prefix"; then
4555 for ac_prog in cl.exe
4556 do
4557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004561if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004562 $as_echo_n "(cached) " >&6
4563else
4564 if test -n "$CC"; then
4565 ac_cv_prog_CC="$CC" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576 break 2
4577 fi
4578done
cristy8b350f62009-11-15 23:12:43 +00004579 done
cristy3ed852e2009-09-05 21:47:34 +00004580IFS=$as_save_IFS
4581
4582fi
4583fi
4584CC=$ac_cv_prog_CC
4585if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004587$as_echo "$CC" >&6; }
4588else
cristy8b350f62009-11-15 23:12:43 +00004589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590$as_echo "no" >&6; }
4591fi
4592
4593
4594 test -n "$CC" && break
4595 done
4596fi
4597if test -z "$CC"; then
4598 ac_ct_CC=$CC
4599 for ac_prog in cl.exe
4600do
4601 # Extract the first word of "$ac_prog", so it can be a program name with args.
4602set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004605if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004606 $as_echo_n "(cached) " >&6
4607else
4608 if test -n "$ac_ct_CC"; then
4609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620 break 2
4621 fi
4622done
cristy8b350f62009-11-15 23:12:43 +00004623 done
cristy3ed852e2009-09-05 21:47:34 +00004624IFS=$as_save_IFS
4625
4626fi
4627fi
4628ac_ct_CC=$ac_cv_prog_ac_ct_CC
4629if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo "$ac_ct_CC" >&6; }
4632else
cristy8b350f62009-11-15 23:12:43 +00004633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634$as_echo "no" >&6; }
4635fi
4636
4637
4638 test -n "$ac_ct_CC" && break
4639done
4640
4641 if test "x$ac_ct_CC" = x; then
4642 CC=""
4643 else
4644 case $cross_compiling:$ac_tool_warned in
4645yes:)
cristy8b350f62009-11-15 23:12:43 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648ac_tool_warned=yes ;;
4649esac
4650 CC=$ac_ct_CC
4651 fi
4652fi
4653
4654fi
4655
4656
cristy8b350f62009-11-15 23:12:43 +00004657test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004659as_fn_error $? "no acceptable C compiler found in \$PATH
4660See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004661
4662# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004663$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664set X $ac_compile
4665ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004666for ac_option in --version -v -V -qversion; do
4667 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004668case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671esac
cristy8b350f62009-11-15 23:12:43 +00004672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673$as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004675 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004676 if test -s conftest.err; then
4677 sed '10a\
4678... rest of stderr output deleted ...
4679 10q' conftest.err >conftest.er1
4680 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004681 fi
cristycd4c5312009-11-22 01:19:08 +00004682 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684 test $ac_status = 0; }
4685done
cristy3ed852e2009-09-05 21:47:34 +00004686
cristy8b350f62009-11-15 23:12:43 +00004687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004688/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004689
cristy3ed852e2009-09-05 21:47:34 +00004690int
4691main ()
4692{
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004699ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004700# Try to create an executable without -o first, disregard a.out.
4701# It will help us diagnose broken compilers, and finding out an intuition
4702# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4704$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004705ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4706
4707# The possible output files:
4708ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4709
4710ac_rmfiles=
4711for ac_file in $ac_files
4712do
4713 case $ac_file in
4714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4715 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4716 esac
4717done
4718rm -f $ac_rmfiles
4719
cristy8b350f62009-11-15 23:12:43 +00004720if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004721case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
cristy8b350f62009-11-15 23:12:43 +00004725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004727 (eval "$ac_link_default") 2>&5
4728 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4732# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4733# in a Makefile. We should not override ac_cv_exeext if it was cached,
4734# so that the user can short-circuit this test for compilers unknown to
4735# Autoconf.
4736for ac_file in $ac_files ''
4737do
4738 test -f "$ac_file" || continue
4739 case $ac_file in
4740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4741 ;;
4742 [ab].out )
4743 # We found the default executable, but exeext='' is most
4744 # certainly right.
4745 break;;
4746 *.* )
cristy8b350f62009-11-15 23:12:43 +00004747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004748 then :; else
4749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4750 fi
4751 # We set ac_cv_exeext here because the later test for it is not
4752 # safe: cross compilers may not add the suffix if given an `-o'
4753 # argument, so we may need to know it at that point already.
4754 # Even if this section looks crufty: it has the advantage of
4755 # actually working.
4756 break;;
4757 * )
4758 break;;
4759 esac
4760done
4761test "$ac_cv_exeext" = no && ac_cv_exeext=
4762
4763else
4764 ac_file=''
4765fi
cristy8b350f62009-11-15 23:12:43 +00004766if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
4769$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770sed 's/^/| /' conftest.$ac_ext >&5
4771
cristy8b350f62009-11-15 23:12:43 +00004772{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004774as_fn_error 77 "C compiler cannot create executables
4775See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004776else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004779fi
cristycd4c5312009-11-22 01:19:08 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4781$as_echo_n "checking for C compiler default output file name... " >&6; }
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4783$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004784ac_exeext=$ac_cv_exeext
4785
cristycd4c5312009-11-22 01:19:08 +00004786rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004787ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004789$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004790if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
cristy8b350f62009-11-15 23:12:43 +00004795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004797 (eval "$ac_link") 2>&5
4798 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4802# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4803# work properly (i.e., refer to `conftest.exe'), while it won't with
4804# `rm'.
4805for ac_file in conftest.exe conftest conftest.*; do
4806 test -f "$ac_file" || continue
4807 case $ac_file in
4808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4810 break;;
4811 * ) break;;
4812 esac
4813done
4814else
cristy8b350f62009-11-15 23:12:43 +00004815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004817as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4818See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004819fi
cristycd4c5312009-11-22 01:19:08 +00004820rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822$as_echo "$ac_cv_exeext" >&6; }
4823
4824rm -f conftest.$ac_ext
4825EXEEXT=$ac_cv_exeext
4826ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828/* end confdefs.h. */
4829#include <stdio.h>
4830int
4831main ()
4832{
4833FILE *f = fopen ("conftest.out", "w");
4834 return ferror (f) || fclose (f) != 0;
4835
4836 ;
4837 return 0;
4838}
4839_ACEOF
4840ac_clean_files="$ac_clean_files conftest.out"
4841# Check that the compiler produces executables we can run. If not, either
4842# the compiler is broken, or we cross compile.
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4844$as_echo_n "checking whether we are cross compiling... " >&6; }
4845if test "$cross_compiling" != yes; then
4846 { { ac_try="$ac_link"
4847case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850esac
4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852$as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_link") 2>&5
4854 ac_status=$?
4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }
4857 if { ac_try='./conftest$ac_cv_exeext'
4858 { { case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
4862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863$as_echo "$ac_try_echo"; } >&5
4864 (eval "$ac_try") 2>&5
4865 ac_status=$?
4866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; }; }; then
4868 cross_compiling=no
4869 else
4870 if test "$cross_compiling" = maybe; then
4871 cross_compiling=yes
4872 else
4873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004875as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004876If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004877See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004878 fi
4879 fi
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4882$as_echo "$cross_compiling" >&6; }
4883
4884rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4885ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004887$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004888if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004889 $as_echo_n "(cached) " >&6
4890else
cristy8b350f62009-11-15 23:12:43 +00004891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004892/* end confdefs.h. */
4893
4894int
4895main ()
4896{
4897
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004903if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
cristy8b350f62009-11-15 23:12:43 +00004908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004910 (eval "$ac_compile") 2>&5
4911 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004914 for ac_file in conftest.o conftest.obj conftest.*; do
4915 test -f "$ac_file" || continue;
4916 case $ac_file in
4917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4919 break;;
4920 esac
4921done
4922else
4923 $as_echo "$as_me: failed program was:" >&5
4924sed 's/^/| /' conftest.$ac_ext >&5
4925
cristy8b350f62009-11-15 23:12:43 +00004926{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004928as_fn_error $? "cannot compute suffix of object files: cannot compile
4929See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004930fi
cristy3ed852e2009-09-05 21:47:34 +00004931rm -f conftest.$ac_cv_objext conftest.$ac_ext
4932fi
cristy8b350f62009-11-15 23:12:43 +00004933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004934$as_echo "$ac_cv_objext" >&6; }
4935OBJEXT=$ac_cv_objext
4936ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004938$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004939if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004940 $as_echo_n "(cached) " >&6
4941else
cristy8b350f62009-11-15 23:12:43 +00004942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004943/* end confdefs.h. */
4944
4945int
4946main ()
4947{
4948#ifndef __GNUC__
4949 choke me
4950#endif
4951
4952 ;
4953 return 0;
4954}
4955_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004956if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004957 ac_compiler_gnu=yes
4958else
cristy8b350f62009-11-15 23:12:43 +00004959 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004960fi
cristy3ed852e2009-09-05 21:47:34 +00004961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962ac_cv_c_compiler_gnu=$ac_compiler_gnu
4963
4964fi
cristy8b350f62009-11-15 23:12:43 +00004965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004966$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4967if test $ac_compiler_gnu = yes; then
4968 GCC=yes
4969else
4970 GCC=
4971fi
4972ac_test_CFLAGS=${CFLAGS+set}
4973ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004976if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004977 $as_echo_n "(cached) " >&6
4978else
4979 ac_save_c_werror_flag=$ac_c_werror_flag
4980 ac_c_werror_flag=yes
4981 ac_cv_prog_cc_g=no
4982 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004984/* end confdefs.h. */
4985
4986int
4987main ()
4988{
4989
4990 ;
4991 return 0;
4992}
4993_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004994if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004995 ac_cv_prog_cc_g=yes
4996else
cristy8b350f62009-11-15 23:12:43 +00004997 CFLAGS=""
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004999/* end confdefs.h. */
5000
5001int
5002main ()
5003{
5004
5005 ;
5006 return 0;
5007}
5008_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005009if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005010
cristy8b350f62009-11-15 23:12:43 +00005011else
5012 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005013 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005015/* end confdefs.h. */
5016
5017int
5018main ()
5019{
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005025if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005026 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005027fi
cristy3ed852e2009-09-05 21:47:34 +00005028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029fi
cristy3ed852e2009-09-05 21:47:34 +00005030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
cristy3ed852e2009-09-05 21:47:34 +00005032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 ac_c_werror_flag=$ac_save_c_werror_flag
5034fi
cristy8b350f62009-11-15 23:12:43 +00005035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005036$as_echo "$ac_cv_prog_cc_g" >&6; }
5037if test "$ac_test_CFLAGS" = set; then
5038 CFLAGS=$ac_save_CFLAGS
5039elif test $ac_cv_prog_cc_g = yes; then
5040 if test "$GCC" = yes; then
5041 CFLAGS="-g -O2"
5042 else
5043 CFLAGS="-g"
5044 fi
5045else
5046 if test "$GCC" = yes; then
5047 CFLAGS="-O2"
5048 else
5049 CFLAGS=
5050 fi
5051fi
cristy8b350f62009-11-15 23:12:43 +00005052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005054if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005055 $as_echo_n "(cached) " >&6
5056else
5057 ac_cv_prog_cc_c89=no
5058ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005060/* end confdefs.h. */
5061#include <stdarg.h>
5062#include <stdio.h>
5063#include <sys/types.h>
5064#include <sys/stat.h>
5065/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5066struct buf { int x; };
5067FILE * (*rcsopen) (struct buf *, struct stat *, int);
5068static char *e (p, i)
5069 char **p;
5070 int i;
5071{
5072 return p[i];
5073}
5074static char *f (char * (*g) (char **, int), char **p, ...)
5075{
5076 char *s;
5077 va_list v;
5078 va_start (v,p);
5079 s = g (p, va_arg (v,int));
5080 va_end (v);
5081 return s;
5082}
5083
5084/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5085 function prototypes and stuff, but not '\xHH' hex character constants.
5086 These don't provoke an error unfortunately, instead are silently treated
5087 as 'x'. The following induces an error, until -std is added to get
5088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5089 array size at least. It's necessary to write '\x00'==0 to get something
5090 that's true only with -std. */
5091int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5092
5093/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5094 inside strings and character constants. */
5095#define FOO(x) 'x'
5096int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5097
5098int test (int i, double x);
5099struct s1 {int (*f) (int a);};
5100struct s2 {int (*f) (double a);};
5101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5102int argc;
5103char **argv;
5104int
5105main ()
5106{
5107return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5114do
5115 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005116 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005117 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005118fi
cristy3ed852e2009-09-05 21:47:34 +00005119rm -f core conftest.err conftest.$ac_objext
5120 test "x$ac_cv_prog_cc_c89" != "xno" && break
5121done
5122rm -f conftest.$ac_ext
5123CC=$ac_save_CC
5124
5125fi
5126# AC_CACHE_VAL
5127case "x$ac_cv_prog_cc_c89" in
5128 x)
cristy8b350f62009-11-15 23:12:43 +00005129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005130$as_echo "none needed" >&6; } ;;
5131 xno)
cristy8b350f62009-11-15 23:12:43 +00005132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005133$as_echo "unsupported" >&6; } ;;
5134 *)
5135 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005137$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5138esac
cristy8b350f62009-11-15 23:12:43 +00005139if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005140
cristy8b350f62009-11-15 23:12:43 +00005141fi
cristy3ed852e2009-09-05 21:47:34 +00005142
5143ac_ext=c
5144ac_cpp='$CPP $CPPFLAGS'
5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005148
cristy73bd4a52010-10-05 11:24:23 +00005149depcc="$CC" am_compiler_list=
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5152$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005153if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005154 $as_echo_n "(cached) " >&6
5155else
5156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5157 # We make a subdir and do the tests there. Otherwise we can end up
5158 # making bogus files that we don't know about and never remove. For
5159 # instance it was reported that on HP-UX the gcc test will end up
5160 # making a dummy file named `D' -- because `-MD' means `put the output
5161 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005162 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005163 mkdir conftest.dir
5164 # Copy depcomp to subdir because otherwise we won't find it if we're
5165 # using a relative directory.
5166 cp "$am_depcomp" conftest.dir
5167 cd conftest.dir
5168 # We will build objects and dependencies in a subdirectory because
5169 # it helps to detect inapplicable dependency modes. For instance
5170 # both Tru64's cc and ICC support -MD to output dependencies as a
5171 # side effect of compilation, but ICC will put the dependencies in
5172 # the current directory while Tru64 will put them in the object
5173 # directory.
5174 mkdir sub
5175
5176 am_cv_CC_dependencies_compiler_type=none
5177 if test "$am_compiler_list" = ""; then
5178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5179 fi
5180 am__universal=false
5181 case " $depcc " in #(
5182 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5183 esac
5184
5185 for depmode in $am_compiler_list; do
5186 # Setup a source with many dependencies, because some compilers
5187 # like to wrap large dependency lists on column 80 (with \), and
5188 # we should not choose a depcomp mode which is confused by this.
5189 #
5190 # We need to recreate these files for each test, as the compiler may
5191 # overwrite some of them when testing with obscure command lines.
5192 # This happens at least with the AIX C compiler.
5193 : > sub/conftest.c
5194 for i in 1 2 3 4 5 6; do
5195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5197 # Solaris 8's {/usr,}/bin/sh.
5198 touch sub/conftst$i.h
5199 done
5200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5201
5202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5203 # mode. It turns out that the SunPro C++ compiler does not properly
5204 # handle `-M -o', and we need to detect this. Also, some Intel
5205 # versions had trouble with output in subdirs
5206 am__obj=sub/conftest.${OBJEXT-o}
5207 am__minus_obj="-o $am__obj"
5208 case $depmode in
5209 gcc)
5210 # This depmode causes a compiler race in universal mode.
5211 test "$am__universal" = false || continue
5212 ;;
5213 nosideeffect)
5214 # after this tag, mechanisms are not by side-effect, so they'll
5215 # only be used when explicitly requested
5216 if test "x$enable_dependency_tracking" = xyes; then
5217 continue
5218 else
5219 break
5220 fi
5221 ;;
cristy7247bba2012-02-05 16:37:27 +00005222 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005223 # This compiler won't grok `-c -o', but also, the minuso test has
5224 # not run yet. These depmodes are late enough in the game, and
5225 # so weak that their functioning should not be impacted.
5226 am__obj=conftest.${OBJEXT-o}
5227 am__minus_obj=
5228 ;;
5229 none) break ;;
5230 esac
5231 if depmode=$depmode \
5232 source=sub/conftest.c object=$am__obj \
5233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5235 >/dev/null 2>conftest.err &&
5236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5240 # icc doesn't choke on unknown options, it will just issue warnings
5241 # or remarks (even with -Werror). So we grep stderr for any message
5242 # that says an option was ignored or not supported.
5243 # When given -MP, icc 7.0 and 7.1 complain thusly:
5244 # icc: Command line warning: ignoring option '-M'; no argument required
5245 # The diagnosis changed in icc 8.0:
5246 # icc: Command line remark: option '-MP' not supported
5247 if (grep 'ignoring option' conftest.err ||
5248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5249 am_cv_CC_dependencies_compiler_type=$depmode
5250 break
5251 fi
5252 fi
5253 done
5254
5255 cd ..
5256 rm -rf conftest.dir
5257else
5258 am_cv_CC_dependencies_compiler_type=none
5259fi
5260
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5263$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5264CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5265
5266 if
5267 test "x$enable_dependency_tracking" != xno \
5268 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5269 am__fastdepCC_TRUE=
5270 am__fastdepCC_FALSE='#'
5271else
5272 am__fastdepCC_TRUE='#'
5273 am__fastdepCC_FALSE=
5274fi
5275
5276
cristy3ed852e2009-09-05 21:47:34 +00005277
cristya0b81c32010-01-22 02:54:33 +00005278ac_ext=c
5279ac_cpp='$CPP $CPPFLAGS'
5280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5284$as_echo_n "checking how to run the C preprocessor... " >&6; }
5285# On Suns, sometimes $CPP names a directory.
5286if test -n "$CPP" && test -d "$CPP"; then
5287 CPP=
5288fi
5289if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005290 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005291 $as_echo_n "(cached) " >&6
5292else
5293 # Double quotes because CPP needs to be expanded
5294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5295 do
5296 ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299 # Use a header file that comes with gcc, so configuring glibc
5300 # with a fresh cross-compiler works.
5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302 # <limits.h> exists even on freestanding compilers.
5303 # On the NeXT, cc -E runs the code through the compiler's parser,
5304 # not just through cpp. "Syntax error" is here to catch this case.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312 Syntax error
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315
5316else
5317 # Broken: fails on valid input.
5318continue
5319fi
cristyda16f162011-02-19 23:52:17 +00005320rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005321
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h. */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_c_try_cpp "$LINENO"; then :
5329 # Broken: success on invalid input.
5330continue
5331else
5332 # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
cristyda16f162011-02-19 23:52:17 +00005336rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005340rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005341if $ac_preproc_ok; then :
5342 break
5343fi
5344
5345 done
5346 ac_cv_prog_CPP=$CPP
5347
5348fi
5349 CPP=$ac_cv_prog_CPP
5350else
5351 ac_cv_prog_CPP=$CPP
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5354$as_echo "$CPP" >&6; }
5355ac_preproc_ok=false
5356for ac_c_preproc_warn_flag in '' yes
5357do
5358 # Use a header file that comes with gcc, so configuring glibc
5359 # with a fresh cross-compiler works.
5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 # <limits.h> exists even on freestanding compilers.
5362 # On the NeXT, cc -E runs the code through the compiler's parser,
5363 # not just through cpp. "Syntax error" is here to catch this case.
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h. */
5366#ifdef __STDC__
5367# include <limits.h>
5368#else
5369# include <assert.h>
5370#endif
5371 Syntax error
5372_ACEOF
5373if ac_fn_c_try_cpp "$LINENO"; then :
5374
5375else
5376 # Broken: fails on valid input.
5377continue
5378fi
cristyda16f162011-02-19 23:52:17 +00005379rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005380
5381 # OK, works on sane cases. Now check whether nonexistent headers
5382 # can be detected and how.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385#include <ac_nonexistent.h>
5386_ACEOF
5387if ac_fn_c_try_cpp "$LINENO"; then :
5388 # Broken: success on invalid input.
5389continue
5390else
5391 # Passes both tests.
5392ac_preproc_ok=:
5393break
5394fi
cristyda16f162011-02-19 23:52:17 +00005395rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005396
5397done
5398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005399rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005400if $ac_preproc_ok; then :
5401
5402else
5403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005405as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5406See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005407fi
5408
5409ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414
5415
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5417$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005418if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005419 $as_echo_n "(cached) " >&6
5420else
5421 if test -z "$GREP"; then
5422 ac_path_GREP_found=false
5423 # Loop through the user's path and test for each of PROGNAME-LIST
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5426do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_prog in grep ggrep; do
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5432 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5433# Check for GNU ac_path_GREP and select it if it is found.
5434 # Check for GNU $ac_path_GREP
5435case `"$ac_path_GREP" --version 2>&1` in
5436*GNU*)
5437 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5438*)
5439 ac_count=0
5440 $as_echo_n 0123456789 >"conftest.in"
5441 while :
5442 do
5443 cat "conftest.in" "conftest.in" >"conftest.tmp"
5444 mv "conftest.tmp" "conftest.in"
5445 cp "conftest.in" "conftest.nl"
5446 $as_echo 'GREP' >> "conftest.nl"
5447 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5449 as_fn_arith $ac_count + 1 && ac_count=$as_val
5450 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5451 # Best one so far, save it but keep looking for a better one
5452 ac_cv_path_GREP="$ac_path_GREP"
5453 ac_path_GREP_max=$ac_count
5454 fi
5455 # 10*(2^10) chars as input seems more than enough
5456 test $ac_count -gt 10 && break
5457 done
5458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5459esac
5460
5461 $ac_path_GREP_found && break 3
5462 done
5463 done
5464 done
5465IFS=$as_save_IFS
5466 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005467 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005468 fi
5469else
5470 ac_cv_path_GREP=$GREP
5471fi
5472
5473fi
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5475$as_echo "$ac_cv_path_GREP" >&6; }
5476 GREP="$ac_cv_path_GREP"
5477
5478
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5480$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005481if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005482 $as_echo_n "(cached) " >&6
5483else
5484 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5485 then ac_cv_path_EGREP="$GREP -E"
5486 else
5487 if test -z "$EGREP"; then
5488 ac_path_EGREP_found=false
5489 # Loop through the user's path and test for each of PROGNAME-LIST
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_prog in egrep; do
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5498 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5499# Check for GNU ac_path_EGREP and select it if it is found.
5500 # Check for GNU $ac_path_EGREP
5501case `"$ac_path_EGREP" --version 2>&1` in
5502*GNU*)
5503 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5504*)
5505 ac_count=0
5506 $as_echo_n 0123456789 >"conftest.in"
5507 while :
5508 do
5509 cat "conftest.in" "conftest.in" >"conftest.tmp"
5510 mv "conftest.tmp" "conftest.in"
5511 cp "conftest.in" "conftest.nl"
5512 $as_echo 'EGREP' >> "conftest.nl"
5513 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5515 as_fn_arith $ac_count + 1 && ac_count=$as_val
5516 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5517 # Best one so far, save it but keep looking for a better one
5518 ac_cv_path_EGREP="$ac_path_EGREP"
5519 ac_path_EGREP_max=$ac_count
5520 fi
5521 # 10*(2^10) chars as input seems more than enough
5522 test $ac_count -gt 10 && break
5523 done
5524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5525esac
5526
5527 $ac_path_EGREP_found && break 3
5528 done
5529 done
5530 done
5531IFS=$as_save_IFS
5532 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005533 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005534 fi
5535else
5536 ac_cv_path_EGREP=$EGREP
5537fi
5538
5539 fi
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5542$as_echo "$ac_cv_path_EGREP" >&6; }
5543 EGREP="$ac_cv_path_EGREP"
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5547$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005548if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005549 $as_echo_n "(cached) " >&6
5550else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h. */
5553#include <stdlib.h>
5554#include <stdarg.h>
5555#include <string.h>
5556#include <float.h>
5557
5558int
5559main ()
5560{
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_header_stdc=yes
5568else
5569 ac_cv_header_stdc=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572
5573if test $ac_cv_header_stdc = yes; then
5574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h. */
5577#include <string.h>
5578
5579_ACEOF
5580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 $EGREP "memchr" >/dev/null 2>&1; then :
5582
5583else
5584 ac_cv_header_stdc=no
5585fi
5586rm -f conftest*
5587
5588fi
5589
5590if test $ac_cv_header_stdc = yes; then
5591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h. */
5594#include <stdlib.h>
5595
5596_ACEOF
5597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 $EGREP "free" >/dev/null 2>&1; then :
5599
5600else
5601 ac_cv_header_stdc=no
5602fi
5603rm -f conftest*
5604
5605fi
5606
5607if test $ac_cv_header_stdc = yes; then
5608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5609 if test "$cross_compiling" = yes; then :
5610 :
5611else
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h. */
5614#include <ctype.h>
5615#include <stdlib.h>
5616#if ((' ' & 0x0FF) == 0x020)
5617# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5618# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5619#else
5620# define ISLOWER(c) \
5621 (('a' <= (c) && (c) <= 'i') \
5622 || ('j' <= (c) && (c) <= 'r') \
5623 || ('s' <= (c) && (c) <= 'z'))
5624# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5625#endif
5626
5627#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5628int
5629main ()
5630{
5631 int i;
5632 for (i = 0; i < 256; i++)
5633 if (XOR (islower (i), ISLOWER (i))
5634 || toupper (i) != TOUPPER (i))
5635 return 2;
5636 return 0;
5637}
5638_ACEOF
5639if ac_fn_c_try_run "$LINENO"; then :
5640
5641else
5642 ac_cv_header_stdc=no
5643fi
5644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5645 conftest.$ac_objext conftest.beam conftest.$ac_ext
5646fi
5647
5648fi
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5651$as_echo "$ac_cv_header_stdc" >&6; }
5652if test $ac_cv_header_stdc = yes; then
5653
5654$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5655
5656fi
5657
5658# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5659for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5660 inttypes.h stdint.h unistd.h
5661do :
5662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5663ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5664"
cristy98dddb52010-11-04 00:30:15 +00005665if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005666 cat >>confdefs.h <<_ACEOF
5667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5668_ACEOF
5669
5670fi
5671
5672done
5673
5674
5675
5676 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 +00005677if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005678 MINIX=yes
5679else
5680 MINIX=
5681fi
5682
5683
5684 if test "$MINIX" = yes; then
5685
5686$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5687
5688
5689$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5690
5691
5692$as_echo "#define _MINIX 1" >>confdefs.h
5693
5694 fi
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5698$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005699if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005700 $as_echo_n "(cached) " >&6
5701else
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h. */
5704
5705# define __EXTENSIONS__ 1
5706 $ac_includes_default
5707int
5708main ()
5709{
5710
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"; then :
5716 ac_cv_safe_to_define___extensions__=yes
5717else
5718 ac_cv_safe_to_define___extensions__=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5723$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5724 test $ac_cv_safe_to_define___extensions__ = yes &&
5725 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5726
5727 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5728
5729 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5730
5731 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5732
5733 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5734
5735
5736
5737# Check for programs
5738ac_ext=c
5739ac_cpp='$CPP $CPPFLAGS'
5740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743if test -n "$ac_tool_prefix"; then
5744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5745set dummy ${ac_tool_prefix}gcc; ac_word=$2
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005748if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005749 $as_echo_n "(cached) " >&6
5750else
5751 if test -n "$CC"; then
5752 ac_cv_prog_CC="$CC" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765done
5766 done
5767IFS=$as_save_IFS
5768
5769fi
5770fi
5771CC=$ac_cv_prog_CC
5772if test -n "$CC"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5774$as_echo "$CC" >&6; }
5775else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777$as_echo "no" >&6; }
5778fi
5779
5780
5781fi
5782if test -z "$ac_cv_prog_CC"; then
5783 ac_ct_CC=$CC
5784 # Extract the first word of "gcc", so it can be a program name with args.
5785set dummy gcc; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005788if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005789 $as_echo_n "(cached) " >&6
5790else
5791 if test -n "$ac_ct_CC"; then
5792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_ac_ct_CC="gcc"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806 done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811ac_ct_CC=$ac_cv_prog_ac_ct_CC
5812if test -n "$ac_ct_CC"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5814$as_echo "$ac_ct_CC" >&6; }
5815else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820 if test "x$ac_ct_CC" = x; then
5821 CC=""
5822 else
5823 case $cross_compiling:$ac_tool_warned in
5824yes:)
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827ac_tool_warned=yes ;;
5828esac
5829 CC=$ac_ct_CC
5830 fi
5831else
5832 CC="$ac_cv_prog_CC"
5833fi
5834
5835if test -z "$CC"; then
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}cc; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005841if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$CC"; then
5845 ac_cv_prog_CC="$CC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_CC="${ac_tool_prefix}cc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864CC=$ac_cv_prog_CC
5865if test -n "$CC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5867$as_echo "$CC" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874 fi
5875fi
5876if test -z "$CC"; then
5877 # Extract the first word of "cc", so it can be a program name with args.
5878set dummy cc; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005881if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$CC"; then
5885 ac_cv_prog_CC="$CC" # Let the user override the test.
5886else
5887 ac_prog_rejected=no
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5896 ac_prog_rejected=yes
5897 continue
5898 fi
5899 ac_cv_prog_CC="cc"
5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903done
5904 done
5905IFS=$as_save_IFS
5906
5907if test $ac_prog_rejected = yes; then
5908 # We found a bogon in the path, so make sure we never use it.
5909 set dummy $ac_cv_prog_CC
5910 shift
5911 if test $# != 0; then
5912 # We chose a different compiler from the bogus one.
5913 # However, it has the same basename, so the bogon will be chosen
5914 # first if we set CC to just the basename; use the full file name.
5915 shift
5916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5917 fi
5918fi
5919fi
5920fi
5921CC=$ac_cv_prog_CC
5922if test -n "$CC"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5924$as_echo "$CC" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930
5931fi
5932if test -z "$CC"; then
5933 if test -n "$ac_tool_prefix"; then
5934 for ac_prog in cl.exe
5935 do
5936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5937set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005940if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005941 $as_echo_n "(cached) " >&6
5942else
5943 if test -n "$CC"; then
5944 ac_cv_prog_CC="$CC" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957done
5958 done
5959IFS=$as_save_IFS
5960
5961fi
5962fi
5963CC=$ac_cv_prog_CC
5964if test -n "$CC"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5966$as_echo "$CC" >&6; }
5967else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970fi
5971
5972
5973 test -n "$CC" && break
5974 done
5975fi
5976if test -z "$CC"; then
5977 ac_ct_CC=$CC
5978 for ac_prog in cl.exe
5979do
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981set dummy $ac_prog; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005984if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005985 $as_echo_n "(cached) " >&6
5986else
5987 if test -n "$ac_ct_CC"; then
5988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_ac_ct_CC="$ac_prog"
5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001done
6002 done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007ac_ct_CC=$ac_cv_prog_ac_ct_CC
6008if test -n "$ac_ct_CC"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6010$as_echo "$ac_ct_CC" >&6; }
6011else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016
6017 test -n "$ac_ct_CC" && break
6018done
6019
6020 if test "x$ac_ct_CC" = x; then
6021 CC=""
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024yes:)
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027ac_tool_warned=yes ;;
6028esac
6029 CC=$ac_ct_CC
6030 fi
6031fi
6032
6033fi
6034
6035
6036test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006038as_fn_error $? "no acceptable C compiler found in \$PATH
6039See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006040
6041# Provide some information about the compiler.
6042$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6043set X $ac_compile
6044ac_compiler=$2
6045for ac_option in --version -v -V -qversion; do
6046 { { ac_try="$ac_compiler $ac_option >&5"
6047case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050esac
6051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6052$as_echo "$ac_try_echo"; } >&5
6053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6054 ac_status=$?
6055 if test -s conftest.err; then
6056 sed '10a\
6057... rest of stderr output deleted ...
6058 10q' conftest.err >conftest.er1
6059 cat conftest.er1 >&5
6060 fi
6061 rm -f conftest.er1 conftest.err
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }
6064done
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6067$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006068if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006069 $as_echo_n "(cached) " >&6
6070else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073
6074int
6075main ()
6076{
6077#ifndef __GNUC__
6078 choke me
6079#endif
6080
6081 ;
6082 return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_compile "$LINENO"; then :
6086 ac_compiler_gnu=yes
6087else
6088 ac_compiler_gnu=no
6089fi
6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091ac_cv_c_compiler_gnu=$ac_compiler_gnu
6092
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6095$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6096if test $ac_compiler_gnu = yes; then
6097 GCC=yes
6098else
6099 GCC=
6100fi
6101ac_test_CFLAGS=${CFLAGS+set}
6102ac_save_CFLAGS=$CFLAGS
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6104$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006105if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006106 $as_echo_n "(cached) " >&6
6107else
6108 ac_save_c_werror_flag=$ac_c_werror_flag
6109 ac_c_werror_flag=yes
6110 ac_cv_prog_cc_g=no
6111 CFLAGS="-g"
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h. */
6114
6115int
6116main ()
6117{
6118
6119 ;
6120 return 0;
6121}
6122_ACEOF
6123if ac_fn_c_try_compile "$LINENO"; then :
6124 ac_cv_prog_cc_g=yes
6125else
6126 CFLAGS=""
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h. */
6129
6130int
6131main ()
6132{
6133
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_compile "$LINENO"; then :
6139
6140else
6141 ac_c_werror_flag=$ac_save_c_werror_flag
6142 CFLAGS="-g"
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144/* end confdefs.h. */
6145
6146int
6147main ()
6148{
6149
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
6155 ac_cv_prog_cc_g=yes
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 ac_c_werror_flag=$ac_save_c_werror_flag
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6165$as_echo "$ac_cv_prog_cc_g" >&6; }
6166if test "$ac_test_CFLAGS" = set; then
6167 CFLAGS=$ac_save_CFLAGS
6168elif test $ac_cv_prog_cc_g = yes; then
6169 if test "$GCC" = yes; then
6170 CFLAGS="-g -O2"
6171 else
6172 CFLAGS="-g"
6173 fi
6174else
6175 if test "$GCC" = yes; then
6176 CFLAGS="-O2"
6177 else
6178 CFLAGS=
6179 fi
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6182$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006183if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006184 $as_echo_n "(cached) " >&6
6185else
6186 ac_cv_prog_cc_c89=no
6187ac_save_CC=$CC
6188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189/* end confdefs.h. */
6190#include <stdarg.h>
6191#include <stdio.h>
6192#include <sys/types.h>
6193#include <sys/stat.h>
6194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6195struct buf { int x; };
6196FILE * (*rcsopen) (struct buf *, struct stat *, int);
6197static char *e (p, i)
6198 char **p;
6199 int i;
6200{
6201 return p[i];
6202}
6203static char *f (char * (*g) (char **, int), char **p, ...)
6204{
6205 char *s;
6206 va_list v;
6207 va_start (v,p);
6208 s = g (p, va_arg (v,int));
6209 va_end (v);
6210 return s;
6211}
6212
6213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6214 function prototypes and stuff, but not '\xHH' hex character constants.
6215 These don't provoke an error unfortunately, instead are silently treated
6216 as 'x'. The following induces an error, until -std is added to get
6217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6218 array size at least. It's necessary to write '\x00'==0 to get something
6219 that's true only with -std. */
6220int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6221
6222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6223 inside strings and character constants. */
6224#define FOO(x) 'x'
6225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6226
6227int test (int i, double x);
6228struct s1 {int (*f) (int a);};
6229struct s2 {int (*f) (double a);};
6230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6231int argc;
6232char **argv;
6233int
6234main ()
6235{
6236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6243do
6244 CC="$ac_save_CC $ac_arg"
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246 ac_cv_prog_cc_c89=$ac_arg
6247fi
6248rm -f core conftest.err conftest.$ac_objext
6249 test "x$ac_cv_prog_cc_c89" != "xno" && break
6250done
6251rm -f conftest.$ac_ext
6252CC=$ac_save_CC
6253
6254fi
6255# AC_CACHE_VAL
6256case "x$ac_cv_prog_cc_c89" in
6257 x)
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6259$as_echo "none needed" >&6; } ;;
6260 xno)
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6262$as_echo "unsupported" >&6; } ;;
6263 *)
6264 CC="$CC $ac_cv_prog_cc_c89"
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6267esac
6268if test "x$ac_cv_prog_cc_c89" != xno; then :
6269
6270fi
6271
6272ac_ext=c
6273ac_cpp='$CPP $CPPFLAGS'
6274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277
cristy73bd4a52010-10-05 11:24:23 +00006278depcc="$CC" am_compiler_list=
6279
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6281$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006282if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006283 $as_echo_n "(cached) " >&6
6284else
6285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6286 # We make a subdir and do the tests there. Otherwise we can end up
6287 # making bogus files that we don't know about and never remove. For
6288 # instance it was reported that on HP-UX the gcc test will end up
6289 # making a dummy file named `D' -- because `-MD' means `put the output
6290 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006291 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006292 mkdir conftest.dir
6293 # Copy depcomp to subdir because otherwise we won't find it if we're
6294 # using a relative directory.
6295 cp "$am_depcomp" conftest.dir
6296 cd conftest.dir
6297 # We will build objects and dependencies in a subdirectory because
6298 # it helps to detect inapplicable dependency modes. For instance
6299 # both Tru64's cc and ICC support -MD to output dependencies as a
6300 # side effect of compilation, but ICC will put the dependencies in
6301 # the current directory while Tru64 will put them in the object
6302 # directory.
6303 mkdir sub
6304
6305 am_cv_CC_dependencies_compiler_type=none
6306 if test "$am_compiler_list" = ""; then
6307 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6308 fi
6309 am__universal=false
6310 case " $depcc " in #(
6311 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6312 esac
6313
6314 for depmode in $am_compiler_list; do
6315 # Setup a source with many dependencies, because some compilers
6316 # like to wrap large dependency lists on column 80 (with \), and
6317 # we should not choose a depcomp mode which is confused by this.
6318 #
6319 # We need to recreate these files for each test, as the compiler may
6320 # overwrite some of them when testing with obscure command lines.
6321 # This happens at least with the AIX C compiler.
6322 : > sub/conftest.c
6323 for i in 1 2 3 4 5 6; do
6324 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6325 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6326 # Solaris 8's {/usr,}/bin/sh.
6327 touch sub/conftst$i.h
6328 done
6329 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6330
6331 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6332 # mode. It turns out that the SunPro C++ compiler does not properly
6333 # handle `-M -o', and we need to detect this. Also, some Intel
6334 # versions had trouble with output in subdirs
6335 am__obj=sub/conftest.${OBJEXT-o}
6336 am__minus_obj="-o $am__obj"
6337 case $depmode in
6338 gcc)
6339 # This depmode causes a compiler race in universal mode.
6340 test "$am__universal" = false || continue
6341 ;;
6342 nosideeffect)
6343 # after this tag, mechanisms are not by side-effect, so they'll
6344 # only be used when explicitly requested
6345 if test "x$enable_dependency_tracking" = xyes; then
6346 continue
6347 else
6348 break
6349 fi
6350 ;;
cristy7247bba2012-02-05 16:37:27 +00006351 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006352 # This compiler won't grok `-c -o', but also, the minuso test has
6353 # not run yet. These depmodes are late enough in the game, and
6354 # so weak that their functioning should not be impacted.
6355 am__obj=conftest.${OBJEXT-o}
6356 am__minus_obj=
6357 ;;
6358 none) break ;;
6359 esac
6360 if depmode=$depmode \
6361 source=sub/conftest.c object=$am__obj \
6362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6363 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6364 >/dev/null 2>conftest.err &&
6365 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6367 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6369 # icc doesn't choke on unknown options, it will just issue warnings
6370 # or remarks (even with -Werror). So we grep stderr for any message
6371 # that says an option was ignored or not supported.
6372 # When given -MP, icc 7.0 and 7.1 complain thusly:
6373 # icc: Command line warning: ignoring option '-M'; no argument required
6374 # The diagnosis changed in icc 8.0:
6375 # icc: Command line remark: option '-MP' not supported
6376 if (grep 'ignoring option' conftest.err ||
6377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6378 am_cv_CC_dependencies_compiler_type=$depmode
6379 break
6380 fi
6381 fi
6382 done
6383
6384 cd ..
6385 rm -rf conftest.dir
6386else
6387 am_cv_CC_dependencies_compiler_type=none
6388fi
6389
6390fi
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6392$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6394
6395 if
6396 test "x$enable_dependency_tracking" != xno \
6397 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6398 am__fastdepCC_TRUE=
6399 am__fastdepCC_FALSE='#'
6400else
6401 am__fastdepCC_TRUE='#'
6402 am__fastdepCC_FALSE=
6403fi
6404
6405
cristy95646052009-11-28 23:05:30 +00006406ac_ext=cpp
6407ac_cpp='$CXXCPP $CPPFLAGS'
6408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6411if test -z "$CXX"; then
6412 if test -n "$CCC"; then
6413 CXX=$CCC
6414 else
6415 if test -n "$ac_tool_prefix"; then
6416 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6417 do
6418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006422if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006423 $as_echo_n "(cached) " >&6
6424else
6425 if test -n "$CXX"; then
6426 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439done
6440 done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445CXX=$ac_cv_prog_CXX
6446if test -n "$CXX"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6448$as_echo "$CXX" >&6; }
6449else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452fi
6453
6454
6455 test -n "$CXX" && break
6456 done
6457fi
6458if test -z "$CXX"; then
6459 ac_ct_CXX=$CXX
6460 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6461do
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463set dummy $ac_prog; ac_word=$2
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006466if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006467 $as_echo_n "(cached) " >&6
6468else
6469 if test -n "$ac_ct_CXX"; then
6470 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_ac_ct_CXX="$ac_prog"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483done
6484 done
6485IFS=$as_save_IFS
6486
6487fi
6488fi
6489ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6490if test -n "$ac_ct_CXX"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6492$as_echo "$ac_ct_CXX" >&6; }
6493else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495$as_echo "no" >&6; }
6496fi
6497
6498
6499 test -n "$ac_ct_CXX" && break
6500done
6501
6502 if test "x$ac_ct_CXX" = x; then
6503 CXX="g++"
6504 else
6505 case $cross_compiling:$ac_tool_warned in
6506yes:)
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509ac_tool_warned=yes ;;
6510esac
6511 CXX=$ac_ct_CXX
6512 fi
6513fi
6514
6515 fi
6516fi
6517# Provide some information about the compiler.
6518$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6519set X $ac_compile
6520ac_compiler=$2
6521for ac_option in --version -v -V -qversion; do
6522 { { ac_try="$ac_compiler $ac_option >&5"
6523case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6528$as_echo "$ac_try_echo"; } >&5
6529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6530 ac_status=$?
6531 if test -s conftest.err; then
6532 sed '10a\
6533... rest of stderr output deleted ...
6534 10q' conftest.err >conftest.er1
6535 cat conftest.er1 >&5
6536 fi
6537 rm -f conftest.er1 conftest.err
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }
6540done
6541
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6543$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006544if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006545 $as_echo_n "(cached) " >&6
6546else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h. */
6549
6550int
6551main ()
6552{
6553#ifndef __GNUC__
6554 choke me
6555#endif
6556
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561if ac_fn_cxx_try_compile "$LINENO"; then :
6562 ac_compiler_gnu=yes
6563else
6564 ac_compiler_gnu=no
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6568
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6571$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6572if test $ac_compiler_gnu = yes; then
6573 GXX=yes
6574else
6575 GXX=
6576fi
6577ac_test_CXXFLAGS=${CXXFLAGS+set}
6578ac_save_CXXFLAGS=$CXXFLAGS
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6580$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006581if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006582 $as_echo_n "(cached) " >&6
6583else
6584 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6585 ac_cxx_werror_flag=yes
6586 ac_cv_prog_cxx_g=no
6587 CXXFLAGS="-g"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h. */
6590
6591int
6592main ()
6593{
6594
6595 ;
6596 return 0;
6597}
6598_ACEOF
6599if ac_fn_cxx_try_compile "$LINENO"; then :
6600 ac_cv_prog_cxx_g=yes
6601else
6602 CXXFLAGS=""
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h. */
6605
6606int
6607main ()
6608{
6609
6610 ;
6611 return 0;
6612}
6613_ACEOF
6614if ac_fn_cxx_try_compile "$LINENO"; then :
6615
6616else
6617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6618 CXXFLAGS="-g"
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
6621
6622int
6623main ()
6624{
6625
6626 ;
6627 return 0;
6628}
6629_ACEOF
6630if ac_fn_cxx_try_compile "$LINENO"; then :
6631 ac_cv_prog_cxx_g=yes
6632fi
6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6641$as_echo "$ac_cv_prog_cxx_g" >&6; }
6642if test "$ac_test_CXXFLAGS" = set; then
6643 CXXFLAGS=$ac_save_CXXFLAGS
6644elif test $ac_cv_prog_cxx_g = yes; then
6645 if test "$GXX" = yes; then
6646 CXXFLAGS="-g -O2"
6647 else
6648 CXXFLAGS="-g"
6649 fi
6650else
6651 if test "$GXX" = yes; then
6652 CXXFLAGS="-O2"
6653 else
6654 CXXFLAGS=
6655 fi
6656fi
6657ac_ext=c
6658ac_cpp='$CPP $CPPFLAGS'
6659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662
cristy73bd4a52010-10-05 11:24:23 +00006663depcc="$CXX" am_compiler_list=
6664
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6666$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006667if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006668 $as_echo_n "(cached) " >&6
6669else
6670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6671 # We make a subdir and do the tests there. Otherwise we can end up
6672 # making bogus files that we don't know about and never remove. For
6673 # instance it was reported that on HP-UX the gcc test will end up
6674 # making a dummy file named `D' -- because `-MD' means `put the output
6675 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006676 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006677 mkdir conftest.dir
6678 # Copy depcomp to subdir because otherwise we won't find it if we're
6679 # using a relative directory.
6680 cp "$am_depcomp" conftest.dir
6681 cd conftest.dir
6682 # We will build objects and dependencies in a subdirectory because
6683 # it helps to detect inapplicable dependency modes. For instance
6684 # both Tru64's cc and ICC support -MD to output dependencies as a
6685 # side effect of compilation, but ICC will put the dependencies in
6686 # the current directory while Tru64 will put them in the object
6687 # directory.
6688 mkdir sub
6689
6690 am_cv_CXX_dependencies_compiler_type=none
6691 if test "$am_compiler_list" = ""; then
6692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6693 fi
6694 am__universal=false
6695 case " $depcc " in #(
6696 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6697 esac
6698
6699 for depmode in $am_compiler_list; do
6700 # Setup a source with many dependencies, because some compilers
6701 # like to wrap large dependency lists on column 80 (with \), and
6702 # we should not choose a depcomp mode which is confused by this.
6703 #
6704 # We need to recreate these files for each test, as the compiler may
6705 # overwrite some of them when testing with obscure command lines.
6706 # This happens at least with the AIX C compiler.
6707 : > sub/conftest.c
6708 for i in 1 2 3 4 5 6; do
6709 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6710 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6711 # Solaris 8's {/usr,}/bin/sh.
6712 touch sub/conftst$i.h
6713 done
6714 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6715
6716 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6717 # mode. It turns out that the SunPro C++ compiler does not properly
6718 # handle `-M -o', and we need to detect this. Also, some Intel
6719 # versions had trouble with output in subdirs
6720 am__obj=sub/conftest.${OBJEXT-o}
6721 am__minus_obj="-o $am__obj"
6722 case $depmode in
6723 gcc)
6724 # This depmode causes a compiler race in universal mode.
6725 test "$am__universal" = false || continue
6726 ;;
6727 nosideeffect)
6728 # after this tag, mechanisms are not by side-effect, so they'll
6729 # only be used when explicitly requested
6730 if test "x$enable_dependency_tracking" = xyes; then
6731 continue
6732 else
6733 break
6734 fi
6735 ;;
cristy7247bba2012-02-05 16:37:27 +00006736 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006737 # This compiler won't grok `-c -o', but also, the minuso test has
6738 # not run yet. These depmodes are late enough in the game, and
6739 # so weak that their functioning should not be impacted.
6740 am__obj=conftest.${OBJEXT-o}
6741 am__minus_obj=
6742 ;;
6743 none) break ;;
6744 esac
6745 if depmode=$depmode \
6746 source=sub/conftest.c object=$am__obj \
6747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6748 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6749 >/dev/null 2>conftest.err &&
6750 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6752 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6754 # icc doesn't choke on unknown options, it will just issue warnings
6755 # or remarks (even with -Werror). So we grep stderr for any message
6756 # that says an option was ignored or not supported.
6757 # When given -MP, icc 7.0 and 7.1 complain thusly:
6758 # icc: Command line warning: ignoring option '-M'; no argument required
6759 # The diagnosis changed in icc 8.0:
6760 # icc: Command line remark: option '-MP' not supported
6761 if (grep 'ignoring option' conftest.err ||
6762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6763 am_cv_CXX_dependencies_compiler_type=$depmode
6764 break
6765 fi
6766 fi
6767 done
6768
6769 cd ..
6770 rm -rf conftest.dir
6771else
6772 am_cv_CXX_dependencies_compiler_type=none
6773fi
6774
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6777$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6778CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6779
6780 if
6781 test "x$enable_dependency_tracking" != xno \
6782 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6783 am__fastdepCXX_TRUE=
6784 am__fastdepCXX_FALSE='#'
6785else
6786 am__fastdepCXX_TRUE='#'
6787 am__fastdepCXX_FALSE=
6788fi
6789
6790
cristy8b350f62009-11-15 23:12:43 +00006791 case $ac_cv_prog_cc_stdc in #(
6792 no) :
6793 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6794 *) :
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006796$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006797if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006798 $as_echo_n "(cached) " >&6
6799else
6800 ac_cv_prog_cc_c99=no
6801ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006803/* end confdefs.h. */
6804#include <stdarg.h>
6805#include <stdbool.h>
6806#include <stdlib.h>
6807#include <wchar.h>
6808#include <stdio.h>
6809
6810// Check varargs macros. These examples are taken from C99 6.10.3.5.
6811#define debug(...) fprintf (stderr, __VA_ARGS__)
6812#define showlist(...) puts (#__VA_ARGS__)
6813#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6814static void
6815test_varargs_macros (void)
6816{
6817 int x = 1234;
6818 int y = 5678;
6819 debug ("Flag");
6820 debug ("X = %d\n", x);
6821 showlist (The first, second, and third items.);
6822 report (x>y, "x is %d but y is %d", x, y);
6823}
6824
6825// Check long long types.
6826#define BIG64 18446744073709551615ull
6827#define BIG32 4294967295ul
6828#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6829#if !BIG_OK
6830 your preprocessor is broken;
6831#endif
6832#if BIG_OK
6833#else
6834 your preprocessor is broken;
6835#endif
6836static long long int bignum = -9223372036854775807LL;
6837static unsigned long long int ubignum = BIG64;
6838
6839struct incomplete_array
6840{
6841 int datasize;
6842 double data[];
6843};
6844
6845struct named_init {
6846 int number;
6847 const wchar_t *name;
6848 double average;
6849};
6850
6851typedef const char *ccp;
6852
6853static inline int
6854test_restrict (ccp restrict text)
6855{
6856 // See if C++-style comments work.
6857 // Iterate through items via the restricted pointer.
6858 // Also check for declarations in for loops.
6859 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6860 continue;
6861 return 0;
6862}
6863
6864// Check varargs and va_copy.
6865static void
6866test_varargs (const char *format, ...)
6867{
6868 va_list args;
6869 va_start (args, format);
6870 va_list args_copy;
6871 va_copy (args_copy, args);
6872
6873 const char *str;
6874 int number;
6875 float fnumber;
6876
6877 while (*format)
6878 {
6879 switch (*format++)
6880 {
6881 case 's': // string
6882 str = va_arg (args_copy, const char *);
6883 break;
6884 case 'd': // int
6885 number = va_arg (args_copy, int);
6886 break;
6887 case 'f': // float
6888 fnumber = va_arg (args_copy, double);
6889 break;
6890 default:
6891 break;
6892 }
6893 }
6894 va_end (args_copy);
6895 va_end (args);
6896}
6897
6898int
6899main ()
6900{
6901
6902 // Check bool.
6903 _Bool success = false;
6904
6905 // Check restrict.
6906 if (test_restrict ("String literal") == 0)
6907 success = true;
6908 char *restrict newvar = "Another string";
6909
6910 // Check varargs.
6911 test_varargs ("s, d' f .", "string", 65, 34.234);
6912 test_varargs_macros ();
6913
6914 // Check flexible array members.
6915 struct incomplete_array *ia =
6916 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6917 ia->datasize = 10;
6918 for (int i = 0; i < ia->datasize; ++i)
6919 ia->data[i] = i * 1.234;
6920
6921 // Check named initializers.
6922 struct named_init ni = {
6923 .number = 34,
6924 .name = L"Test wide string",
6925 .average = 543.34343,
6926 };
6927
6928 ni.number = 58;
6929
6930 int dynamic_array[ni.number];
6931 dynamic_array[ni.number - 1] = 543;
6932
6933 // work around unused variable warnings
6934 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6935 || dynamic_array[ni.number - 1] != 543);
6936
6937 ;
6938 return 0;
6939}
6940_ACEOF
6941for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6942do
6943 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006944 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006945 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006946fi
cristy3ed852e2009-09-05 21:47:34 +00006947rm -f core conftest.err conftest.$ac_objext
6948 test "x$ac_cv_prog_cc_c99" != "xno" && break
6949done
6950rm -f conftest.$ac_ext
6951CC=$ac_save_CC
6952
6953fi
6954# AC_CACHE_VAL
6955case "x$ac_cv_prog_cc_c99" in
6956 x)
cristy8b350f62009-11-15 23:12:43 +00006957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006958$as_echo "none needed" >&6; } ;;
6959 xno)
cristy8b350f62009-11-15 23:12:43 +00006960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006961$as_echo "unsupported" >&6; } ;;
6962 *)
6963 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006965$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6966esac
cristy8b350f62009-11-15 23:12:43 +00006967if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006968 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6969else
cristy8b350f62009-11-15 23:12:43 +00006970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006971$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006972if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006973 $as_echo_n "(cached) " >&6
6974else
6975 ac_cv_prog_cc_c89=no
6976ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006978/* end confdefs.h. */
6979#include <stdarg.h>
6980#include <stdio.h>
6981#include <sys/types.h>
6982#include <sys/stat.h>
6983/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6984struct buf { int x; };
6985FILE * (*rcsopen) (struct buf *, struct stat *, int);
6986static char *e (p, i)
6987 char **p;
6988 int i;
6989{
6990 return p[i];
6991}
6992static char *f (char * (*g) (char **, int), char **p, ...)
6993{
6994 char *s;
6995 va_list v;
6996 va_start (v,p);
6997 s = g (p, va_arg (v,int));
6998 va_end (v);
6999 return s;
7000}
7001
7002/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7003 function prototypes and stuff, but not '\xHH' hex character constants.
7004 These don't provoke an error unfortunately, instead are silently treated
7005 as 'x'. The following induces an error, until -std is added to get
7006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7007 array size at least. It's necessary to write '\x00'==0 to get something
7008 that's true only with -std. */
7009int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7010
7011/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7012 inside strings and character constants. */
7013#define FOO(x) 'x'
7014int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7015
7016int test (int i, double x);
7017struct s1 {int (*f) (int a);};
7018struct s2 {int (*f) (double a);};
7019int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7020int argc;
7021char **argv;
7022int
7023main ()
7024{
7025return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7026 ;
7027 return 0;
7028}
7029_ACEOF
7030for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7032do
7033 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007034 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007036fi
cristy3ed852e2009-09-05 21:47:34 +00007037rm -f core conftest.err conftest.$ac_objext
7038 test "x$ac_cv_prog_cc_c89" != "xno" && break
7039done
7040rm -f conftest.$ac_ext
7041CC=$ac_save_CC
7042
7043fi
7044# AC_CACHE_VAL
7045case "x$ac_cv_prog_cc_c89" in
7046 x)
cristy8b350f62009-11-15 23:12:43 +00007047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007048$as_echo "none needed" >&6; } ;;
7049 xno)
cristy8b350f62009-11-15 23:12:43 +00007050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007051$as_echo "unsupported" >&6; } ;;
7052 *)
7053 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007055$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7056esac
cristy8b350f62009-11-15 23:12:43 +00007057if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007058 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7059else
7060 ac_cv_prog_cc_stdc=no
7061fi
7062
cristy3ed852e2009-09-05 21:47:34 +00007063fi
cristy3ed852e2009-09-05 21:47:34 +00007064 ;;
7065esac
cristy8b350f62009-11-15 23:12:43 +00007066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007067$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007068 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007069 $as_echo_n "(cached) " >&6
7070fi
7071
cristy8b350f62009-11-15 23:12:43 +00007072 case $ac_cv_prog_cc_stdc in #(
7073 no) :
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7075$as_echo "unsupported" >&6; } ;; #(
7076 '') :
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7078$as_echo "none needed" >&6; } ;; #(
7079 *) :
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007081$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7082esac
7083
cristy3ed852e2009-09-05 21:47:34 +00007084ac_ext=c
7085ac_cpp='$CPP $CPPFLAGS'
7086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007090$as_echo_n "checking how to run the C preprocessor... " >&6; }
7091# On Suns, sometimes $CPP names a directory.
7092if test -n "$CPP" && test -d "$CPP"; then
7093 CPP=
7094fi
7095if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007096 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007097 $as_echo_n "(cached) " >&6
7098else
7099 # Double quotes because CPP needs to be expanded
7100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7101 do
7102 ac_preproc_ok=false
7103for ac_c_preproc_warn_flag in '' yes
7104do
7105 # Use a header file that comes with gcc, so configuring glibc
7106 # with a fresh cross-compiler works.
7107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7108 # <limits.h> exists even on freestanding compilers.
7109 # On the NeXT, cc -E runs the code through the compiler's parser,
7110 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007112/* end confdefs.h. */
7113#ifdef __STDC__
7114# include <limits.h>
7115#else
7116# include <assert.h>
7117#endif
7118 Syntax error
7119_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007120if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007121
cristy8b350f62009-11-15 23:12:43 +00007122else
cristy3ed852e2009-09-05 21:47:34 +00007123 # Broken: fails on valid input.
7124continue
7125fi
cristyda16f162011-02-19 23:52:17 +00007126rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007127
7128 # OK, works on sane cases. Now check whether nonexistent headers
7129 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007131/* end confdefs.h. */
7132#include <ac_nonexistent.h>
7133_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007134if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007135 # Broken: success on invalid input.
7136continue
7137else
cristy3ed852e2009-09-05 21:47:34 +00007138 # Passes both tests.
7139ac_preproc_ok=:
7140break
7141fi
cristyda16f162011-02-19 23:52:17 +00007142rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007143
7144done
7145# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007146rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007147if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007148 break
7149fi
7150
7151 done
7152 ac_cv_prog_CPP=$CPP
7153
7154fi
7155 CPP=$ac_cv_prog_CPP
7156else
7157 ac_cv_prog_CPP=$CPP
7158fi
cristy8b350f62009-11-15 23:12:43 +00007159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007160$as_echo "$CPP" >&6; }
7161ac_preproc_ok=false
7162for ac_c_preproc_warn_flag in '' yes
7163do
7164 # Use a header file that comes with gcc, so configuring glibc
7165 # with a fresh cross-compiler works.
7166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7167 # <limits.h> exists even on freestanding compilers.
7168 # On the NeXT, cc -E runs the code through the compiler's parser,
7169 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007171/* end confdefs.h. */
7172#ifdef __STDC__
7173# include <limits.h>
7174#else
7175# include <assert.h>
7176#endif
7177 Syntax error
7178_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007179if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007180
cristy8b350f62009-11-15 23:12:43 +00007181else
cristy3ed852e2009-09-05 21:47:34 +00007182 # Broken: fails on valid input.
7183continue
7184fi
cristyda16f162011-02-19 23:52:17 +00007185rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007186
7187 # OK, works on sane cases. Now check whether nonexistent headers
7188 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007190/* end confdefs.h. */
7191#include <ac_nonexistent.h>
7192_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007193if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007194 # Broken: success on invalid input.
7195continue
7196else
cristy3ed852e2009-09-05 21:47:34 +00007197 # Passes both tests.
7198ac_preproc_ok=:
7199break
7200fi
cristyda16f162011-02-19 23:52:17 +00007201rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007202
7203done
7204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007205rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007206if $ac_preproc_ok; then :
7207
cristy3ed852e2009-09-05 21:47:34 +00007208else
cristy8b350f62009-11-15 23:12:43 +00007209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007211as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7212See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007213fi
7214
7215ac_ext=c
7216ac_cpp='$CPP $CPPFLAGS'
7217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220
cristy73bd4a52010-10-05 11:24:23 +00007221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7222$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007223if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007224 $as_echo_n "(cached) " >&6
7225else
7226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7227 for ac_i in 1 2 3 4 5 6 7; do
7228 ac_script="$ac_script$as_nl$ac_script"
7229 done
7230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7231 { ac_script=; unset ac_script;}
7232 if test -z "$SED"; then
7233 ac_path_SED_found=false
7234 # Loop through the user's path and test for each of PROGNAME-LIST
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_prog in sed gsed; do
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7243 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7244# Check for GNU ac_path_SED and select it if it is found.
7245 # Check for GNU $ac_path_SED
7246case `"$ac_path_SED" --version 2>&1` in
7247*GNU*)
7248 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7249*)
7250 ac_count=0
7251 $as_echo_n 0123456789 >"conftest.in"
7252 while :
7253 do
7254 cat "conftest.in" "conftest.in" >"conftest.tmp"
7255 mv "conftest.tmp" "conftest.in"
7256 cp "conftest.in" "conftest.nl"
7257 $as_echo '' >> "conftest.nl"
7258 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7260 as_fn_arith $ac_count + 1 && ac_count=$as_val
7261 if test $ac_count -gt ${ac_path_SED_max-0}; then
7262 # Best one so far, save it but keep looking for a better one
7263 ac_cv_path_SED="$ac_path_SED"
7264 ac_path_SED_max=$ac_count
7265 fi
7266 # 10*(2^10) chars as input seems more than enough
7267 test $ac_count -gt 10 && break
7268 done
7269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7270esac
7271
7272 $ac_path_SED_found && break 3
7273 done
7274 done
7275 done
7276IFS=$as_save_IFS
7277 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007278 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007279 fi
7280else
7281 ac_cv_path_SED=$SED
7282fi
7283
7284fi
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7286$as_echo "$ac_cv_path_SED" >&6; }
7287 SED="$ac_cv_path_SED"
7288 rm -f conftest.sed
7289
7290test -z "$SED" && SED=sed
7291Xsed="$SED -e 1s/^X//"
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7304$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007305if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007306 $as_echo_n "(cached) " >&6
7307else
7308 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7309 then ac_cv_path_FGREP="$GREP -F"
7310 else
7311 if test -z "$FGREP"; then
7312 ac_path_FGREP_found=false
7313 # Loop through the user's path and test for each of PROGNAME-LIST
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_prog in fgrep; do
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7322 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7323# Check for GNU ac_path_FGREP and select it if it is found.
7324 # Check for GNU $ac_path_FGREP
7325case `"$ac_path_FGREP" --version 2>&1` in
7326*GNU*)
7327 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7328*)
7329 ac_count=0
7330 $as_echo_n 0123456789 >"conftest.in"
7331 while :
7332 do
7333 cat "conftest.in" "conftest.in" >"conftest.tmp"
7334 mv "conftest.tmp" "conftest.in"
7335 cp "conftest.in" "conftest.nl"
7336 $as_echo 'FGREP' >> "conftest.nl"
7337 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7339 as_fn_arith $ac_count + 1 && ac_count=$as_val
7340 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7341 # Best one so far, save it but keep looking for a better one
7342 ac_cv_path_FGREP="$ac_path_FGREP"
7343 ac_path_FGREP_max=$ac_count
7344 fi
7345 # 10*(2^10) chars as input seems more than enough
7346 test $ac_count -gt 10 && break
7347 done
7348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7349esac
7350
7351 $ac_path_FGREP_found && break 3
7352 done
7353 done
7354 done
7355IFS=$as_save_IFS
7356 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007357 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007358 fi
7359else
7360 ac_cv_path_FGREP=$FGREP
7361fi
7362
7363 fi
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7366$as_echo "$ac_cv_path_FGREP" >&6; }
7367 FGREP="$ac_cv_path_FGREP"
7368
7369
7370test -z "$GREP" && GREP=grep
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
cristy0c60a692010-11-04 01:09:47 +00007388ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7389ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7390ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7391
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7393$as_echo_n "checking how to print strings... " >&6; }
7394# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007395if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007396 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7397 ECHO='print -r --'
7398elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7399 ECHO='printf %s\n'
7400else
7401 # Use this function as a fallback that always works.
7402 func_fallback_echo ()
7403 {
7404 eval 'cat <<_LTECHO_EOF
7405$1
7406_LTECHO_EOF'
7407 }
7408 ECHO='func_fallback_echo'
7409fi
7410
7411# func_echo_all arg...
7412# Invoke $ECHO with all args, space-separated.
7413func_echo_all ()
7414{
7415 $ECHO ""
7416}
7417
7418case "$ECHO" in
7419 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7420$as_echo "printf" >&6; } ;;
7421 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7422$as_echo "print -r" >&6; } ;;
7423 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7424$as_echo "cat" >&6; } ;;
7425esac
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
cristy73bd4a52010-10-05 11:24:23 +00007440
7441
7442# Check whether --with-gnu-ld was given.
7443if test "${with_gnu_ld+set}" = set; then :
7444 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7445else
7446 with_gnu_ld=no
7447fi
7448
7449ac_prog=ld
7450if test "$GCC" = yes; then
7451 # Check if gcc -print-prog-name=ld gives a path.
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7453$as_echo_n "checking for ld used by $CC... " >&6; }
7454 case $host in
7455 *-*-mingw*)
7456 # gcc leaves a trailing carriage return which upsets mingw
7457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7458 *)
7459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7460 esac
7461 case $ac_prog in
7462 # Accept absolute paths.
7463 [\\/]* | ?:[\\/]*)
7464 re_direlt='/[^/][^/]*/\.\./'
7465 # Canonicalize the pathname of ld
7466 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7467 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7468 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7469 done
7470 test -z "$LD" && LD="$ac_prog"
7471 ;;
7472 "")
7473 # If it fails, then pretend we aren't using GCC.
7474 ac_prog=ld
7475 ;;
7476 *)
7477 # If it is relative, then search for the first ld in PATH.
7478 with_gnu_ld=unknown
7479 ;;
7480 esac
7481elif test "$with_gnu_ld" = yes; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7483$as_echo_n "checking for GNU ld... " >&6; }
7484else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7486$as_echo_n "checking for non-GNU ld... " >&6; }
7487fi
cristyda16f162011-02-19 23:52:17 +00007488if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007489 $as_echo_n "(cached) " >&6
7490else
7491 if test -z "$LD"; then
7492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7493 for ac_dir in $PATH; do
7494 IFS="$lt_save_ifs"
7495 test -z "$ac_dir" && ac_dir=.
7496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7497 lt_cv_path_LD="$ac_dir/$ac_prog"
7498 # Check to see if the program is GNU ld. I'd rather use --version,
7499 # but apparently some variants of GNU ld only accept -v.
7500 # Break only if it was the GNU/non-GNU ld that we prefer.
7501 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7502 *GNU* | *'with BFD'*)
7503 test "$with_gnu_ld" != no && break
7504 ;;
7505 *)
7506 test "$with_gnu_ld" != yes && break
7507 ;;
7508 esac
7509 fi
7510 done
7511 IFS="$lt_save_ifs"
7512else
7513 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7514fi
7515fi
7516
7517LD="$lt_cv_path_LD"
7518if test -n "$LD"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7520$as_echo "$LD" >&6; }
7521else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523$as_echo "no" >&6; }
7524fi
cristy98dddb52010-11-04 00:30:15 +00007525test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7527$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007528if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007529 $as_echo_n "(cached) " >&6
7530else
7531 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7532case `$LD -v 2>&1 </dev/null` in
7533*GNU* | *'with BFD'*)
7534 lt_cv_prog_gnu_ld=yes
7535 ;;
7536*)
7537 lt_cv_prog_gnu_ld=no
7538 ;;
7539esac
7540fi
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7542$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7543with_gnu_ld=$lt_cv_prog_gnu_ld
7544
7545
7546
7547
7548
7549
7550
7551
7552
cristy3ed852e2009-09-05 21:47:34 +00007553
cristy837d6dc2010-02-27 01:16:57 +00007554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7555$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007556if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007557 $as_echo_n "(cached) " >&6
7558else
7559 ac_cv_prog_cc_c99=no
7560ac_save_CC=$CC
7561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h. */
7563#include <stdarg.h>
7564#include <stdbool.h>
7565#include <stdlib.h>
7566#include <wchar.h>
7567#include <stdio.h>
7568
7569// Check varargs macros. These examples are taken from C99 6.10.3.5.
7570#define debug(...) fprintf (stderr, __VA_ARGS__)
7571#define showlist(...) puts (#__VA_ARGS__)
7572#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7573static void
7574test_varargs_macros (void)
7575{
7576 int x = 1234;
7577 int y = 5678;
7578 debug ("Flag");
7579 debug ("X = %d\n", x);
7580 showlist (The first, second, and third items.);
7581 report (x>y, "x is %d but y is %d", x, y);
7582}
7583
7584// Check long long types.
7585#define BIG64 18446744073709551615ull
7586#define BIG32 4294967295ul
7587#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7588#if !BIG_OK
7589 your preprocessor is broken;
7590#endif
7591#if BIG_OK
7592#else
7593 your preprocessor is broken;
7594#endif
7595static long long int bignum = -9223372036854775807LL;
7596static unsigned long long int ubignum = BIG64;
7597
7598struct incomplete_array
7599{
7600 int datasize;
7601 double data[];
7602};
7603
7604struct named_init {
7605 int number;
7606 const wchar_t *name;
7607 double average;
7608};
7609
7610typedef const char *ccp;
7611
7612static inline int
7613test_restrict (ccp restrict text)
7614{
7615 // See if C++-style comments work.
7616 // Iterate through items via the restricted pointer.
7617 // Also check for declarations in for loops.
7618 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7619 continue;
7620 return 0;
7621}
7622
7623// Check varargs and va_copy.
7624static void
7625test_varargs (const char *format, ...)
7626{
7627 va_list args;
7628 va_start (args, format);
7629 va_list args_copy;
7630 va_copy (args_copy, args);
7631
7632 const char *str;
7633 int number;
7634 float fnumber;
7635
7636 while (*format)
7637 {
7638 switch (*format++)
7639 {
7640 case 's': // string
7641 str = va_arg (args_copy, const char *);
7642 break;
7643 case 'd': // int
7644 number = va_arg (args_copy, int);
7645 break;
7646 case 'f': // float
7647 fnumber = va_arg (args_copy, double);
7648 break;
7649 default:
7650 break;
7651 }
7652 }
7653 va_end (args_copy);
7654 va_end (args);
7655}
7656
7657int
7658main ()
7659{
7660
7661 // Check bool.
7662 _Bool success = false;
7663
7664 // Check restrict.
7665 if (test_restrict ("String literal") == 0)
7666 success = true;
7667 char *restrict newvar = "Another string";
7668
7669 // Check varargs.
7670 test_varargs ("s, d' f .", "string", 65, 34.234);
7671 test_varargs_macros ();
7672
7673 // Check flexible array members.
7674 struct incomplete_array *ia =
7675 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7676 ia->datasize = 10;
7677 for (int i = 0; i < ia->datasize; ++i)
7678 ia->data[i] = i * 1.234;
7679
7680 // Check named initializers.
7681 struct named_init ni = {
7682 .number = 34,
7683 .name = L"Test wide string",
7684 .average = 543.34343,
7685 };
7686
7687 ni.number = 58;
7688
7689 int dynamic_array[ni.number];
7690 dynamic_array[ni.number - 1] = 543;
7691
7692 // work around unused variable warnings
7693 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7694 || dynamic_array[ni.number - 1] != 543);
7695
7696 ;
7697 return 0;
7698}
7699_ACEOF
7700for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7701do
7702 CC="$ac_save_CC $ac_arg"
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704 ac_cv_prog_cc_c99=$ac_arg
7705fi
7706rm -f core conftest.err conftest.$ac_objext
7707 test "x$ac_cv_prog_cc_c99" != "xno" && break
7708done
7709rm -f conftest.$ac_ext
7710CC=$ac_save_CC
7711
7712fi
7713# AC_CACHE_VAL
7714case "x$ac_cv_prog_cc_c99" in
7715 x)
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7717$as_echo "none needed" >&6; } ;;
7718 xno)
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7720$as_echo "unsupported" >&6; } ;;
7721 *)
7722 CC="$CC $ac_cv_prog_cc_c99"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7724$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7725esac
7726if test "x$ac_cv_prog_cc_c99" != xno; then :
7727
7728fi
7729
7730
cristy73bd4a52010-10-05 11:24:23 +00007731if test "x$CC" != xcc; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7733$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7734else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7736$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7737fi
7738set dummy $CC; ac_cc=`$as_echo "$2" |
7739 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007740if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007741 $as_echo_n "(cached) " >&6
7742else
cristy73bd4a52010-10-05 11:24:23 +00007743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h. */
7745
7746int
7747main ()
7748{
7749
7750 ;
7751 return 0;
7752}
7753_ACEOF
7754# Make sure it works both with $CC and with simple cc.
7755# We do the test twice because some compilers refuse to overwrite an
7756# existing .o file with -o, though they will create one.
7757ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7758rm -f conftest2.*
7759if { { case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
7763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7764$as_echo "$ac_try_echo"; } >&5
7765 (eval "$ac_try") 2>&5
7766 ac_status=$?
7767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768 test $ac_status = 0; } &&
7769 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772esac
7773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7774$as_echo "$ac_try_echo"; } >&5
7775 (eval "$ac_try") 2>&5
7776 ac_status=$?
7777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7778 test $ac_status = 0; };
7779then
7780 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7781 if test "x$CC" != xcc; then
7782 # Test first that cc exists at all.
7783 if { ac_try='cc -c conftest.$ac_ext >&5'
7784 { { case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787esac
7788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7789$as_echo "$ac_try_echo"; } >&5
7790 (eval "$ac_try") 2>&5
7791 ac_status=$?
7792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793 test $ac_status = 0; }; }; then
7794 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7795 rm -f conftest2.*
7796 if { { case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7801$as_echo "$ac_try_echo"; } >&5
7802 (eval "$ac_try") 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; } &&
7806 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809esac
7810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7811$as_echo "$ac_try_echo"; } >&5
7812 (eval "$ac_try") 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; };
7816 then
7817 # cc works too.
7818 :
7819 else
7820 # cc exists but doesn't like -o.
7821 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7822 fi
7823 fi
7824 fi
7825else
7826 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7827fi
7828rm -f core conftest*
7829
7830fi
7831if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833$as_echo "yes" >&6; }
7834else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836$as_echo "no" >&6; }
7837
7838$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7839
7840fi
7841
7842# FIXME: we rely on the cache variable name because
7843# there is no other way.
7844set dummy $CC
7845am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7846eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7847if test "$am_t" != yes; then
7848 # Losing compiler, so override with the script.
7849 # FIXME: It is wrong to rewrite CC.
7850 # But if we don't then we get into trouble of one sort or another.
7851 # A longer-term fix would be to have automake use am__CC in this case,
7852 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7853 CC="$am_aux_dir/compile $CC"
7854fi
7855
7856
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7858$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007859if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007860 $as_echo_n "(cached) " >&6
7861else
7862 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007863 ac_ext=c
7864ac_cpp='$CPP $CPPFLAGS'
7865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7867ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868
7869 ac_save_CFLAGS="$CFLAGS"
7870for 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" #
7871do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874
7875int
7876main ()
7877{
cristy24fc1fe2010-10-23 21:13:01 +00007878
cristy73bd4a52010-10-05 11:24:23 +00007879 ;
7880 return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_compile "$LINENO"; then :
7884 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7885fi
7886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887done
7888 CFLAGS="$ac_save_CFLAGS"
7889 ac_ext=c
7890ac_cpp='$CPP $CPPFLAGS'
7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7898$as_echo "$ac_cv_cflags_warn_all" >&6; }
7899case ".$ac_cv_cflags_warn_all" in
7900 .ok|.ok,*) ;;
7901 .|.no|.no,*)
7902 ;;
7903 *)
7904 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7905 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7906 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7907 ac_status=$?
7908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909 test $ac_status = 0; }
7910 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7911 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7912 ac_status=$?
7913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7914 test $ac_status = 0; }
7915 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7916 fi
7917 ;;
nicolas6237c462010-10-05 06:11:49 +00007918esac
cristy3ed852e2009-09-05 21:47:34 +00007919
cristya0b81c32010-01-22 02:54:33 +00007920
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7922$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7923set x ${MAKE-make}
7924ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007925if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007926 $as_echo_n "(cached) " >&6
7927else
7928 cat >conftest.make <<\_ACEOF
7929SHELL = /bin/sh
7930all:
7931 @echo '@@@%%%=$(MAKE)=@@@%%%'
7932_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007933# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007934case `${MAKE-make} -f conftest.make 2>/dev/null` in
7935 *@@@%%%=?*=@@@%%%*)
7936 eval ac_cv_prog_make_${ac_make}_set=yes;;
7937 *)
7938 eval ac_cv_prog_make_${ac_make}_set=no;;
7939esac
7940rm -f conftest.make
7941fi
7942if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944$as_echo "yes" >&6; }
7945 SET_MAKE=
7946else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
7949 SET_MAKE="MAKE=${MAKE-make}"
7950fi
7951
cristy8b350f62009-11-15 23:12:43 +00007952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007953$as_echo_n "checking whether ln -s works... " >&6; }
7954LN_S=$as_ln_s
7955if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007957$as_echo "yes" >&6; }
7958else
cristy8b350f62009-11-15 23:12:43 +00007959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007960$as_echo "no, using $LN_S" >&6; }
7961fi
7962
cristy73bd4a52010-10-05 11:24:23 +00007963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7964$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7965
7966# Check whether --with-dmalloc was given.
7967if test "${with_dmalloc+set}" = set; then :
7968 withval=$with_dmalloc; if test "$withval" = yes; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7970$as_echo "yes" >&6; }
7971
7972$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7973
7974 LIBS="$LIBS -ldmalloc"
7975 LDFLAGS="$LDFLAGS -g"
7976else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979fi
7980else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7988$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007989if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007990 $as_echo_n "(cached) " >&6
7991else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h. */
7994#include <stdlib.h>
7995 static void foo(void) __attribute__ ((unused));
7996 static void
7997 foo(void) {
7998 exit(1);
7999 }
8000
8001int
8002main ()
8003{
8004
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_compile "$LINENO"; then :
8010 ax_cv___attribute__=yes
8011else
8012 ax_cv___attribute__=no
8013
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8019$as_echo "$ax_cv___attribute__" >&6; }
8020 if test "$ax_cv___attribute__" = "yes"; then
8021
8022$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8023
8024 fi
8025
8026
8027
8028if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8029 if test -n "$ac_tool_prefix"; then
8030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8031set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008034if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008035 $as_echo_n "(cached) " >&6
8036else
8037 case $PKG_CONFIG in
8038 [\\/]* | ?:[\\/]*)
8039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054 done
8055IFS=$as_save_IFS
8056
8057 ;;
8058esac
8059fi
8060PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8061if test -n "$PKG_CONFIG"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8063$as_echo "$PKG_CONFIG" >&6; }
8064else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
8067fi
8068
8069
8070fi
8071if test -z "$ac_cv_path_PKG_CONFIG"; then
8072 ac_pt_PKG_CONFIG=$PKG_CONFIG
8073 # Extract the first word of "pkg-config", so it can be a program name with args.
8074set dummy pkg-config; ac_word=$2
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008077if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008078 $as_echo_n "(cached) " >&6
8079else
8080 case $ac_pt_PKG_CONFIG in
8081 [\\/]* | ?:[\\/]*)
8082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8083 ;;
8084 *)
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097 done
8098IFS=$as_save_IFS
8099
8100 ;;
8101esac
8102fi
8103ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8104if test -n "$ac_pt_PKG_CONFIG"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8106$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8107else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109$as_echo "no" >&6; }
8110fi
8111
8112 if test "x$ac_pt_PKG_CONFIG" = x; then
8113 PKG_CONFIG=""
8114 else
8115 case $cross_compiling:$ac_tool_warned in
8116yes:)
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119ac_tool_warned=yes ;;
8120esac
8121 PKG_CONFIG=$ac_pt_PKG_CONFIG
8122 fi
8123else
8124 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8125fi
8126
8127fi
8128if test -n "$PKG_CONFIG"; then
8129 _pkg_min_version=0.9.0
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8131$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8132 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8134$as_echo "yes" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
8138 PKG_CONFIG=""
8139 fi
8140
8141fi
cristy3ed852e2009-09-05 21:47:34 +00008142
8143#
cristy3ed852e2009-09-05 21:47:34 +00008144# Enable run-time checking.
8145#
8146# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008147if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008148 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8149else
8150 enable_bounds_checking='no'
8151fi
8152
8153
8154if test "$enable_bounds_checking" = yes; then
8155
cristy8b350f62009-11-15 23:12:43 +00008156$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008157
8158fi
8159
8160#
8161# Tests for Windows
8162#
8163
8164
cristy73bd4a52010-10-05 11:24:23 +00008165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8166$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008167if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008168 $as_echo_n "(cached) " >&6
8169else
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h. */
8172
8173int
8174main ()
8175{
8176#ifndef _MSC_VER
8177 choke me
8178#endif
8179
8180 ;
8181 return 0;
8182}
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185 ax_compiler_ms=yes
8186else
8187 ax_compiler_ms=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190ax_cv_c_compiler_ms=$ax_compiler_ms
8191
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8194$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008195
8196GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008197native_win32_build='no'
8198cygwin_build='no'
8199case "${host_os}" in
8200 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008201 cygwin_build='yes'
8202 GDI32_LIBS='-lgdi32'
8203 ;;
8204 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008205 native_win32_build='yes'
8206 GDI32_LIBS='-lgdi32'
8207 ;;
8208esac
8209if test "${GDI32_LIBS}x" != 'x'; then
8210
cristy8b350f62009-11-15 23:12:43 +00008211$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008212
8213fi
8214
cristy73bd4a52010-10-05 11:24:23 +00008215 if test "${GDI32_LIBS}x" != 'x' ; then
8216 WINGDI32_DELEGATE_TRUE=
8217 WINGDI32_DELEGATE_FALSE='#'
8218else
8219 WINGDI32_DELEGATE_TRUE='#'
8220 WINGDI32_DELEGATE_FALSE=
8221fi
8222
8223 if test "${native_win32_build}" = 'yes' ; then
8224 WIN32_NATIVE_BUILD_TRUE=
8225 WIN32_NATIVE_BUILD_FALSE='#'
8226else
8227 WIN32_NATIVE_BUILD_TRUE='#'
8228 WIN32_NATIVE_BUILD_FALSE=
8229fi
8230
8231 if test "${cygwin_build}" = 'yes' ; then
8232 CYGWIN_BUILD_TRUE=
8233 CYGWIN_BUILD_FALSE='#'
8234else
8235 CYGWIN_BUILD_TRUE='#'
8236 CYGWIN_BUILD_FALSE=
8237fi
8238
8239 if test "x${CC}" = 'xcl.exe' ; then
8240 USING_CL_TRUE=
8241 USING_CL_FALSE='#'
8242else
8243 USING_CL_TRUE='#'
8244 USING_CL_FALSE=
8245fi
8246
cristy3ed852e2009-09-05 21:47:34 +00008247
8248WinPathScript="${srcdirfull}/winpath.sh"
8249
8250
8251#
8252# Compiler flags tweaks
8253#
8254if test "${GCC}" != "yes"; then
8255 case "${host}" in
8256 *-*-hpux* )
8257 # aCC: HP ANSI C++ B3910B A.03.34
8258 CFLAGS="${CFLAGS} -Wp,-H30000"
8259 if test -n "${CXXFLAGS}"; then
8260 CXXFLAGS='-AA'
8261 else
8262 CXXFLAGS="${CXXFLAGS} -AA"
8263 fi
8264 ;;
8265 *-dec-osf5.* )
8266 # Compaq alphaev68-dec-osf5.1 compiler
8267 if test -n "${CXXFLAGS}"; then
8268 CXXFLAGS='-std strict_ansi -noimplicit_include'
8269 else
8270 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8271 fi
8272 esac
8273fi
8274
8275# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008277$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008278if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008279 $as_echo_n "(cached) " >&6
8280else
8281
8282im_cv_ld_lazyload='none'
8283case "${host}" in
8284 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8285 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8286 im_cv_ld_lazyload='-Wl,-zlazyload'
8287 fi
8288 ;;
8289esac
8290
8291fi
cristy8b350f62009-11-15 23:12:43 +00008292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008293$as_echo "$im_cv_ld_lazyload" >&6; }
8294if test "${im_cv_ld_lazyload}" != 'none' ; then
8295 if test -z "${LDFLAGS}" ; then
8296 LDFLAGS="${im_cv_ld_lazyload}"
8297 else
8298 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8299 fi
8300fi
8301
8302case "$host" in
8303*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008304 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008305if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008306 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8307else
8308 build_osxuniversal=no
8309fi
8310
8311
8312 if test "${build_osxuniversal}" != no ; then
8313 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008314 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008315Please re-run configure with these options:
8316 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008317 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008318 fi
8319 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8320 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8321 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8322 fi
8323 ;;
8324esac
8325
cristy0151ae12011-10-28 16:32:29 +00008326#
8327# ARCH specific include directory
8328#
8329
cristy670aa3c2011-11-03 00:54:00 +00008330# Check whether --with-includearch-dir was given.
8331if test "${with_includearch_dir+set}" = set; then :
8332 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008333else
cristy670aa3c2011-11-03 00:54:00 +00008334 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008335fi
8336
8337
cristy670aa3c2011-11-03 00:54:00 +00008338eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008339
cristy0151ae12011-10-28 16:32:29 +00008340
8341#
8342# ARCH specific configuration directory
8343#
8344
cristy670aa3c2011-11-03 00:54:00 +00008345# Check whether --with-sharearch-dir was given.
8346if test "${with_sharearch_dir+set}" = set; then :
8347 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008348else
cristy408ebcd2011-11-14 01:36:57 +00008349 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008350fi
8351
8352
cristy670aa3c2011-11-03 00:54:00 +00008353eval "eval SHAREARCH_DIR=$sharearch_dir"
8354SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008355
cristy0151ae12011-10-28 16:32:29 +00008356
8357#
cristy3ed852e2009-09-05 21:47:34 +00008358# Enable support for threads
8359
8360# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008361if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008362 withval=$with_threads; with_threads=$withval
8363else
8364 with_threads='yes'
8365fi
8366
8367
8368have_threads=no
8369if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008370
8371
cristy73bd4a52010-10-05 11:24:23 +00008372ac_ext=c
8373ac_cpp='$CPP $CPPFLAGS'
8374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8376ac_compiler_gnu=$ac_cv_c_compiler_gnu
8377
8378ax_pthread_ok=no
8379
8380# We used to check for pthread.h first, but this fails if pthread.h
8381# requires special compiler flags (e.g. on True64 or Sequent).
8382# It gets checked for in the link test anyway.
8383
8384# First of all, check if the user has set any of the PTHREAD_LIBS,
8385# etcetera environment variables, and if threads linking works using
8386# them:
8387if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8388 save_CFLAGS="$CFLAGS"
8389 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8390 save_LIBS="$LIBS"
8391 LIBS="$PTHREAD_LIBS $LIBS"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8393$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h. */
8396
8397/* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8400#ifdef __cplusplus
8401extern "C"
8402#endif
8403char pthread_join ();
8404int
8405main ()
8406{
8407return pthread_join ();
8408 ;
8409 return 0;
8410}
8411_ACEOF
8412if ac_fn_c_try_link "$LINENO"; then :
8413 ax_pthread_ok=yes
8414fi
8415rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8418$as_echo "$ax_pthread_ok" >&6; }
8419 if test x"$ax_pthread_ok" = xno; then
8420 PTHREAD_LIBS=""
8421 PTHREAD_CFLAGS=""
8422 fi
8423 LIBS="$save_LIBS"
8424 CFLAGS="$save_CFLAGS"
8425fi
8426
8427# We must check for the threads library under a number of different
8428# names; the ordering is very important because some systems
8429# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8430# libraries is broken (non-POSIX).
8431
8432# Create a list of thread flags to try. Items starting with a "-" are
8433# C compiler flags, and other items are library names, except for "none"
8434# which indicates that we try without any flags at all, and "pthread-config"
8435# which is a program returning the flags for the Pth emulation library.
8436
cristy18307f12011-12-30 01:20:16 +00008437ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008438
8439# The ordering *is* (sometimes) important. Some notes on the
8440# individual items follow:
8441
8442# pthreads: AIX (must check this before -lpthread)
8443# none: in case threads are in libc; should be tried before -Kthread and
8444# other compiler flags to prevent continual compiler warnings
8445# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8446# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8447# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8448# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8449# -pthreads: Solaris/gcc
8450# -mthreads: Mingw32/gcc, Lynx/gcc
8451# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8452# doesn't hurt to check since this sometimes defines pthreads too;
8453# also defines -D_REENTRANT)
8454# ... -mt is also the pthreads flag for HP/aCC
8455# pthread: Linux, etcetera
8456# --thread-safe: KAI C++
8457# pthread-config: use pthread-config program (for GNU Pth library)
8458
8459case "${host_cpu}-${host_os}" in
8460 *solaris*)
8461
8462 # On Solaris (at least, for some versions), libc contains stubbed
8463 # (non-functional) versions of the pthreads routines, so link-based
8464 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8465 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8466 # a function called by this macro, so we could check for that, but
8467 # who knows whether they'll stub that too in a future libc.) So,
8468 # we'll just look for -pthreads and -lpthread first:
8469
8470 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8471 ;;
8472
cristya316db12011-10-24 00:49:45 +00008473 *-darwin*)
8474 ax_pthread_flags="-pthread $ax_pthread_flags"
8475 ;;
cristy73bd4a52010-10-05 11:24:23 +00008476esac
8477
8478if test x"$ax_pthread_ok" = xno; then
8479for flag in $ax_pthread_flags; do
8480
8481 case $flag in
8482 none)
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8484$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8485 ;;
8486
8487 -*)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8489$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8490 PTHREAD_CFLAGS="$flag"
8491 ;;
8492
cristya316db12011-10-24 00:49:45 +00008493 pthread-config)
8494 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008495set dummy pthread-config; ac_word=$2
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008498if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008499 $as_echo_n "(cached) " >&6
8500else
8501 if test -n "$ax_pthread_config"; then
8502 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_prog_ax_pthread_config="yes"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515done
8516 done
8517IFS=$as_save_IFS
8518
8519 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8520fi
8521fi
8522ax_pthread_config=$ac_cv_prog_ax_pthread_config
8523if test -n "$ax_pthread_config"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8525$as_echo "$ax_pthread_config" >&6; }
8526else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531
cristya316db12011-10-24 00:49:45 +00008532 if test x"$ax_pthread_config" = xno; then continue; fi
8533 PTHREAD_CFLAGS="`pthread-config --cflags`"
8534 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8535 ;;
cristy73bd4a52010-10-05 11:24:23 +00008536
8537 *)
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8539$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8540 PTHREAD_LIBS="-l$flag"
8541 ;;
8542 esac
8543
8544 save_LIBS="$LIBS"
8545 save_CFLAGS="$CFLAGS"
8546 LIBS="$PTHREAD_LIBS $LIBS"
8547 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8548
8549 # Check for various functions. We must include pthread.h,
8550 # since some functions may be macros. (On the Sequent, we
8551 # need a special flag -Kthread to make this header compile.)
8552 # We check for pthread_join because it is in -lpthread on IRIX
8553 # while pthread_create is in libc. We check for pthread_attr_init
8554 # due to DEC craziness with -lpthreads. We check for
8555 # pthread_cleanup_push because it is one of the few pthread
8556 # functions on Solaris that doesn't have a non-functional libc stub.
8557 # We try pthread_create on general principles.
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h. */
8560#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008561 static void routine(void *a) { a = 0; }
8562 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008563int
8564main ()
8565{
8566pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008567 pthread_create(&th, 0, start_routine, 0);
8568 pthread_join(th, 0);
8569 pthread_attr_init(&attr);
8570 pthread_cleanup_push(routine, 0);
8571 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008572 ;
8573 return 0;
8574}
8575_ACEOF
8576if ac_fn_c_try_link "$LINENO"; then :
8577 ax_pthread_ok=yes
8578fi
8579rm -f core conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext conftest.$ac_ext
8581
8582 LIBS="$save_LIBS"
8583 CFLAGS="$save_CFLAGS"
8584
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" = xyes; then
8588 break;
8589 fi
8590
8591 PTHREAD_LIBS=""
8592 PTHREAD_CFLAGS=""
8593done
8594fi
8595
8596# Various other checks:
8597if test "x$ax_pthread_ok" = xyes; then
8598 save_LIBS="$LIBS"
8599 LIBS="$PTHREAD_LIBS $LIBS"
8600 save_CFLAGS="$CFLAGS"
8601 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8602
8603 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008605$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008606 attr_name=unknown
8607 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008609/* end confdefs.h. */
8610#include <pthread.h>
8611int
8612main ()
8613{
cristya316db12011-10-24 00:49:45 +00008614int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008615 ;
8616 return 0;
8617}
8618_ACEOF
8619if ac_fn_c_try_link "$LINENO"; then :
8620 attr_name=$attr; break
8621fi
8622rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008624 done
cristy73bd4a52010-10-05 11:24:23 +00008625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8626$as_echo "$attr_name" >&6; }
8627 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8628
8629cat >>confdefs.h <<_ACEOF
8630#define PTHREAD_CREATE_JOINABLE $attr_name
8631_ACEOF
8632
8633 fi
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8636$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8637 flag=no
8638 case "${host_cpu}-${host_os}" in
8639 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8640 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8641 esac
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8643$as_echo "${flag}" >&6; }
8644 if test "x$flag" != xno; then
8645 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8646 fi
8647
cristya316db12011-10-24 00:49:45 +00008648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8649$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8650if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652else
8653
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h. */
8656
8657 #include <pthread.h>
8658int
8659main ()
8660{
8661int i = PTHREAD_PRIO_INHERIT;
8662 ;
8663 return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"; then :
8667 ax_cv_PTHREAD_PRIO_INHERIT=yes
8668else
8669 ax_cv_PTHREAD_PRIO_INHERIT=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673
8674fi
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8676$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8677 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8678
8679$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8680
8681fi
8682
cristy73bd4a52010-10-05 11:24:23 +00008683 LIBS="$save_LIBS"
8684 CFLAGS="$save_CFLAGS"
8685
8686 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008687 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008688 for ac_prog in xlc_r cc_r
8689do
8690 # Extract the first word of "$ac_prog", so it can be a program name with args.
8691set dummy $ac_prog; ac_word=$2
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008694if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008695 $as_echo_n "(cached) " >&6
8696else
8697 if test -n "$PTHREAD_CC"; then
8698 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_prog_PTHREAD_CC="$ac_prog"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8710 fi
8711done
8712 done
8713IFS=$as_save_IFS
8714
8715fi
8716fi
8717PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8718if test -n "$PTHREAD_CC"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8720$as_echo "$PTHREAD_CC" >&6; }
8721else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723$as_echo "no" >&6; }
8724fi
8725
8726
8727 test -n "$PTHREAD_CC" && break
8728done
8729test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8730
8731 else
8732 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008733 fi
cristy73bd4a52010-10-05 11:24:23 +00008734else
8735 PTHREAD_CC="$CC"
8736fi
8737
8738
8739
8740
8741
8742# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8743if test x"$ax_pthread_ok" = xyes; then
8744
8745$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8746
8747 :
8748else
8749 ax_pthread_ok=no
8750
8751fi
8752ac_ext=c
8753ac_cpp='$CPP $CPPFLAGS'
8754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756ac_compiler_gnu=$ac_cv_c_compiler_gnu
8757
8758
cristy7acf8fb2010-09-23 19:58:53 +00008759 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008760 have_threads=yes
8761 DEF_THREAD="$PTHREAD_CFLAGS"
8762 CFLAGS="$CFLAGS $DEF_THREAD"
8763 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8764 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008765 { $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 +00008766$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8767 CC="$PTHREAD_CC"
8768 fi
cristy55bf91c2010-09-24 00:29:41 +00008769
8770$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8771
cristy3ed852e2009-09-05 21:47:34 +00008772 fi
8773fi
8774
8775# Enable support for OpenMP
8776if test "$have_threads" != 'yes'; then
8777 ac_cv_prog_c_openmp=unsupported
8778fi
8779
8780 OPENMP_CFLAGS=
8781 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008782if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008783 enableval=$enable_openmp;
8784fi
8785
8786 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008788$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008789if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008790 $as_echo_n "(cached) " >&6
8791else
cristy8b350f62009-11-15 23:12:43 +00008792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008794
8795#ifndef _OPENMP
8796 choke me
8797#endif
8798#include <omp.h>
8799int main () { return omp_get_num_threads (); }
8800
8801_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008802if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008803 ac_cv_prog_c_openmp='none needed'
8804else
cristy8b350f62009-11-15 23:12:43 +00008805 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008806 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8807 ac_save_CFLAGS=$CFLAGS
8808 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008811
8812#ifndef _OPENMP
8813 choke me
8814#endif
8815#include <omp.h>
8816int main () { return omp_get_num_threads (); }
8817
8818_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008820 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008821fi
cristy8b350f62009-11-15 23:12:43 +00008822rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008824 CFLAGS=$ac_save_CFLAGS
8825 if test "$ac_cv_prog_c_openmp" != unsupported; then
8826 break
8827 fi
8828 done
8829fi
cristy8b350f62009-11-15 23:12:43 +00008830rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008832fi
cristy8b350f62009-11-15 23:12:43 +00008833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008834$as_echo "$ac_cv_prog_c_openmp" >&6; }
8835 case $ac_cv_prog_c_openmp in #(
8836 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008837 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008838 *)
cristy8b350f62009-11-15 23:12:43 +00008839 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008840 esac
8841 fi
8842
8843
8844CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8845MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8846
cristy391f1ce2010-09-09 17:23:28 +00008847if test "$enable_openmp" != no; then
8848 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8849 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8850 fi
8851fi
cristy3ed852e2009-09-05 21:47:34 +00008852
cristy736173a2009-09-20 21:18:22 +00008853# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008854
8855
cristy73bd4a52010-10-05 11:24:23 +00008856ac_ext=c
8857ac_cpp='$CPP $CPPFLAGS'
8858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860ac_compiler_gnu=$ac_cv_c_compiler_gnu
8861
8862ax_pthread_ok=no
8863
8864# We used to check for pthread.h first, but this fails if pthread.h
8865# requires special compiler flags (e.g. on True64 or Sequent).
8866# It gets checked for in the link test anyway.
8867
8868# First of all, check if the user has set any of the PTHREAD_LIBS,
8869# etcetera environment variables, and if threads linking works using
8870# them:
8871if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8872 save_CFLAGS="$CFLAGS"
8873 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8874 save_LIBS="$LIBS"
8875 LIBS="$PTHREAD_LIBS $LIBS"
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8877$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h. */
8880
8881/* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8884#ifdef __cplusplus
8885extern "C"
8886#endif
8887char pthread_join ();
8888int
8889main ()
8890{
8891return pthread_join ();
8892 ;
8893 return 0;
8894}
8895_ACEOF
8896if ac_fn_c_try_link "$LINENO"; then :
8897 ax_pthread_ok=yes
8898fi
8899rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8902$as_echo "$ax_pthread_ok" >&6; }
8903 if test x"$ax_pthread_ok" = xno; then
8904 PTHREAD_LIBS=""
8905 PTHREAD_CFLAGS=""
8906 fi
8907 LIBS="$save_LIBS"
8908 CFLAGS="$save_CFLAGS"
8909fi
8910
8911# We must check for the threads library under a number of different
8912# names; the ordering is very important because some systems
8913# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8914# libraries is broken (non-POSIX).
8915
8916# Create a list of thread flags to try. Items starting with a "-" are
8917# C compiler flags, and other items are library names, except for "none"
8918# which indicates that we try without any flags at all, and "pthread-config"
8919# which is a program returning the flags for the Pth emulation library.
8920
cristy18307f12011-12-30 01:20:16 +00008921ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008922
8923# The ordering *is* (sometimes) important. Some notes on the
8924# individual items follow:
8925
8926# pthreads: AIX (must check this before -lpthread)
8927# none: in case threads are in libc; should be tried before -Kthread and
8928# other compiler flags to prevent continual compiler warnings
8929# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8930# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8931# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8932# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8933# -pthreads: Solaris/gcc
8934# -mthreads: Mingw32/gcc, Lynx/gcc
8935# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8936# doesn't hurt to check since this sometimes defines pthreads too;
8937# also defines -D_REENTRANT)
8938# ... -mt is also the pthreads flag for HP/aCC
8939# pthread: Linux, etcetera
8940# --thread-safe: KAI C++
8941# pthread-config: use pthread-config program (for GNU Pth library)
8942
8943case "${host_cpu}-${host_os}" in
8944 *solaris*)
8945
8946 # On Solaris (at least, for some versions), libc contains stubbed
8947 # (non-functional) versions of the pthreads routines, so link-based
8948 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8949 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8950 # a function called by this macro, so we could check for that, but
8951 # who knows whether they'll stub that too in a future libc.) So,
8952 # we'll just look for -pthreads and -lpthread first:
8953
8954 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8955 ;;
8956
cristya316db12011-10-24 00:49:45 +00008957 *-darwin*)
8958 ax_pthread_flags="-pthread $ax_pthread_flags"
8959 ;;
cristy73bd4a52010-10-05 11:24:23 +00008960esac
8961
8962if test x"$ax_pthread_ok" = xno; then
8963for flag in $ax_pthread_flags; do
8964
8965 case $flag in
8966 none)
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8968$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8969 ;;
8970
8971 -*)
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8973$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8974 PTHREAD_CFLAGS="$flag"
8975 ;;
8976
cristya316db12011-10-24 00:49:45 +00008977 pthread-config)
8978 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008979set dummy pthread-config; ac_word=$2
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008982if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008983 $as_echo_n "(cached) " >&6
8984else
8985 if test -n "$ax_pthread_config"; then
8986 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8987else
8988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989for as_dir in $PATH
8990do
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_prog_ax_pthread_config="yes"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8998 fi
8999done
9000 done
9001IFS=$as_save_IFS
9002
9003 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9004fi
9005fi
9006ax_pthread_config=$ac_cv_prog_ax_pthread_config
9007if test -n "$ax_pthread_config"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9009$as_echo "$ax_pthread_config" >&6; }
9010else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012$as_echo "no" >&6; }
9013fi
9014
9015
cristya316db12011-10-24 00:49:45 +00009016 if test x"$ax_pthread_config" = xno; then continue; fi
9017 PTHREAD_CFLAGS="`pthread-config --cflags`"
9018 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9019 ;;
cristy73bd4a52010-10-05 11:24:23 +00009020
9021 *)
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9023$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9024 PTHREAD_LIBS="-l$flag"
9025 ;;
9026 esac
9027
9028 save_LIBS="$LIBS"
9029 save_CFLAGS="$CFLAGS"
9030 LIBS="$PTHREAD_LIBS $LIBS"
9031 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9032
9033 # Check for various functions. We must include pthread.h,
9034 # since some functions may be macros. (On the Sequent, we
9035 # need a special flag -Kthread to make this header compile.)
9036 # We check for pthread_join because it is in -lpthread on IRIX
9037 # while pthread_create is in libc. We check for pthread_attr_init
9038 # due to DEC craziness with -lpthreads. We check for
9039 # pthread_cleanup_push because it is one of the few pthread
9040 # functions on Solaris that doesn't have a non-functional libc stub.
9041 # We try pthread_create on general principles.
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h. */
9044#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009045 static void routine(void *a) { a = 0; }
9046 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009047int
9048main ()
9049{
9050pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009051 pthread_create(&th, 0, start_routine, 0);
9052 pthread_join(th, 0);
9053 pthread_attr_init(&attr);
9054 pthread_cleanup_push(routine, 0);
9055 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009056 ;
9057 return 0;
9058}
9059_ACEOF
9060if ac_fn_c_try_link "$LINENO"; then :
9061 ax_pthread_ok=yes
9062fi
9063rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065
9066 LIBS="$save_LIBS"
9067 CFLAGS="$save_CFLAGS"
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9070$as_echo "$ax_pthread_ok" >&6; }
9071 if test "x$ax_pthread_ok" = xyes; then
9072 break;
9073 fi
9074
9075 PTHREAD_LIBS=""
9076 PTHREAD_CFLAGS=""
9077done
9078fi
9079
9080# Various other checks:
9081if test "x$ax_pthread_ok" = xyes; then
9082 save_LIBS="$LIBS"
9083 LIBS="$PTHREAD_LIBS $LIBS"
9084 save_CFLAGS="$CFLAGS"
9085 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9086
9087 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009089$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009090 attr_name=unknown
9091 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009093/* end confdefs.h. */
9094#include <pthread.h>
9095int
9096main ()
9097{
cristya316db12011-10-24 00:49:45 +00009098int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009099 ;
9100 return 0;
9101}
9102_ACEOF
9103if ac_fn_c_try_link "$LINENO"; then :
9104 attr_name=$attr; break
9105fi
9106rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009108 done
cristy73bd4a52010-10-05 11:24:23 +00009109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9110$as_echo "$attr_name" >&6; }
9111 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9112
9113cat >>confdefs.h <<_ACEOF
9114#define PTHREAD_CREATE_JOINABLE $attr_name
9115_ACEOF
9116
9117 fi
9118
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9120$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9121 flag=no
9122 case "${host_cpu}-${host_os}" in
9123 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9124 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9125 esac
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9127$as_echo "${flag}" >&6; }
9128 if test "x$flag" != xno; then
9129 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9130 fi
9131
cristya316db12011-10-24 00:49:45 +00009132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9133$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9134if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136else
9137
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h. */
9140
9141 #include <pthread.h>
9142int
9143main ()
9144{
9145int i = PTHREAD_PRIO_INHERIT;
9146 ;
9147 return 0;
9148}
9149_ACEOF
9150if ac_fn_c_try_link "$LINENO"; then :
9151 ax_cv_PTHREAD_PRIO_INHERIT=yes
9152else
9153 ax_cv_PTHREAD_PRIO_INHERIT=no
9154fi
9155rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157
9158fi
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9160$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9161 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9162
9163$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9164
9165fi
9166
cristy73bd4a52010-10-05 11:24:23 +00009167 LIBS="$save_LIBS"
9168 CFLAGS="$save_CFLAGS"
9169
9170 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009171 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009172 for ac_prog in xlc_r cc_r
9173do
9174 # Extract the first word of "$ac_prog", so it can be a program name with args.
9175set dummy $ac_prog; ac_word=$2
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009178if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009179 $as_echo_n "(cached) " >&6
9180else
9181 if test -n "$PTHREAD_CC"; then
9182 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9183else
9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185for as_dir in $PATH
9186do
9187 IFS=$as_save_IFS
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_PTHREAD_CC="$ac_prog"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195done
9196 done
9197IFS=$as_save_IFS
9198
9199fi
9200fi
9201PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9202if test -n "$PTHREAD_CC"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9204$as_echo "$PTHREAD_CC" >&6; }
9205else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209
9210
9211 test -n "$PTHREAD_CC" && break
9212done
9213test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9214
9215 else
9216 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009217 fi
cristy73bd4a52010-10-05 11:24:23 +00009218else
9219 PTHREAD_CC="$CC"
9220fi
9221
9222
9223
9224
9225
9226# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9227if test x"$ax_pthread_ok" = xyes; then
9228
9229$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9230
9231 :
9232else
9233 ax_pthread_ok=no
9234
9235fi
9236ac_ext=c
9237ac_cpp='$CPP $CPPFLAGS'
9238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240ac_compiler_gnu=$ac_cv_c_compiler_gnu
9241
9242
9243
9244# Check whether --enable-opencl was given.
9245if test "${enable_opencl+set}" = set; then :
9246 enableval=$enable_opencl; disable_opencl=$enableval
9247else
9248 disable_opencl='yes'
9249fi
9250
9251
9252if test "$disable_opencl" = 'yes'; then
9253 ac_ext=c
9254ac_cpp='$CPP $CPPFLAGS'
9255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257ac_compiler_gnu=$ac_cv_c_compiler_gnu
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9260$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009261if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009262 $as_echo_n "(cached) " >&6
9263else
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h. */
9266
9267int
9268main ()
9269{
9270#ifndef _MSC_VER
9271 choke me
9272#endif
9273
9274 ;
9275 return 0;
9276}
9277_ACEOF
9278if ac_fn_c_try_compile "$LINENO"; then :
9279 ax_compiler_ms=yes
9280else
9281 ax_compiler_ms=no
9282fi
9283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284ax_cv_c_compiler_ms=$ax_compiler_ms
9285
9286fi
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9288$as_echo "$ax_cv_c_compiler_ms" >&6; }
9289 if test X$ax_compiler_ms = Xno; then :
9290 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9291fi
9292
9293 ax_save_CPPFLAGS=$CPPFLAGS
9294 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9295 for ac_header in CL/cl.h OpenCL/cl.h
9296do :
9297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9298ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009299if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009300 cat >>confdefs.h <<_ACEOF
9301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9302_ACEOF
9303
9304fi
9305
9306done
9307
9308 CPPFLAGS=$ax_save_CPPFLAGS
9309
9310 for ac_header in windows.h
9311do :
9312 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009313if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009314 cat >>confdefs.h <<_ACEOF
9315#define HAVE_WINDOWS_H 1
9316_ACEOF
9317
9318fi
9319
9320done
9321
9322
9323
9324
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9326$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009327if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009328 $as_echo_n "(cached) " >&6
9329else
9330 ax_cv_check_cl_libcl=no
9331 case $host_cpu in
9332 x86_64) ax_check_cl_libdir=lib64 ;;
9333 *) ax_check_cl_libdir=lib ;;
9334 esac
9335 ax_save_CPPFLAGS=$CPPFLAGS
9336 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9337 ax_save_LIBS=$LIBS
9338 LIBS=""
9339 ax_check_libs="-lOpenCL -lCL -lclparser"
9340 for ax_lib in $ax_check_libs; do
9341 if test X$ax_compiler_ms = Xyes; then :
9342 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9343else
9344 ax_try_lib=$ax_lib
9345fi
9346 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h. */
9349
9350 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9351 # include <windows.h>
9352 # endif
9353 # ifdef HAVE_CL_CL_H
9354 # include <CL/cl.h>
9355 # elif defined(HAVE_OPENCL_CL_H)
9356 # include <OpenCL/cl.h>
9357 # else
9358 # error no CL.h
9359 # endif
9360int
9361main ()
9362{
9363clCreateContextFromType(0,0,0,0,0)
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_link "$LINENO"; then :
9369 ax_cv_check_cl_libcl=$ax_try_lib; break
9370else
9371 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"
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h. */
9374
9375 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9376 # include <windows.h>
9377 # endif
9378 # ifdef HAVE_CL_CL_H
9379 # include <CL/cl.h>
9380 # elif defined(HAVE_OPENCL_CL_H)
9381 # include <OpenCL/cl.h>
9382 # else
9383 # error no CL.h
9384 # endif
9385int
9386main ()
9387{
9388clCreateContextFromType(0,0,0,0,0)
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9395else
cristy78c5a0c2010-12-04 20:00:59 +00009396 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 +00009397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h. */
9399
9400 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9401 # include <windows.h>
9402 # endif
9403 # ifdef HAVE_CL_CL_H
9404 # include <CL/cl.h>
9405 # elif defined(HAVE_OPENCL_CL_H)
9406 # include <OpenCL/cl.h>
9407 # else
9408 # error no CL.h
9409 # endif
9410int
9411main ()
9412{
9413clCreateContextFromType(0,0,0,0,0)
9414 ;
9415 return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"; then :
9419 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9420fi
9421rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423fi
9424rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426fi
9427rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 done
9430
cristyc3f8b8e2011-12-22 14:55:16 +00009431 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009432 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h. */
9435
9436 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9437 # include <windows.h>
9438 # endif
9439 # ifdef HAVE_CL_CL_H
9440 # include <CL/cl.h>
9441 # elif defined(HAVE_OPENCL_CL_H)
9442 # include <OpenCL/cl.h>
9443 # else
9444 # error no CL.h
9445 # endif
9446int
9447main ()
9448{
9449clCreateContextFromType(0,0,0,0,0)
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454if ac_fn_c_try_link "$LINENO"; then :
9455 ax_cv_check_cl_libcl=$LIBS
9456fi
9457rm -f core conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
9459fi
9460
9461 LIBS=$ax_save_LIBS
9462 CPPFLAGS=$ax_save_CPPFLAGS
9463fi
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9465$as_echo "$ax_cv_check_cl_libcl" >&6; }
9466
9467 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9468 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9469else
9470 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9471$as_echo "#define _OPENCL 1" >>confdefs.h
9472
9473fi
9474 ac_ext=c
9475ac_cpp='$CPP $CPPFLAGS'
9476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9478ac_compiler_gnu=$ac_cv_c_compiler_gnu
9479
9480fi
9481
9482
9483
9484
cristyc7083c12009-10-14 03:16:55 +00009485CFLAGS="$CL_CFLAGS $CFLAGS"
9486LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009487
cristy391f1ce2010-09-09 17:23:28 +00009488if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009489 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009490 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9491 fi
cristyfd9dcd42010-08-08 18:07:02 +00009492fi
cristy2e8b51d2009-10-17 18:26:15 +00009493
cristy3ed852e2009-09-05 21:47:34 +00009494########
9495#
9496# Check for large file support
9497#
9498########
9499# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009500if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009501 enableval=$enable_largefile;
9502fi
9503
9504if test "$enable_largefile" != no; then
9505
cristy8b350f62009-11-15 23:12:43 +00009506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009507$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009508if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009509 $as_echo_n "(cached) " >&6
9510else
9511 ac_cv_sys_largefile_CC=no
9512 if test "$GCC" != yes; then
9513 ac_save_CC=$CC
9514 while :; do
9515 # IRIX 6.2 and later do not support large files by default,
9516 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009518/* end confdefs.h. */
9519#include <sys/types.h>
9520 /* Check that off_t can represent 2**63 - 1 correctly.
9521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9522 since some C++ compilers masquerading as C compilers
9523 incorrectly reject 9223372036854775807. */
9524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9526 && LARGE_OFF_T % 2147483647 == 1)
9527 ? 1 : -1];
9528int
9529main ()
9530{
9531
9532 ;
9533 return 0;
9534}
9535_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009536 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009537 break
cristy3ed852e2009-09-05 21:47:34 +00009538fi
cristy3ed852e2009-09-05 21:47:34 +00009539rm -f core conftest.err conftest.$ac_objext
9540 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009541 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009542 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009543fi
cristy3ed852e2009-09-05 21:47:34 +00009544rm -f core conftest.err conftest.$ac_objext
9545 break
9546 done
9547 CC=$ac_save_CC
9548 rm -f conftest.$ac_ext
9549 fi
9550fi
cristy8b350f62009-11-15 23:12:43 +00009551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009552$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9553 if test "$ac_cv_sys_largefile_CC" != no; then
9554 CC=$CC$ac_cv_sys_largefile_CC
9555 fi
9556
cristy8b350f62009-11-15 23:12:43 +00009557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009558$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009559if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009560 $as_echo_n "(cached) " >&6
9561else
9562 while :; do
cristy8b350f62009-11-15 23:12:43 +00009563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009564/* end confdefs.h. */
9565#include <sys/types.h>
9566 /* Check that off_t can represent 2**63 - 1 correctly.
9567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9568 since some C++ compilers masquerading as C compilers
9569 incorrectly reject 9223372036854775807. */
9570#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9572 && LARGE_OFF_T % 2147483647 == 1)
9573 ? 1 : -1];
9574int
9575main ()
9576{
9577
9578 ;
9579 return 0;
9580}
9581_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009582if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009583 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009584fi
cristy3ed852e2009-09-05 21:47:34 +00009585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009587/* end confdefs.h. */
9588#define _FILE_OFFSET_BITS 64
9589#include <sys/types.h>
9590 /* Check that off_t can represent 2**63 - 1 correctly.
9591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9592 since some C++ compilers masquerading as C compilers
9593 incorrectly reject 9223372036854775807. */
9594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9596 && LARGE_OFF_T % 2147483647 == 1)
9597 ? 1 : -1];
9598int
9599main ()
9600{
9601
9602 ;
9603 return 0;
9604}
9605_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009606if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009607 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009608fi
cristy3ed852e2009-09-05 21:47:34 +00009609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 ac_cv_sys_file_offset_bits=unknown
9611 break
9612done
9613fi
cristy8b350f62009-11-15 23:12:43 +00009614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009615$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9616case $ac_cv_sys_file_offset_bits in #(
9617 no | unknown) ;;
9618 *)
9619cat >>confdefs.h <<_ACEOF
9620#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9621_ACEOF
9622;;
9623esac
9624rm -rf conftest*
9625 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009627$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009628if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009629 $as_echo_n "(cached) " >&6
9630else
9631 while :; do
cristy8b350f62009-11-15 23:12:43 +00009632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009633/* end confdefs.h. */
9634#include <sys/types.h>
9635 /* Check that off_t can represent 2**63 - 1 correctly.
9636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9637 since some C++ compilers masquerading as C compilers
9638 incorrectly reject 9223372036854775807. */
9639#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9641 && LARGE_OFF_T % 2147483647 == 1)
9642 ? 1 : -1];
9643int
9644main ()
9645{
9646
9647 ;
9648 return 0;
9649}
9650_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009652 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009653fi
cristy3ed852e2009-09-05 21:47:34 +00009654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009656/* end confdefs.h. */
9657#define _LARGE_FILES 1
9658#include <sys/types.h>
9659 /* Check that off_t can represent 2**63 - 1 correctly.
9660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9661 since some C++ compilers masquerading as C compilers
9662 incorrectly reject 9223372036854775807. */
9663#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9665 && LARGE_OFF_T % 2147483647 == 1)
9666 ? 1 : -1];
9667int
9668main ()
9669{
9670
9671 ;
9672 return 0;
9673}
9674_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009675if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009676 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009677fi
cristy3ed852e2009-09-05 21:47:34 +00009678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 ac_cv_sys_large_files=unknown
9680 break
9681done
9682fi
cristy8b350f62009-11-15 23:12:43 +00009683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009684$as_echo "$ac_cv_sys_large_files" >&6; }
9685case $ac_cv_sys_large_files in #(
9686 no | unknown) ;;
9687 *)
9688cat >>confdefs.h <<_ACEOF
9689#define _LARGE_FILES $ac_cv_sys_large_files
9690_ACEOF
9691;;
9692esac
9693rm -rf conftest*
9694 fi
9695fi
9696
cristy8b350f62009-11-15 23:12:43 +00009697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009698$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009699if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009700 $as_echo_n "(cached) " >&6
9701else
9702 while :; do
cristy8b350f62009-11-15 23:12:43 +00009703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009704/* end confdefs.h. */
9705#include <sys/types.h> /* for off_t */
9706 #include <stdio.h>
9707int
9708main ()
9709{
9710int (*fp) (FILE *, off_t, int) = fseeko;
9711 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9712 ;
9713 return 0;
9714}
9715_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009716if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009717 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009718fi
cristy8b350f62009-11-15 23:12:43 +00009719rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009722/* end confdefs.h. */
9723#define _LARGEFILE_SOURCE 1
9724#include <sys/types.h> /* for off_t */
9725 #include <stdio.h>
9726int
9727main ()
9728{
9729int (*fp) (FILE *, off_t, int) = fseeko;
9730 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9731 ;
9732 return 0;
9733}
9734_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009736 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009737fi
cristy8b350f62009-11-15 23:12:43 +00009738rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009740 ac_cv_sys_largefile_source=unknown
9741 break
9742done
9743fi
cristy8b350f62009-11-15 23:12:43 +00009744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009745$as_echo "$ac_cv_sys_largefile_source" >&6; }
9746case $ac_cv_sys_largefile_source in #(
9747 no | unknown) ;;
9748 *)
9749cat >>confdefs.h <<_ACEOF
9750#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9751_ACEOF
9752;;
9753esac
9754rm -rf conftest*
9755
9756# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9757# in glibc 2.1.3, but that breaks too many other things.
9758# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9759if test $ac_cv_sys_largefile_source != unknown; then
9760
cristy8b350f62009-11-15 23:12:43 +00009761$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009762
9763fi
9764
9765LFS_CPPFLAGS=''
9766if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009767 case $ac_cv_sys_file_offset_bits in
9768 no)
9769 # nothing to do here as the host supports LFS fine
9770 ;;
9771 unknown)
cristy8b350f62009-11-15 23:12:43 +00009772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009773$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009774 if test "$cross_compiling" = yes; then :
9775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009777as_fn_error $? "cannot run test program while cross compiling
9778See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009779else
cristy8b350f62009-11-15 23:12:43 +00009780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009782#include <unistd.h>
9783 main () {
9784 exit(!(sizeof(off_t) == 8));
9785 }
cristyda16f162011-02-19 23:52:17 +00009786int
9787main ()
9788{
9789
9790 ;
9791 return 0;
9792}
cristy3ed852e2009-09-05 21:47:34 +00009793_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009794if ac_fn_c_try_run "$LINENO"; then :
9795 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009796
cristy09b53e12011-10-14 12:47:22 +00009797 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9798$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009799else
cristy09b53e12011-10-14 12:47:22 +00009800 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9801$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009802fi
cristy8b350f62009-11-15 23:12:43 +00009803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9804 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009805fi
9806
cristyc1e0cc12011-09-21 16:41:16 +00009807 ;;
9808 *)
9809 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9810 ;;
9811 esac
cristy3ed852e2009-09-05 21:47:34 +00009812 if test "$ac_cv_sys_large_files" != 'no'; then
9813 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9814 fi
9815 if test "$ac_cv_sys_largefile_source" != 'no'; then
9816 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9817 fi
9818fi
9819
9820
cristy3ed852e2009-09-05 21:47:34 +00009821# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009822enable_dlopen=yes
9823
9824
9825
9826case `pwd` in
9827 *\ * | *\ *)
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9829$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9830esac
9831
9832
9833
cristy99bd5232011-12-07 14:38:20 +00009834macro_version='2.4.2'
9835macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +00009836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849ltmain="$ac_aux_dir/ltmain.sh"
9850
cristy0c60a692010-11-04 01:09:47 +00009851# Backslashify metacharacters that are still active within
9852# double-quoted strings.
9853sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9854
9855# Same as above, but do not quote variable references.
9856double_quote_subst='s/\(["`\\]\)/\\\1/g'
9857
9858# Sed substitution to delay expansion of an escaped shell variable in a
9859# double_quote_subst'ed string.
9860delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9861
9862# Sed substitution to delay expansion of an escaped single quote.
9863delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9864
9865# Sed substitution to avoid accidental globbing in evaled expressions
9866no_glob_subst='s/\*/\\\*/g'
9867
cristy73bd4a52010-10-05 11:24:23 +00009868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9869$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009870if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009871 $as_echo_n "(cached) " >&6
9872else
9873 if test -n "$NM"; then
9874 # Let the user override the test.
9875 lt_cv_path_NM="$NM"
9876else
9877 lt_nm_to_check="${ac_tool_prefix}nm"
9878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9879 lt_nm_to_check="$lt_nm_to_check nm"
9880 fi
9881 for lt_tmp_nm in $lt_nm_to_check; do
9882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9883 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9884 IFS="$lt_save_ifs"
9885 test -z "$ac_dir" && ac_dir=.
9886 tmp_nm="$ac_dir/$lt_tmp_nm"
9887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9888 # Check to see if the nm accepts a BSD-compat flag.
9889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9890 # nm: unknown option "B" ignored
9891 # Tru64's nm complains that /dev/null is an invalid object file
9892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9893 */dev/null* | *'Invalid file or object type'*)
9894 lt_cv_path_NM="$tmp_nm -B"
9895 break
9896 ;;
9897 *)
9898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9899 */dev/null*)
9900 lt_cv_path_NM="$tmp_nm -p"
9901 break
9902 ;;
9903 *)
9904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9905 continue # so that we can try to find one that supports BSD flags
9906 ;;
9907 esac
9908 ;;
9909 esac
9910 fi
9911 done
9912 IFS="$lt_save_ifs"
9913 done
9914 : ${lt_cv_path_NM=no}
9915fi
9916fi
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9918$as_echo "$lt_cv_path_NM" >&6; }
9919if test "$lt_cv_path_NM" != "no"; then
9920 NM="$lt_cv_path_NM"
9921else
9922 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009923 if test -n "$DUMPBIN"; then :
9924 # Let the user override the test.
9925 else
9926 if test -n "$ac_tool_prefix"; then
9927 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009928 do
9929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009933if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009934 $as_echo_n "(cached) " >&6
9935else
9936 if test -n "$DUMPBIN"; then
9937 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9938else
9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9949 fi
9950done
9951 done
9952IFS=$as_save_IFS
9953
9954fi
9955fi
9956DUMPBIN=$ac_cv_prog_DUMPBIN
9957if test -n "$DUMPBIN"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9959$as_echo "$DUMPBIN" >&6; }
9960else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
9963fi
9964
9965
9966 test -n "$DUMPBIN" && break
9967 done
9968fi
9969if test -z "$DUMPBIN"; then
9970 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009971 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009972do
9973 # Extract the first word of "$ac_prog", so it can be a program name with args.
9974set dummy $ac_prog; ac_word=$2
9975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009977if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009978 $as_echo_n "(cached) " >&6
9979else
9980 if test -n "$ac_ct_DUMPBIN"; then
9981 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9982else
9983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984for as_dir in $PATH
9985do
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 break 2
9993 fi
9994done
9995 done
9996IFS=$as_save_IFS
9997
9998fi
9999fi
10000ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10001if test -n "$ac_ct_DUMPBIN"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10003$as_echo "$ac_ct_DUMPBIN" >&6; }
10004else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006$as_echo "no" >&6; }
10007fi
10008
10009
10010 test -n "$ac_ct_DUMPBIN" && break
10011done
10012
10013 if test "x$ac_ct_DUMPBIN" = x; then
10014 DUMPBIN=":"
10015 else
10016 case $cross_compiling:$ac_tool_warned in
10017yes:)
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10020ac_tool_warned=yes ;;
10021esac
10022 DUMPBIN=$ac_ct_DUMPBIN
10023 fi
10024fi
10025
cristy0c60a692010-11-04 01:09:47 +000010026 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10027 *COFF*)
10028 DUMPBIN="$DUMPBIN -symbols"
10029 ;;
10030 *)
10031 DUMPBIN=:
10032 ;;
10033 esac
10034 fi
cristy73bd4a52010-10-05 11:24:23 +000010035
10036 if test "$DUMPBIN" != ":"; then
10037 NM="$DUMPBIN"
10038 fi
10039fi
10040test -z "$NM" && NM=nm
10041
10042
10043
10044
10045
10046
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10048$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010049if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010050 $as_echo_n "(cached) " >&6
10051else
10052 lt_cv_nm_interface="BSD nm"
10053 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010054 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010055 (eval "$ac_compile" 2>conftest.err)
10056 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010057 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010058 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10059 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010060 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010061 cat conftest.out >&5
10062 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10063 lt_cv_nm_interface="MS dumpbin"
10064 fi
10065 rm -f conftest*
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10068$as_echo "$lt_cv_nm_interface" >&6; }
10069
10070# find the maximum length of command line arguments
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10072$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010073if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010074 $as_echo_n "(cached) " >&6
10075else
10076 i=0
10077 teststring="ABCD"
10078
10079 case $build_os in
10080 msdosdjgpp*)
10081 # On DJGPP, this test can blow up pretty badly due to problems in libc
10082 # (any single argument exceeding 2000 bytes causes a buffer overrun
10083 # during glob expansion). Even if it were fixed, the result of this
10084 # check would be larger than it should be.
10085 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10086 ;;
10087
10088 gnu*)
10089 # Under GNU Hurd, this test is not required because there is
10090 # no limit to the length of command line arguments.
10091 # Libtool will interpret -1 as no limit whatsoever
10092 lt_cv_sys_max_cmd_len=-1;
10093 ;;
10094
10095 cygwin* | mingw* | cegcc*)
10096 # On Win9x/ME, this test blows up -- it succeeds, but takes
10097 # about 5 minutes as the teststring grows exponentially.
10098 # Worse, since 9x/ME are not pre-emptively multitasking,
10099 # you end up with a "frozen" computer, even though with patience
10100 # the test eventually succeeds (with a max line length of 256k).
10101 # Instead, let's just punt: use the minimum linelength reported by
10102 # all of the supported platforms: 8192 (on NT/2K/XP).
10103 lt_cv_sys_max_cmd_len=8192;
10104 ;;
10105
cristy0c60a692010-11-04 01:09:47 +000010106 mint*)
10107 # On MiNT this can take a long time and run out of memory.
10108 lt_cv_sys_max_cmd_len=8192;
10109 ;;
10110
cristy73bd4a52010-10-05 11:24:23 +000010111 amigaos*)
10112 # On AmigaOS with pdksh, this test takes hours, literally.
10113 # So we just punt and use a minimum line length of 8192.
10114 lt_cv_sys_max_cmd_len=8192;
10115 ;;
10116
10117 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10118 # This has been around since 386BSD, at least. Likely further.
10119 if test -x /sbin/sysctl; then
10120 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10121 elif test -x /usr/sbin/sysctl; then
10122 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10123 else
10124 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10125 fi
10126 # And add a safety zone
10127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10129 ;;
10130
10131 interix*)
10132 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10133 lt_cv_sys_max_cmd_len=196608
10134 ;;
10135
cristy99bd5232011-12-07 14:38:20 +000010136 os2*)
10137 # The test takes a long time on OS/2.
10138 lt_cv_sys_max_cmd_len=8192
10139 ;;
10140
cristy73bd4a52010-10-05 11:24:23 +000010141 osf*)
10142 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10143 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10144 # nice to cause kernel panics so lets avoid the loop below.
10145 # First set a reasonable default.
10146 lt_cv_sys_max_cmd_len=16384
10147 #
10148 if test -x /sbin/sysconfig; then
10149 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10150 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10151 esac
10152 fi
10153 ;;
10154 sco3.2v5*)
10155 lt_cv_sys_max_cmd_len=102400
10156 ;;
10157 sysv5* | sco5v6* | sysv4.2uw2*)
10158 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10159 if test -n "$kargmax"; then
10160 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10161 else
10162 lt_cv_sys_max_cmd_len=32768
10163 fi
10164 ;;
10165 *)
10166 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10167 if test -n "$lt_cv_sys_max_cmd_len"; then
10168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10170 else
10171 # Make teststring a little bigger before we do anything with it.
10172 # a 1K string should be a reasonable start.
10173 for i in 1 2 3 4 5 6 7 8 ; do
10174 teststring=$teststring$teststring
10175 done
10176 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10177 # If test is not a shell built-in, we'll probably end up computing a
10178 # maximum length that is only half of the actual maximum length, but
10179 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010180 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010181 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010182 test $i != 17 # 1/2 MB should be enough
10183 do
10184 i=`expr $i + 1`
10185 teststring=$teststring$teststring
10186 done
10187 # Only check the string length outside the loop.
10188 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10189 teststring=
10190 # Add a significant safety factor because C++ compilers can tack on
10191 # massive amounts of additional arguments before passing them to the
10192 # linker. It appears as though 1/2 is a usable value.
10193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10194 fi
10195 ;;
10196 esac
10197
10198fi
10199
10200if test -n $lt_cv_sys_max_cmd_len ; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10202$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10203else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10205$as_echo "none" >&6; }
10206fi
10207max_cmd_len=$lt_cv_sys_max_cmd_len
10208
10209
10210
10211
10212
10213
10214: ${CP="cp -f"}
10215: ${MV="mv -f"}
10216: ${RM="rm -f"}
10217
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10219$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10220# Try some XSI features
10221xsi_shell=no
10222( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010223 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10224 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010225 && eval 'test $(( 1 + 1 )) -eq 2 \
10226 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10227 && xsi_shell=yes
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10229$as_echo "$xsi_shell" >&6; }
10230
10231
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10233$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10234lt_shell_append=no
10235( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10236 >/dev/null 2>&1 \
10237 && lt_shell_append=yes
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10239$as_echo "$lt_shell_append" >&6; }
10240
10241
10242if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10243 lt_unset=unset
10244else
10245 lt_unset=false
10246fi
10247
10248
10249
10250
10251
10252# test EBCDIC or ASCII
10253case `echo X|tr X '\101'` in
10254 A) # ASCII based system
10255 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10256 lt_SP2NL='tr \040 \012'
10257 lt_NL2SP='tr \015\012 \040\040'
10258 ;;
10259 *) # EBCDIC based system
10260 lt_SP2NL='tr \100 \n'
10261 lt_NL2SP='tr \r\n \100\100'
10262 ;;
10263esac
10264
10265
10266
10267
10268
10269
10270
10271
10272
cristyda16f162011-02-19 23:52:17 +000010273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10274$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10275if ${lt_cv_to_host_file_cmd+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277else
10278 case $host in
10279 *-*-mingw* )
10280 case $build in
10281 *-*-mingw* ) # actually msys
10282 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10283 ;;
10284 *-*-cygwin* )
10285 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10286 ;;
10287 * ) # otherwise, assume *nix
10288 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10289 ;;
10290 esac
10291 ;;
10292 *-*-cygwin* )
10293 case $build in
10294 *-*-mingw* ) # actually msys
10295 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10296 ;;
10297 *-*-cygwin* )
10298 lt_cv_to_host_file_cmd=func_convert_file_noop
10299 ;;
10300 * ) # otherwise, assume *nix
10301 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10302 ;;
10303 esac
10304 ;;
10305 * ) # unhandled hosts (and "normal" native builds)
10306 lt_cv_to_host_file_cmd=func_convert_file_noop
10307 ;;
10308esac
10309
10310fi
10311
10312to_host_file_cmd=$lt_cv_to_host_file_cmd
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10314$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10315
10316
10317
10318
10319
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10321$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10322if ${lt_cv_to_tool_file_cmd+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324else
10325 #assume ordinary cross tools, or native build.
10326lt_cv_to_tool_file_cmd=func_convert_file_noop
10327case $host in
10328 *-*-mingw* )
10329 case $build in
10330 *-*-mingw* ) # actually msys
10331 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10332 ;;
10333 esac
10334 ;;
10335esac
10336
10337fi
10338
10339to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10341$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10342
10343
10344
10345
10346
cristy73bd4a52010-10-05 11:24:23 +000010347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10348$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010349if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010350 $as_echo_n "(cached) " >&6
10351else
10352 lt_cv_ld_reload_flag='-r'
10353fi
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10355$as_echo "$lt_cv_ld_reload_flag" >&6; }
10356reload_flag=$lt_cv_ld_reload_flag
10357case $reload_flag in
10358"" | " "*) ;;
10359*) reload_flag=" $reload_flag" ;;
10360esac
10361reload_cmds='$LD$reload_flag -o $output$reload_objs'
10362case $host_os in
cristyda16f162011-02-19 23:52:17 +000010363 cygwin* | mingw* | pw32* | cegcc*)
10364 if test "$GCC" != yes; then
10365 reload_cmds=false
10366 fi
10367 ;;
cristy73bd4a52010-10-05 11:24:23 +000010368 darwin*)
10369 if test "$GCC" = yes; then
10370 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10371 else
10372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10373 fi
10374 ;;
10375esac
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385if test -n "$ac_tool_prefix"; then
10386 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10387set dummy ${ac_tool_prefix}objdump; ac_word=$2
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010390if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010391 $as_echo_n "(cached) " >&6
10392else
10393 if test -n "$OBJDUMP"; then
10394 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10395else
10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407done
10408 done
10409IFS=$as_save_IFS
10410
10411fi
10412fi
10413OBJDUMP=$ac_cv_prog_OBJDUMP
10414if test -n "$OBJDUMP"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10416$as_echo "$OBJDUMP" >&6; }
10417else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
10420fi
10421
10422
10423fi
10424if test -z "$ac_cv_prog_OBJDUMP"; then
10425 ac_ct_OBJDUMP=$OBJDUMP
10426 # Extract the first word of "objdump", so it can be a program name with args.
10427set dummy objdump; ac_word=$2
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010430if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010431 $as_echo_n "(cached) " >&6
10432else
10433 if test -n "$ac_ct_OBJDUMP"; then
10434 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10435else
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10443 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447done
10448 done
10449IFS=$as_save_IFS
10450
10451fi
10452fi
10453ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10454if test -n "$ac_ct_OBJDUMP"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10456$as_echo "$ac_ct_OBJDUMP" >&6; }
10457else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
10460fi
10461
10462 if test "x$ac_ct_OBJDUMP" = x; then
10463 OBJDUMP="false"
10464 else
10465 case $cross_compiling:$ac_tool_warned in
10466yes:)
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10469ac_tool_warned=yes ;;
10470esac
10471 OBJDUMP=$ac_ct_OBJDUMP
10472 fi
10473else
10474 OBJDUMP="$ac_cv_prog_OBJDUMP"
10475fi
10476
10477test -z "$OBJDUMP" && OBJDUMP=objdump
10478
10479
10480
10481
10482
10483
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10485$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010486if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010487 $as_echo_n "(cached) " >&6
10488else
10489 lt_cv_file_magic_cmd='$MAGIC_CMD'
10490lt_cv_file_magic_test_file=
10491lt_cv_deplibs_check_method='unknown'
10492# Need to set the preceding variable on all platforms that support
10493# interlibrary dependencies.
10494# 'none' -- dependencies not supported.
10495# `unknown' -- same as none, but documents that we really don't know.
10496# 'pass_all' -- all dependencies passed with no checks.
10497# 'test_compile' -- check by making test program.
10498# 'file_magic [[regex]]' -- check by looking for files in library path
10499# which responds to the $file_magic_cmd with a given extended regex.
10500# If you have `file' or equivalent on your system and you're not sure
10501# whether `pass_all' will *always* work, you probably want this one.
10502
10503case $host_os in
10504aix[4-9]*)
10505 lt_cv_deplibs_check_method=pass_all
10506 ;;
10507
10508beos*)
10509 lt_cv_deplibs_check_method=pass_all
10510 ;;
10511
10512bsdi[45]*)
10513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10514 lt_cv_file_magic_cmd='/usr/bin/file -L'
10515 lt_cv_file_magic_test_file=/shlib/libc.so
10516 ;;
10517
10518cygwin*)
10519 # func_win32_libid is a shell function defined in ltmain.sh
10520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10521 lt_cv_file_magic_cmd='func_win32_libid'
10522 ;;
10523
10524mingw* | pw32*)
10525 # Base MSYS/MinGW do not provide the 'file' command needed by
10526 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10527 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010528 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10529 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10531 lt_cv_file_magic_cmd='func_win32_libid'
10532 else
cristy0c60a692010-11-04 01:09:47 +000010533 # Keep this pattern in sync with the one in func_win32_libid.
10534 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 +000010535 lt_cv_file_magic_cmd='$OBJDUMP -f'
10536 fi
10537 ;;
10538
cristy0c60a692010-11-04 01:09:47 +000010539cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010540 # use the weaker test based on 'objdump'. See mingw*.
10541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10542 lt_cv_file_magic_cmd='$OBJDUMP -f'
10543 ;;
10544
10545darwin* | rhapsody*)
10546 lt_cv_deplibs_check_method=pass_all
10547 ;;
10548
10549freebsd* | dragonfly*)
10550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10551 case $host_cpu in
10552 i*86 )
10553 # Not sure whether the presence of OpenBSD here was a mistake.
10554 # Let's accept both of them until this is cleared up.
10555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10556 lt_cv_file_magic_cmd=/usr/bin/file
10557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10558 ;;
10559 esac
10560 else
10561 lt_cv_deplibs_check_method=pass_all
10562 fi
10563 ;;
10564
10565gnu*)
10566 lt_cv_deplibs_check_method=pass_all
10567 ;;
10568
cristy0c60a692010-11-04 01:09:47 +000010569haiku*)
10570 lt_cv_deplibs_check_method=pass_all
10571 ;;
10572
cristy73bd4a52010-10-05 11:24:23 +000010573hpux10.20* | hpux11*)
10574 lt_cv_file_magic_cmd=/usr/bin/file
10575 case $host_cpu in
10576 ia64*)
10577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10579 ;;
10580 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010581 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 +000010582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10583 ;;
10584 *)
cristy0c60a692010-11-04 01:09:47 +000010585 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 +000010586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10587 ;;
10588 esac
10589 ;;
10590
10591interix[3-9]*)
10592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10594 ;;
10595
10596irix5* | irix6* | nonstopux*)
10597 case $LD in
10598 *-32|*"-32 ") libmagic=32-bit;;
10599 *-n32|*"-n32 ") libmagic=N32;;
10600 *-64|*"-64 ") libmagic=64-bit;;
10601 *) libmagic=never-match;;
10602 esac
10603 lt_cv_deplibs_check_method=pass_all
10604 ;;
10605
cristy99bd5232011-12-07 14:38:20 +000010606# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000010607linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010608 lt_cv_deplibs_check_method=pass_all
10609 ;;
10610
10611netbsd*)
10612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10614 else
10615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10616 fi
10617 ;;
10618
10619newos6*)
10620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10621 lt_cv_file_magic_cmd=/usr/bin/file
10622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10623 ;;
10624
10625*nto* | *qnx*)
10626 lt_cv_deplibs_check_method=pass_all
10627 ;;
10628
10629openbsd*)
10630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10632 else
10633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10634 fi
10635 ;;
10636
10637osf3* | osf4* | osf5*)
10638 lt_cv_deplibs_check_method=pass_all
10639 ;;
10640
10641rdos*)
10642 lt_cv_deplibs_check_method=pass_all
10643 ;;
10644
10645solaris*)
10646 lt_cv_deplibs_check_method=pass_all
10647 ;;
10648
10649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10650 lt_cv_deplibs_check_method=pass_all
10651 ;;
10652
10653sysv4 | sysv4.3*)
10654 case $host_vendor in
10655 motorola)
10656 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]'
10657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10658 ;;
10659 ncr)
10660 lt_cv_deplibs_check_method=pass_all
10661 ;;
10662 sequent)
10663 lt_cv_file_magic_cmd='/bin/file'
10664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10665 ;;
10666 sni)
10667 lt_cv_file_magic_cmd='/bin/file'
10668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10669 lt_cv_file_magic_test_file=/lib/libc.so
10670 ;;
10671 siemens)
10672 lt_cv_deplibs_check_method=pass_all
10673 ;;
10674 pc)
10675 lt_cv_deplibs_check_method=pass_all
10676 ;;
10677 esac
10678 ;;
10679
10680tpf*)
10681 lt_cv_deplibs_check_method=pass_all
10682 ;;
10683esac
10684
10685fi
10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10687$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010688
10689file_magic_glob=
10690want_nocaseglob=no
10691if test "$build" = "$host"; then
10692 case $host_os in
10693 mingw* | pw32*)
10694 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10695 want_nocaseglob=yes
10696 else
10697 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10698 fi
10699 ;;
10700 esac
10701fi
10702
cristy73bd4a52010-10-05 11:24:23 +000010703file_magic_cmd=$lt_cv_file_magic_cmd
10704deplibs_check_method=$lt_cv_deplibs_check_method
10705test -z "$deplibs_check_method" && deplibs_check_method=unknown
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
cristyda16f162011-02-19 23:52:17 +000010718
10719
10720
10721
10722
10723
10724
10725
10726
10727
cristy73bd4a52010-10-05 11:24:23 +000010728if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010729 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10730set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010733if ${ac_cv_prog_DLLTOOL+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 if test -n "$DLLTOOL"; then
10737 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751 done
10752IFS=$as_save_IFS
10753
10754fi
10755fi
10756DLLTOOL=$ac_cv_prog_DLLTOOL
10757if test -n "$DLLTOOL"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10759$as_echo "$DLLTOOL" >&6; }
10760else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762$as_echo "no" >&6; }
10763fi
10764
10765
10766fi
10767if test -z "$ac_cv_prog_DLLTOOL"; then
10768 ac_ct_DLLTOOL=$DLLTOOL
10769 # Extract the first word of "dlltool", so it can be a program name with args.
10770set dummy dlltool; ac_word=$2
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10772$as_echo_n "checking for $ac_word... " >&6; }
10773if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775else
10776 if test -n "$ac_ct_DLLTOOL"; then
10777 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10778else
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790done
10791 done
10792IFS=$as_save_IFS
10793
10794fi
10795fi
10796ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10797if test -n "$ac_ct_DLLTOOL"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10799$as_echo "$ac_ct_DLLTOOL" >&6; }
10800else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802$as_echo "no" >&6; }
10803fi
10804
10805 if test "x$ac_ct_DLLTOOL" = x; then
10806 DLLTOOL="false"
10807 else
10808 case $cross_compiling:$ac_tool_warned in
10809yes:)
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10812ac_tool_warned=yes ;;
10813esac
10814 DLLTOOL=$ac_ct_DLLTOOL
10815 fi
10816else
10817 DLLTOOL="$ac_cv_prog_DLLTOOL"
10818fi
10819
10820test -z "$DLLTOOL" && DLLTOOL=dlltool
10821
10822
10823
10824
10825
10826
10827
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10829$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10830if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832else
10833 lt_cv_sharedlib_from_linklib_cmd='unknown'
10834
10835case $host_os in
10836cygwin* | mingw* | pw32* | cegcc*)
10837 # two different shell functions defined in ltmain.sh
10838 # decide which to use based on capabilities of $DLLTOOL
10839 case `$DLLTOOL --help 2>&1` in
10840 *--identify-strict*)
10841 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10842 ;;
10843 *)
10844 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10845 ;;
10846 esac
10847 ;;
10848*)
10849 # fallback: assume linklib IS sharedlib
10850 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10851 ;;
10852esac
10853
10854fi
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10856$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10857sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10858test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10859
10860
10861
10862
10863
10864
10865
10866if test -n "$ac_tool_prefix"; then
10867 for ac_prog in ar
10868 do
10869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872$as_echo_n "checking for $ac_word... " >&6; }
10873if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010874 $as_echo_n "(cached) " >&6
10875else
10876 if test -n "$AR"; then
10877 ac_cv_prog_AR="$AR" # Let the user override the test.
10878else
10879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880for as_dir in $PATH
10881do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 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 +000010886 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10889 fi
10890done
10891 done
10892IFS=$as_save_IFS
10893
10894fi
10895fi
10896AR=$ac_cv_prog_AR
10897if test -n "$AR"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10899$as_echo "$AR" >&6; }
10900else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
10903fi
10904
10905
cristyda16f162011-02-19 23:52:17 +000010906 test -n "$AR" && break
10907 done
cristy73bd4a52010-10-05 11:24:23 +000010908fi
cristyda16f162011-02-19 23:52:17 +000010909if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010910 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010911 for ac_prog in ar
10912do
10913 # Extract the first word of "$ac_prog", so it can be a program name with args.
10914set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010917if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010918 $as_echo_n "(cached) " >&6
10919else
10920 if test -n "$ac_ct_AR"; then
10921 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 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 +000010930 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935 done
10936IFS=$as_save_IFS
10937
10938fi
10939fi
10940ac_ct_AR=$ac_cv_prog_ac_ct_AR
10941if test -n "$ac_ct_AR"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10943$as_echo "$ac_ct_AR" >&6; }
10944else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947fi
10948
cristyda16f162011-02-19 23:52:17 +000010949
10950 test -n "$ac_ct_AR" && break
10951done
10952
cristy73bd4a52010-10-05 11:24:23 +000010953 if test "x$ac_ct_AR" = x; then
10954 AR="false"
10955 else
10956 case $cross_compiling:$ac_tool_warned in
10957yes:)
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10960ac_tool_warned=yes ;;
10961esac
10962 AR=$ac_ct_AR
10963 fi
cristy73bd4a52010-10-05 11:24:23 +000010964fi
10965
cristyda16f162011-02-19 23:52:17 +000010966: ${AR=ar}
10967: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
cristyda16f162011-02-19 23:52:17 +000010979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10980$as_echo_n "checking for archiver @FILE support... " >&6; }
10981if ${lt_cv_ar_at_file+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983else
10984 lt_cv_ar_at_file=no
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986/* end confdefs.h. */
10987
10988int
10989main ()
10990{
10991
10992 ;
10993 return 0;
10994}
10995_ACEOF
10996if ac_fn_c_try_compile "$LINENO"; then :
10997 echo conftest.$ac_objext > conftest.lst
10998 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11000 (eval $lt_ar_try) 2>&5
11001 ac_status=$?
11002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11003 test $ac_status = 0; }
11004 if test "$ac_status" -eq 0; then
11005 # Ensure the archiver fails upon bogus file names.
11006 rm -f conftest.$ac_objext libconftest.a
11007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11008 (eval $lt_ar_try) 2>&5
11009 ac_status=$?
11010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11011 test $ac_status = 0; }
11012 if test "$ac_status" -ne 0; then
11013 lt_cv_ar_at_file=@
11014 fi
11015 fi
11016 rm -f conftest.* libconftest.a
11017
11018fi
11019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11023$as_echo "$lt_cv_ar_at_file" >&6; }
11024
11025if test "x$lt_cv_ar_at_file" = xno; then
11026 archiver_list_spec=
11027else
11028 archiver_list_spec=$lt_cv_ar_at_file
11029fi
11030
11031
11032
11033
11034
11035
11036
cristy73bd4a52010-10-05 11:24:23 +000011037if test -n "$ac_tool_prefix"; then
11038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11039set dummy ${ac_tool_prefix}strip; ac_word=$2
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011042if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011043 $as_echo_n "(cached) " >&6
11044else
11045 if test -n "$STRIP"; then
11046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11047else
11048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059done
11060 done
11061IFS=$as_save_IFS
11062
11063fi
11064fi
11065STRIP=$ac_cv_prog_STRIP
11066if test -n "$STRIP"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11068$as_echo "$STRIP" >&6; }
11069else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
11072fi
11073
11074
11075fi
11076if test -z "$ac_cv_prog_STRIP"; then
11077 ac_ct_STRIP=$STRIP
11078 # Extract the first word of "strip", so it can be a program name with args.
11079set dummy strip; ac_word=$2
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011082if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011083 $as_echo_n "(cached) " >&6
11084else
11085 if test -n "$ac_ct_STRIP"; then
11086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11095 ac_cv_prog_ac_ct_STRIP="strip"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099done
11100 done
11101IFS=$as_save_IFS
11102
11103fi
11104fi
11105ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11106if test -n "$ac_ct_STRIP"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11108$as_echo "$ac_ct_STRIP" >&6; }
11109else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111$as_echo "no" >&6; }
11112fi
11113
11114 if test "x$ac_ct_STRIP" = x; then
11115 STRIP=":"
11116 else
11117 case $cross_compiling:$ac_tool_warned in
11118yes:)
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11121ac_tool_warned=yes ;;
11122esac
11123 STRIP=$ac_ct_STRIP
11124 fi
11125else
11126 STRIP="$ac_cv_prog_STRIP"
11127fi
11128
11129test -z "$STRIP" && STRIP=:
11130
11131
11132
11133
11134
11135
11136if test -n "$ac_tool_prefix"; then
11137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11138set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011141if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011142 $as_echo_n "(cached) " >&6
11143else
11144 if test -n "$RANLIB"; then
11145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11146else
11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11157 fi
11158done
11159 done
11160IFS=$as_save_IFS
11161
11162fi
11163fi
11164RANLIB=$ac_cv_prog_RANLIB
11165if test -n "$RANLIB"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11167$as_echo "$RANLIB" >&6; }
11168else
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170$as_echo "no" >&6; }
11171fi
11172
11173
11174fi
11175if test -z "$ac_cv_prog_RANLIB"; then
11176 ac_ct_RANLIB=$RANLIB
11177 # Extract the first word of "ranlib", so it can be a program name with args.
11178set dummy ranlib; ac_word=$2
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011181if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011182 $as_echo_n "(cached) " >&6
11183else
11184 if test -n "$ac_ct_RANLIB"; then
11185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_ac_ct_RANLIB="ranlib"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198done
11199 done
11200IFS=$as_save_IFS
11201
11202fi
11203fi
11204ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11205if test -n "$ac_ct_RANLIB"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11207$as_echo "$ac_ct_RANLIB" >&6; }
11208else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210$as_echo "no" >&6; }
11211fi
11212
11213 if test "x$ac_ct_RANLIB" = x; then
11214 RANLIB=":"
11215 else
11216 case $cross_compiling:$ac_tool_warned in
11217yes:)
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11220ac_tool_warned=yes ;;
11221esac
11222 RANLIB=$ac_ct_RANLIB
11223 fi
11224else
11225 RANLIB="$ac_cv_prog_RANLIB"
11226fi
11227
11228test -z "$RANLIB" && RANLIB=:
11229
11230
11231
11232
11233
11234
11235# Determine commands to create old-style static archives.
11236old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11237old_postinstall_cmds='chmod 644 $oldlib'
11238old_postuninstall_cmds=
11239
11240if test -n "$RANLIB"; then
11241 case $host_os in
11242 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011243 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011244 ;;
11245 *)
cristy99bd5232011-12-07 14:38:20 +000011246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011247 ;;
11248 esac
cristy99bd5232011-12-07 14:38:20 +000011249 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011250fi
11251
cristy0c60a692010-11-04 01:09:47 +000011252case $host_os in
11253 darwin*)
11254 lock_old_archive_extraction=yes ;;
11255 *)
11256 lock_old_archive_extraction=no ;;
11257esac
11258
11259
11260
11261
11262
11263
cristy73bd4a52010-10-05 11:24:23 +000011264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297# If no C compiler was specified, use CC.
11298LTCC=${LTCC-"$CC"}
11299
11300# If no C compiler flags were specified, use CFLAGS.
11301LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11302
11303# Allow CC to be a program name with arguments.
11304compiler=$CC
11305
11306
11307# Check for command to grab the raw symbol name followed by C symbol from nm.
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11309$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011310if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011311 $as_echo_n "(cached) " >&6
11312else
11313
11314# These are sane defaults that work on at least a few old systems.
11315# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11316
11317# Character class describing NM global symbol codes.
11318symcode='[BCDEGRST]'
11319
11320# Regexp to match symbols that can be accessed directly from C.
11321sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11322
11323# Define system-specific variables.
11324case $host_os in
11325aix*)
11326 symcode='[BCDT]'
11327 ;;
11328cygwin* | mingw* | pw32* | cegcc*)
11329 symcode='[ABCDGISTW]'
11330 ;;
11331hpux*)
11332 if test "$host_cpu" = ia64; then
11333 symcode='[ABCDEGRST]'
11334 fi
11335 ;;
11336irix* | nonstopux*)
11337 symcode='[BCDEGRST]'
11338 ;;
11339osf*)
11340 symcode='[BCDEGQRST]'
11341 ;;
11342solaris*)
11343 symcode='[BDRT]'
11344 ;;
11345sco3.2v5*)
11346 symcode='[DT]'
11347 ;;
11348sysv4.2uw2*)
11349 symcode='[DT]'
11350 ;;
11351sysv5* | sco5v6* | unixware* | OpenUNIX*)
11352 symcode='[ABDT]'
11353 ;;
11354sysv4)
11355 symcode='[DFNSTU]'
11356 ;;
11357esac
11358
11359# If we're using GNU nm, then use its standard symbol codes.
11360case `$NM -V 2>&1` in
11361*GNU* | *'with BFD'*)
11362 symcode='[ABCDGIRSTW]' ;;
11363esac
11364
11365# Transform an extracted symbol line into a proper C declaration.
11366# Some systems (esp. on ia64) link data and code symbols differently,
11367# so use this general approach.
11368lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11369
11370# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011371lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11372lt_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 +000011373
11374# Handle CRLF in mingw tool chain
11375opt_cr=
11376case $build_os in
11377mingw*)
11378 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11379 ;;
11380esac
11381
11382# Try without a prefix underscore, then with it.
11383for ac_symprfx in "" "_"; do
11384
11385 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11386 symxfrm="\\1 $ac_symprfx\\2 \\2"
11387
11388 # Write the raw and C identifiers.
11389 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11390 # Fake it for dumpbin and say T for any non-static function
11391 # and D for any global variable.
11392 # Also find C++ and __fastcall symbols from MSVC++,
11393 # which start with @ or ?.
11394 lt_cv_sys_global_symbol_pipe="$AWK '"\
11395" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011396" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011397" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11398" \$ 0!~/External *\|/{next};"\
11399" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11400" {if(hide[section]) next};"\
11401" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11402" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11403" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11404" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11405" ' prfx=^$ac_symprfx"
11406 else
11407 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11408 fi
cristyda16f162011-02-19 23:52:17 +000011409 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011410
11411 # Check to see that the pipe works correctly.
11412 pipe_works=no
11413
11414 rm -f conftest*
11415 cat > conftest.$ac_ext <<_LT_EOF
11416#ifdef __cplusplus
11417extern "C" {
11418#endif
11419char nm_test_var;
11420void nm_test_func(void);
11421void nm_test_func(void){}
11422#ifdef __cplusplus
11423}
11424#endif
11425int main(){nm_test_var='a';nm_test_func();return(0);}
11426_LT_EOF
11427
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 # Now try to grab the symbols.
11434 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11436 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011437 ac_status=$?
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; } && test -s "$nlist"; then
11440 # Try sorting and uniquifying the output.
11441 if sort "$nlist" | uniq > "$nlist"T; then
11442 mv -f "$nlist"T "$nlist"
11443 else
11444 rm -f "$nlist"T
11445 fi
11446
11447 # Make sure that we snagged all the symbols we need.
11448 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11449 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11450 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011451/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11452#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11453/* DATA imports from DLLs on WIN32 con't be const, because runtime
11454 relocations are performed -- see ld's documentation on pseudo-relocs. */
11455# define LT_DLSYM_CONST
11456#elif defined(__osf__)
11457/* This system does not cope well with relocations in const data. */
11458# define LT_DLSYM_CONST
11459#else
11460# define LT_DLSYM_CONST const
11461#endif
11462
cristy73bd4a52010-10-05 11:24:23 +000011463#ifdef __cplusplus
11464extern "C" {
11465#endif
11466
11467_LT_EOF
11468 # Now generate the symbol file.
11469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11470
11471 cat <<_LT_EOF >> conftest.$ac_ext
11472
11473/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011474LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011475 const char *name;
11476 void *address;
11477}
11478lt__PROGRAM__LTX_preloaded_symbols[] =
11479{
11480 { "@PROGRAM@", (void *) 0 },
11481_LT_EOF
11482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11483 cat <<\_LT_EOF >> conftest.$ac_ext
11484 {0, (void *) 0}
11485};
11486
11487/* This works around a problem in FreeBSD linker */
11488#ifdef FREEBSD_WORKAROUND
11489static const void *lt_preloaded_setup() {
11490 return lt__PROGRAM__LTX_preloaded_symbols;
11491}
11492#endif
11493
11494#ifdef __cplusplus
11495}
11496#endif
11497_LT_EOF
11498 # Now try linking the two files.
11499 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011500 lt_globsym_save_LIBS=$LIBS
11501 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011502 LIBS="conftstm.$ac_objext"
11503 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11505 (eval $ac_link) 2>&5
11506 ac_status=$?
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11509 pipe_works=yes
11510 fi
cristyda16f162011-02-19 23:52:17 +000011511 LIBS=$lt_globsym_save_LIBS
11512 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011513 else
11514 echo "cannot find nm_test_func in $nlist" >&5
11515 fi
11516 else
11517 echo "cannot find nm_test_var in $nlist" >&5
11518 fi
11519 else
11520 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11521 fi
11522 else
11523 echo "$progname: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 fi
11526 rm -rf conftest* conftst*
11527
11528 # Do not use the global_symbol_pipe unless it works.
11529 if test "$pipe_works" = yes; then
11530 break
11531 else
11532 lt_cv_sys_global_symbol_pipe=
11533 fi
11534done
11535
11536fi
11537
11538if test -z "$lt_cv_sys_global_symbol_pipe"; then
11539 lt_cv_sys_global_symbol_to_cdecl=
11540fi
11541if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11543$as_echo "failed" >&6; }
11544else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11546$as_echo "ok" >&6; }
11547fi
11548
cristyda16f162011-02-19 23:52:17 +000011549# Response file support.
11550if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11551 nm_file_list_spec='@'
11552elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11553 nm_file_list_spec='@'
11554fi
cristy73bd4a52010-10-05 11:24:23 +000011555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
cristyda16f162011-02-19 23:52:17 +000011576
11577
11578
11579
11580
11581
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11583$as_echo_n "checking for sysroot... " >&6; }
11584
11585# Check whether --with-sysroot was given.
11586if test "${with_sysroot+set}" = set; then :
11587 withval=$with_sysroot;
11588else
11589 with_sysroot=no
11590fi
11591
11592
11593lt_sysroot=
11594case ${with_sysroot} in #(
11595 yes)
11596 if test "$GCC" = yes; then
11597 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11598 fi
11599 ;; #(
11600 /*)
11601 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11602 ;; #(
11603 no|'')
11604 ;; #(
11605 *)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11607$as_echo "${with_sysroot}" >&6; }
11608 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11609 ;;
11610esac
11611
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11613$as_echo "${lt_sysroot:-no}" >&6; }
11614
11615
11616
11617
11618
cristy73bd4a52010-10-05 11:24:23 +000011619# Check whether --enable-libtool-lock was given.
11620if test "${enable_libtool_lock+set}" = set; then :
11621 enableval=$enable_libtool_lock;
11622fi
11623
11624test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11625
11626# Some flags need to be propagated to the compiler or linker for good
11627# libtool support.
11628case $host in
11629ia64-*-hpux*)
11630 # Find out which ABI we are using.
11631 echo 'int i;' > conftest.$ac_ext
11632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11633 (eval $ac_compile) 2>&5
11634 ac_status=$?
11635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11636 test $ac_status = 0; }; then
11637 case `/usr/bin/file conftest.$ac_objext` in
11638 *ELF-32*)
11639 HPUX_IA64_MODE="32"
11640 ;;
11641 *ELF-64*)
11642 HPUX_IA64_MODE="64"
11643 ;;
11644 esac
11645 fi
11646 rm -rf conftest*
11647 ;;
11648*-*-irix6*)
11649 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011650 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11652 (eval $ac_compile) 2>&5
11653 ac_status=$?
11654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11655 test $ac_status = 0; }; then
11656 if test "$lt_cv_prog_gnu_ld" = yes; then
11657 case `/usr/bin/file conftest.$ac_objext` in
11658 *32-bit*)
11659 LD="${LD-ld} -melf32bsmip"
11660 ;;
11661 *N32*)
11662 LD="${LD-ld} -melf32bmipn32"
11663 ;;
11664 *64-bit*)
11665 LD="${LD-ld} -melf64bmip"
11666 ;;
11667 esac
11668 else
11669 case `/usr/bin/file conftest.$ac_objext` in
11670 *32-bit*)
11671 LD="${LD-ld} -32"
11672 ;;
11673 *N32*)
11674 LD="${LD-ld} -n32"
11675 ;;
11676 *64-bit*)
11677 LD="${LD-ld} -64"
11678 ;;
11679 esac
11680 fi
11681 fi
11682 rm -rf conftest*
11683 ;;
11684
11685x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11686s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11687 # Find out which ABI we are using.
11688 echo 'int i;' > conftest.$ac_ext
11689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11690 (eval $ac_compile) 2>&5
11691 ac_status=$?
11692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11693 test $ac_status = 0; }; then
11694 case `/usr/bin/file conftest.o` in
11695 *32-bit*)
11696 case $host in
11697 x86_64-*kfreebsd*-gnu)
11698 LD="${LD-ld} -m elf_i386_fbsd"
11699 ;;
11700 x86_64-*linux*)
11701 LD="${LD-ld} -m elf_i386"
11702 ;;
11703 ppc64-*linux*|powerpc64-*linux*)
11704 LD="${LD-ld} -m elf32ppclinux"
11705 ;;
11706 s390x-*linux*)
11707 LD="${LD-ld} -m elf_s390"
11708 ;;
11709 sparc64-*linux*)
11710 LD="${LD-ld} -m elf32_sparc"
11711 ;;
11712 esac
11713 ;;
11714 *64-bit*)
11715 case $host in
11716 x86_64-*kfreebsd*-gnu)
11717 LD="${LD-ld} -m elf_x86_64_fbsd"
11718 ;;
11719 x86_64-*linux*)
11720 LD="${LD-ld} -m elf_x86_64"
11721 ;;
11722 ppc*-*linux*|powerpc*-*linux*)
11723 LD="${LD-ld} -m elf64ppc"
11724 ;;
11725 s390*-*linux*|s390*-*tpf*)
11726 LD="${LD-ld} -m elf64_s390"
11727 ;;
11728 sparc*-*linux*)
11729 LD="${LD-ld} -m elf64_sparc"
11730 ;;
11731 esac
11732 ;;
11733 esac
11734 fi
11735 rm -rf conftest*
11736 ;;
11737
11738*-*-sco3.2v5*)
11739 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11740 SAVE_CFLAGS="$CFLAGS"
11741 CFLAGS="$CFLAGS -belf"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11743$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011744if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011745 $as_echo_n "(cached) " >&6
11746else
11747 ac_ext=c
11748ac_cpp='$CPP $CPPFLAGS'
11749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11751ac_compiler_gnu=$ac_cv_c_compiler_gnu
11752
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754/* end confdefs.h. */
11755
11756int
11757main ()
11758{
11759
11760 ;
11761 return 0;
11762}
11763_ACEOF
11764if ac_fn_c_try_link "$LINENO"; then :
11765 lt_cv_cc_needs_belf=yes
11766else
11767 lt_cv_cc_needs_belf=no
11768fi
11769rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 ac_ext=c
11772ac_cpp='$CPP $CPPFLAGS'
11773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775ac_compiler_gnu=$ac_cv_c_compiler_gnu
11776
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11779$as_echo "$lt_cv_cc_needs_belf" >&6; }
11780 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11781 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11782 CFLAGS="$SAVE_CFLAGS"
11783 fi
11784 ;;
cristy99bd5232011-12-07 14:38:20 +000011785*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011786 # Find out which ABI we are using.
11787 echo 'int i;' > conftest.$ac_ext
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11789 (eval $ac_compile) 2>&5
11790 ac_status=$?
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; }; then
11793 case `/usr/bin/file conftest.o` in
11794 *64-bit*)
11795 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000011796 yes*)
11797 case $host in
11798 i?86-*-solaris*)
11799 LD="${LD-ld} -m elf_x86_64"
11800 ;;
11801 sparc*-*-solaris*)
11802 LD="${LD-ld} -m elf64_sparc"
11803 ;;
11804 esac
11805 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11806 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11807 LD="${LD-ld}_sol2"
11808 fi
11809 ;;
cristy73bd4a52010-10-05 11:24:23 +000011810 *)
11811 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11812 LD="${LD-ld} -64"
11813 fi
11814 ;;
11815 esac
11816 ;;
11817 esac
11818 fi
11819 rm -rf conftest*
11820 ;;
11821esac
11822
11823need_locks="$enable_libtool_lock"
11824
cristyda16f162011-02-19 23:52:17 +000011825if test -n "$ac_tool_prefix"; then
11826 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11827set dummy ${ac_tool_prefix}mt; ac_word=$2
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829$as_echo_n "checking for $ac_word... " >&6; }
11830if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832else
11833 if test -n "$MANIFEST_TOOL"; then
11834 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11835else
11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11843 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 break 2
11846 fi
11847done
11848 done
11849IFS=$as_save_IFS
11850
11851fi
11852fi
11853MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11854if test -n "$MANIFEST_TOOL"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11856$as_echo "$MANIFEST_TOOL" >&6; }
11857else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859$as_echo "no" >&6; }
11860fi
11861
11862
11863fi
11864if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11865 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11866 # Extract the first word of "mt", so it can be a program name with args.
11867set dummy mt; ac_word=$2
11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869$as_echo_n "checking for $ac_word... " >&6; }
11870if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872else
11873 if test -n "$ac_ct_MANIFEST_TOOL"; then
11874 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11875else
11876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877for as_dir in $PATH
11878do
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11883 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11886 fi
11887done
11888 done
11889IFS=$as_save_IFS
11890
11891fi
11892fi
11893ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11894if test -n "$ac_ct_MANIFEST_TOOL"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11896$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11897else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899$as_echo "no" >&6; }
11900fi
11901
11902 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11903 MANIFEST_TOOL=":"
11904 else
11905 case $cross_compiling:$ac_tool_warned in
11906yes:)
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11909ac_tool_warned=yes ;;
11910esac
11911 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11912 fi
11913else
11914 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11915fi
11916
11917test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11919$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11920if ${lt_cv_path_mainfest_tool+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922else
11923 lt_cv_path_mainfest_tool=no
11924 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11925 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11926 cat conftest.err >&5
11927 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11928 lt_cv_path_mainfest_tool=yes
11929 fi
11930 rm -f conftest*
11931fi
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11933$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11934if test "x$lt_cv_path_mainfest_tool" != xyes; then
11935 MANIFEST_TOOL=:
11936fi
11937
11938
11939
11940
11941
cristy73bd4a52010-10-05 11:24:23 +000011942
11943 case $host_os in
11944 rhapsody* | darwin*)
11945 if test -n "$ac_tool_prefix"; then
11946 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11947set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011950if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011951 $as_echo_n "(cached) " >&6
11952else
11953 if test -n "$DSYMUTIL"; then
11954 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11963 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967done
11968 done
11969IFS=$as_save_IFS
11970
11971fi
11972fi
11973DSYMUTIL=$ac_cv_prog_DSYMUTIL
11974if test -n "$DSYMUTIL"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11976$as_echo "$DSYMUTIL" >&6; }
11977else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980fi
11981
11982
11983fi
11984if test -z "$ac_cv_prog_DSYMUTIL"; then
11985 ac_ct_DSYMUTIL=$DSYMUTIL
11986 # Extract the first word of "dsymutil", so it can be a program name with args.
11987set dummy dsymutil; ac_word=$2
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011990if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011991 $as_echo_n "(cached) " >&6
11992else
11993 if test -n "$ac_ct_DSYMUTIL"; then
11994 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11995else
11996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997for as_dir in $PATH
11998do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12006 fi
12007done
12008 done
12009IFS=$as_save_IFS
12010
12011fi
12012fi
12013ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12014if test -n "$ac_ct_DSYMUTIL"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12016$as_echo "$ac_ct_DSYMUTIL" >&6; }
12017else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019$as_echo "no" >&6; }
12020fi
12021
12022 if test "x$ac_ct_DSYMUTIL" = x; then
12023 DSYMUTIL=":"
12024 else
12025 case $cross_compiling:$ac_tool_warned in
12026yes:)
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12029ac_tool_warned=yes ;;
12030esac
12031 DSYMUTIL=$ac_ct_DSYMUTIL
12032 fi
12033else
12034 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12035fi
12036
12037 if test -n "$ac_tool_prefix"; then
12038 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12039set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012042if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012043 $as_echo_n "(cached) " >&6
12044else
12045 if test -n "$NMEDIT"; then
12046 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12047else
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12055 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059done
12060 done
12061IFS=$as_save_IFS
12062
12063fi
12064fi
12065NMEDIT=$ac_cv_prog_NMEDIT
12066if test -n "$NMEDIT"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12068$as_echo "$NMEDIT" >&6; }
12069else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
12072fi
12073
12074
12075fi
12076if test -z "$ac_cv_prog_NMEDIT"; then
12077 ac_ct_NMEDIT=$NMEDIT
12078 # Extract the first word of "nmedit", so it can be a program name with args.
12079set dummy nmedit; ac_word=$2
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012082if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012083 $as_echo_n "(cached) " >&6
12084else
12085 if test -n "$ac_ct_NMEDIT"; then
12086 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12087else
12088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089for as_dir in $PATH
12090do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12095 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097 break 2
12098 fi
12099done
12100 done
12101IFS=$as_save_IFS
12102
12103fi
12104fi
12105ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12106if test -n "$ac_ct_NMEDIT"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12108$as_echo "$ac_ct_NMEDIT" >&6; }
12109else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
12112fi
12113
12114 if test "x$ac_ct_NMEDIT" = x; then
12115 NMEDIT=":"
12116 else
12117 case $cross_compiling:$ac_tool_warned in
12118yes:)
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12121ac_tool_warned=yes ;;
12122esac
12123 NMEDIT=$ac_ct_NMEDIT
12124 fi
12125else
12126 NMEDIT="$ac_cv_prog_NMEDIT"
12127fi
12128
12129 if test -n "$ac_tool_prefix"; then
12130 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12131set dummy ${ac_tool_prefix}lipo; ac_word=$2
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012134if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012135 $as_echo_n "(cached) " >&6
12136else
12137 if test -n "$LIPO"; then
12138 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12139else
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149 break 2
12150 fi
12151done
12152 done
12153IFS=$as_save_IFS
12154
12155fi
12156fi
12157LIPO=$ac_cv_prog_LIPO
12158if test -n "$LIPO"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12160$as_echo "$LIPO" >&6; }
12161else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
12164fi
12165
12166
12167fi
12168if test -z "$ac_cv_prog_LIPO"; then
12169 ac_ct_LIPO=$LIPO
12170 # Extract the first word of "lipo", so it can be a program name with args.
12171set dummy lipo; ac_word=$2
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012174if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012175 $as_echo_n "(cached) " >&6
12176else
12177 if test -n "$ac_ct_LIPO"; then
12178 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187 ac_cv_prog_ac_ct_LIPO="lipo"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 break 2
12190 fi
12191done
12192 done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12198if test -n "$ac_ct_LIPO"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12200$as_echo "$ac_ct_LIPO" >&6; }
12201else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206 if test "x$ac_ct_LIPO" = x; then
12207 LIPO=":"
12208 else
12209 case $cross_compiling:$ac_tool_warned in
12210yes:)
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12213ac_tool_warned=yes ;;
12214esac
12215 LIPO=$ac_ct_LIPO
12216 fi
12217else
12218 LIPO="$ac_cv_prog_LIPO"
12219fi
12220
12221 if test -n "$ac_tool_prefix"; then
12222 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12223set dummy ${ac_tool_prefix}otool; ac_word=$2
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012226if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012227 $as_echo_n "(cached) " >&6
12228else
12229 if test -n "$OTOOL"; then
12230 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12231else
12232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233for as_dir in $PATH
12234do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243done
12244 done
12245IFS=$as_save_IFS
12246
12247fi
12248fi
12249OTOOL=$ac_cv_prog_OTOOL
12250if test -n "$OTOOL"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12252$as_echo "$OTOOL" >&6; }
12253else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
12256fi
12257
12258
12259fi
12260if test -z "$ac_cv_prog_OTOOL"; then
12261 ac_ct_OTOOL=$OTOOL
12262 # Extract the first word of "otool", so it can be a program name with args.
12263set dummy otool; ac_word=$2
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012266if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012267 $as_echo_n "(cached) " >&6
12268else
12269 if test -n "$ac_ct_OTOOL"; then
12270 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12271else
12272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $PATH
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_prog_ac_ct_OTOOL="otool"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12282 fi
12283done
12284 done
12285IFS=$as_save_IFS
12286
12287fi
12288fi
12289ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12290if test -n "$ac_ct_OTOOL"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12292$as_echo "$ac_ct_OTOOL" >&6; }
12293else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298 if test "x$ac_ct_OTOOL" = x; then
12299 OTOOL=":"
12300 else
12301 case $cross_compiling:$ac_tool_warned in
12302yes:)
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12305ac_tool_warned=yes ;;
12306esac
12307 OTOOL=$ac_ct_OTOOL
12308 fi
12309else
12310 OTOOL="$ac_cv_prog_OTOOL"
12311fi
12312
12313 if test -n "$ac_tool_prefix"; then
12314 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12315set dummy ${ac_tool_prefix}otool64; ac_word=$2
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012318if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012319 $as_echo_n "(cached) " >&6
12320else
12321 if test -n "$OTOOL64"; then
12322 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12323else
12324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325for as_dir in $PATH
12326do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335done
12336 done
12337IFS=$as_save_IFS
12338
12339fi
12340fi
12341OTOOL64=$ac_cv_prog_OTOOL64
12342if test -n "$OTOOL64"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12344$as_echo "$OTOOL64" >&6; }
12345else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
12348fi
12349
12350
12351fi
12352if test -z "$ac_cv_prog_OTOOL64"; then
12353 ac_ct_OTOOL64=$OTOOL64
12354 # Extract the first word of "otool64", so it can be a program name with args.
12355set dummy otool64; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012358if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012359 $as_echo_n "(cached) " >&6
12360else
12361 if test -n "$ac_ct_OTOOL64"; then
12362 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 ac_cv_prog_ac_ct_OTOOL64="otool64"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375done
12376 done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12382if test -n "$ac_ct_OTOOL64"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12384$as_echo "$ac_ct_OTOOL64" >&6; }
12385else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
12390 if test "x$ac_ct_OTOOL64" = x; then
12391 OTOOL64=":"
12392 else
12393 case $cross_compiling:$ac_tool_warned in
12394yes:)
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12397ac_tool_warned=yes ;;
12398esac
12399 OTOOL64=$ac_ct_OTOOL64
12400 fi
12401else
12402 OTOOL64="$ac_cv_prog_OTOOL64"
12403fi
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12432$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012433if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012434 $as_echo_n "(cached) " >&6
12435else
12436 lt_cv_apple_cc_single_mod=no
12437 if test -z "${LT_MULTI_MODULE}"; then
12438 # By default we will add the -single_module flag. You can override
12439 # by either setting the environment variable LT_MULTI_MODULE
12440 # non-empty at configure time, or by adding -multi_module to the
12441 # link flags.
12442 rm -rf libconftest.dylib*
12443 echo "int foo(void){return 1;}" > conftest.c
12444 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12445-dynamiclib -Wl,-single_module conftest.c" >&5
12446 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12447 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12448 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012449 # If there is a non-empty error log, and "single_module"
12450 # appears in it, assume the flag caused a linker warning
12451 if test -s conftest.err && $GREP single_module conftest.err; then
12452 cat conftest.err >&5
12453 # Otherwise, if the output was created with a 0 exit code from
12454 # the compiler, it worked.
12455 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012456 lt_cv_apple_cc_single_mod=yes
12457 else
12458 cat conftest.err >&5
12459 fi
12460 rm -rf libconftest.dylib*
12461 rm -f conftest.*
12462 fi
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12465$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012466
cristy73bd4a52010-10-05 11:24:23 +000012467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12468$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012469if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012470 $as_echo_n "(cached) " >&6
12471else
12472 lt_cv_ld_exported_symbols_list=no
12473 save_LDFLAGS=$LDFLAGS
12474 echo "_main" > conftest.sym
12475 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477/* end confdefs.h. */
12478
12479int
12480main ()
12481{
12482
12483 ;
12484 return 0;
12485}
12486_ACEOF
12487if ac_fn_c_try_link "$LINENO"; then :
12488 lt_cv_ld_exported_symbols_list=yes
12489else
12490 lt_cv_ld_exported_symbols_list=no
12491fi
12492rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LDFLAGS="$save_LDFLAGS"
12495
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12498$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012499
cristy0c60a692010-11-04 01:09:47 +000012500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12501$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012502if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012503 $as_echo_n "(cached) " >&6
12504else
12505 lt_cv_ld_force_load=no
12506 cat > conftest.c << _LT_EOF
12507int forced_loaded() { return 2;}
12508_LT_EOF
12509 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12510 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12511 echo "$AR cru libconftest.a conftest.o" >&5
12512 $AR cru libconftest.a conftest.o 2>&5
12513 echo "$RANLIB libconftest.a" >&5
12514 $RANLIB libconftest.a 2>&5
12515 cat > conftest.c << _LT_EOF
12516int main() { return 0;}
12517_LT_EOF
12518 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12519 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12520 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012521 if test -s conftest.err && $GREP force_load conftest.err; then
12522 cat conftest.err >&5
12523 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012524 lt_cv_ld_force_load=yes
12525 else
12526 cat conftest.err >&5
12527 fi
12528 rm -f conftest.err libconftest.a conftest conftest.c
12529 rm -rf conftest.dSYM
12530
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12533$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012534 case $host_os in
12535 rhapsody* | darwin1.[012])
12536 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12537 darwin1.*)
12538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12539 darwin*) # darwin 5.x on
12540 # if running on 10.5 or later, the deployment target defaults
12541 # to the OS version, if on x86, and 10.4, the deployment
12542 # target defaults to 10.4. Don't you love it?
12543 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12544 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12546 10.[012]*)
12547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12548 10.*)
12549 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12550 esac
12551 ;;
12552 esac
12553 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12554 _lt_dar_single_mod='$single_module'
12555 fi
12556 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12557 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12558 else
12559 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12560 fi
cristy0c60a692010-11-04 01:09:47 +000012561 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012562 _lt_dsymutil='~$DSYMUTIL $lib || :'
12563 else
12564 _lt_dsymutil=
12565 fi
12566 ;;
12567 esac
12568
12569for ac_header in dlfcn.h
12570do :
12571 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12572"
cristyda16f162011-02-19 23:52:17 +000012573if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012574 cat >>confdefs.h <<_ACEOF
12575#define HAVE_DLFCN_H 1
12576_ACEOF
12577
12578fi
12579
12580done
12581
12582
12583
cristy73bd4a52010-10-05 11:24:23 +000012584
cristyda16f162011-02-19 23:52:17 +000012585func_stripname_cnf ()
12586{
12587 case ${2} in
12588 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12589 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12590 esac
12591} # func_stripname_cnf
12592
12593
12594
cristy73bd4a52010-10-05 11:24:23 +000012595
12596
12597# Set options
12598enable_win32_dll=yes
12599
12600case $host in
cristy0c60a692010-11-04 01:09:47 +000012601*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012602 if test -n "$ac_tool_prefix"; then
12603 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12604set dummy ${ac_tool_prefix}as; ac_word=$2
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012607if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012608 $as_echo_n "(cached) " >&6
12609else
12610 if test -n "$AS"; then
12611 ac_cv_prog_AS="$AS" # Let the user override the test.
12612else
12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620 ac_cv_prog_AS="${ac_tool_prefix}as"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624done
12625 done
12626IFS=$as_save_IFS
12627
12628fi
12629fi
12630AS=$ac_cv_prog_AS
12631if test -n "$AS"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12633$as_echo "$AS" >&6; }
12634else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636$as_echo "no" >&6; }
12637fi
12638
12639
12640fi
12641if test -z "$ac_cv_prog_AS"; then
12642 ac_ct_AS=$AS
12643 # Extract the first word of "as", so it can be a program name with args.
12644set dummy as; ac_word=$2
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012647if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012648 $as_echo_n "(cached) " >&6
12649else
12650 if test -n "$ac_ct_AS"; then
12651 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12652else
12653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654for as_dir in $PATH
12655do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_ac_ct_AS="as"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664done
12665 done
12666IFS=$as_save_IFS
12667
12668fi
12669fi
12670ac_ct_AS=$ac_cv_prog_ac_ct_AS
12671if test -n "$ac_ct_AS"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12673$as_echo "$ac_ct_AS" >&6; }
12674else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
12677fi
12678
12679 if test "x$ac_ct_AS" = x; then
12680 AS="false"
12681 else
12682 case $cross_compiling:$ac_tool_warned in
12683yes:)
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686ac_tool_warned=yes ;;
12687esac
12688 AS=$ac_ct_AS
12689 fi
12690else
12691 AS="$ac_cv_prog_AS"
12692fi
12693
12694 if test -n "$ac_tool_prefix"; then
12695 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12696set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012699if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012700 $as_echo_n "(cached) " >&6
12701else
12702 if test -n "$DLLTOOL"; then
12703 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12704else
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716done
12717 done
12718IFS=$as_save_IFS
12719
12720fi
12721fi
12722DLLTOOL=$ac_cv_prog_DLLTOOL
12723if test -n "$DLLTOOL"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12725$as_echo "$DLLTOOL" >&6; }
12726else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
12729fi
12730
12731
12732fi
12733if test -z "$ac_cv_prog_DLLTOOL"; then
12734 ac_ct_DLLTOOL=$DLLTOOL
12735 # Extract the first word of "dlltool", so it can be a program name with args.
12736set dummy dlltool; ac_word=$2
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012739if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012740 $as_echo_n "(cached) " >&6
12741else
12742 if test -n "$ac_ct_DLLTOOL"; then
12743 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12744else
12745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746for as_dir in $PATH
12747do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12752 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756done
12757 done
12758IFS=$as_save_IFS
12759
12760fi
12761fi
12762ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12763if test -n "$ac_ct_DLLTOOL"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12765$as_echo "$ac_ct_DLLTOOL" >&6; }
12766else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768$as_echo "no" >&6; }
12769fi
12770
12771 if test "x$ac_ct_DLLTOOL" = x; then
12772 DLLTOOL="false"
12773 else
12774 case $cross_compiling:$ac_tool_warned in
12775yes:)
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778ac_tool_warned=yes ;;
12779esac
12780 DLLTOOL=$ac_ct_DLLTOOL
12781 fi
12782else
12783 DLLTOOL="$ac_cv_prog_DLLTOOL"
12784fi
12785
12786 if test -n "$ac_tool_prefix"; then
12787 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12788set dummy ${ac_tool_prefix}objdump; ac_word=$2
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012791if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012792 $as_echo_n "(cached) " >&6
12793else
12794 if test -n "$OBJDUMP"; then
12795 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12796else
12797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798for as_dir in $PATH
12799do
12800 IFS=$as_save_IFS
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 break 2
12807 fi
12808done
12809 done
12810IFS=$as_save_IFS
12811
12812fi
12813fi
12814OBJDUMP=$ac_cv_prog_OBJDUMP
12815if test -n "$OBJDUMP"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12817$as_echo "$OBJDUMP" >&6; }
12818else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820$as_echo "no" >&6; }
12821fi
12822
12823
12824fi
12825if test -z "$ac_cv_prog_OBJDUMP"; then
12826 ac_ct_OBJDUMP=$OBJDUMP
12827 # Extract the first word of "objdump", so it can be a program name with args.
12828set dummy objdump; ac_word=$2
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012831if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012832 $as_echo_n "(cached) " >&6
12833else
12834 if test -n "$ac_ct_OBJDUMP"; then
12835 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12844 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12847 fi
12848done
12849 done
12850IFS=$as_save_IFS
12851
12852fi
12853fi
12854ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12855if test -n "$ac_ct_OBJDUMP"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12857$as_echo "$ac_ct_OBJDUMP" >&6; }
12858else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
12861fi
12862
12863 if test "x$ac_ct_OBJDUMP" = x; then
12864 OBJDUMP="false"
12865 else
12866 case $cross_compiling:$ac_tool_warned in
12867yes:)
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12870ac_tool_warned=yes ;;
12871esac
12872 OBJDUMP=$ac_ct_OBJDUMP
12873 fi
12874else
12875 OBJDUMP="$ac_cv_prog_OBJDUMP"
12876fi
12877
12878 ;;
12879esac
12880
12881test -z "$AS" && AS=as
12882
12883
12884
12885
12886
12887test -z "$DLLTOOL" && DLLTOOL=dlltool
12888
12889
12890
12891
12892
12893test -z "$OBJDUMP" && OBJDUMP=objdump
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903 # Check whether --enable-shared was given.
12904if test "${enable_shared+set}" = set; then :
12905 enableval=$enable_shared; p=${PACKAGE-default}
12906 case $enableval in
12907 yes) enable_shared=yes ;;
12908 no) enable_shared=no ;;
12909 *)
12910 enable_shared=no
12911 # Look at the argument we got. We use all the common list separators.
12912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12913 for pkg in $enableval; do
12914 IFS="$lt_save_ifs"
12915 if test "X$pkg" = "X$p"; then
12916 enable_shared=yes
12917 fi
12918 done
12919 IFS="$lt_save_ifs"
12920 ;;
12921 esac
12922else
12923 enable_shared=yes
12924fi
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 # Check whether --enable-static was given.
12935if test "${enable_static+set}" = set; then :
12936 enableval=$enable_static; p=${PACKAGE-default}
12937 case $enableval in
12938 yes) enable_static=yes ;;
12939 no) enable_static=no ;;
12940 *)
12941 enable_static=no
12942 # Look at the argument we got. We use all the common list separators.
12943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12944 for pkg in $enableval; do
12945 IFS="$lt_save_ifs"
12946 if test "X$pkg" = "X$p"; then
12947 enable_static=yes
12948 fi
12949 done
12950 IFS="$lt_save_ifs"
12951 ;;
12952 esac
12953else
12954 enable_static=yes
12955fi
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966# Check whether --with-pic was given.
12967if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000012968 withval=$with_pic; lt_p=${PACKAGE-default}
12969 case $withval in
12970 yes|no) pic_mode=$withval ;;
12971 *)
12972 pic_mode=default
12973 # Look at the argument we got. We use all the common list separators.
12974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12975 for lt_pkg in $withval; do
12976 IFS="$lt_save_ifs"
12977 if test "X$lt_pkg" = "X$lt_p"; then
12978 pic_mode=yes
12979 fi
12980 done
12981 IFS="$lt_save_ifs"
12982 ;;
12983 esac
cristy73bd4a52010-10-05 11:24:23 +000012984else
12985 pic_mode=default
12986fi
12987
12988
12989test -z "$pic_mode" && pic_mode=default
12990
12991
12992
12993
12994
12995
12996
12997 # Check whether --enable-fast-install was given.
12998if test "${enable_fast_install+set}" = set; then :
12999 enableval=$enable_fast_install; p=${PACKAGE-default}
13000 case $enableval in
13001 yes) enable_fast_install=yes ;;
13002 no) enable_fast_install=no ;;
13003 *)
13004 enable_fast_install=no
13005 # Look at the argument we got. We use all the common list separators.
13006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13007 for pkg in $enableval; do
13008 IFS="$lt_save_ifs"
13009 if test "X$pkg" = "X$p"; then
13010 enable_fast_install=yes
13011 fi
13012 done
13013 IFS="$lt_save_ifs"
13014 ;;
13015 esac
13016else
13017 enable_fast_install=yes
13018fi
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030# This can be used to rebuild libtool when needed
13031LIBTOOL_DEPS="$ltmain"
13032
13033# Always use our own libtool.
13034LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
cristy0c60a692010-11-04 01:09:47 +000013060
cristy99bd5232011-12-07 14:38:20 +000013061
13062
13063
13064
cristy73bd4a52010-10-05 11:24:23 +000013065test -z "$LN_S" && LN_S="ln -s"
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080if test -n "${ZSH_VERSION+set}" ; then
13081 setopt NO_GLOB_SUBST
13082fi
13083
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13085$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013086if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013087 $as_echo_n "(cached) " >&6
13088else
13089 rm -f .libs 2>/dev/null
13090mkdir .libs 2>/dev/null
13091if test -d .libs; then
13092 lt_cv_objdir=.libs
13093else
13094 # MS-DOS does not allow filenames that begin with a dot.
13095 lt_cv_objdir=_libs
13096fi
13097rmdir .libs 2>/dev/null
13098fi
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13100$as_echo "$lt_cv_objdir" >&6; }
13101objdir=$lt_cv_objdir
13102
13103
13104
13105
13106
13107cat >>confdefs.h <<_ACEOF
13108#define LT_OBJDIR "$lt_cv_objdir/"
13109_ACEOF
13110
13111
13112
13113
cristy73bd4a52010-10-05 11:24:23 +000013114case $host_os in
13115aix3*)
13116 # AIX sometimes has problems with the GCC collect2 program. For some
13117 # reason, if we set the COLLECT_NAMES environment variable, the problems
13118 # vanish in a puff of smoke.
13119 if test "X${COLLECT_NAMES+set}" != Xset; then
13120 COLLECT_NAMES=
13121 export COLLECT_NAMES
13122 fi
13123 ;;
13124esac
13125
cristy73bd4a52010-10-05 11:24:23 +000013126# Global variables:
13127ofile=libtool
13128can_build_shared=yes
13129
13130# All known linkers require a `.a' archive for static linking (except MSVC,
13131# which needs '.lib').
13132libext=a
13133
13134with_gnu_ld="$lt_cv_prog_gnu_ld"
13135
13136old_CC="$CC"
13137old_CFLAGS="$CFLAGS"
13138
13139# Set sane defaults for various variables
13140test -z "$CC" && CC=cc
13141test -z "$LTCC" && LTCC=$CC
13142test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13143test -z "$LD" && LD=ld
13144test -z "$ac_objext" && ac_objext=o
13145
13146for cc_temp in $compiler""; do
13147 case $cc_temp in
13148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13150 \-*) ;;
13151 *) break;;
13152 esac
13153done
cristy0c60a692010-11-04 01:09:47 +000013154cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013155
13156
13157# Only perform the check for file, if the check method requires it
13158test -z "$MAGIC_CMD" && MAGIC_CMD=file
13159case $deplibs_check_method in
13160file_magic*)
13161 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13163$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013164if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013165 $as_echo_n "(cached) " >&6
13166else
13167 case $MAGIC_CMD in
13168[\\/*] | ?:[\\/]*)
13169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13170 ;;
13171*)
13172 lt_save_MAGIC_CMD="$MAGIC_CMD"
13173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13175 for ac_dir in $ac_dummy; do
13176 IFS="$lt_save_ifs"
13177 test -z "$ac_dir" && ac_dir=.
13178 if test -f $ac_dir/${ac_tool_prefix}file; then
13179 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13180 if test -n "$file_magic_test_file"; then
13181 case $deplibs_check_method in
13182 "file_magic "*)
13183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13186 $EGREP "$file_magic_regex" > /dev/null; then
13187 :
13188 else
13189 cat <<_LT_EOF 1>&2
13190
13191*** Warning: the command libtool uses to detect shared libraries,
13192*** $file_magic_cmd, produces output that libtool cannot recognize.
13193*** The result is that libtool may fail to recognize shared libraries
13194*** as such. This will affect the creation of libtool libraries that
13195*** depend on shared libraries, but programs linked with such libtool
13196*** libraries will work regardless of this problem. Nevertheless, you
13197*** may want to report the problem to your system manager and/or to
13198*** bug-libtool@gnu.org
13199
13200_LT_EOF
13201 fi ;;
13202 esac
13203 fi
13204 break
13205 fi
13206 done
13207 IFS="$lt_save_ifs"
13208 MAGIC_CMD="$lt_save_MAGIC_CMD"
13209 ;;
13210esac
13211fi
13212
13213MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13214if test -n "$MAGIC_CMD"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13216$as_echo "$MAGIC_CMD" >&6; }
13217else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
13220fi
13221
13222
13223
13224
13225
13226if test -z "$lt_cv_path_MAGIC_CMD"; then
13227 if test -n "$ac_tool_prefix"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13229$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013230if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013231 $as_echo_n "(cached) " >&6
13232else
13233 case $MAGIC_CMD in
13234[\\/*] | ?:[\\/]*)
13235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13236 ;;
13237*)
13238 lt_save_MAGIC_CMD="$MAGIC_CMD"
13239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13241 for ac_dir in $ac_dummy; do
13242 IFS="$lt_save_ifs"
13243 test -z "$ac_dir" && ac_dir=.
13244 if test -f $ac_dir/file; then
13245 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13246 if test -n "$file_magic_test_file"; then
13247 case $deplibs_check_method in
13248 "file_magic "*)
13249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13252 $EGREP "$file_magic_regex" > /dev/null; then
13253 :
13254 else
13255 cat <<_LT_EOF 1>&2
13256
13257*** Warning: the command libtool uses to detect shared libraries,
13258*** $file_magic_cmd, produces output that libtool cannot recognize.
13259*** The result is that libtool may fail to recognize shared libraries
13260*** as such. This will affect the creation of libtool libraries that
13261*** depend on shared libraries, but programs linked with such libtool
13262*** libraries will work regardless of this problem. Nevertheless, you
13263*** may want to report the problem to your system manager and/or to
13264*** bug-libtool@gnu.org
13265
13266_LT_EOF
13267 fi ;;
13268 esac
13269 fi
13270 break
13271 fi
13272 done
13273 IFS="$lt_save_ifs"
13274 MAGIC_CMD="$lt_save_MAGIC_CMD"
13275 ;;
13276esac
13277fi
13278
13279MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13280if test -n "$MAGIC_CMD"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13282$as_echo "$MAGIC_CMD" >&6; }
13283else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285$as_echo "no" >&6; }
13286fi
13287
13288
13289 else
13290 MAGIC_CMD=:
13291 fi
13292fi
13293
13294 fi
13295 ;;
13296esac
13297
13298# Use C for the default configuration in the libtool script
13299
13300lt_save_CC="$CC"
13301ac_ext=c
13302ac_cpp='$CPP $CPPFLAGS'
13303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305ac_compiler_gnu=$ac_cv_c_compiler_gnu
13306
13307
13308# Source file extension for C test sources.
13309ac_ext=c
13310
13311# Object file extension for compiled C test sources.
13312objext=o
13313objext=$objext
13314
13315# Code to be used in simple compile tests
13316lt_simple_compile_test_code="int some_variable = 0;"
13317
13318# Code to be used in simple link tests
13319lt_simple_link_test_code='int main(){return(0);}'
13320
13321
13322
13323
13324
13325
13326
13327# If no C compiler was specified, use CC.
13328LTCC=${LTCC-"$CC"}
13329
13330# If no C compiler flags were specified, use CFLAGS.
13331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13332
13333# Allow CC to be a program name with arguments.
13334compiler=$CC
13335
13336# Save the default compiler, since it gets overwritten when the other
13337# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13338compiler_DEFAULT=$CC
13339
13340# save warnings/boilerplate of simple test code
13341ac_outfile=conftest.$ac_objext
13342echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13343eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13344_lt_compiler_boilerplate=`cat conftest.err`
13345$RM conftest*
13346
13347ac_outfile=conftest.$ac_objext
13348echo "$lt_simple_link_test_code" >conftest.$ac_ext
13349eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13350_lt_linker_boilerplate=`cat conftest.err`
13351$RM -r conftest*
13352
13353
13354## CAVEAT EMPTOR:
13355## There is no encapsulation within the following macros, do not change
13356## the running order or otherwise move them around unless you know exactly
13357## what you are doing...
13358if test -n "$compiler"; then
13359
13360lt_prog_compiler_no_builtin_flag=
13361
13362if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013363 case $cc_basename in
13364 nvcc*)
13365 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13366 *)
13367 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13368 esac
cristy73bd4a52010-10-05 11:24:23 +000013369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13371$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013372if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013373 $as_echo_n "(cached) " >&6
13374else
13375 lt_cv_prog_compiler_rtti_exceptions=no
13376 ac_outfile=conftest.$ac_objext
13377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13378 lt_compiler_flag="-fno-rtti -fno-exceptions"
13379 # Insert the option either (1) after the last *FLAGS variable, or
13380 # (2) before a word containing "conftest.", or (3) at the end.
13381 # Note that $ac_compile itself does not contain backslashes and begins
13382 # with a dollar sign (not a hyphen), so the echo should work correctly.
13383 # The option is referenced via a variable to avoid confusing sed.
13384 lt_compile=`echo "$ac_compile" | $SED \
13385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13387 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013389 (eval "$lt_compile" 2>conftest.err)
13390 ac_status=$?
13391 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013393 if (exit $ac_status) && test -s "$ac_outfile"; then
13394 # The compiler can only warn and ignore the option if not recognized
13395 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13399 lt_cv_prog_compiler_rtti_exceptions=yes
13400 fi
13401 fi
13402 $RM conftest*
13403
13404fi
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13406$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13407
13408if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13410else
13411 :
13412fi
13413
13414fi
13415
13416
13417
13418
13419
13420
13421 lt_prog_compiler_wl=
13422lt_prog_compiler_pic=
13423lt_prog_compiler_static=
13424
cristy73bd4a52010-10-05 11:24:23 +000013425
13426 if test "$GCC" = yes; then
13427 lt_prog_compiler_wl='-Wl,'
13428 lt_prog_compiler_static='-static'
13429
13430 case $host_os in
13431 aix*)
13432 # All AIX code is PIC.
13433 if test "$host_cpu" = ia64; then
13434 # AIX 5 now supports IA64 processor
13435 lt_prog_compiler_static='-Bstatic'
13436 fi
13437 ;;
13438
13439 amigaos*)
13440 case $host_cpu in
13441 powerpc)
13442 # see comment about AmigaOS4 .so support
13443 lt_prog_compiler_pic='-fPIC'
13444 ;;
13445 m68k)
13446 # FIXME: we need at least 68020 code to build shared libraries, but
13447 # adding the `-m68020' flag to GCC prevents building anything better,
13448 # like `-m68040'.
13449 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13450 ;;
13451 esac
13452 ;;
13453
13454 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13455 # PIC is the default for these OSes.
13456 ;;
13457
13458 mingw* | cygwin* | pw32* | os2* | cegcc*)
13459 # This hack is so that the source file can tell whether it is being
13460 # built for inclusion in a dll (and should export symbols for example).
13461 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13462 # (--disable-auto-import) libraries
13463 lt_prog_compiler_pic='-DDLL_EXPORT'
13464 ;;
13465
13466 darwin* | rhapsody*)
13467 # PIC is the default on this platform
13468 # Common symbols not allowed in MH_DYLIB files
13469 lt_prog_compiler_pic='-fno-common'
13470 ;;
13471
cristy0c60a692010-11-04 01:09:47 +000013472 haiku*)
13473 # PIC is the default for Haiku.
13474 # The "-static" flag exists, but is broken.
13475 lt_prog_compiler_static=
13476 ;;
13477
cristy73bd4a52010-10-05 11:24:23 +000013478 hpux*)
13479 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13480 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13481 # sets the default TLS model and affects inlining.
13482 case $host_cpu in
13483 hppa*64*)
13484 # +Z the default
13485 ;;
13486 *)
13487 lt_prog_compiler_pic='-fPIC'
13488 ;;
13489 esac
13490 ;;
13491
13492 interix[3-9]*)
13493 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13494 # Instead, we relocate shared libraries at runtime.
13495 ;;
13496
13497 msdosdjgpp*)
13498 # Just because we use GCC doesn't mean we suddenly get shared libraries
13499 # on systems that don't support them.
13500 lt_prog_compiler_can_build_shared=no
13501 enable_shared=no
13502 ;;
13503
13504 *nto* | *qnx*)
13505 # QNX uses GNU C++, but need to define -shared option too, otherwise
13506 # it will coredump.
13507 lt_prog_compiler_pic='-fPIC -shared'
13508 ;;
13509
13510 sysv4*MP*)
13511 if test -d /usr/nec; then
13512 lt_prog_compiler_pic=-Kconform_pic
13513 fi
13514 ;;
13515
13516 *)
13517 lt_prog_compiler_pic='-fPIC'
13518 ;;
13519 esac
cristy0c60a692010-11-04 01:09:47 +000013520
13521 case $cc_basename in
13522 nvcc*) # Cuda Compiler Driver 2.2
13523 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013524 if test -n "$lt_prog_compiler_pic"; then
13525 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13526 fi
cristy0c60a692010-11-04 01:09:47 +000013527 ;;
13528 esac
cristy73bd4a52010-10-05 11:24:23 +000013529 else
13530 # PORTME Check for flag to pass linker flags through the system compiler.
13531 case $host_os in
13532 aix*)
13533 lt_prog_compiler_wl='-Wl,'
13534 if test "$host_cpu" = ia64; then
13535 # AIX 5 now supports IA64 processor
13536 lt_prog_compiler_static='-Bstatic'
13537 else
13538 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13539 fi
13540 ;;
13541
13542 mingw* | cygwin* | pw32* | os2* | cegcc*)
13543 # This hack is so that the source file can tell whether it is being
13544 # built for inclusion in a dll (and should export symbols for example).
13545 lt_prog_compiler_pic='-DDLL_EXPORT'
13546 ;;
13547
13548 hpux9* | hpux10* | hpux11*)
13549 lt_prog_compiler_wl='-Wl,'
13550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13551 # not for PA HP-UX.
13552 case $host_cpu in
13553 hppa*64*|ia64*)
13554 # +Z the default
13555 ;;
13556 *)
13557 lt_prog_compiler_pic='+Z'
13558 ;;
13559 esac
13560 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13561 lt_prog_compiler_static='${wl}-a ${wl}archive'
13562 ;;
13563
13564 irix5* | irix6* | nonstopux*)
13565 lt_prog_compiler_wl='-Wl,'
13566 # PIC (with -KPIC) is the default.
13567 lt_prog_compiler_static='-non_shared'
13568 ;;
13569
cristy0c60a692010-11-04 01:09:47 +000013570 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013571 case $cc_basename in
13572 # old Intel for x86_64 which still supported -KPIC.
13573 ecc*)
13574 lt_prog_compiler_wl='-Wl,'
13575 lt_prog_compiler_pic='-KPIC'
13576 lt_prog_compiler_static='-static'
13577 ;;
13578 # icc used to be incompatible with GCC.
13579 # ICC 10 doesn't accept -KPIC any more.
13580 icc* | ifort*)
13581 lt_prog_compiler_wl='-Wl,'
13582 lt_prog_compiler_pic='-fPIC'
13583 lt_prog_compiler_static='-static'
13584 ;;
13585 # Lahey Fortran 8.1.
13586 lf95*)
13587 lt_prog_compiler_wl='-Wl,'
13588 lt_prog_compiler_pic='--shared'
13589 lt_prog_compiler_static='--static'
13590 ;;
cristyda16f162011-02-19 23:52:17 +000013591 nagfor*)
13592 # NAG Fortran compiler
13593 lt_prog_compiler_wl='-Wl,-Wl,,'
13594 lt_prog_compiler_pic='-PIC'
13595 lt_prog_compiler_static='-Bstatic'
13596 ;;
cristy0c60a692010-11-04 01:09:47 +000013597 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013598 # Portland Group compilers (*not* the Pentium gcc compiler,
13599 # which looks to be a dead project)
13600 lt_prog_compiler_wl='-Wl,'
13601 lt_prog_compiler_pic='-fpic'
13602 lt_prog_compiler_static='-Bstatic'
13603 ;;
13604 ccc*)
13605 lt_prog_compiler_wl='-Wl,'
13606 # All Alpha code is PIC.
13607 lt_prog_compiler_static='-non_shared'
13608 ;;
cristy0c60a692010-11-04 01:09:47 +000013609 xl* | bgxl* | bgf* | mpixl*)
13610 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013611 lt_prog_compiler_wl='-Wl,'
13612 lt_prog_compiler_pic='-qpic'
13613 lt_prog_compiler_static='-qstaticlink'
13614 ;;
13615 *)
13616 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000013617 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000013618 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13619 lt_prog_compiler_pic='-KPIC'
13620 lt_prog_compiler_static='-Bstatic'
13621 lt_prog_compiler_wl=''
13622 ;;
cristy99bd5232011-12-07 14:38:20 +000013623 *Sun\ F* | *Sun*Fortran*)
13624 lt_prog_compiler_pic='-KPIC'
13625 lt_prog_compiler_static='-Bstatic'
13626 lt_prog_compiler_wl='-Qoption ld '
13627 ;;
cristy73bd4a52010-10-05 11:24:23 +000013628 *Sun\ C*)
13629 # Sun C 5.9
13630 lt_prog_compiler_pic='-KPIC'
13631 lt_prog_compiler_static='-Bstatic'
13632 lt_prog_compiler_wl='-Wl,'
13633 ;;
cristy99bd5232011-12-07 14:38:20 +000013634 *Intel*\ [CF]*Compiler*)
13635 lt_prog_compiler_wl='-Wl,'
13636 lt_prog_compiler_pic='-fPIC'
13637 lt_prog_compiler_static='-static'
13638 ;;
13639 *Portland\ Group*)
13640 lt_prog_compiler_wl='-Wl,'
13641 lt_prog_compiler_pic='-fpic'
13642 lt_prog_compiler_static='-Bstatic'
13643 ;;
cristy73bd4a52010-10-05 11:24:23 +000013644 esac
13645 ;;
13646 esac
13647 ;;
13648
13649 newsos6)
13650 lt_prog_compiler_pic='-KPIC'
13651 lt_prog_compiler_static='-Bstatic'
13652 ;;
13653
13654 *nto* | *qnx*)
13655 # QNX uses GNU C++, but need to define -shared option too, otherwise
13656 # it will coredump.
13657 lt_prog_compiler_pic='-fPIC -shared'
13658 ;;
13659
13660 osf3* | osf4* | osf5*)
13661 lt_prog_compiler_wl='-Wl,'
13662 # All OSF/1 code is PIC.
13663 lt_prog_compiler_static='-non_shared'
13664 ;;
13665
13666 rdos*)
13667 lt_prog_compiler_static='-non_shared'
13668 ;;
13669
13670 solaris*)
13671 lt_prog_compiler_pic='-KPIC'
13672 lt_prog_compiler_static='-Bstatic'
13673 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013674 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013675 lt_prog_compiler_wl='-Qoption ld ';;
13676 *)
13677 lt_prog_compiler_wl='-Wl,';;
13678 esac
13679 ;;
13680
13681 sunos4*)
13682 lt_prog_compiler_wl='-Qoption ld '
13683 lt_prog_compiler_pic='-PIC'
13684 lt_prog_compiler_static='-Bstatic'
13685 ;;
13686
13687 sysv4 | sysv4.2uw2* | sysv4.3*)
13688 lt_prog_compiler_wl='-Wl,'
13689 lt_prog_compiler_pic='-KPIC'
13690 lt_prog_compiler_static='-Bstatic'
13691 ;;
13692
13693 sysv4*MP*)
13694 if test -d /usr/nec ;then
13695 lt_prog_compiler_pic='-Kconform_pic'
13696 lt_prog_compiler_static='-Bstatic'
13697 fi
13698 ;;
13699
13700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13701 lt_prog_compiler_wl='-Wl,'
13702 lt_prog_compiler_pic='-KPIC'
13703 lt_prog_compiler_static='-Bstatic'
13704 ;;
13705
13706 unicos*)
13707 lt_prog_compiler_wl='-Wl,'
13708 lt_prog_compiler_can_build_shared=no
13709 ;;
13710
13711 uts4*)
13712 lt_prog_compiler_pic='-pic'
13713 lt_prog_compiler_static='-Bstatic'
13714 ;;
13715
13716 *)
13717 lt_prog_compiler_can_build_shared=no
13718 ;;
13719 esac
13720 fi
13721
13722case $host_os in
13723 # For platforms which do not support PIC, -DPIC is meaningless:
13724 *djgpp*)
13725 lt_prog_compiler_pic=
13726 ;;
13727 *)
13728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13729 ;;
13730esac
cristy73bd4a52010-10-05 11:24:23 +000013731
cristyda16f162011-02-19 23:52:17 +000013732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13733$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13734if ${lt_cv_prog_compiler_pic+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736else
13737 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13738fi
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13740$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13741lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013742
13743#
13744# Check to make sure the PIC flag actually works.
13745#
13746if test -n "$lt_prog_compiler_pic"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13748$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013749if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013750 $as_echo_n "(cached) " >&6
13751else
13752 lt_cv_prog_compiler_pic_works=no
13753 ac_outfile=conftest.$ac_objext
13754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13755 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13756 # Insert the option either (1) after the last *FLAGS variable, or
13757 # (2) before a word containing "conftest.", or (3) at the end.
13758 # Note that $ac_compile itself does not contain backslashes and begins
13759 # with a dollar sign (not a hyphen), so the echo should work correctly.
13760 # The option is referenced via a variable to avoid confusing sed.
13761 lt_compile=`echo "$ac_compile" | $SED \
13762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13764 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013766 (eval "$lt_compile" 2>conftest.err)
13767 ac_status=$?
13768 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013770 if (exit $ac_status) && test -s "$ac_outfile"; then
13771 # The compiler can only warn and ignore the option if not recognized
13772 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13776 lt_cv_prog_compiler_pic_works=yes
13777 fi
13778 fi
13779 $RM conftest*
13780
13781fi
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13783$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13784
13785if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13786 case $lt_prog_compiler_pic in
13787 "" | " "*) ;;
13788 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13789 esac
13790else
13791 lt_prog_compiler_pic=
13792 lt_prog_compiler_can_build_shared=no
13793fi
13794
13795fi
13796
13797
13798
13799
13800
13801
cristyda16f162011-02-19 23:52:17 +000013802
13803
13804
13805
13806
cristy73bd4a52010-10-05 11:24:23 +000013807#
13808# Check to make sure the static flag actually works.
13809#
13810wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13812$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013813if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013814 $as_echo_n "(cached) " >&6
13815else
13816 lt_cv_prog_compiler_static_works=no
13817 save_LDFLAGS="$LDFLAGS"
13818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13821 # The linker can only warn and ignore the option if not recognized
13822 # So say no if there are warnings
13823 if test -s conftest.err; then
13824 # Append any errors to the config.log.
13825 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013826 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13828 if diff conftest.exp conftest.er2 >/dev/null; then
13829 lt_cv_prog_compiler_static_works=yes
13830 fi
13831 else
13832 lt_cv_prog_compiler_static_works=yes
13833 fi
13834 fi
13835 $RM -r conftest*
13836 LDFLAGS="$save_LDFLAGS"
13837
13838fi
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13840$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13841
13842if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13843 :
13844else
13845 lt_prog_compiler_static=
13846fi
13847
13848
13849
13850
13851
13852
13853
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13855$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013856if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013857 $as_echo_n "(cached) " >&6
13858else
13859 lt_cv_prog_compiler_c_o=no
13860 $RM -r conftest 2>/dev/null
13861 mkdir conftest
13862 cd conftest
13863 mkdir out
13864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13865
13866 lt_compiler_flag="-o out/conftest2.$ac_objext"
13867 # Insert the option either (1) after the last *FLAGS variable, or
13868 # (2) before a word containing "conftest.", or (3) at the end.
13869 # Note that $ac_compile itself does not contain backslashes and begins
13870 # with a dollar sign (not a hyphen), so the echo should work correctly.
13871 lt_compile=`echo "$ac_compile" | $SED \
13872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13874 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013876 (eval "$lt_compile" 2>out/conftest.err)
13877 ac_status=$?
13878 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13881 then
13882 # The compiler can only warn and ignore the option if not recognized
13883 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13887 lt_cv_prog_compiler_c_o=yes
13888 fi
13889 fi
13890 chmod u+w . 2>&5
13891 $RM conftest*
13892 # SGI C++ compiler will create directory out/ii_files/ for
13893 # template instantiation
13894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13895 $RM out/* && rmdir out
13896 cd ..
13897 $RM -r conftest
13898 $RM conftest*
13899
13900fi
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13902$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13903
13904
13905
13906
13907
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13910$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013911if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013912 $as_echo_n "(cached) " >&6
13913else
13914 lt_cv_prog_compiler_c_o=no
13915 $RM -r conftest 2>/dev/null
13916 mkdir conftest
13917 cd conftest
13918 mkdir out
13919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13920
13921 lt_compiler_flag="-o out/conftest2.$ac_objext"
13922 # Insert the option either (1) after the last *FLAGS variable, or
13923 # (2) before a word containing "conftest.", or (3) at the end.
13924 # Note that $ac_compile itself does not contain backslashes and begins
13925 # with a dollar sign (not a hyphen), so the echo should work correctly.
13926 lt_compile=`echo "$ac_compile" | $SED \
13927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13929 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013931 (eval "$lt_compile" 2>out/conftest.err)
13932 ac_status=$?
13933 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13936 then
13937 # The compiler can only warn and ignore the option if not recognized
13938 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13942 lt_cv_prog_compiler_c_o=yes
13943 fi
13944 fi
13945 chmod u+w . 2>&5
13946 $RM conftest*
13947 # SGI C++ compiler will create directory out/ii_files/ for
13948 # template instantiation
13949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13950 $RM out/* && rmdir out
13951 cd ..
13952 $RM -r conftest
13953 $RM conftest*
13954
13955fi
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13957$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13958
13959
13960
13961
13962hard_links="nottested"
13963if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13964 # do not overwrite the value of need_locks provided by the user
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13966$as_echo_n "checking if we can lock with hard links... " >&6; }
13967 hard_links=yes
13968 $RM conftest*
13969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13970 touch conftest.a
13971 ln conftest.a conftest.b 2>&5 || hard_links=no
13972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13974$as_echo "$hard_links" >&6; }
13975 if test "$hard_links" = no; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13977$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13978 need_locks=warn
13979 fi
13980else
13981 need_locks=no
13982fi
13983
13984
13985
13986
13987
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13990$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13991
13992 runpath_var=
13993 allow_undefined_flag=
13994 always_export_symbols=no
13995 archive_cmds=
13996 archive_expsym_cmds=
13997 compiler_needs_object=no
13998 enable_shared_with_static_runtimes=no
13999 export_dynamic_flag_spec=
14000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14001 hardcode_automatic=no
14002 hardcode_direct=no
14003 hardcode_direct_absolute=no
14004 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014005 hardcode_libdir_separator=
14006 hardcode_minus_L=no
14007 hardcode_shlibpath_var=unsupported
14008 inherit_rpath=no
14009 link_all_deplibs=unknown
14010 module_cmds=
14011 module_expsym_cmds=
14012 old_archive_from_new_cmds=
14013 old_archive_from_expsyms_cmds=
14014 thread_safe_flag_spec=
14015 whole_archive_flag_spec=
14016 # include_expsyms should be a list of space-separated symbols to be *always*
14017 # included in the symbol list
14018 include_expsyms=
14019 # exclude_expsyms can be an extended regexp of symbols to exclude
14020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14022 # as well as any symbol that contains `d'.
14023 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14025 # platforms (ab)use it in PIC code, but their linkers get confused if
14026 # the symbol is explicitly referenced. Since portable code cannot
14027 # rely on this symbol name, it's probably fine to never include it in
14028 # preloaded symbol tables.
14029 # Exclude shared library initialization/finalization symbols.
14030 extract_expsyms_cmds=
14031
14032 case $host_os in
14033 cygwin* | mingw* | pw32* | cegcc*)
14034 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14035 # When not using gcc, we currently assume that we are using
14036 # Microsoft Visual C++.
14037 if test "$GCC" != yes; then
14038 with_gnu_ld=no
14039 fi
14040 ;;
14041 interix*)
14042 # we just hope/assume this is gcc and not c89 (= MSVC++)
14043 with_gnu_ld=yes
14044 ;;
14045 openbsd*)
14046 with_gnu_ld=no
14047 ;;
14048 esac
14049
14050 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014051
14052 # On some targets, GNU ld is compatible enough with the native linker
14053 # that we're better off using the native interface for both.
14054 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014055 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014056 case $host_os in
14057 aix*)
14058 # The AIX port of GNU ld has always aspired to compatibility
14059 # with the native linker. However, as the warning in the GNU ld
14060 # block says, versions before 2.19.5* couldn't really create working
14061 # shared libraries, regardless of the interface used.
14062 case `$LD -v 2>&1` in
14063 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14064 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14065 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14066 *)
14067 lt_use_gnu_ld_interface=yes
14068 ;;
14069 esac
14070 ;;
14071 *)
14072 lt_use_gnu_ld_interface=yes
14073 ;;
14074 esac
14075 fi
14076
14077 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014078 # If archive_cmds runs LD, not CC, wlarc should be empty
14079 wlarc='${wl}'
14080
14081 # Set some defaults for GNU ld with shared library support. These
14082 # are reset later if shared libraries are not supported. Putting them
14083 # here allows them to be overridden if necessary.
14084 runpath_var=LD_RUN_PATH
14085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14086 export_dynamic_flag_spec='${wl}--export-dynamic'
14087 # ancient GNU ld didn't support --whole-archive et. al.
14088 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14089 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14090 else
14091 whole_archive_flag_spec=
14092 fi
14093 supports_anon_versioning=no
14094 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014095 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014096 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14099 *\ 2.11.*) ;; # other 2.11 versions
14100 *) supports_anon_versioning=yes ;;
14101 esac
14102
14103 # See if GNU ld supports shared libraries.
14104 case $host_os in
14105 aix[3-9]*)
14106 # On AIX/PPC, the GNU linker is very broken
14107 if test "$host_cpu" != ia64; then
14108 ld_shlibs=no
14109 cat <<_LT_EOF 1>&2
14110
cristy0c60a692010-11-04 01:09:47 +000014111*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014112*** to be unable to reliably create shared libraries on AIX.
14113*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014114*** really care for shared libraries, you may want to install binutils
14115*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14116*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014117
14118_LT_EOF
14119 fi
14120 ;;
14121
14122 amigaos*)
14123 case $host_cpu in
14124 powerpc)
14125 # see comment about AmigaOS4 .so support
14126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14127 archive_expsym_cmds=''
14128 ;;
14129 m68k)
14130 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)'
14131 hardcode_libdir_flag_spec='-L$libdir'
14132 hardcode_minus_L=yes
14133 ;;
14134 esac
14135 ;;
14136
14137 beos*)
14138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14139 allow_undefined_flag=unsupported
14140 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14141 # support --undefined. This deserves some investigation. FIXME
14142 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14143 else
14144 ld_shlibs=no
14145 fi
14146 ;;
14147
14148 cygwin* | mingw* | pw32* | cegcc*)
14149 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14150 # as there is no search path for DLLs.
14151 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014152 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014153 allow_undefined_flag=unsupported
14154 always_export_symbols=no
14155 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014156 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'
14157 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 +000014158
14159 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14161 # If the export-symbols file already is a .def file (1st line
14162 # is EXPORTS), use it as is; otherwise, prepend...
14163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14164 cp $export_symbols $output_objdir/$soname.def;
14165 else
14166 echo EXPORTS > $output_objdir/$soname.def;
14167 cat $export_symbols >> $output_objdir/$soname.def;
14168 fi~
14169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14170 else
14171 ld_shlibs=no
14172 fi
14173 ;;
14174
cristy0c60a692010-11-04 01:09:47 +000014175 haiku*)
14176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14177 link_all_deplibs=yes
14178 ;;
14179
cristy73bd4a52010-10-05 11:24:23 +000014180 interix[3-9]*)
14181 hardcode_direct=no
14182 hardcode_shlibpath_var=no
14183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14184 export_dynamic_flag_spec='${wl}-E'
14185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14186 # Instead, shared libraries are loaded at an image base (0x10000000 by
14187 # default) and relocated if they conflict, which is a slow very memory
14188 # consuming and fragmenting process. To avoid this, we pick a random,
14189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14192 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'
14193 ;;
14194
cristy0c60a692010-11-04 01:09:47 +000014195 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014196 tmp_diet=no
14197 if test "$host_os" = linux-dietlibc; then
14198 case $cc_basename in
14199 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14200 esac
14201 fi
14202 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14203 && test "$tmp_diet" = no
14204 then
cristyda16f162011-02-19 23:52:17 +000014205 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014206 tmp_sharedflag='-shared'
14207 case $cc_basename,$host_cpu in
14208 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014209 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 +000014210 tmp_addflag=' $pic_flag'
14211 ;;
cristy0c60a692010-11-04 01:09:47 +000014212 pgf77* | pgf90* | pgf95* | pgfortran*)
14213 # Portland Group f77 and f90 compilers
14214 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 +000014215 tmp_addflag=' $pic_flag -Mnomain' ;;
14216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14217 tmp_addflag=' -i_dynamic' ;;
14218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14219 tmp_addflag=' -i_dynamic -nofor_main' ;;
14220 ifc* | ifort*) # Intel Fortran compiler
14221 tmp_addflag=' -nofor_main' ;;
14222 lf95*) # Lahey Fortran 8.1
14223 whole_archive_flag_spec=
14224 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014225 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014226 tmp_sharedflag='-qmkshrobj'
14227 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014228 nvcc*) # Cuda Compiler Driver 2.2
14229 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'
14230 compiler_needs_object=yes
14231 ;;
cristy73bd4a52010-10-05 11:24:23 +000014232 esac
14233 case `$CC -V 2>&1 | sed 5q` in
14234 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014235 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 +000014236 compiler_needs_object=yes
14237 tmp_sharedflag='-G' ;;
14238 *Sun\ F*) # Sun Fortran 8.3
14239 tmp_sharedflag='-G' ;;
14240 esac
14241 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242
14243 if test "x$supports_anon_versioning" = xyes; then
14244 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14246 echo "local: *; };" >> $output_objdir/$libname.ver~
14247 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14248 fi
14249
14250 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014251 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014252 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14253 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014255 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014256 if test "x$supports_anon_versioning" = xyes; then
14257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14259 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014260 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014261 fi
14262 ;;
14263 esac
14264 else
14265 ld_shlibs=no
14266 fi
14267 ;;
14268
14269 netbsd*)
14270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14271 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14272 wlarc=
14273 else
cristyda16f162011-02-19 23:52:17 +000014274 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14275 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 +000014276 fi
14277 ;;
14278
14279 solaris*)
14280 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14281 ld_shlibs=no
14282 cat <<_LT_EOF 1>&2
14283
14284*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14285*** create shared libraries on Solaris systems. Therefore, libtool
14286*** is disabling shared libraries support. We urge you to upgrade GNU
14287*** binutils to release 2.9.1 or newer. Another option is to modify
14288*** your PATH or compiler configuration so that the native linker is
14289*** used, and then restart.
14290
14291_LT_EOF
14292 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14294 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 +000014295 else
14296 ld_shlibs=no
14297 fi
14298 ;;
14299
14300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14301 case `$LD -v 2>&1` in
14302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14303 ld_shlibs=no
14304 cat <<_LT_EOF 1>&2
14305
14306*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14307*** reliably create shared libraries on SCO systems. Therefore, libtool
14308*** is disabling shared libraries support. We urge you to upgrade GNU
14309*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14310*** your PATH or compiler configuration so that the native linker is
14311*** used, and then restart.
14312
14313_LT_EOF
14314 ;;
14315 *)
14316 # For security reasons, it is highly recommended that you always
14317 # use absolute paths for naming shared libraries, and exclude the
14318 # DT_RUNPATH tag from executables and libraries. But doing so
14319 # requires that you compile everything twice, which is a pain.
14320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14324 else
14325 ld_shlibs=no
14326 fi
14327 ;;
14328 esac
14329 ;;
14330
14331 sunos4*)
14332 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14333 wlarc=
14334 hardcode_direct=yes
14335 hardcode_shlibpath_var=no
14336 ;;
14337
14338 *)
14339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14341 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 +000014342 else
14343 ld_shlibs=no
14344 fi
14345 ;;
14346 esac
14347
14348 if test "$ld_shlibs" = no; then
14349 runpath_var=
14350 hardcode_libdir_flag_spec=
14351 export_dynamic_flag_spec=
14352 whole_archive_flag_spec=
14353 fi
14354 else
14355 # PORTME fill in a description of your system's linker (not GNU ld)
14356 case $host_os in
14357 aix3*)
14358 allow_undefined_flag=unsupported
14359 always_export_symbols=yes
14360 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'
14361 # Note: this linker hardcodes the directories in LIBPATH if there
14362 # are no directories specified by -L.
14363 hardcode_minus_L=yes
14364 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14365 # Neither direct hardcoding nor static linking is supported with a
14366 # broken collect2.
14367 hardcode_direct=unsupported
14368 fi
14369 ;;
14370
14371 aix[4-9]*)
14372 if test "$host_cpu" = ia64; then
14373 # On IA64, the linker does run time linking by default, so we don't
14374 # have to do anything special.
14375 aix_use_runtimelinking=no
14376 exp_sym_flag='-Bexport'
14377 no_entry_flag=""
14378 else
14379 # If we're using GNU nm, then we don't want the "-C" option.
14380 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014381 # Also, AIX nm treats weak defined symbols like other global
14382 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014383 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014384 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 +000014385 else
14386 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'
14387 fi
14388 aix_use_runtimelinking=no
14389
14390 # Test if we are trying to use run time linking or normal
14391 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14392 # need to do runtime linking.
14393 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14394 for ld_flag in $LDFLAGS; do
14395 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14396 aix_use_runtimelinking=yes
14397 break
14398 fi
14399 done
14400 ;;
14401 esac
14402
14403 exp_sym_flag='-bexport'
14404 no_entry_flag='-bnoentry'
14405 fi
14406
14407 # When large executables or shared objects are built, AIX ld can
14408 # have problems creating the table of contents. If linking a library
14409 # or program results in "error TOC overflow" add -mminimal-toc to
14410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14412
14413 archive_cmds=''
14414 hardcode_direct=yes
14415 hardcode_direct_absolute=yes
14416 hardcode_libdir_separator=':'
14417 link_all_deplibs=yes
14418 file_list_spec='${wl}-f,'
14419
14420 if test "$GCC" = yes; then
14421 case $host_os in aix4.[012]|aix4.[012].*)
14422 # We only want to do this on AIX 4.2 and lower, the check
14423 # below for broken collect2 doesn't work under 4.3+
14424 collect2name=`${CC} -print-prog-name=collect2`
14425 if test -f "$collect2name" &&
14426 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14427 then
14428 # We have reworked collect2
14429 :
14430 else
14431 # We have old collect2
14432 hardcode_direct=unsupported
14433 # It fails to find uninstalled libraries when the uninstalled
14434 # path is not listed in the libpath. Setting hardcode_minus_L
14435 # to unsupported forces relinking
14436 hardcode_minus_L=yes
14437 hardcode_libdir_flag_spec='-L$libdir'
14438 hardcode_libdir_separator=
14439 fi
14440 ;;
14441 esac
14442 shared_flag='-shared'
14443 if test "$aix_use_runtimelinking" = yes; then
14444 shared_flag="$shared_flag "'${wl}-G'
14445 fi
14446 else
14447 # not using gcc
14448 if test "$host_cpu" = ia64; then
14449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14450 # chokes on -Wl,-G. The following line is correct:
14451 shared_flag='-G'
14452 else
14453 if test "$aix_use_runtimelinking" = yes; then
14454 shared_flag='${wl}-G'
14455 else
14456 shared_flag='${wl}-bM:SRE'
14457 fi
14458 fi
14459 fi
14460
14461 export_dynamic_flag_spec='${wl}-bexpall'
14462 # It seems that -bexpall does not export symbols beginning with
14463 # underscore (_), so it is better to generate a list of symbols to export.
14464 always_export_symbols=yes
14465 if test "$aix_use_runtimelinking" = yes; then
14466 # Warning - without using the other runtime loading flags (-brtl),
14467 # -berok will link without error, but may produce a broken library.
14468 allow_undefined_flag='-berok'
14469 # Determine the default libpath from the value encoded in an
14470 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014471 if test "${lt_cv_aix_libpath+set}" = set; then
14472 aix_libpath=$lt_cv_aix_libpath
14473else
14474 if ${lt_cv_aix_libpath_+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476else
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014478/* end confdefs.h. */
14479
14480int
14481main ()
14482{
14483
14484 ;
14485 return 0;
14486}
14487_ACEOF
14488if ac_fn_c_try_link "$LINENO"; then :
14489
cristyda16f162011-02-19 23:52:17 +000014490 lt_aix_libpath_sed='
14491 /Import File Strings/,/^$/ {
14492 /^0/ {
14493 s/^0 *\([^ ]*\) *$/\1/
14494 p
14495 }
14496 }'
14497 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14498 # Check for a 64-bit object if we didn't find anything.
14499 if test -z "$lt_cv_aix_libpath_"; then
14500 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14501 fi
cristy73bd4a52010-10-05 11:24:23 +000014502fi
14503rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014505 if test -z "$lt_cv_aix_libpath_"; then
14506 lt_cv_aix_libpath_="/usr/lib:/lib"
14507 fi
14508
14509fi
14510
14511 aix_libpath=$lt_cv_aix_libpath_
14512fi
cristy73bd4a52010-10-05 11:24:23 +000014513
14514 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014515 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 +000014516 else
14517 if test "$host_cpu" = ia64; then
14518 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14519 allow_undefined_flag="-z nodefs"
14520 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"
14521 else
14522 # Determine the default libpath from the value encoded in an
14523 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014524 if test "${lt_cv_aix_libpath+set}" = set; then
14525 aix_libpath=$lt_cv_aix_libpath
14526else
14527 if ${lt_cv_aix_libpath_+:} false; then :
14528 $as_echo_n "(cached) " >&6
14529else
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014531/* end confdefs.h. */
14532
14533int
14534main ()
14535{
14536
14537 ;
14538 return 0;
14539}
14540_ACEOF
14541if ac_fn_c_try_link "$LINENO"; then :
14542
cristyda16f162011-02-19 23:52:17 +000014543 lt_aix_libpath_sed='
14544 /Import File Strings/,/^$/ {
14545 /^0/ {
14546 s/^0 *\([^ ]*\) *$/\1/
14547 p
14548 }
14549 }'
14550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14551 # Check for a 64-bit object if we didn't find anything.
14552 if test -z "$lt_cv_aix_libpath_"; then
14553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14554 fi
cristy73bd4a52010-10-05 11:24:23 +000014555fi
14556rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014558 if test -z "$lt_cv_aix_libpath_"; then
14559 lt_cv_aix_libpath_="/usr/lib:/lib"
14560 fi
14561
14562fi
14563
14564 aix_libpath=$lt_cv_aix_libpath_
14565fi
cristy73bd4a52010-10-05 11:24:23 +000014566
14567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14568 # Warning - without using the other run time loading flags,
14569 # -berok will link without error, but may produce a broken library.
14570 no_undefined_flag=' ${wl}-bernotok'
14571 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014572 if test "$with_gnu_ld" = yes; then
14573 # We only use this code for GNU lds that support --whole-archive.
14574 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14575 else
14576 # Exported symbols can be pulled into shared objects from archives
14577 whole_archive_flag_spec='$convenience'
14578 fi
cristy73bd4a52010-10-05 11:24:23 +000014579 archive_cmds_need_lc=yes
14580 # This is similar to how AIX traditionally builds its shared libraries.
14581 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'
14582 fi
14583 fi
14584 ;;
14585
14586 amigaos*)
14587 case $host_cpu in
14588 powerpc)
14589 # see comment about AmigaOS4 .so support
14590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14591 archive_expsym_cmds=''
14592 ;;
14593 m68k)
14594 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)'
14595 hardcode_libdir_flag_spec='-L$libdir'
14596 hardcode_minus_L=yes
14597 ;;
14598 esac
14599 ;;
14600
14601 bsdi[45]*)
14602 export_dynamic_flag_spec=-rdynamic
14603 ;;
14604
14605 cygwin* | mingw* | pw32* | cegcc*)
14606 # When not using gcc, we currently assume that we are using
14607 # Microsoft Visual C++.
14608 # hardcode_libdir_flag_spec is actually meaningless, as there is
14609 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014610 case $cc_basename in
14611 cl*)
14612 # Native MSVC
14613 hardcode_libdir_flag_spec=' '
14614 allow_undefined_flag=unsupported
14615 always_export_symbols=yes
14616 file_list_spec='@'
14617 # Tell ltmain to make .lib files, not .a files.
14618 libext=lib
14619 # Tell ltmain to make .dll files, not .so files.
14620 shrext_cmds=".dll"
14621 # FIXME: Setting linknames here is a bad hack.
14622 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14623 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14624 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14625 else
14626 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14627 fi~
14628 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14629 linknames='
14630 # The linker will not automatically build a static lib if we build a DLL.
14631 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14632 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000014633 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000014634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14635 # Don't use ranlib
14636 old_postinstall_cmds='chmod 644 $oldlib'
14637 postlink_cmds='lt_outputfile="@OUTPUT@"~
14638 lt_tool_outputfile="@TOOL_OUTPUT@"~
14639 case $lt_outputfile in
14640 *.exe|*.EXE) ;;
14641 *)
14642 lt_outputfile="$lt_outputfile.exe"
14643 lt_tool_outputfile="$lt_tool_outputfile.exe"
14644 ;;
14645 esac~
14646 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14647 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14648 $RM "$lt_outputfile.manifest";
14649 fi'
14650 ;;
14651 *)
14652 # Assume MSVC wrapper
14653 hardcode_libdir_flag_spec=' '
14654 allow_undefined_flag=unsupported
14655 # Tell ltmain to make .lib files, not .a files.
14656 libext=lib
14657 # Tell ltmain to make .dll files, not .so files.
14658 shrext_cmds=".dll"
14659 # FIXME: Setting linknames here is a bad hack.
14660 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14661 # The linker will automatically build a .lib file if we build a DLL.
14662 old_archive_from_new_cmds='true'
14663 # FIXME: Should let the user specify the lib program.
14664 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14665 enable_shared_with_static_runtimes=yes
14666 ;;
14667 esac
cristy73bd4a52010-10-05 11:24:23 +000014668 ;;
14669
14670 darwin* | rhapsody*)
14671
14672
14673 archive_cmds_need_lc=no
14674 hardcode_direct=no
14675 hardcode_automatic=yes
14676 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014677 if test "$lt_cv_ld_force_load" = "yes"; then
14678 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000014679
cristy0c60a692010-11-04 01:09:47 +000014680 else
14681 whole_archive_flag_spec=''
14682 fi
cristy73bd4a52010-10-05 11:24:23 +000014683 link_all_deplibs=yes
14684 allow_undefined_flag="$_lt_dar_allow_undefined"
14685 case $cc_basename in
14686 ifort*) _lt_dar_can_shared=yes ;;
14687 *) _lt_dar_can_shared=$GCC ;;
14688 esac
14689 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014690 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014691 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14692 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14693 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}"
14694 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}"
14695
14696 else
14697 ld_shlibs=no
14698 fi
14699
14700 ;;
14701
14702 dgux*)
14703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14704 hardcode_libdir_flag_spec='-L$libdir'
14705 hardcode_shlibpath_var=no
14706 ;;
14707
cristy73bd4a52010-10-05 11:24:23 +000014708 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14709 # support. Future versions do this automatically, but an explicit c++rt0.o
14710 # does not break anything, and helps significantly (at the cost of a little
14711 # extra space).
14712 freebsd2.2*)
14713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14714 hardcode_libdir_flag_spec='-R$libdir'
14715 hardcode_direct=yes
14716 hardcode_shlibpath_var=no
14717 ;;
14718
14719 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000014720 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000014721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14722 hardcode_direct=yes
14723 hardcode_minus_L=yes
14724 hardcode_shlibpath_var=no
14725 ;;
14726
14727 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14728 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014730 hardcode_libdir_flag_spec='-R$libdir'
14731 hardcode_direct=yes
14732 hardcode_shlibpath_var=no
14733 ;;
14734
14735 hpux9*)
14736 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014737 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 +000014738 else
14739 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'
14740 fi
14741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14742 hardcode_libdir_separator=:
14743 hardcode_direct=yes
14744
14745 # hardcode_minus_L: Not really in the search PATH,
14746 # but as the default location of the library.
14747 hardcode_minus_L=yes
14748 export_dynamic_flag_spec='${wl}-E'
14749 ;;
14750
14751 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014753 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 +000014754 else
14755 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14756 fi
14757 if test "$with_gnu_ld" = no; then
14758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000014759 hardcode_libdir_separator=:
14760 hardcode_direct=yes
14761 hardcode_direct_absolute=yes
14762 export_dynamic_flag_spec='${wl}-E'
14763 # hardcode_minus_L: Not really in the search PATH,
14764 # but as the default location of the library.
14765 hardcode_minus_L=yes
14766 fi
14767 ;;
14768
14769 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014770 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014771 case $host_cpu in
14772 hppa*64*)
14773 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14774 ;;
14775 ia64*)
cristyda16f162011-02-19 23:52:17 +000014776 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014777 ;;
14778 *)
cristyda16f162011-02-19 23:52:17 +000014779 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 +000014780 ;;
14781 esac
14782 else
14783 case $host_cpu in
14784 hppa*64*)
14785 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14786 ;;
14787 ia64*)
14788 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14789 ;;
14790 *)
cristy0c60a692010-11-04 01:09:47 +000014791
14792 # Older versions of the 11.00 compiler do not understand -b yet
14793 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14795$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014796if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014797 $as_echo_n "(cached) " >&6
14798else
14799 lt_cv_prog_compiler__b=no
14800 save_LDFLAGS="$LDFLAGS"
14801 LDFLAGS="$LDFLAGS -b"
14802 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14804 # The linker can only warn and ignore the option if not recognized
14805 # So say no if there are warnings
14806 if test -s conftest.err; then
14807 # Append any errors to the config.log.
14808 cat conftest.err 1>&5
14809 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811 if diff conftest.exp conftest.er2 >/dev/null; then
14812 lt_cv_prog_compiler__b=yes
14813 fi
14814 else
14815 lt_cv_prog_compiler__b=yes
14816 fi
14817 fi
14818 $RM -r conftest*
14819 LDFLAGS="$save_LDFLAGS"
14820
14821fi
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14823$as_echo "$lt_cv_prog_compiler__b" >&6; }
14824
14825if test x"$lt_cv_prog_compiler__b" = xyes; then
14826 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14827else
14828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14829fi
14830
cristy73bd4a52010-10-05 11:24:23 +000014831 ;;
14832 esac
14833 fi
14834 if test "$with_gnu_ld" = no; then
14835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14836 hardcode_libdir_separator=:
14837
14838 case $host_cpu in
14839 hppa*64*|ia64*)
14840 hardcode_direct=no
14841 hardcode_shlibpath_var=no
14842 ;;
14843 *)
14844 hardcode_direct=yes
14845 hardcode_direct_absolute=yes
14846 export_dynamic_flag_spec='${wl}-E'
14847
14848 # hardcode_minus_L: Not really in the search PATH,
14849 # but as the default location of the library.
14850 hardcode_minus_L=yes
14851 ;;
14852 esac
14853 fi
14854 ;;
14855
14856 irix5* | irix6* | nonstopux*)
14857 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014858 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 +000014859 # Try to use the -exported_symbol ld option, if it does not
14860 # work, assume that -exports_file does not work either and
14861 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014862 # This should be the same for all languages, so no per-tag cache variable.
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14864$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14865if ${lt_cv_irix_exported_symbol+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867else
14868 save_LDFLAGS="$LDFLAGS"
14869 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014871/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014872int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014873_ACEOF
14874if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014875 lt_cv_irix_exported_symbol=yes
14876else
14877 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014878fi
14879rm -f core conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014881 LDFLAGS="$save_LDFLAGS"
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14884$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14885 if test "$lt_cv_irix_exported_symbol" = yes; then
14886 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'
14887 fi
cristy73bd4a52010-10-05 11:24:23 +000014888 else
cristy0c60a692010-11-04 01:09:47 +000014889 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'
14890 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 +000014891 fi
14892 archive_cmds_need_lc='no'
14893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14894 hardcode_libdir_separator=:
14895 inherit_rpath=yes
14896 link_all_deplibs=yes
14897 ;;
14898
14899 netbsd*)
14900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14902 else
14903 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14904 fi
14905 hardcode_libdir_flag_spec='-R$libdir'
14906 hardcode_direct=yes
14907 hardcode_shlibpath_var=no
14908 ;;
14909
14910 newsos6)
14911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_direct=yes
14913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14914 hardcode_libdir_separator=:
14915 hardcode_shlibpath_var=no
14916 ;;
14917
14918 *nto* | *qnx*)
14919 ;;
14920
14921 openbsd*)
14922 if test -f /usr/libexec/ld.so; then
14923 hardcode_direct=yes
14924 hardcode_shlibpath_var=no
14925 hardcode_direct_absolute=yes
14926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14930 export_dynamic_flag_spec='${wl}-E'
14931 else
14932 case $host_os in
14933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14935 hardcode_libdir_flag_spec='-R$libdir'
14936 ;;
14937 *)
14938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14940 ;;
14941 esac
14942 fi
14943 else
14944 ld_shlibs=no
14945 fi
14946 ;;
14947
14948 os2*)
14949 hardcode_libdir_flag_spec='-L$libdir'
14950 hardcode_minus_L=yes
14951 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014952 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 +000014953 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14954 ;;
14955
14956 osf3*)
14957 if test "$GCC" = yes; then
14958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014959 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 +000014960 else
14961 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014962 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 +000014963 fi
14964 archive_cmds_need_lc='no'
14965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14966 hardcode_libdir_separator=:
14967 ;;
14968
14969 osf4* | osf5*) # as osf3* with the addition of -msym flag
14970 if test "$GCC" = yes; then
14971 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014972 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 +000014973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14974 else
14975 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014976 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 +000014977 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 +000014978 $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 +000014979
14980 # Both c and cxx compiler support -rpath directly
14981 hardcode_libdir_flag_spec='-rpath $libdir'
14982 fi
14983 archive_cmds_need_lc='no'
14984 hardcode_libdir_separator=:
14985 ;;
14986
14987 solaris*)
14988 no_undefined_flag=' -z defs'
14989 if test "$GCC" = yes; then
14990 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014991 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 +000014992 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 +000014993 $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 +000014994 else
14995 case `$CC -V 2>&1` in
14996 *"Compilers 5.0"*)
14997 wlarc=''
14998 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15000 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15001 ;;
15002 *)
15003 wlarc='${wl}'
15004 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15006 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15007 ;;
15008 esac
15009 fi
15010 hardcode_libdir_flag_spec='-R$libdir'
15011 hardcode_shlibpath_var=no
15012 case $host_os in
15013 solaris2.[0-5] | solaris2.[0-5].*) ;;
15014 *)
15015 # The compiler driver will combine and reorder linker options,
15016 # but understands `-z linker_flag'. GCC discards it without `$wl',
15017 # but is careful enough not to reorder.
15018 # Supported since Solaris 2.6 (maybe 2.5.1?)
15019 if test "$GCC" = yes; then
15020 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15021 else
15022 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15023 fi
15024 ;;
15025 esac
15026 link_all_deplibs=yes
15027 ;;
15028
15029 sunos4*)
15030 if test "x$host_vendor" = xsequent; then
15031 # Use $CC to link under sequent, because it throws in some extra .o
15032 # files that make .init and .fini sections work.
15033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15034 else
15035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15036 fi
15037 hardcode_libdir_flag_spec='-L$libdir'
15038 hardcode_direct=yes
15039 hardcode_minus_L=yes
15040 hardcode_shlibpath_var=no
15041 ;;
15042
15043 sysv4)
15044 case $host_vendor in
15045 sni)
15046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 hardcode_direct=yes # is this really true???
15048 ;;
15049 siemens)
15050 ## LD is ld it makes a PLAMLIB
15051 ## CC just makes a GrossModule.
15052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15053 reload_cmds='$CC -r -o $output$reload_objs'
15054 hardcode_direct=no
15055 ;;
15056 motorola)
15057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15059 ;;
15060 esac
15061 runpath_var='LD_RUN_PATH'
15062 hardcode_shlibpath_var=no
15063 ;;
15064
15065 sysv4.3*)
15066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15067 hardcode_shlibpath_var=no
15068 export_dynamic_flag_spec='-Bexport'
15069 ;;
15070
15071 sysv4*MP*)
15072 if test -d /usr/nec; then
15073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15074 hardcode_shlibpath_var=no
15075 runpath_var=LD_RUN_PATH
15076 hardcode_runpath_var=yes
15077 ld_shlibs=yes
15078 fi
15079 ;;
15080
15081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15082 no_undefined_flag='${wl}-z,text'
15083 archive_cmds_need_lc=no
15084 hardcode_shlibpath_var=no
15085 runpath_var='LD_RUN_PATH'
15086
15087 if test "$GCC" = yes; then
15088 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090 else
15091 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 fi
15094 ;;
15095
15096 sysv5* | sco3.2v5* | sco5v6*)
15097 # Note: We can NOT use -z defs as we might desire, because we do not
15098 # link with -lc, and that would cause any symbols used from libc to
15099 # always be unresolved, which means just about no library would
15100 # ever link correctly. If we're not using GNU ld we use -z text
15101 # though, which does catch some bad symbols but isn't as heavy-handed
15102 # as -z defs.
15103 no_undefined_flag='${wl}-z,text'
15104 allow_undefined_flag='${wl}-z,nodefs'
15105 archive_cmds_need_lc=no
15106 hardcode_shlibpath_var=no
15107 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15108 hardcode_libdir_separator=':'
15109 link_all_deplibs=yes
15110 export_dynamic_flag_spec='${wl}-Bexport'
15111 runpath_var='LD_RUN_PATH'
15112
15113 if test "$GCC" = yes; then
15114 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15116 else
15117 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 fi
15120 ;;
15121
15122 uts4*)
15123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15124 hardcode_libdir_flag_spec='-L$libdir'
15125 hardcode_shlibpath_var=no
15126 ;;
15127
15128 *)
15129 ld_shlibs=no
15130 ;;
15131 esac
15132
15133 if test x$host_vendor = xsni; then
15134 case $host in
15135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15136 export_dynamic_flag_spec='${wl}-Blargedynsym'
15137 ;;
15138 esac
15139 fi
15140 fi
15141
15142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15143$as_echo "$ld_shlibs" >&6; }
15144test "$ld_shlibs" = no && can_build_shared=no
15145
15146with_gnu_ld=$with_gnu_ld
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162#
15163# Do we need to explicitly link libc?
15164#
15165case "x$archive_cmds_need_lc" in
15166x|xyes)
15167 # Assume -lc should be added
15168 archive_cmds_need_lc=yes
15169
15170 if test "$enable_shared" = yes && test "$GCC" = yes; then
15171 case $archive_cmds in
15172 *'~'*)
15173 # FIXME: we may have to deal with multi-command sequences.
15174 ;;
15175 '$CC '*)
15176 # Test whether the compiler implicitly links with -lc since on some
15177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15178 # to ld, don't add -lc before -lgcc.
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015181if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015182 $as_echo_n "(cached) " >&6
15183else
15184 $RM conftest*
15185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015186
cristy0c60a692010-11-04 01:09:47 +000015187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015188 (eval $ac_compile) 2>&5
15189 ac_status=$?
15190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015192 soname=conftest
15193 lib=conftest
15194 libobjs=conftest.$ac_objext
15195 deplibs=
15196 wl=$lt_prog_compiler_wl
15197 pic_flag=$lt_prog_compiler_pic
15198 compiler_flags=-v
15199 linker_flags=-v
15200 verstring=
15201 output_objdir=.
15202 libname=conftest
15203 lt_save_allow_undefined_flag=$allow_undefined_flag
15204 allow_undefined_flag=
15205 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 +000015206 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15207 ac_status=$?
15208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015210 then
15211 lt_cv_archive_cmds_need_lc=no
15212 else
15213 lt_cv_archive_cmds_need_lc=yes
15214 fi
15215 allow_undefined_flag=$lt_save_allow_undefined_flag
15216 else
15217 cat conftest.err 1>&5
15218 fi
15219 $RM conftest*
15220
15221fi
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15223$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15224 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015225 ;;
15226 esac
15227 fi
15228 ;;
15229esac
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
cristy73bd4a52010-10-05 11:24:23 +000015382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15383$as_echo_n "checking dynamic linker characteristics... " >&6; }
15384
15385if test "$GCC" = yes; then
15386 case $host_os in
15387 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15388 *) lt_awk_arg="/^libraries:/" ;;
15389 esac
cristy0c60a692010-11-04 01:09:47 +000015390 case $host_os in
15391 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15392 *) lt_sed_strip_eq="s,=/,/,g" ;;
15393 esac
15394 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15395 case $lt_search_path_spec in
15396 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015397 # if the path contains ";" then we assume it to be the separator
15398 # otherwise default to the standard path separator (i.e. ":") - it is
15399 # assumed that no part of a normal pathname contains ";" but that should
15400 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15402 ;;
15403 *)
15404 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15405 ;;
15406 esac
cristy73bd4a52010-10-05 11:24:23 +000015407 # Ok, now we have the path, separated by spaces, we can step through it
15408 # and add multilib dir if necessary.
15409 lt_tmp_lt_search_path_spec=
15410 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15411 for lt_sys_path in $lt_search_path_spec; do
15412 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15414 else
15415 test -d "$lt_sys_path" && \
15416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15417 fi
15418 done
cristy0c60a692010-11-04 01:09:47 +000015419 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015420BEGIN {RS=" "; FS="/|\n";} {
15421 lt_foo="";
15422 lt_count=0;
15423 for (lt_i = NF; lt_i > 0; lt_i--) {
15424 if ($lt_i != "" && $lt_i != ".") {
15425 if ($lt_i == "..") {
15426 lt_count++;
15427 } else {
15428 if (lt_count == 0) {
15429 lt_foo="/" $lt_i lt_foo;
15430 } else {
15431 lt_count--;
15432 }
15433 }
15434 }
15435 }
15436 if (lt_foo != "") { lt_freq[lt_foo]++; }
15437 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15438}'`
cristy0c60a692010-11-04 01:09:47 +000015439 # AWK program above erroneously prepends '/' to C:/dos/paths
15440 # for these hosts.
15441 case $host_os in
15442 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15443 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15444 esac
15445 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015446else
15447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15448fi
15449library_names_spec=
15450libname_spec='lib$name'
15451soname_spec=
15452shrext_cmds=".so"
15453postinstall_cmds=
15454postuninstall_cmds=
15455finish_cmds=
15456finish_eval=
15457shlibpath_var=
15458shlibpath_overrides_runpath=unknown
15459version_type=none
15460dynamic_linker="$host_os ld.so"
15461sys_lib_dlsearch_path_spec="/lib /usr/lib"
15462need_lib_prefix=unknown
15463hardcode_into_libs=no
15464
15465# when you set need_version to no, make sure it does not cause -set_version
15466# flags to be left without arguments
15467need_version=unknown
15468
15469case $host_os in
15470aix3*)
cristy99bd5232011-12-07 14:38:20 +000015471 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15473 shlibpath_var=LIBPATH
15474
15475 # AIX 3 has no versioning support, so we append a major version to the name.
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 ;;
15478
15479aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015480 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015481 need_lib_prefix=no
15482 need_version=no
15483 hardcode_into_libs=yes
15484 if test "$host_cpu" = ia64; then
15485 # AIX 5 supports IA64
15486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 else
15489 # With GCC up to 2.95.x, collect2 would create an import file
15490 # for dependence libraries. The import file would start with
15491 # the line `#! .'. This would cause the generated library to
15492 # depend on `.', always an invalid library. This was fixed in
15493 # development snapshots of GCC prior to 3.0.
15494 case $host_os in
15495 aix4 | aix4.[01] | aix4.[01].*)
15496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15497 echo ' yes '
15498 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15499 :
15500 else
15501 can_build_shared=no
15502 fi
15503 ;;
15504 esac
15505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15506 # soname into executable. Probably we can add versioning support to
15507 # collect2, so additional links can be useful in future.
15508 if test "$aix_use_runtimelinking" = yes; then
15509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15510 # instead of lib<name>.a to let people know that these are not
15511 # typical AIX shared libraries.
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 else
15514 # We preserve .a as extension for shared libraries through AIX4.2
15515 # and later when we are not doing run time linking.
15516 library_names_spec='${libname}${release}.a $libname.a'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 fi
15519 shlibpath_var=LIBPATH
15520 fi
15521 ;;
15522
15523amigaos*)
15524 case $host_cpu in
15525 powerpc)
15526 # Since July 2007 AmigaOS4 officially supports .so libraries.
15527 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 ;;
15530 m68k)
15531 library_names_spec='$libname.ixlibrary $libname.a'
15532 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015533 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 +000015534 ;;
15535 esac
15536 ;;
15537
15538beos*)
15539 library_names_spec='${libname}${shared_ext}'
15540 dynamic_linker="$host_os ld.so"
15541 shlibpath_var=LIBRARY_PATH
15542 ;;
15543
15544bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015545 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015546 need_version=no
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15553 # the default ld.so.conf also contains /usr/contrib/lib and
15554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15555 # libtool to hard-code these into programs
15556 ;;
15557
15558cygwin* | mingw* | pw32* | cegcc*)
15559 version_type=windows
15560 shrext_cmds=".dll"
15561 need_version=no
15562 need_lib_prefix=no
15563
cristyda16f162011-02-19 23:52:17 +000015564 case $GCC,$cc_basename in
15565 yes,*)
15566 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015567 library_names_spec='$libname.dll.a'
15568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15569 postinstall_cmds='base_file=`basename \${file}`~
15570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15571 dldir=$destdir/`dirname \$dlpath`~
15572 test -d \$dldir || mkdir -p \$dldir~
15573 $install_prog $dir/$dlname \$dldir/$dlname~
15574 chmod a+x \$dldir/$dlname~
15575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15577 fi'
15578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15579 dlpath=$dir/\$dldll~
15580 $RM \$dlpath'
15581 shlibpath_overrides_runpath=yes
15582
15583 case $host_os in
15584 cygwin*)
15585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015587
15588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015589 ;;
15590 mingw* | cegcc*)
15591 # MinGW DLLs use traditional 'lib' prefix
15592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015593 ;;
15594 pw32*)
15595 # pw32 DLLs use 'pw' prefix rather than 'lib'
15596 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15597 ;;
15598 esac
cristyda16f162011-02-19 23:52:17 +000015599 dynamic_linker='Win32 ld.exe'
15600 ;;
15601
15602 *,cl*)
15603 # Native MSVC
15604 libname_spec='$name'
15605 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15606 library_names_spec='${libname}.dll.lib'
15607
15608 case $build_os in
15609 mingw*)
15610 sys_lib_search_path_spec=
15611 lt_save_ifs=$IFS
15612 IFS=';'
15613 for lt_path in $LIB
15614 do
15615 IFS=$lt_save_ifs
15616 # Let DOS variable expansion print the short 8.3 style file name.
15617 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15618 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15619 done
15620 IFS=$lt_save_ifs
15621 # Convert to MSYS style.
15622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15623 ;;
15624 cygwin*)
15625 # Convert to unix form, then to dos form, then back to unix form
15626 # but this time dos style (no spaces!) so that the unix form looks
15627 # like /cygdrive/c/PROGRA~1:/cygdr...
15628 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15629 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15630 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15631 ;;
15632 *)
15633 sys_lib_search_path_spec="$LIB"
15634 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15635 # It is most probably a Windows format PATH.
15636 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15637 else
15638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15639 fi
15640 # FIXME: find the short name or the path components, as spaces are
15641 # common. (e.g. "Program Files" -> "PROGRA~1")
15642 ;;
15643 esac
15644
15645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15646 postinstall_cmds='base_file=`basename \${file}`~
15647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15648 dldir=$destdir/`dirname \$dlpath`~
15649 test -d \$dldir || mkdir -p \$dldir~
15650 $install_prog $dir/$dlname \$dldir/$dlname'
15651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15652 dlpath=$dir/\$dldll~
15653 $RM \$dlpath'
15654 shlibpath_overrides_runpath=yes
15655 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015656 ;;
15657
15658 *)
cristyda16f162011-02-19 23:52:17 +000015659 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015660 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015661 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015662 ;;
15663 esac
cristy73bd4a52010-10-05 11:24:23 +000015664 # FIXME: first we should search . and the directory the executable is in
15665 shlibpath_var=PATH
15666 ;;
15667
15668darwin* | rhapsody*)
15669 dynamic_linker="$host_os dyld"
15670 version_type=darwin
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15674 soname_spec='${libname}${release}${major}$shared_ext'
15675 shlibpath_overrides_runpath=yes
15676 shlibpath_var=DYLD_LIBRARY_PATH
15677 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15678
15679 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15680 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15681 ;;
15682
15683dgux*)
cristy99bd5232011-12-07 14:38:20 +000015684 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015685 need_lib_prefix=no
15686 need_version=no
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 ;;
15691
cristy73bd4a52010-10-05 11:24:23 +000015692freebsd* | dragonfly*)
15693 # DragonFly does not have aout. When/if they implement a new
15694 # versioning mechanism, adjust this.
15695 if test -x /usr/bin/objformat; then
15696 objformat=`/usr/bin/objformat`
15697 else
15698 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015699 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000015700 *) objformat=elf ;;
15701 esac
15702 fi
15703 version_type=freebsd-$objformat
15704 case $version_type in
15705 freebsd-elf*)
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15707 need_version=no
15708 need_lib_prefix=no
15709 ;;
15710 freebsd-*)
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15712 need_version=yes
15713 ;;
15714 esac
15715 shlibpath_var=LD_LIBRARY_PATH
15716 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015717 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015718 shlibpath_overrides_runpath=yes
15719 ;;
15720 freebsd3.[01]* | freebsdelf3.[01]*)
15721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15723 ;;
15724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15726 shlibpath_overrides_runpath=no
15727 hardcode_into_libs=yes
15728 ;;
15729 *) # from 4.6 on, and DragonFly
15730 shlibpath_overrides_runpath=yes
15731 hardcode_into_libs=yes
15732 ;;
15733 esac
15734 ;;
15735
15736gnu*)
cristy99bd5232011-12-07 14:38:20 +000015737 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000015743 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000015744 hardcode_into_libs=yes
15745 ;;
15746
cristy0c60a692010-11-04 01:09:47 +000015747haiku*)
cristy99bd5232011-12-07 14:38:20 +000015748 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000015749 need_lib_prefix=no
15750 need_version=no
15751 dynamic_linker="$host_os runtime_loader"
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 shlibpath_var=LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes
15756 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15757 hardcode_into_libs=yes
15758 ;;
15759
cristy73bd4a52010-10-05 11:24:23 +000015760hpux9* | hpux10* | hpux11*)
15761 # Give a soname corresponding to the major version so that dld.sl refuses to
15762 # link against other versions.
15763 version_type=sunos
15764 need_lib_prefix=no
15765 need_version=no
15766 case $host_cpu in
15767 ia64*)
15768 shrext_cmds='.so'
15769 hardcode_into_libs=yes
15770 dynamic_linker="$host_os dld.so"
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 if test "X$HPUX_IA64_MODE" = X32; then
15776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15777 else
15778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15779 fi
15780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15781 ;;
15782 hppa*64*)
15783 shrext_cmds='.sl'
15784 hardcode_into_libs=yes
15785 dynamic_linker="$host_os dld.sl"
15786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15792 ;;
15793 *)
15794 shrext_cmds='.sl'
15795 dynamic_linker="$host_os dld.sl"
15796 shlibpath_var=SHLIB_PATH
15797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 ;;
15801 esac
cristy0c60a692010-11-04 01:09:47 +000015802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015803 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015804 # or fails outright, so override atomically:
15805 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015806 ;;
15807
15808interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000015809 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015810 need_lib_prefix=no
15811 need_version=no
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=no
15817 hardcode_into_libs=yes
15818 ;;
15819
15820irix5* | irix6* | nonstopux*)
15821 case $host_os in
15822 nonstopux*) version_type=nonstopux ;;
15823 *)
15824 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000015825 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015826 else
15827 version_type=irix
15828 fi ;;
15829 esac
15830 need_lib_prefix=no
15831 need_version=no
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15834 case $host_os in
15835 irix5* | nonstopux*)
15836 libsuff= shlibsuff=
15837 ;;
15838 *)
15839 case $LD in # libtool.m4 will add one of these switches to LD
15840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15841 libsuff= shlibsuff= libmagic=32-bit;;
15842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15843 libsuff=32 shlibsuff=N32 libmagic=N32;;
15844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15846 *) libsuff= shlibsuff= libmagic=never-match;;
15847 esac
15848 ;;
15849 esac
15850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15851 shlibpath_overrides_runpath=no
15852 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15853 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15854 hardcode_into_libs=yes
15855 ;;
15856
15857# No shared lib support for Linux oldld, aout, or coff.
15858linux*oldld* | linux*aout* | linux*coff*)
15859 dynamic_linker=no
15860 ;;
15861
cristy99bd5232011-12-07 14:38:20 +000015862# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000015863linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000015864 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015865 need_lib_prefix=no
15866 need_version=no
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15870 shlibpath_var=LD_LIBRARY_PATH
15871 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015872
cristy73bd4a52010-10-05 11:24:23 +000015873 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015874 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015875 $as_echo_n "(cached) " >&6
15876else
15877 lt_cv_shlibpath_overrides_runpath=no
15878 save_LDFLAGS=$LDFLAGS
15879 save_libdir=$libdir
15880 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15881 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015883/* end confdefs.h. */
15884
15885int
15886main ()
15887{
15888
15889 ;
15890 return 0;
15891}
15892_ACEOF
15893if ac_fn_c_try_link "$LINENO"; then :
15894 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015895 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015896fi
15897fi
15898rm -f core conftest.err conftest.$ac_objext \
15899 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015900 LDFLAGS=$save_LDFLAGS
15901 libdir=$save_libdir
15902
15903fi
15904
15905 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015906
15907 # This implies no fast_install, which is unacceptable.
15908 # Some rework will be needed to allow for fast_install
15909 # before this can be enabled.
15910 hardcode_into_libs=yes
15911
15912 # Add ABI-specific directories to the system library path.
15913 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15914
15915 # Append ld.so.conf contents to the search path
15916 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015917 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 +000015918 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015919
cristy73bd4a52010-10-05 11:24:23 +000015920 fi
15921
15922 # We used to test for /lib/ld.so.1 and disable shared libraries on
15923 # powerpc, because MkLinux only supported shared libraries with the
15924 # GNU dynamic linker. Since this was broken with cross compilers,
15925 # most powerpc-linux boxes support dynamic linking these days and
15926 # people can always --disable-shared, the test was removed, and we
15927 # assume the GNU/Linux dynamic linker is in use.
15928 dynamic_linker='GNU/Linux ld.so'
15929 ;;
15930
15931netbsd*)
15932 version_type=sunos
15933 need_lib_prefix=no
15934 need_version=no
15935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15938 dynamic_linker='NetBSD (a.out) ld.so'
15939 else
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 dynamic_linker='NetBSD ld.elf_so'
15943 fi
15944 shlibpath_var=LD_LIBRARY_PATH
15945 shlibpath_overrides_runpath=yes
15946 hardcode_into_libs=yes
15947 ;;
15948
15949newsos6)
cristy99bd5232011-12-07 14:38:20 +000015950 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 shlibpath_var=LD_LIBRARY_PATH
15953 shlibpath_overrides_runpath=yes
15954 ;;
15955
15956*nto* | *qnx*)
15957 version_type=qnx
15958 need_lib_prefix=no
15959 need_version=no
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 shlibpath_overrides_runpath=no
15964 hardcode_into_libs=yes
15965 dynamic_linker='ldqnx.so'
15966 ;;
15967
15968openbsd*)
15969 version_type=sunos
15970 sys_lib_dlsearch_path_spec="/usr/lib"
15971 need_lib_prefix=no
15972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15973 case $host_os in
15974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15975 *) need_version=no ;;
15976 esac
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15981 case $host_os in
15982 openbsd2.[89] | openbsd2.[89].*)
15983 shlibpath_overrides_runpath=no
15984 ;;
15985 *)
15986 shlibpath_overrides_runpath=yes
15987 ;;
15988 esac
15989 else
15990 shlibpath_overrides_runpath=yes
15991 fi
15992 ;;
15993
15994os2*)
15995 libname_spec='$name'
15996 shrext_cmds=".dll"
15997 need_lib_prefix=no
15998 library_names_spec='$libname${shared_ext} $libname.a'
15999 dynamic_linker='OS/2 ld.exe'
16000 shlibpath_var=LIBPATH
16001 ;;
16002
16003osf3* | osf4* | osf5*)
16004 version_type=osf
16005 need_lib_prefix=no
16006 need_version=no
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16012 ;;
16013
16014rdos*)
16015 dynamic_linker=no
16016 ;;
16017
16018solaris*)
cristy99bd5232011-12-07 14:38:20 +000016019 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016020 need_lib_prefix=no
16021 need_version=no
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16024 shlibpath_var=LD_LIBRARY_PATH
16025 shlibpath_overrides_runpath=yes
16026 hardcode_into_libs=yes
16027 # ldd complains unless libraries are executable
16028 postinstall_cmds='chmod +x $lib'
16029 ;;
16030
16031sunos4*)
16032 version_type=sunos
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 shlibpath_overrides_runpath=yes
16037 if test "$with_gnu_ld" = yes; then
16038 need_lib_prefix=no
16039 fi
16040 need_version=yes
16041 ;;
16042
16043sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016044 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 case $host_vendor in
16049 sni)
16050 shlibpath_overrides_runpath=no
16051 need_lib_prefix=no
16052 runpath_var=LD_RUN_PATH
16053 ;;
16054 siemens)
16055 need_lib_prefix=no
16056 ;;
16057 motorola)
16058 need_lib_prefix=no
16059 need_version=no
16060 shlibpath_overrides_runpath=no
16061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16062 ;;
16063 esac
16064 ;;
16065
16066sysv4*MP*)
16067 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016068 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16070 soname_spec='$libname${shared_ext}.$major'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 fi
16073 ;;
16074
16075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16076 version_type=freebsd-elf
16077 need_lib_prefix=no
16078 need_version=no
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=yes
16083 hardcode_into_libs=yes
16084 if test "$with_gnu_ld" = yes; then
16085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16086 else
16087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16088 case $host_os in
16089 sco3.2v5*)
16090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16091 ;;
16092 esac
16093 fi
16094 sys_lib_dlsearch_path_spec='/usr/lib'
16095 ;;
16096
16097tpf*)
16098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016099 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016100 need_lib_prefix=no
16101 need_version=no
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 shlibpath_overrides_runpath=no
16105 hardcode_into_libs=yes
16106 ;;
16107
16108uts4*)
cristy99bd5232011-12-07 14:38:20 +000016109 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 ;;
16114
16115*)
16116 dynamic_linker=no
16117 ;;
16118esac
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16120$as_echo "$dynamic_linker" >&6; }
16121test "$dynamic_linker" = no && can_build_shared=no
16122
16123variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16124if test "$GCC" = yes; then
16125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16126fi
16127
16128if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16130fi
16131if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16133fi
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
cristy0c60a692010-11-04 01:09:47 +000016221
16222
16223
16224
16225
cristy73bd4a52010-10-05 11:24:23 +000016226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16227$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16228hardcode_action=
16229if test -n "$hardcode_libdir_flag_spec" ||
16230 test -n "$runpath_var" ||
16231 test "X$hardcode_automatic" = "Xyes" ; then
16232
16233 # We can hardcode non-existent directories.
16234 if test "$hardcode_direct" != no &&
16235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16236 # have to relink, otherwise we might link with an installed library
16237 # when we should be linking with a yet-to-be-installed one
16238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16239 test "$hardcode_minus_L" != no; then
16240 # Linking always hardcodes the temporary library directory.
16241 hardcode_action=relink
16242 else
16243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16244 hardcode_action=immediate
16245 fi
16246else
16247 # We cannot hardcode anything, or else we can only hardcode existing
16248 # directories.
16249 hardcode_action=unsupported
16250fi
16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16252$as_echo "$hardcode_action" >&6; }
16253
16254if test "$hardcode_action" = relink ||
16255 test "$inherit_rpath" = yes; then
16256 # Fast installation is not supported
16257 enable_fast_install=no
16258elif test "$shlibpath_overrides_runpath" = yes ||
16259 test "$enable_shared" = no; then
16260 # Fast installation is not necessary
16261 enable_fast_install=needless
16262fi
16263
16264
16265
16266
16267
16268
16269 if test "x$enable_dlopen" != xyes; then
16270 enable_dlopen=unknown
16271 enable_dlopen_self=unknown
16272 enable_dlopen_self_static=unknown
16273else
16274 lt_cv_dlopen=no
16275 lt_cv_dlopen_libs=
16276
16277 case $host_os in
16278 beos*)
16279 lt_cv_dlopen="load_add_on"
16280 lt_cv_dlopen_libs=
16281 lt_cv_dlopen_self=yes
16282 ;;
16283
16284 mingw* | pw32* | cegcc*)
16285 lt_cv_dlopen="LoadLibrary"
16286 lt_cv_dlopen_libs=
16287 ;;
16288
16289 cygwin*)
16290 lt_cv_dlopen="dlopen"
16291 lt_cv_dlopen_libs=
16292 ;;
16293
16294 darwin*)
16295 # if libdl is installed we need to link against it
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16297$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016298if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016299 $as_echo_n "(cached) " >&6
16300else
16301 ac_check_lib_save_LIBS=$LIBS
16302LIBS="-ldl $LIBS"
16303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304/* end confdefs.h. */
16305
16306/* Override any GCC internal prototype to avoid an error.
16307 Use char because int might match the return type of a GCC
16308 builtin and then its argument prototype would still apply. */
16309#ifdef __cplusplus
16310extern "C"
16311#endif
16312char dlopen ();
16313int
16314main ()
16315{
16316return dlopen ();
16317 ;
16318 return 0;
16319}
16320_ACEOF
16321if ac_fn_c_try_link "$LINENO"; then :
16322 ac_cv_lib_dl_dlopen=yes
16323else
16324 ac_cv_lib_dl_dlopen=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16328LIBS=$ac_check_lib_save_LIBS
16329fi
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16331$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016332if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16334else
16335
16336 lt_cv_dlopen="dyld"
16337 lt_cv_dlopen_libs=
16338 lt_cv_dlopen_self=yes
16339
16340fi
16341
16342 ;;
16343
16344 *)
16345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016346if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016347 lt_cv_dlopen="shl_load"
16348else
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16350$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016351if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016352 $as_echo_n "(cached) " >&6
16353else
16354 ac_check_lib_save_LIBS=$LIBS
16355LIBS="-ldld $LIBS"
16356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h. */
16358
16359/* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16362#ifdef __cplusplus
16363extern "C"
16364#endif
16365char shl_load ();
16366int
16367main ()
16368{
16369return shl_load ();
16370 ;
16371 return 0;
16372}
16373_ACEOF
16374if ac_fn_c_try_link "$LINENO"; then :
16375 ac_cv_lib_dld_shl_load=yes
16376else
16377 ac_cv_lib_dld_shl_load=no
16378fi
16379rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16381LIBS=$ac_check_lib_save_LIBS
16382fi
16383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16384$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016385if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16387else
16388 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016389if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016390 lt_cv_dlopen="dlopen"
16391else
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16393$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016394if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016395 $as_echo_n "(cached) " >&6
16396else
16397 ac_check_lib_save_LIBS=$LIBS
16398LIBS="-ldl $LIBS"
16399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h. */
16401
16402/* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16405#ifdef __cplusplus
16406extern "C"
16407#endif
16408char dlopen ();
16409int
16410main ()
16411{
16412return dlopen ();
16413 ;
16414 return 0;
16415}
16416_ACEOF
16417if ac_fn_c_try_link "$LINENO"; then :
16418 ac_cv_lib_dl_dlopen=yes
16419else
16420 ac_cv_lib_dl_dlopen=no
16421fi
16422rm -f core conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16424LIBS=$ac_check_lib_save_LIBS
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16427$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016428if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16430else
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16432$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016433if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016434 $as_echo_n "(cached) " >&6
16435else
16436 ac_check_lib_save_LIBS=$LIBS
16437LIBS="-lsvld $LIBS"
16438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439/* end confdefs.h. */
16440
16441/* Override any GCC internal prototype to avoid an error.
16442 Use char because int might match the return type of a GCC
16443 builtin and then its argument prototype would still apply. */
16444#ifdef __cplusplus
16445extern "C"
16446#endif
16447char dlopen ();
16448int
16449main ()
16450{
16451return dlopen ();
16452 ;
16453 return 0;
16454}
16455_ACEOF
16456if ac_fn_c_try_link "$LINENO"; then :
16457 ac_cv_lib_svld_dlopen=yes
16458else
16459 ac_cv_lib_svld_dlopen=no
16460fi
16461rm -f core conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463LIBS=$ac_check_lib_save_LIBS
16464fi
16465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16466$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016467if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16469else
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16471$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016472if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016473 $as_echo_n "(cached) " >&6
16474else
16475 ac_check_lib_save_LIBS=$LIBS
16476LIBS="-ldld $LIBS"
16477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h. */
16479
16480/* Override any GCC internal prototype to avoid an error.
16481 Use char because int might match the return type of a GCC
16482 builtin and then its argument prototype would still apply. */
16483#ifdef __cplusplus
16484extern "C"
16485#endif
16486char dld_link ();
16487int
16488main ()
16489{
16490return dld_link ();
16491 ;
16492 return 0;
16493}
16494_ACEOF
16495if ac_fn_c_try_link "$LINENO"; then :
16496 ac_cv_lib_dld_dld_link=yes
16497else
16498 ac_cv_lib_dld_dld_link=no
16499fi
16500rm -f core conftest.err conftest.$ac_objext \
16501 conftest$ac_exeext conftest.$ac_ext
16502LIBS=$ac_check_lib_save_LIBS
16503fi
16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16505$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016506if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16508fi
16509
16510
16511fi
16512
16513
16514fi
16515
16516
16517fi
16518
16519
16520fi
16521
16522
16523fi
16524
16525 ;;
16526 esac
16527
16528 if test "x$lt_cv_dlopen" != xno; then
16529 enable_dlopen=yes
16530 else
16531 enable_dlopen=no
16532 fi
16533
16534 case $lt_cv_dlopen in
16535 dlopen)
16536 save_CPPFLAGS="$CPPFLAGS"
16537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16538
16539 save_LDFLAGS="$LDFLAGS"
16540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16541
16542 save_LIBS="$LIBS"
16543 LIBS="$lt_cv_dlopen_libs $LIBS"
16544
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16546$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016547if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016548 $as_echo_n "(cached) " >&6
16549else
16550 if test "$cross_compiling" = yes; then :
16551 lt_cv_dlopen_self=cross
16552else
16553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16554 lt_status=$lt_dlunknown
16555 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016556#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016557#include "confdefs.h"
16558
16559#if HAVE_DLFCN_H
16560#include <dlfcn.h>
16561#endif
16562
16563#include <stdio.h>
16564
16565#ifdef RTLD_GLOBAL
16566# define LT_DLGLOBAL RTLD_GLOBAL
16567#else
16568# ifdef DL_GLOBAL
16569# define LT_DLGLOBAL DL_GLOBAL
16570# else
16571# define LT_DLGLOBAL 0
16572# endif
16573#endif
16574
16575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16576 find out it does not work in some platform. */
16577#ifndef LT_DLLAZY_OR_NOW
16578# ifdef RTLD_LAZY
16579# define LT_DLLAZY_OR_NOW RTLD_LAZY
16580# else
16581# ifdef DL_LAZY
16582# define LT_DLLAZY_OR_NOW DL_LAZY
16583# else
16584# ifdef RTLD_NOW
16585# define LT_DLLAZY_OR_NOW RTLD_NOW
16586# else
16587# ifdef DL_NOW
16588# define LT_DLLAZY_OR_NOW DL_NOW
16589# else
16590# define LT_DLLAZY_OR_NOW 0
16591# endif
16592# endif
16593# endif
16594# endif
16595#endif
16596
cristy0c60a692010-11-04 01:09:47 +000016597/* When -fvisbility=hidden is used, assume the code has been annotated
16598 correspondingly for the symbols needed. */
16599#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016600int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016601#endif
16602
cristyda16f162011-02-19 23:52:17 +000016603int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016604int main ()
16605{
16606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16607 int status = $lt_dlunknown;
16608
16609 if (self)
16610 {
16611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016612 else
16613 {
16614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16615 else puts (dlerror ());
16616 }
cristy73bd4a52010-10-05 11:24:23 +000016617 /* dlclose (self); */
16618 }
16619 else
16620 puts (dlerror ());
16621
16622 return status;
16623}
16624_LT_EOF
16625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16626 (eval $ac_link) 2>&5
16627 ac_status=$?
16628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16630 (./conftest; exit; ) >&5 2>/dev/null
16631 lt_status=$?
16632 case x$lt_status in
16633 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16634 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16635 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16636 esac
16637 else :
16638 # compilation failed
16639 lt_cv_dlopen_self=no
16640 fi
16641fi
16642rm -fr conftest*
16643
16644
16645fi
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16647$as_echo "$lt_cv_dlopen_self" >&6; }
16648
16649 if test "x$lt_cv_dlopen_self" = xyes; then
16650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16652$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016653if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016654 $as_echo_n "(cached) " >&6
16655else
16656 if test "$cross_compiling" = yes; then :
16657 lt_cv_dlopen_self_static=cross
16658else
16659 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16660 lt_status=$lt_dlunknown
16661 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016662#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016663#include "confdefs.h"
16664
16665#if HAVE_DLFCN_H
16666#include <dlfcn.h>
16667#endif
16668
16669#include <stdio.h>
16670
16671#ifdef RTLD_GLOBAL
16672# define LT_DLGLOBAL RTLD_GLOBAL
16673#else
16674# ifdef DL_GLOBAL
16675# define LT_DLGLOBAL DL_GLOBAL
16676# else
16677# define LT_DLGLOBAL 0
16678# endif
16679#endif
16680
16681/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16682 find out it does not work in some platform. */
16683#ifndef LT_DLLAZY_OR_NOW
16684# ifdef RTLD_LAZY
16685# define LT_DLLAZY_OR_NOW RTLD_LAZY
16686# else
16687# ifdef DL_LAZY
16688# define LT_DLLAZY_OR_NOW DL_LAZY
16689# else
16690# ifdef RTLD_NOW
16691# define LT_DLLAZY_OR_NOW RTLD_NOW
16692# else
16693# ifdef DL_NOW
16694# define LT_DLLAZY_OR_NOW DL_NOW
16695# else
16696# define LT_DLLAZY_OR_NOW 0
16697# endif
16698# endif
16699# endif
16700# endif
16701#endif
16702
cristy0c60a692010-11-04 01:09:47 +000016703/* When -fvisbility=hidden is used, assume the code has been annotated
16704 correspondingly for the symbols needed. */
16705#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016706int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016707#endif
16708
cristyda16f162011-02-19 23:52:17 +000016709int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016710int main ()
16711{
16712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16713 int status = $lt_dlunknown;
16714
16715 if (self)
16716 {
16717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016718 else
16719 {
16720 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16721 else puts (dlerror ());
16722 }
cristy73bd4a52010-10-05 11:24:23 +000016723 /* dlclose (self); */
16724 }
16725 else
16726 puts (dlerror ());
16727
16728 return status;
16729}
16730_LT_EOF
16731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16732 (eval $ac_link) 2>&5
16733 ac_status=$?
16734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16735 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16736 (./conftest; exit; ) >&5 2>/dev/null
16737 lt_status=$?
16738 case x$lt_status in
16739 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16740 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16741 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16742 esac
16743 else :
16744 # compilation failed
16745 lt_cv_dlopen_self_static=no
16746 fi
16747fi
16748rm -fr conftest*
16749
16750
16751fi
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16753$as_echo "$lt_cv_dlopen_self_static" >&6; }
16754 fi
16755
16756 CPPFLAGS="$save_CPPFLAGS"
16757 LDFLAGS="$save_LDFLAGS"
16758 LIBS="$save_LIBS"
16759 ;;
16760 esac
16761
16762 case $lt_cv_dlopen_self in
16763 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16764 *) enable_dlopen_self=unknown ;;
16765 esac
16766
16767 case $lt_cv_dlopen_self_static in
16768 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16769 *) enable_dlopen_self_static=unknown ;;
16770 esac
16771fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789striplib=
16790old_striplib=
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16792$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16793if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16797$as_echo "yes" >&6; }
16798else
16799# FIXME - insert some real tests, host_os isn't really good enough
16800 case $host_os in
16801 darwin*)
16802 if test -n "$STRIP" ; then
16803 striplib="$STRIP -x"
16804 old_striplib="$STRIP -S"
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16806$as_echo "yes" >&6; }
16807 else
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16809$as_echo "no" >&6; }
16810 fi
16811 ;;
16812 *)
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814$as_echo "no" >&6; }
16815 ;;
16816 esac
16817fi
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830 # Report which library types will actually be built
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16832$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16834$as_echo "$can_build_shared" >&6; }
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16837$as_echo_n "checking whether to build shared libraries... " >&6; }
16838 test "$can_build_shared" = "no" && enable_shared=no
16839
16840 # On AIX, shared libraries and static libraries use the same namespace, and
16841 # are all built from PIC.
16842 case $host_os in
16843 aix3*)
16844 test "$enable_shared" = yes && enable_static=no
16845 if test -n "$RANLIB"; then
16846 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16847 postinstall_cmds='$RANLIB $lib'
16848 fi
16849 ;;
16850
16851 aix[4-9]*)
16852 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16853 test "$enable_shared" = yes && enable_static=no
16854 fi
16855 ;;
16856 esac
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16858$as_echo "$enable_shared" >&6; }
16859
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16861$as_echo_n "checking whether to build static libraries... " >&6; }
16862 # Make sure either enable_shared or enable_static is yes.
16863 test "$enable_shared" = yes || enable_static=yes
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16865$as_echo "$enable_static" >&6; }
16866
16867
16868
16869
16870fi
16871ac_ext=c
16872ac_cpp='$CPP $CPPFLAGS'
16873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16875ac_compiler_gnu=$ac_cv_c_compiler_gnu
16876
16877CC="$lt_save_CC"
16878
cristy0c60a692010-11-04 01:09:47 +000016879 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16880 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16881 (test "X$CXX" != "Xg++"))) ; then
16882 ac_ext=cpp
16883ac_cpp='$CXXCPP $CPPFLAGS'
16884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16888$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16889if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016890 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016891 $as_echo_n "(cached) " >&6
16892else
16893 # Double quotes because CXXCPP needs to be expanded
16894 for CXXCPP in "$CXX -E" "/lib/cpp"
16895 do
16896 ac_preproc_ok=false
16897for ac_cxx_preproc_warn_flag in '' yes
16898do
16899 # Use a header file that comes with gcc, so configuring glibc
16900 # with a fresh cross-compiler works.
16901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16902 # <limits.h> exists even on freestanding compilers.
16903 # On the NeXT, cc -E runs the code through the compiler's parser,
16904 # not just through cpp. "Syntax error" is here to catch this case.
16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906/* end confdefs.h. */
16907#ifdef __STDC__
16908# include <limits.h>
16909#else
16910# include <assert.h>
16911#endif
16912 Syntax error
16913_ACEOF
16914if ac_fn_cxx_try_cpp "$LINENO"; then :
16915
16916else
16917 # Broken: fails on valid input.
16918continue
16919fi
cristyda16f162011-02-19 23:52:17 +000016920rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016921
16922 # OK, works on sane cases. Now check whether nonexistent headers
16923 # can be detected and how.
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h. */
16926#include <ac_nonexistent.h>
16927_ACEOF
16928if ac_fn_cxx_try_cpp "$LINENO"; then :
16929 # Broken: success on invalid input.
16930continue
16931else
16932 # Passes both tests.
16933ac_preproc_ok=:
16934break
16935fi
cristyda16f162011-02-19 23:52:17 +000016936rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016937
16938done
16939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016940rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016941if $ac_preproc_ok; then :
16942 break
16943fi
16944
16945 done
16946 ac_cv_prog_CXXCPP=$CXXCPP
16947
16948fi
16949 CXXCPP=$ac_cv_prog_CXXCPP
16950else
16951 ac_cv_prog_CXXCPP=$CXXCPP
16952fi
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16954$as_echo "$CXXCPP" >&6; }
16955ac_preproc_ok=false
16956for ac_cxx_preproc_warn_flag in '' yes
16957do
16958 # Use a header file that comes with gcc, so configuring glibc
16959 # with a fresh cross-compiler works.
16960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 # <limits.h> exists even on freestanding compilers.
16962 # On the NeXT, cc -E runs the code through the compiler's parser,
16963 # not just through cpp. "Syntax error" is here to catch this case.
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965/* end confdefs.h. */
16966#ifdef __STDC__
16967# include <limits.h>
16968#else
16969# include <assert.h>
16970#endif
16971 Syntax error
16972_ACEOF
16973if ac_fn_cxx_try_cpp "$LINENO"; then :
16974
16975else
16976 # Broken: fails on valid input.
16977continue
16978fi
cristyda16f162011-02-19 23:52:17 +000016979rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016980
16981 # OK, works on sane cases. Now check whether nonexistent headers
16982 # can be detected and how.
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h. */
16985#include <ac_nonexistent.h>
16986_ACEOF
16987if ac_fn_cxx_try_cpp "$LINENO"; then :
16988 # Broken: success on invalid input.
16989continue
16990else
16991 # Passes both tests.
16992ac_preproc_ok=:
16993break
16994fi
cristyda16f162011-02-19 23:52:17 +000016995rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016996
16997done
16998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016999rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017000if $ac_preproc_ok; then :
17001
17002else
17003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17005as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17006See \`config.log' for more details" "$LINENO" 5; }
17007fi
17008
17009ac_ext=c
17010ac_cpp='$CPP $CPPFLAGS'
17011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17013ac_compiler_gnu=$ac_cv_c_compiler_gnu
17014
17015else
17016 _lt_caught_CXX_error=yes
17017fi
cristy73bd4a52010-10-05 11:24:23 +000017018
17019ac_ext=cpp
17020ac_cpp='$CXXCPP $CPPFLAGS'
17021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17024
17025archive_cmds_need_lc_CXX=no
17026allow_undefined_flag_CXX=
17027always_export_symbols_CXX=no
17028archive_expsym_cmds_CXX=
17029compiler_needs_object_CXX=no
17030export_dynamic_flag_spec_CXX=
17031hardcode_direct_CXX=no
17032hardcode_direct_absolute_CXX=no
17033hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017034hardcode_libdir_separator_CXX=
17035hardcode_minus_L_CXX=no
17036hardcode_shlibpath_var_CXX=unsupported
17037hardcode_automatic_CXX=no
17038inherit_rpath_CXX=no
17039module_cmds_CXX=
17040module_expsym_cmds_CXX=
17041link_all_deplibs_CXX=unknown
17042old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017043reload_flag_CXX=$reload_flag
17044reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017045no_undefined_flag_CXX=
17046whole_archive_flag_spec_CXX=
17047enable_shared_with_static_runtimes_CXX=no
17048
17049# Source file extension for C++ test sources.
17050ac_ext=cpp
17051
17052# Object file extension for compiled C++ test sources.
17053objext=o
17054objext_CXX=$objext
17055
17056# No sense in running all these tests if we already determined that
17057# the CXX compiler isn't working. Some variables (like enable_shared)
17058# are currently assumed to apply to all compilers on this platform,
17059# and will be corrupted by setting them based on a non-working compiler.
17060if test "$_lt_caught_CXX_error" != yes; then
17061 # Code to be used in simple compile tests
17062 lt_simple_compile_test_code="int some_variable = 0;"
17063
17064 # Code to be used in simple link tests
17065 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17066
17067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17068
17069
17070
17071
17072
17073
17074# If no C compiler was specified, use CC.
17075LTCC=${LTCC-"$CC"}
17076
17077# If no C compiler flags were specified, use CFLAGS.
17078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17079
17080# Allow CC to be a program name with arguments.
17081compiler=$CC
17082
17083
17084 # save warnings/boilerplate of simple test code
17085 ac_outfile=conftest.$ac_objext
17086echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17088_lt_compiler_boilerplate=`cat conftest.err`
17089$RM conftest*
17090
17091 ac_outfile=conftest.$ac_objext
17092echo "$lt_simple_link_test_code" >conftest.$ac_ext
17093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17094_lt_linker_boilerplate=`cat conftest.err`
17095$RM -r conftest*
17096
17097
17098 # Allow CC to be a program name with arguments.
17099 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017100 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017101 lt_save_LD=$LD
17102 lt_save_GCC=$GCC
17103 GCC=$GXX
17104 lt_save_with_gnu_ld=$with_gnu_ld
17105 lt_save_path_LD=$lt_cv_path_LD
17106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17108 else
17109 $as_unset lt_cv_prog_gnu_ld
17110 fi
17111 if test -n "${lt_cv_path_LDCXX+set}"; then
17112 lt_cv_path_LD=$lt_cv_path_LDCXX
17113 else
17114 $as_unset lt_cv_path_LD
17115 fi
17116 test -z "${LDCXX+set}" || LD=$LDCXX
17117 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017118 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017119 compiler=$CC
17120 compiler_CXX=$CC
17121 for cc_temp in $compiler""; do
17122 case $cc_temp in
17123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17125 \-*) ;;
17126 *) break;;
17127 esac
17128done
cristy0c60a692010-11-04 01:09:47 +000017129cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017130
17131
17132 if test -n "$compiler"; then
17133 # We don't want -fno-exception when compiling C++ code, so set the
17134 # no_builtin_flag separately
17135 if test "$GXX" = yes; then
17136 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17137 else
17138 lt_prog_compiler_no_builtin_flag_CXX=
17139 fi
17140
17141 if test "$GXX" = yes; then
17142 # Set up default GNU C++ configuration
17143
17144
17145
17146# Check whether --with-gnu-ld was given.
17147if test "${with_gnu_ld+set}" = set; then :
17148 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17149else
17150 with_gnu_ld=no
17151fi
17152
17153ac_prog=ld
17154if test "$GCC" = yes; then
17155 # Check if gcc -print-prog-name=ld gives a path.
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17157$as_echo_n "checking for ld used by $CC... " >&6; }
17158 case $host in
17159 *-*-mingw*)
17160 # gcc leaves a trailing carriage return which upsets mingw
17161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17162 *)
17163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17164 esac
17165 case $ac_prog in
17166 # Accept absolute paths.
17167 [\\/]* | ?:[\\/]*)
17168 re_direlt='/[^/][^/]*/\.\./'
17169 # Canonicalize the pathname of ld
17170 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17171 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17172 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17173 done
17174 test -z "$LD" && LD="$ac_prog"
17175 ;;
17176 "")
17177 # If it fails, then pretend we aren't using GCC.
17178 ac_prog=ld
17179 ;;
17180 *)
17181 # If it is relative, then search for the first ld in PATH.
17182 with_gnu_ld=unknown
17183 ;;
17184 esac
17185elif test "$with_gnu_ld" = yes; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17187$as_echo_n "checking for GNU ld... " >&6; }
17188else
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17190$as_echo_n "checking for non-GNU ld... " >&6; }
17191fi
cristyda16f162011-02-19 23:52:17 +000017192if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017193 $as_echo_n "(cached) " >&6
17194else
17195 if test -z "$LD"; then
17196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17197 for ac_dir in $PATH; do
17198 IFS="$lt_save_ifs"
17199 test -z "$ac_dir" && ac_dir=.
17200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17201 lt_cv_path_LD="$ac_dir/$ac_prog"
17202 # Check to see if the program is GNU ld. I'd rather use --version,
17203 # but apparently some variants of GNU ld only accept -v.
17204 # Break only if it was the GNU/non-GNU ld that we prefer.
17205 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17206 *GNU* | *'with BFD'*)
17207 test "$with_gnu_ld" != no && break
17208 ;;
17209 *)
17210 test "$with_gnu_ld" != yes && break
17211 ;;
17212 esac
17213 fi
17214 done
17215 IFS="$lt_save_ifs"
17216else
17217 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17218fi
17219fi
17220
17221LD="$lt_cv_path_LD"
17222if test -n "$LD"; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17224$as_echo "$LD" >&6; }
17225else
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
17228fi
cristy98dddb52010-11-04 00:30:15 +000017229test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17231$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017232if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017233 $as_echo_n "(cached) " >&6
17234else
17235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17236case `$LD -v 2>&1 </dev/null` in
17237*GNU* | *'with BFD'*)
17238 lt_cv_prog_gnu_ld=yes
17239 ;;
17240*)
17241 lt_cv_prog_gnu_ld=no
17242 ;;
17243esac
17244fi
17245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17246$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17247with_gnu_ld=$lt_cv_prog_gnu_ld
17248
17249
17250
17251
17252
17253
17254
17255 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17256 # archiving commands below assume that GNU ld is being used.
17257 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017258 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17259 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 +000017260
17261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17263
17264 # If archive_cmds runs LD, not CC, wlarc should be empty
17265 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17266 # investigate it a little bit more. (MM)
17267 wlarc='${wl}'
17268
17269 # ancient GNU ld didn't support --whole-archive et. al.
17270 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17271 $GREP 'no-whole-archive' > /dev/null; then
17272 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17273 else
17274 whole_archive_flag_spec_CXX=
17275 fi
17276 else
17277 with_gnu_ld=no
17278 wlarc=
17279
17280 # A generic and very simple default shared library creation
17281 # command for GNU C++ for the case where it uses the native
17282 # linker, instead of GNU ld. If possible, this setting should
17283 # overridden to take advantage of the native linker features on
17284 # the platform it is being used on.
17285 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17286 fi
17287
17288 # Commands to make compiler produce verbose output that lists
17289 # what "hidden" libraries, object files and flags are used when
17290 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017291 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017292
17293 else
17294 GXX=no
17295 with_gnu_ld=no
17296 wlarc=
17297 fi
17298
17299 # PORTME: fill in a description of your system's C++ link characteristics
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17301$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17302 ld_shlibs_CXX=yes
17303 case $host_os in
17304 aix3*)
17305 # FIXME: insert proper C++ library support
17306 ld_shlibs_CXX=no
17307 ;;
17308 aix[4-9]*)
17309 if test "$host_cpu" = ia64; then
17310 # On IA64, the linker does run time linking by default, so we don't
17311 # have to do anything special.
17312 aix_use_runtimelinking=no
17313 exp_sym_flag='-Bexport'
17314 no_entry_flag=""
17315 else
17316 aix_use_runtimelinking=no
17317
17318 # Test if we are trying to use run time linking or normal
17319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17320 # need to do runtime linking.
17321 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17322 for ld_flag in $LDFLAGS; do
17323 case $ld_flag in
17324 *-brtl*)
17325 aix_use_runtimelinking=yes
17326 break
17327 ;;
17328 esac
17329 done
17330 ;;
17331 esac
17332
17333 exp_sym_flag='-bexport'
17334 no_entry_flag='-bnoentry'
17335 fi
17336
17337 # When large executables or shared objects are built, AIX ld can
17338 # have problems creating the table of contents. If linking a library
17339 # or program results in "error TOC overflow" add -mminimal-toc to
17340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17342
17343 archive_cmds_CXX=''
17344 hardcode_direct_CXX=yes
17345 hardcode_direct_absolute_CXX=yes
17346 hardcode_libdir_separator_CXX=':'
17347 link_all_deplibs_CXX=yes
17348 file_list_spec_CXX='${wl}-f,'
17349
17350 if test "$GXX" = yes; then
17351 case $host_os in aix4.[012]|aix4.[012].*)
17352 # We only want to do this on AIX 4.2 and lower, the check
17353 # below for broken collect2 doesn't work under 4.3+
17354 collect2name=`${CC} -print-prog-name=collect2`
17355 if test -f "$collect2name" &&
17356 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17357 then
17358 # We have reworked collect2
17359 :
17360 else
17361 # We have old collect2
17362 hardcode_direct_CXX=unsupported
17363 # It fails to find uninstalled libraries when the uninstalled
17364 # path is not listed in the libpath. Setting hardcode_minus_L
17365 # to unsupported forces relinking
17366 hardcode_minus_L_CXX=yes
17367 hardcode_libdir_flag_spec_CXX='-L$libdir'
17368 hardcode_libdir_separator_CXX=
17369 fi
17370 esac
17371 shared_flag='-shared'
17372 if test "$aix_use_runtimelinking" = yes; then
17373 shared_flag="$shared_flag "'${wl}-G'
17374 fi
17375 else
17376 # not using gcc
17377 if test "$host_cpu" = ia64; then
17378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17379 # chokes on -Wl,-G. The following line is correct:
17380 shared_flag='-G'
17381 else
17382 if test "$aix_use_runtimelinking" = yes; then
17383 shared_flag='${wl}-G'
17384 else
17385 shared_flag='${wl}-bM:SRE'
17386 fi
17387 fi
17388 fi
17389
17390 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17391 # It seems that -bexpall does not export symbols beginning with
17392 # underscore (_), so it is better to generate a list of symbols to
17393 # export.
17394 always_export_symbols_CXX=yes
17395 if test "$aix_use_runtimelinking" = yes; then
17396 # Warning - without using the other runtime loading flags (-brtl),
17397 # -berok will link without error, but may produce a broken library.
17398 allow_undefined_flag_CXX='-berok'
17399 # Determine the default libpath from the value encoded in an empty
17400 # executable.
cristyda16f162011-02-19 23:52:17 +000017401 if test "${lt_cv_aix_libpath+set}" = set; then
17402 aix_libpath=$lt_cv_aix_libpath
17403else
17404 if ${lt_cv_aix_libpath__CXX+:} false; then :
17405 $as_echo_n "(cached) " >&6
17406else
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017408/* end confdefs.h. */
17409
17410int
17411main ()
17412{
17413
17414 ;
17415 return 0;
17416}
17417_ACEOF
17418if ac_fn_cxx_try_link "$LINENO"; then :
17419
cristyda16f162011-02-19 23:52:17 +000017420 lt_aix_libpath_sed='
17421 /Import File Strings/,/^$/ {
17422 /^0/ {
17423 s/^0 *\([^ ]*\) *$/\1/
17424 p
17425 }
17426 }'
17427 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17428 # Check for a 64-bit object if we didn't find anything.
17429 if test -z "$lt_cv_aix_libpath__CXX"; then
17430 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17431 fi
cristy73bd4a52010-10-05 11:24:23 +000017432fi
17433rm -f core conftest.err conftest.$ac_objext \
17434 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017435 if test -z "$lt_cv_aix_libpath__CXX"; then
17436 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17437 fi
17438
17439fi
17440
17441 aix_libpath=$lt_cv_aix_libpath__CXX
17442fi
cristy73bd4a52010-10-05 11:24:23 +000017443
17444 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17445
cristy0c60a692010-11-04 01:09:47 +000017446 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 +000017447 else
17448 if test "$host_cpu" = ia64; then
17449 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17450 allow_undefined_flag_CXX="-z nodefs"
17451 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"
17452 else
17453 # Determine the default libpath from the value encoded in an
17454 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017455 if test "${lt_cv_aix_libpath+set}" = set; then
17456 aix_libpath=$lt_cv_aix_libpath
17457else
17458 if ${lt_cv_aix_libpath__CXX+:} false; then :
17459 $as_echo_n "(cached) " >&6
17460else
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017462/* end confdefs.h. */
17463
17464int
17465main ()
17466{
17467
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472if ac_fn_cxx_try_link "$LINENO"; then :
17473
cristyda16f162011-02-19 23:52:17 +000017474 lt_aix_libpath_sed='
17475 /Import File Strings/,/^$/ {
17476 /^0/ {
17477 s/^0 *\([^ ]*\) *$/\1/
17478 p
17479 }
17480 }'
17481 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17482 # Check for a 64-bit object if we didn't find anything.
17483 if test -z "$lt_cv_aix_libpath__CXX"; then
17484 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17485 fi
cristy73bd4a52010-10-05 11:24:23 +000017486fi
17487rm -f core conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017489 if test -z "$lt_cv_aix_libpath__CXX"; then
17490 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17491 fi
17492
17493fi
17494
17495 aix_libpath=$lt_cv_aix_libpath__CXX
17496fi
cristy73bd4a52010-10-05 11:24:23 +000017497
17498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17499 # Warning - without using the other run time loading flags,
17500 # -berok will link without error, but may produce a broken library.
17501 no_undefined_flag_CXX=' ${wl}-bernotok'
17502 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017503 if test "$with_gnu_ld" = yes; then
17504 # We only use this code for GNU lds that support --whole-archive.
17505 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17506 else
17507 # Exported symbols can be pulled into shared objects from archives
17508 whole_archive_flag_spec_CXX='$convenience'
17509 fi
cristy73bd4a52010-10-05 11:24:23 +000017510 archive_cmds_need_lc_CXX=yes
17511 # This is similar to how AIX traditionally builds its shared
17512 # libraries.
17513 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'
17514 fi
17515 fi
17516 ;;
17517
17518 beos*)
17519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17520 allow_undefined_flag_CXX=unsupported
17521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17522 # support --undefined. This deserves some investigation. FIXME
17523 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17524 else
17525 ld_shlibs_CXX=no
17526 fi
17527 ;;
17528
17529 chorus*)
17530 case $cc_basename in
17531 *)
17532 # FIXME: insert proper C++ library support
17533 ld_shlibs_CXX=no
17534 ;;
17535 esac
17536 ;;
17537
17538 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017539 case $GXX,$cc_basename in
17540 ,cl* | no,cl*)
17541 # Native MSVC
17542 # hardcode_libdir_flag_spec is actually meaningless, as there is
17543 # no search path for DLLs.
17544 hardcode_libdir_flag_spec_CXX=' '
17545 allow_undefined_flag_CXX=unsupported
17546 always_export_symbols_CXX=yes
17547 file_list_spec_CXX='@'
17548 # Tell ltmain to make .lib files, not .a files.
17549 libext=lib
17550 # Tell ltmain to make .dll files, not .so files.
17551 shrext_cmds=".dll"
17552 # FIXME: Setting linknames here is a bad hack.
17553 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17554 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17555 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17556 else
17557 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17558 fi~
17559 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17560 linknames='
17561 # The linker will not automatically build a static lib if we build a DLL.
17562 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17563 enable_shared_with_static_runtimes_CXX=yes
17564 # Don't use ranlib
17565 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17566 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17567 lt_tool_outputfile="@TOOL_OUTPUT@"~
17568 case $lt_outputfile in
17569 *.exe|*.EXE) ;;
17570 *)
17571 lt_outputfile="$lt_outputfile.exe"
17572 lt_tool_outputfile="$lt_tool_outputfile.exe"
17573 ;;
17574 esac~
17575 func_to_tool_file "$lt_outputfile"~
17576 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17577 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17578 $RM "$lt_outputfile.manifest";
17579 fi'
17580 ;;
17581 *)
17582 # g++
17583 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17584 # as there is no search path for DLLs.
17585 hardcode_libdir_flag_spec_CXX='-L$libdir'
17586 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17587 allow_undefined_flag_CXX=unsupported
17588 always_export_symbols_CXX=no
17589 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017590
cristyda16f162011-02-19 23:52:17 +000017591 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17592 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'
17593 # If the export-symbols file already is a .def file (1st line
17594 # is EXPORTS), use it as is; otherwise, prepend...
17595 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17596 cp $export_symbols $output_objdir/$soname.def;
17597 else
17598 echo EXPORTS > $output_objdir/$soname.def;
17599 cat $export_symbols >> $output_objdir/$soname.def;
17600 fi~
17601 $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'
17602 else
17603 ld_shlibs_CXX=no
17604 fi
17605 ;;
17606 esac
17607 ;;
cristy73bd4a52010-10-05 11:24:23 +000017608 darwin* | rhapsody*)
17609
17610
17611 archive_cmds_need_lc_CXX=no
17612 hardcode_direct_CXX=no
17613 hardcode_automatic_CXX=yes
17614 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017615 if test "$lt_cv_ld_force_load" = "yes"; then
17616 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000017617
cristy0c60a692010-11-04 01:09:47 +000017618 else
17619 whole_archive_flag_spec_CXX=''
17620 fi
cristy73bd4a52010-10-05 11:24:23 +000017621 link_all_deplibs_CXX=yes
17622 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17623 case $cc_basename in
17624 ifort*) _lt_dar_can_shared=yes ;;
17625 *) _lt_dar_can_shared=$GCC ;;
17626 esac
17627 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017628 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017629 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}"
17630 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17631 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}"
17632 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}"
17633 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17634 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}"
17635 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}"
17636 fi
17637
17638 else
17639 ld_shlibs_CXX=no
17640 fi
17641
17642 ;;
17643
17644 dgux*)
17645 case $cc_basename in
17646 ec++*)
17647 # FIXME: insert proper C++ library support
17648 ld_shlibs_CXX=no
17649 ;;
17650 ghcx*)
17651 # Green Hills C++ Compiler
17652 # FIXME: insert proper C++ library support
17653 ld_shlibs_CXX=no
17654 ;;
17655 *)
17656 # FIXME: insert proper C++ library support
17657 ld_shlibs_CXX=no
17658 ;;
17659 esac
17660 ;;
17661
cristy99bd5232011-12-07 14:38:20 +000017662 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017663 # C++ shared libraries reported to be fairly broken before
17664 # switch to ELF
17665 ld_shlibs_CXX=no
17666 ;;
17667
17668 freebsd-elf*)
17669 archive_cmds_need_lc_CXX=no
17670 ;;
17671
17672 freebsd* | dragonfly*)
17673 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17674 # conventions
17675 ld_shlibs_CXX=yes
17676 ;;
17677
17678 gnu*)
17679 ;;
17680
cristy0c60a692010-11-04 01:09:47 +000017681 haiku*)
17682 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17683 link_all_deplibs_CXX=yes
17684 ;;
17685
cristy73bd4a52010-10-05 11:24:23 +000017686 hpux9*)
17687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17688 hardcode_libdir_separator_CXX=:
17689 export_dynamic_flag_spec_CXX='${wl}-E'
17690 hardcode_direct_CXX=yes
17691 hardcode_minus_L_CXX=yes # Not in the search PATH,
17692 # but as the default
17693 # location of the library.
17694
17695 case $cc_basename in
17696 CC*)
17697 # FIXME: insert proper C++ library support
17698 ld_shlibs_CXX=no
17699 ;;
17700 aCC*)
17701 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'
17702 # Commands to make compiler produce verbose output that lists
17703 # what "hidden" libraries, object files and flags are used when
17704 # linking a shared library.
17705 #
17706 # There doesn't appear to be a way to prevent this compiler from
17707 # explicitly linking system object files so we need to strip them
17708 # from the output so that they don't get included in the library
17709 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017710 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 +000017711 ;;
17712 *)
17713 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017714 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 +000017715 else
17716 # FIXME: insert proper C++ library support
17717 ld_shlibs_CXX=no
17718 fi
17719 ;;
17720 esac
17721 ;;
17722
17723 hpux10*|hpux11*)
17724 if test $with_gnu_ld = no; then
17725 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17726 hardcode_libdir_separator_CXX=:
17727
17728 case $host_cpu in
17729 hppa*64*|ia64*)
17730 ;;
17731 *)
17732 export_dynamic_flag_spec_CXX='${wl}-E'
17733 ;;
17734 esac
17735 fi
17736 case $host_cpu in
17737 hppa*64*|ia64*)
17738 hardcode_direct_CXX=no
17739 hardcode_shlibpath_var_CXX=no
17740 ;;
17741 *)
17742 hardcode_direct_CXX=yes
17743 hardcode_direct_absolute_CXX=yes
17744 hardcode_minus_L_CXX=yes # Not in the search PATH,
17745 # but as the default
17746 # location of the library.
17747 ;;
17748 esac
17749
17750 case $cc_basename in
17751 CC*)
17752 # FIXME: insert proper C++ library support
17753 ld_shlibs_CXX=no
17754 ;;
17755 aCC*)
17756 case $host_cpu in
17757 hppa*64*)
17758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17759 ;;
17760 ia64*)
17761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17762 ;;
17763 *)
17764 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17765 ;;
17766 esac
17767 # Commands to make compiler produce verbose output that lists
17768 # what "hidden" libraries, object files and flags are used when
17769 # linking a shared library.
17770 #
17771 # There doesn't appear to be a way to prevent this compiler from
17772 # explicitly linking system object files so we need to strip them
17773 # from the output so that they don't get included in the library
17774 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017775 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 +000017776 ;;
17777 *)
17778 if test "$GXX" = yes; then
17779 if test $with_gnu_ld = no; then
17780 case $host_cpu in
17781 hppa*64*)
17782 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17783 ;;
17784 ia64*)
cristyda16f162011-02-19 23:52:17 +000017785 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 +000017786 ;;
17787 *)
cristyda16f162011-02-19 23:52:17 +000017788 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 +000017789 ;;
17790 esac
17791 fi
17792 else
17793 # FIXME: insert proper C++ library support
17794 ld_shlibs_CXX=no
17795 fi
17796 ;;
17797 esac
17798 ;;
17799
17800 interix[3-9]*)
17801 hardcode_direct_CXX=no
17802 hardcode_shlibpath_var_CXX=no
17803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17804 export_dynamic_flag_spec_CXX='${wl}-E'
17805 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17806 # Instead, shared libraries are loaded at an image base (0x10000000 by
17807 # default) and relocated if they conflict, which is a slow very memory
17808 # consuming and fragmenting process. To avoid this, we pick a random,
17809 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17810 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17811 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'
17812 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'
17813 ;;
17814 irix5* | irix6*)
17815 case $cc_basename in
17816 CC*)
17817 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017818 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 +000017819
17820 # Archives containing C++ object files must be created using
17821 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17822 # necessary to make sure instantiated templates are included
17823 # in the archive.
17824 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17825 ;;
17826 *)
17827 if test "$GXX" = yes; then
17828 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017829 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 +000017830 else
cristyda16f162011-02-19 23:52:17 +000017831 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 +000017832 fi
17833 fi
17834 link_all_deplibs_CXX=yes
17835 ;;
17836 esac
17837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17838 hardcode_libdir_separator_CXX=:
17839 inherit_rpath_CXX=yes
17840 ;;
17841
cristy0c60a692010-11-04 01:09:47 +000017842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017843 case $cc_basename in
17844 KCC*)
17845 # Kuck and Associates, Inc. (KAI) C++ Compiler
17846
17847 # KCC will only create a shared library if the output file
17848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17849 # to its proper name (with version) after linking.
17850 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'
17851 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'
17852 # Commands to make compiler produce verbose output that lists
17853 # what "hidden" libraries, object files and flags are used when
17854 # linking a shared library.
17855 #
17856 # There doesn't appear to be a way to prevent this compiler from
17857 # explicitly linking system object files so we need to strip them
17858 # from the output so that they don't get included in the library
17859 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017860 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 +000017861
17862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17863 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17864
17865 # Archives containing C++ object files must be created using
17866 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17867 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17868 ;;
17869 icpc* | ecpc* )
17870 # Intel C++
17871 with_gnu_ld=yes
17872 # version 8.0 and above of icpc choke on multiply defined symbols
17873 # if we add $predep_objects and $postdep_objects, however 7.1 and
17874 # earlier do not add the objects themselves.
17875 case `$CC -V 2>&1` in
17876 *"Version 7."*)
17877 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17878 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'
17879 ;;
17880 *) # Version 8.0 or newer
17881 tmp_idyn=
17882 case $host_cpu in
17883 ia64*) tmp_idyn=' -i_dynamic';;
17884 esac
17885 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17886 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'
17887 ;;
17888 esac
17889 archive_cmds_need_lc_CXX=no
17890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17892 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17893 ;;
17894 pgCC* | pgcpp*)
17895 # Portland Group C++ compiler
17896 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017897 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017898 prelink_cmds_CXX='tpldir=Template.dir~
17899 rm -rf $tpldir~
17900 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017901 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017902 old_archive_cmds_CXX='tpldir=Template.dir~
17903 rm -rf $tpldir~
17904 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017905 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017906 $RANLIB $oldlib'
17907 archive_cmds_CXX='tpldir=Template.dir~
17908 rm -rf $tpldir~
17909 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017910 $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 +000017911 archive_expsym_cmds_CXX='tpldir=Template.dir~
17912 rm -rf $tpldir~
17913 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017914 $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 +000017915 ;;
cristy0c60a692010-11-04 01:09:47 +000017916 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17918 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'
17919 ;;
17920 esac
17921
17922 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017924 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 +000017925 ;;
17926 cxx*)
17927 # Compaq C++
17928 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17929 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'
17930
17931 runpath_var=LD_RUN_PATH
17932 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17933 hardcode_libdir_separator_CXX=:
17934
17935 # Commands to make compiler produce verbose output that lists
17936 # what "hidden" libraries, object files and flags are used when
17937 # linking a shared library.
17938 #
17939 # There doesn't appear to be a way to prevent this compiler from
17940 # explicitly linking system object files so we need to strip them
17941 # from the output so that they don't get included in the library
17942 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017943 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 +000017944 ;;
cristy0c60a692010-11-04 01:09:47 +000017945 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017946 # IBM XL 8.0 on PPC, with GNU ld
17947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17949 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17950 if test "x$supports_anon_versioning" = xyes; then
17951 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17953 echo "local: *; };" >> $output_objdir/$libname.ver~
17954 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17955 fi
17956 ;;
17957 *)
17958 case `$CC -V 2>&1 | sed 5q` in
17959 *Sun\ C*)
17960 # Sun C++ 5.9
17961 no_undefined_flag_CXX=' -zdefs'
17962 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17963 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'
17964 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017965 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 +000017966 compiler_needs_object_CXX=yes
17967
17968 # Not sure whether something based on
17969 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17970 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017971 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017972
17973 # Archives containing C++ object files must be created using
17974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17975 # necessary to make sure instantiated templates are included
17976 # in the archive.
17977 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17978 ;;
17979 esac
17980 ;;
17981 esac
17982 ;;
17983
17984 lynxos*)
17985 # FIXME: insert proper C++ library support
17986 ld_shlibs_CXX=no
17987 ;;
17988
17989 m88k*)
17990 # FIXME: insert proper C++ library support
17991 ld_shlibs_CXX=no
17992 ;;
17993
17994 mvs*)
17995 case $cc_basename in
17996 cxx*)
17997 # FIXME: insert proper C++ library support
17998 ld_shlibs_CXX=no
17999 ;;
18000 *)
18001 # FIXME: insert proper C++ library support
18002 ld_shlibs_CXX=no
18003 ;;
18004 esac
18005 ;;
18006
18007 netbsd*)
18008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18009 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18010 wlarc=
18011 hardcode_libdir_flag_spec_CXX='-R$libdir'
18012 hardcode_direct_CXX=yes
18013 hardcode_shlibpath_var_CXX=no
18014 fi
18015 # Workaround some broken pre-1.5 toolchains
18016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18017 ;;
18018
18019 *nto* | *qnx*)
18020 ld_shlibs_CXX=yes
18021 ;;
18022
18023 openbsd2*)
18024 # C++ shared libraries are fairly broken
18025 ld_shlibs_CXX=no
18026 ;;
18027
18028 openbsd*)
18029 if test -f /usr/libexec/ld.so; then
18030 hardcode_direct_CXX=yes
18031 hardcode_shlibpath_var_CXX=no
18032 hardcode_direct_absolute_CXX=yes
18033 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18036 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18037 export_dynamic_flag_spec_CXX='${wl}-E'
18038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18039 fi
cristy0c60a692010-11-04 01:09:47 +000018040 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018041 else
18042 ld_shlibs_CXX=no
18043 fi
18044 ;;
18045
18046 osf3* | osf4* | osf5*)
18047 case $cc_basename in
18048 KCC*)
18049 # Kuck and Associates, Inc. (KAI) C++ Compiler
18050
18051 # KCC will only create a shared library if the output file
18052 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18053 # to its proper name (with version) after linking.
18054 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'
18055
18056 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18057 hardcode_libdir_separator_CXX=:
18058
18059 # Archives containing C++ object files must be created using
18060 # the KAI C++ compiler.
18061 case $host in
18062 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18063 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18064 esac
18065 ;;
18066 RCC*)
18067 # Rational C++ 2.4.1
18068 # FIXME: insert proper C++ library support
18069 ld_shlibs_CXX=no
18070 ;;
18071 cxx*)
18072 case $host in
18073 osf3*)
18074 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018075 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 +000018076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18077 ;;
18078 *)
18079 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018080 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 +000018081 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18082 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018083 $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 +000018084 $RM $lib.exp'
18085 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18086 ;;
18087 esac
18088
18089 hardcode_libdir_separator_CXX=:
18090
18091 # Commands to make compiler produce verbose output that lists
18092 # what "hidden" libraries, object files and flags are used when
18093 # linking a shared library.
18094 #
18095 # There doesn't appear to be a way to prevent this compiler from
18096 # explicitly linking system object files so we need to strip them
18097 # from the output so that they don't get included in the library
18098 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018099 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 +000018100 ;;
18101 *)
18102 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18103 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18104 case $host in
18105 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018106 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 +000018107 ;;
18108 *)
cristyda16f162011-02-19 23:52:17 +000018109 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 +000018110 ;;
18111 esac
18112
18113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18114 hardcode_libdir_separator_CXX=:
18115
18116 # Commands to make compiler produce verbose output that lists
18117 # what "hidden" libraries, object files and flags are used when
18118 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018120
18121 else
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18124 fi
18125 ;;
18126 esac
18127 ;;
18128
18129 psos*)
18130 # FIXME: insert proper C++ library support
18131 ld_shlibs_CXX=no
18132 ;;
18133
18134 sunos4*)
18135 case $cc_basename in
18136 CC*)
18137 # Sun C++ 4.x
18138 # FIXME: insert proper C++ library support
18139 ld_shlibs_CXX=no
18140 ;;
18141 lcc*)
18142 # Lucid
18143 # FIXME: insert proper C++ library support
18144 ld_shlibs_CXX=no
18145 ;;
18146 *)
18147 # FIXME: insert proper C++ library support
18148 ld_shlibs_CXX=no
18149 ;;
18150 esac
18151 ;;
18152
18153 solaris*)
18154 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018155 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018156 # Sun C++ 4.2, 5.x and Centerline C++
18157 archive_cmds_need_lc_CXX=yes
18158 no_undefined_flag_CXX=' -zdefs'
18159 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18160 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18161 $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'
18162
18163 hardcode_libdir_flag_spec_CXX='-R$libdir'
18164 hardcode_shlibpath_var_CXX=no
18165 case $host_os in
18166 solaris2.[0-5] | solaris2.[0-5].*) ;;
18167 *)
18168 # The compiler driver will combine and reorder linker options,
18169 # but understands `-z linker_flag'.
18170 # Supported since Solaris 2.6 (maybe 2.5.1?)
18171 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18172 ;;
18173 esac
18174 link_all_deplibs_CXX=yes
18175
cristy0c60a692010-11-04 01:09:47 +000018176 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018177
18178 # Archives containing C++ object files must be created using
18179 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18180 # necessary to make sure instantiated templates are included
18181 # in the archive.
18182 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18183 ;;
18184 gcx*)
18185 # Green Hills C++ Compiler
18186 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18187
18188 # The C++ compiler must be used to create the archive.
18189 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18190 ;;
18191 *)
18192 # GNU C++ compiler with Solaris linker
18193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18194 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18195 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018196 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 +000018197 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 +000018198 $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 +000018199
18200 # Commands to make compiler produce verbose output that lists
18201 # what "hidden" libraries, object files and flags are used when
18202 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018204 else
18205 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18206 # platform.
18207 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18208 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18209 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18210
18211 # Commands to make compiler produce verbose output that lists
18212 # what "hidden" libraries, object files and flags are used when
18213 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018214 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018215 fi
18216
18217 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18218 case $host_os in
18219 solaris2.[0-5] | solaris2.[0-5].*) ;;
18220 *)
18221 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18222 ;;
18223 esac
18224 fi
18225 ;;
18226 esac
18227 ;;
18228
18229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18230 no_undefined_flag_CXX='${wl}-z,text'
18231 archive_cmds_need_lc_CXX=no
18232 hardcode_shlibpath_var_CXX=no
18233 runpath_var='LD_RUN_PATH'
18234
18235 case $cc_basename in
18236 CC*)
18237 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18238 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18239 ;;
18240 *)
18241 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18242 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18243 ;;
18244 esac
18245 ;;
18246
18247 sysv5* | sco3.2v5* | sco5v6*)
18248 # Note: We can NOT use -z defs as we might desire, because we do not
18249 # link with -lc, and that would cause any symbols used from libc to
18250 # always be unresolved, which means just about no library would
18251 # ever link correctly. If we're not using GNU ld we use -z text
18252 # though, which does catch some bad symbols but isn't as heavy-handed
18253 # as -z defs.
18254 no_undefined_flag_CXX='${wl}-z,text'
18255 allow_undefined_flag_CXX='${wl}-z,nodefs'
18256 archive_cmds_need_lc_CXX=no
18257 hardcode_shlibpath_var_CXX=no
18258 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18259 hardcode_libdir_separator_CXX=':'
18260 link_all_deplibs_CXX=yes
18261 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18262 runpath_var='LD_RUN_PATH'
18263
18264 case $cc_basename in
18265 CC*)
18266 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18267 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 +000018268 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18269 '"$old_archive_cmds_CXX"
18270 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18271 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018272 ;;
18273 *)
18274 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 ;;
18277 esac
18278 ;;
18279
18280 tandem*)
18281 case $cc_basename in
18282 NCC*)
18283 # NonStop-UX NCC 3.20
18284 # FIXME: insert proper C++ library support
18285 ld_shlibs_CXX=no
18286 ;;
18287 *)
18288 # FIXME: insert proper C++ library support
18289 ld_shlibs_CXX=no
18290 ;;
18291 esac
18292 ;;
18293
18294 vxworks*)
18295 # FIXME: insert proper C++ library support
18296 ld_shlibs_CXX=no
18297 ;;
18298
18299 *)
18300 # FIXME: insert proper C++ library support
18301 ld_shlibs_CXX=no
18302 ;;
18303 esac
18304
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18306$as_echo "$ld_shlibs_CXX" >&6; }
18307 test "$ld_shlibs_CXX" = no && can_build_shared=no
18308
18309 GCC_CXX="$GXX"
18310 LD_CXX="$LD"
18311
18312 ## CAVEAT EMPTOR:
18313 ## There is no encapsulation within the following macros, do not change
18314 ## the running order or otherwise move them around unless you know exactly
18315 ## what you are doing...
18316 # Dependencies to place before and after the object being linked:
18317predep_objects_CXX=
18318postdep_objects_CXX=
18319predeps_CXX=
18320postdeps_CXX=
18321compiler_lib_search_path_CXX=
18322
18323cat > conftest.$ac_ext <<_LT_EOF
18324class Foo
18325{
18326public:
18327 Foo (void) { a = 0; }
18328private:
18329 int a;
18330};
18331_LT_EOF
18332
cristyda16f162011-02-19 23:52:17 +000018333
18334_lt_libdeps_save_CFLAGS=$CFLAGS
18335case "$CC $CFLAGS " in #(
18336*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18337*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018338*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018339esac
18340
cristy73bd4a52010-10-05 11:24:23 +000018341if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18342 (eval $ac_compile) 2>&5
18343 ac_status=$?
18344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18345 test $ac_status = 0; }; then
18346 # Parse the compiler output and extract the necessary
18347 # objects, libraries and library flags.
18348
18349 # Sentinel used to keep track of whether or not we are before
18350 # the conftest object file.
18351 pre_test_object_deps_done=no
18352
18353 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018354 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018355
18356 -L* | -R* | -l*)
18357 # Some compilers place space between "-{L,R}" and the path.
18358 # Remove the space.
18359 if test $p = "-L" ||
18360 test $p = "-R"; then
18361 prev=$p
18362 continue
cristy73bd4a52010-10-05 11:24:23 +000018363 fi
18364
cristyda16f162011-02-19 23:52:17 +000018365 # Expand the sysroot to ease extracting the directories later.
18366 if test -z "$prev"; then
18367 case $p in
18368 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18369 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18370 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18371 esac
18372 fi
18373 case $p in
18374 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18375 esac
cristy73bd4a52010-10-05 11:24:23 +000018376 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018377 case ${prev} in
18378 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018379 # Internal compiler library paths should come after those
18380 # provided the user. The postdeps already come after the
18381 # user supplied libs so there is no need to process them.
18382 if test -z "$compiler_lib_search_path_CXX"; then
18383 compiler_lib_search_path_CXX="${prev}${p}"
18384 else
18385 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18386 fi
18387 ;;
18388 # The "-l" case would never come before the object being
18389 # linked, so don't bother handling this case.
18390 esac
18391 else
18392 if test -z "$postdeps_CXX"; then
18393 postdeps_CXX="${prev}${p}"
18394 else
18395 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18396 fi
18397 fi
cristyda16f162011-02-19 23:52:17 +000018398 prev=
cristy73bd4a52010-10-05 11:24:23 +000018399 ;;
18400
cristyda16f162011-02-19 23:52:17 +000018401 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018402 *.$objext)
18403 # This assumes that the test object file only shows up
18404 # once in the compiler output.
18405 if test "$p" = "conftest.$objext"; then
18406 pre_test_object_deps_done=yes
18407 continue
18408 fi
18409
18410 if test "$pre_test_object_deps_done" = no; then
18411 if test -z "$predep_objects_CXX"; then
18412 predep_objects_CXX="$p"
18413 else
18414 predep_objects_CXX="$predep_objects_CXX $p"
18415 fi
18416 else
18417 if test -z "$postdep_objects_CXX"; then
18418 postdep_objects_CXX="$p"
18419 else
18420 postdep_objects_CXX="$postdep_objects_CXX $p"
18421 fi
18422 fi
18423 ;;
18424
18425 *) ;; # Ignore the rest.
18426
18427 esac
18428 done
18429
18430 # Clean up.
18431 rm -f a.out a.exe
18432else
18433 echo "libtool.m4: error: problem compiling CXX test program"
18434fi
18435
18436$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018437CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018438
18439# PORTME: override above test on systems where it is broken
18440case $host_os in
18441interix[3-9]*)
18442 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18443 # hack all around it, let's just trust "g++" to DTRT.
18444 predep_objects_CXX=
18445 postdep_objects_CXX=
18446 postdeps_CXX=
18447 ;;
18448
18449linux*)
18450 case `$CC -V 2>&1 | sed 5q` in
18451 *Sun\ C*)
18452 # Sun C++ 5.9
18453
18454 # The more standards-conforming stlport4 library is
18455 # incompatible with the Cstd library. Avoid specifying
18456 # it if it's in CXXFLAGS. Ignore libCrun as
18457 # -library=stlport4 depends on it.
18458 case " $CXX $CXXFLAGS " in
18459 *" -library=stlport4 "*)
18460 solaris_use_stlport4=yes
18461 ;;
18462 esac
18463
18464 if test "$solaris_use_stlport4" != yes; then
18465 postdeps_CXX='-library=Cstd -library=Crun'
18466 fi
18467 ;;
18468 esac
18469 ;;
18470
18471solaris*)
18472 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018473 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018474 # The more standards-conforming stlport4 library is
18475 # incompatible with the Cstd library. Avoid specifying
18476 # it if it's in CXXFLAGS. Ignore libCrun as
18477 # -library=stlport4 depends on it.
18478 case " $CXX $CXXFLAGS " in
18479 *" -library=stlport4 "*)
18480 solaris_use_stlport4=yes
18481 ;;
18482 esac
18483
18484 # Adding this requires a known-good setup of shared libraries for
18485 # Sun compiler versions before 5.6, else PIC objects from an old
18486 # archive will be linked into the output, leading to subtle bugs.
18487 if test "$solaris_use_stlport4" != yes; then
18488 postdeps_CXX='-library=Cstd -library=Crun'
18489 fi
18490 ;;
18491 esac
18492 ;;
18493esac
18494
18495
18496case " $postdeps_CXX " in
18497*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18498esac
18499 compiler_lib_search_dirs_CXX=
18500if test -n "${compiler_lib_search_path_CXX}"; then
18501 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18502fi
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534 lt_prog_compiler_wl_CXX=
18535lt_prog_compiler_pic_CXX=
18536lt_prog_compiler_static_CXX=
18537
cristy73bd4a52010-10-05 11:24:23 +000018538
18539 # C++ specific cases for pic, static, wl, etc.
18540 if test "$GXX" = yes; then
18541 lt_prog_compiler_wl_CXX='-Wl,'
18542 lt_prog_compiler_static_CXX='-static'
18543
18544 case $host_os in
18545 aix*)
18546 # All AIX code is PIC.
18547 if test "$host_cpu" = ia64; then
18548 # AIX 5 now supports IA64 processor
18549 lt_prog_compiler_static_CXX='-Bstatic'
18550 fi
18551 ;;
18552
18553 amigaos*)
18554 case $host_cpu in
18555 powerpc)
18556 # see comment about AmigaOS4 .so support
18557 lt_prog_compiler_pic_CXX='-fPIC'
18558 ;;
18559 m68k)
18560 # FIXME: we need at least 68020 code to build shared libraries, but
18561 # adding the `-m68020' flag to GCC prevents building anything better,
18562 # like `-m68040'.
18563 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18564 ;;
18565 esac
18566 ;;
18567
18568 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18569 # PIC is the default for these OSes.
18570 ;;
18571 mingw* | cygwin* | os2* | pw32* | cegcc*)
18572 # This hack is so that the source file can tell whether it is being
18573 # built for inclusion in a dll (and should export symbols for example).
18574 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18575 # (--disable-auto-import) libraries
18576 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18577 ;;
18578 darwin* | rhapsody*)
18579 # PIC is the default on this platform
18580 # Common symbols not allowed in MH_DYLIB files
18581 lt_prog_compiler_pic_CXX='-fno-common'
18582 ;;
18583 *djgpp*)
18584 # DJGPP does not support shared libraries at all
18585 lt_prog_compiler_pic_CXX=
18586 ;;
cristy0c60a692010-11-04 01:09:47 +000018587 haiku*)
18588 # PIC is the default for Haiku.
18589 # The "-static" flag exists, but is broken.
18590 lt_prog_compiler_static_CXX=
18591 ;;
cristy73bd4a52010-10-05 11:24:23 +000018592 interix[3-9]*)
18593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18594 # Instead, we relocate shared libraries at runtime.
18595 ;;
18596 sysv4*MP*)
18597 if test -d /usr/nec; then
18598 lt_prog_compiler_pic_CXX=-Kconform_pic
18599 fi
18600 ;;
18601 hpux*)
18602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18604 # sets the default TLS model and affects inlining.
18605 case $host_cpu in
18606 hppa*64*)
18607 ;;
18608 *)
18609 lt_prog_compiler_pic_CXX='-fPIC'
18610 ;;
18611 esac
18612 ;;
18613 *qnx* | *nto*)
18614 # QNX uses GNU C++, but need to define -shared option too, otherwise
18615 # it will coredump.
18616 lt_prog_compiler_pic_CXX='-fPIC -shared'
18617 ;;
18618 *)
18619 lt_prog_compiler_pic_CXX='-fPIC'
18620 ;;
18621 esac
18622 else
18623 case $host_os in
18624 aix[4-9]*)
18625 # All AIX code is PIC.
18626 if test "$host_cpu" = ia64; then
18627 # AIX 5 now supports IA64 processor
18628 lt_prog_compiler_static_CXX='-Bstatic'
18629 else
18630 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18631 fi
18632 ;;
18633 chorus*)
18634 case $cc_basename in
18635 cxch68*)
18636 # Green Hills C++ Compiler
18637 # _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"
18638 ;;
18639 esac
18640 ;;
cristyda16f162011-02-19 23:52:17 +000018641 mingw* | cygwin* | os2* | pw32* | cegcc*)
18642 # This hack is so that the source file can tell whether it is being
18643 # built for inclusion in a dll (and should export symbols for example).
18644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18645 ;;
cristy73bd4a52010-10-05 11:24:23 +000018646 dgux*)
18647 case $cc_basename in
18648 ec++*)
18649 lt_prog_compiler_pic_CXX='-KPIC'
18650 ;;
18651 ghcx*)
18652 # Green Hills C++ Compiler
18653 lt_prog_compiler_pic_CXX='-pic'
18654 ;;
18655 *)
18656 ;;
18657 esac
18658 ;;
18659 freebsd* | dragonfly*)
18660 # FreeBSD uses GNU C++
18661 ;;
18662 hpux9* | hpux10* | hpux11*)
18663 case $cc_basename in
18664 CC*)
18665 lt_prog_compiler_wl_CXX='-Wl,'
18666 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18667 if test "$host_cpu" != ia64; then
18668 lt_prog_compiler_pic_CXX='+Z'
18669 fi
18670 ;;
18671 aCC*)
18672 lt_prog_compiler_wl_CXX='-Wl,'
18673 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18674 case $host_cpu in
18675 hppa*64*|ia64*)
18676 # +Z the default
18677 ;;
18678 *)
18679 lt_prog_compiler_pic_CXX='+Z'
18680 ;;
18681 esac
18682 ;;
18683 *)
18684 ;;
18685 esac
18686 ;;
18687 interix*)
18688 # This is c89, which is MS Visual C++ (no shared libs)
18689 # Anyone wants to do a port?
18690 ;;
18691 irix5* | irix6* | nonstopux*)
18692 case $cc_basename in
18693 CC*)
18694 lt_prog_compiler_wl_CXX='-Wl,'
18695 lt_prog_compiler_static_CXX='-non_shared'
18696 # CC pic flag -KPIC is the default.
18697 ;;
18698 *)
18699 ;;
18700 esac
18701 ;;
cristy0c60a692010-11-04 01:09:47 +000018702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018703 case $cc_basename in
18704 KCC*)
18705 # KAI C++ Compiler
18706 lt_prog_compiler_wl_CXX='--backend -Wl,'
18707 lt_prog_compiler_pic_CXX='-fPIC'
18708 ;;
18709 ecpc* )
18710 # old Intel C++ for x86_64 which still supported -KPIC.
18711 lt_prog_compiler_wl_CXX='-Wl,'
18712 lt_prog_compiler_pic_CXX='-KPIC'
18713 lt_prog_compiler_static_CXX='-static'
18714 ;;
18715 icpc* )
18716 # Intel C++, used to be incompatible with GCC.
18717 # ICC 10 doesn't accept -KPIC any more.
18718 lt_prog_compiler_wl_CXX='-Wl,'
18719 lt_prog_compiler_pic_CXX='-fPIC'
18720 lt_prog_compiler_static_CXX='-static'
18721 ;;
18722 pgCC* | pgcpp*)
18723 # Portland Group C++ compiler
18724 lt_prog_compiler_wl_CXX='-Wl,'
18725 lt_prog_compiler_pic_CXX='-fpic'
18726 lt_prog_compiler_static_CXX='-Bstatic'
18727 ;;
18728 cxx*)
18729 # Compaq C++
18730 # Make sure the PIC flag is empty. It appears that all Alpha
18731 # Linux and Compaq Tru64 Unix objects are PIC.
18732 lt_prog_compiler_pic_CXX=
18733 lt_prog_compiler_static_CXX='-non_shared'
18734 ;;
cristy0c60a692010-11-04 01:09:47 +000018735 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18736 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018737 lt_prog_compiler_wl_CXX='-Wl,'
18738 lt_prog_compiler_pic_CXX='-qpic'
18739 lt_prog_compiler_static_CXX='-qstaticlink'
18740 ;;
18741 *)
18742 case `$CC -V 2>&1 | sed 5q` in
18743 *Sun\ C*)
18744 # Sun C++ 5.9
18745 lt_prog_compiler_pic_CXX='-KPIC'
18746 lt_prog_compiler_static_CXX='-Bstatic'
18747 lt_prog_compiler_wl_CXX='-Qoption ld '
18748 ;;
18749 esac
18750 ;;
18751 esac
18752 ;;
18753 lynxos*)
18754 ;;
18755 m88k*)
18756 ;;
18757 mvs*)
18758 case $cc_basename in
18759 cxx*)
18760 lt_prog_compiler_pic_CXX='-W c,exportall'
18761 ;;
18762 *)
18763 ;;
18764 esac
18765 ;;
18766 netbsd*)
18767 ;;
18768 *qnx* | *nto*)
18769 # QNX uses GNU C++, but need to define -shared option too, otherwise
18770 # it will coredump.
18771 lt_prog_compiler_pic_CXX='-fPIC -shared'
18772 ;;
18773 osf3* | osf4* | osf5*)
18774 case $cc_basename in
18775 KCC*)
18776 lt_prog_compiler_wl_CXX='--backend -Wl,'
18777 ;;
18778 RCC*)
18779 # Rational C++ 2.4.1
18780 lt_prog_compiler_pic_CXX='-pic'
18781 ;;
18782 cxx*)
18783 # Digital/Compaq C++
18784 lt_prog_compiler_wl_CXX='-Wl,'
18785 # Make sure the PIC flag is empty. It appears that all Alpha
18786 # Linux and Compaq Tru64 Unix objects are PIC.
18787 lt_prog_compiler_pic_CXX=
18788 lt_prog_compiler_static_CXX='-non_shared'
18789 ;;
18790 *)
18791 ;;
18792 esac
18793 ;;
18794 psos*)
18795 ;;
18796 solaris*)
18797 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018798 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018799 # Sun C++ 4.2, 5.x and Centerline C++
18800 lt_prog_compiler_pic_CXX='-KPIC'
18801 lt_prog_compiler_static_CXX='-Bstatic'
18802 lt_prog_compiler_wl_CXX='-Qoption ld '
18803 ;;
18804 gcx*)
18805 # Green Hills C++ Compiler
18806 lt_prog_compiler_pic_CXX='-PIC'
18807 ;;
18808 *)
18809 ;;
18810 esac
18811 ;;
18812 sunos4*)
18813 case $cc_basename in
18814 CC*)
18815 # Sun C++ 4.x
18816 lt_prog_compiler_pic_CXX='-pic'
18817 lt_prog_compiler_static_CXX='-Bstatic'
18818 ;;
18819 lcc*)
18820 # Lucid
18821 lt_prog_compiler_pic_CXX='-pic'
18822 ;;
18823 *)
18824 ;;
18825 esac
18826 ;;
18827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18828 case $cc_basename in
18829 CC*)
18830 lt_prog_compiler_wl_CXX='-Wl,'
18831 lt_prog_compiler_pic_CXX='-KPIC'
18832 lt_prog_compiler_static_CXX='-Bstatic'
18833 ;;
18834 esac
18835 ;;
18836 tandem*)
18837 case $cc_basename in
18838 NCC*)
18839 # NonStop-UX NCC 3.20
18840 lt_prog_compiler_pic_CXX='-KPIC'
18841 ;;
18842 *)
18843 ;;
18844 esac
18845 ;;
18846 vxworks*)
18847 ;;
18848 *)
18849 lt_prog_compiler_can_build_shared_CXX=no
18850 ;;
18851 esac
18852 fi
18853
18854case $host_os in
18855 # For platforms which do not support PIC, -DPIC is meaningless:
18856 *djgpp*)
18857 lt_prog_compiler_pic_CXX=
18858 ;;
18859 *)
18860 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18861 ;;
18862esac
cristy73bd4a52010-10-05 11:24:23 +000018863
cristyda16f162011-02-19 23:52:17 +000018864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18865$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18866if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18867 $as_echo_n "(cached) " >&6
18868else
18869 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18870fi
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18872$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18873lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018874
18875#
18876# Check to make sure the PIC flag actually works.
18877#
18878if test -n "$lt_prog_compiler_pic_CXX"; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18880$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018881if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018882 $as_echo_n "(cached) " >&6
18883else
18884 lt_cv_prog_compiler_pic_works_CXX=no
18885 ac_outfile=conftest.$ac_objext
18886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18887 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18888 # Insert the option either (1) after the last *FLAGS variable, or
18889 # (2) before a word containing "conftest.", or (3) at the end.
18890 # Note that $ac_compile itself does not contain backslashes and begins
18891 # with a dollar sign (not a hyphen), so the echo should work correctly.
18892 # The option is referenced via a variable to avoid confusing sed.
18893 lt_compile=`echo "$ac_compile" | $SED \
18894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18896 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018898 (eval "$lt_compile" 2>conftest.err)
18899 ac_status=$?
18900 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018902 if (exit $ac_status) && test -s "$ac_outfile"; then
18903 # The compiler can only warn and ignore the option if not recognized
18904 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18908 lt_cv_prog_compiler_pic_works_CXX=yes
18909 fi
18910 fi
18911 $RM conftest*
18912
18913fi
18914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18915$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18916
18917if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18918 case $lt_prog_compiler_pic_CXX in
18919 "" | " "*) ;;
18920 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18921 esac
18922else
18923 lt_prog_compiler_pic_CXX=
18924 lt_prog_compiler_can_build_shared_CXX=no
18925fi
18926
18927fi
18928
18929
18930
cristyda16f162011-02-19 23:52:17 +000018931
18932
cristy73bd4a52010-10-05 11:24:23 +000018933#
18934# Check to make sure the static flag actually works.
18935#
18936wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18938$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018939if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018940 $as_echo_n "(cached) " >&6
18941else
18942 lt_cv_prog_compiler_static_works_CXX=no
18943 save_LDFLAGS="$LDFLAGS"
18944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18947 # The linker can only warn and ignore the option if not recognized
18948 # So say no if there are warnings
18949 if test -s conftest.err; then
18950 # Append any errors to the config.log.
18951 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018952 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18954 if diff conftest.exp conftest.er2 >/dev/null; then
18955 lt_cv_prog_compiler_static_works_CXX=yes
18956 fi
18957 else
18958 lt_cv_prog_compiler_static_works_CXX=yes
18959 fi
18960 fi
18961 $RM -r conftest*
18962 LDFLAGS="$save_LDFLAGS"
18963
18964fi
18965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18966$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18967
18968if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18969 :
18970else
18971 lt_prog_compiler_static_CXX=
18972fi
18973
18974
18975
18976
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018979if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018980 $as_echo_n "(cached) " >&6
18981else
18982 lt_cv_prog_compiler_c_o_CXX=no
18983 $RM -r conftest 2>/dev/null
18984 mkdir conftest
18985 cd conftest
18986 mkdir out
18987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18988
18989 lt_compiler_flag="-o out/conftest2.$ac_objext"
18990 # Insert the option either (1) after the last *FLAGS variable, or
18991 # (2) before a word containing "conftest.", or (3) at the end.
18992 # Note that $ac_compile itself does not contain backslashes and begins
18993 # with a dollar sign (not a hyphen), so the echo should work correctly.
18994 lt_compile=`echo "$ac_compile" | $SED \
18995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18997 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018999 (eval "$lt_compile" 2>out/conftest.err)
19000 ac_status=$?
19001 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19004 then
19005 # The compiler can only warn and ignore the option if not recognized
19006 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19010 lt_cv_prog_compiler_c_o_CXX=yes
19011 fi
19012 fi
19013 chmod u+w . 2>&5
19014 $RM conftest*
19015 # SGI C++ compiler will create directory out/ii_files/ for
19016 # template instantiation
19017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19018 $RM out/* && rmdir out
19019 cd ..
19020 $RM -r conftest
19021 $RM conftest*
19022
19023fi
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19025$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19026
19027
19028
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19030$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019031if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019032 $as_echo_n "(cached) " >&6
19033else
19034 lt_cv_prog_compiler_c_o_CXX=no
19035 $RM -r conftest 2>/dev/null
19036 mkdir conftest
19037 cd conftest
19038 mkdir out
19039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19040
19041 lt_compiler_flag="-o out/conftest2.$ac_objext"
19042 # Insert the option either (1) after the last *FLAGS variable, or
19043 # (2) before a word containing "conftest.", or (3) at the end.
19044 # Note that $ac_compile itself does not contain backslashes and begins
19045 # with a dollar sign (not a hyphen), so the echo should work correctly.
19046 lt_compile=`echo "$ac_compile" | $SED \
19047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19049 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019051 (eval "$lt_compile" 2>out/conftest.err)
19052 ac_status=$?
19053 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19056 then
19057 # The compiler can only warn and ignore the option if not recognized
19058 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019060 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19061 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19062 lt_cv_prog_compiler_c_o_CXX=yes
19063 fi
19064 fi
19065 chmod u+w . 2>&5
19066 $RM conftest*
19067 # SGI C++ compiler will create directory out/ii_files/ for
19068 # template instantiation
19069 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19070 $RM out/* && rmdir out
19071 cd ..
19072 $RM -r conftest
19073 $RM conftest*
19074
19075fi
19076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19077$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19078
19079
19080
19081
19082hard_links="nottested"
19083if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19084 # do not overwrite the value of need_locks provided by the user
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19086$as_echo_n "checking if we can lock with hard links... " >&6; }
19087 hard_links=yes
19088 $RM conftest*
19089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19090 touch conftest.a
19091 ln conftest.a conftest.b 2>&5 || hard_links=no
19092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19094$as_echo "$hard_links" >&6; }
19095 if test "$hard_links" = no; then
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19097$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19098 need_locks=warn
19099 fi
19100else
19101 need_locks=no
19102fi
19103
19104
19105
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19107$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19108
19109 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019110 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019111 case $host_os in
19112 aix[4-9]*)
19113 # If we're using GNU nm, then we don't want the "-C" option.
19114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019115 # Also, AIX nm treats weak defined symbols like other global defined
19116 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019117 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019118 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 +000019119 else
19120 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'
19121 fi
19122 ;;
19123 pw32*)
19124 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019125 ;;
cristy73bd4a52010-10-05 11:24:23 +000019126 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019127 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019128 cl*)
19129 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19130 ;;
cristyda16f162011-02-19 23:52:17 +000019131 *)
19132 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'
19133 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19134 ;;
19135 esac
19136 ;;
cristy73bd4a52010-10-05 11:24:23 +000019137 *)
19138 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019139 ;;
cristy73bd4a52010-10-05 11:24:23 +000019140 esac
cristy73bd4a52010-10-05 11:24:23 +000019141
19142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19143$as_echo "$ld_shlibs_CXX" >&6; }
19144test "$ld_shlibs_CXX" = no && can_build_shared=no
19145
19146with_gnu_ld_CXX=$with_gnu_ld
19147
19148
19149
19150
19151
19152
19153#
19154# Do we need to explicitly link libc?
19155#
19156case "x$archive_cmds_need_lc_CXX" in
19157x|xyes)
19158 # Assume -lc should be added
19159 archive_cmds_need_lc_CXX=yes
19160
19161 if test "$enable_shared" = yes && test "$GCC" = yes; then
19162 case $archive_cmds_CXX in
19163 *'~'*)
19164 # FIXME: we may have to deal with multi-command sequences.
19165 ;;
19166 '$CC '*)
19167 # Test whether the compiler implicitly links with -lc since on some
19168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19169 # to ld, don't add -lc before -lgcc.
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19171$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019172if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019173 $as_echo_n "(cached) " >&6
19174else
19175 $RM conftest*
19176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019177
cristy0c60a692010-11-04 01:09:47 +000019178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019179 (eval $ac_compile) 2>&5
19180 ac_status=$?
19181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19182 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019183 soname=conftest
19184 lib=conftest
19185 libobjs=conftest.$ac_objext
19186 deplibs=
19187 wl=$lt_prog_compiler_wl_CXX
19188 pic_flag=$lt_prog_compiler_pic_CXX
19189 compiler_flags=-v
19190 linker_flags=-v
19191 verstring=
19192 output_objdir=.
19193 libname=conftest
19194 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19195 allow_undefined_flag_CXX=
19196 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 +000019197 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19198 ac_status=$?
19199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19200 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019201 then
19202 lt_cv_archive_cmds_need_lc_CXX=no
19203 else
19204 lt_cv_archive_cmds_need_lc_CXX=yes
19205 fi
19206 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19207 else
19208 cat conftest.err 1>&5
19209 fi
19210 $RM conftest*
19211
19212fi
19213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19214$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19215 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019216 ;;
19217 esac
19218 fi
19219 ;;
19220esac
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
cristy73bd4a52010-10-05 11:24:23 +000019283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19284$as_echo_n "checking dynamic linker characteristics... " >&6; }
19285
19286library_names_spec=
19287libname_spec='lib$name'
19288soname_spec=
19289shrext_cmds=".so"
19290postinstall_cmds=
19291postuninstall_cmds=
19292finish_cmds=
19293finish_eval=
19294shlibpath_var=
19295shlibpath_overrides_runpath=unknown
19296version_type=none
19297dynamic_linker="$host_os ld.so"
19298sys_lib_dlsearch_path_spec="/lib /usr/lib"
19299need_lib_prefix=unknown
19300hardcode_into_libs=no
19301
19302# when you set need_version to no, make sure it does not cause -set_version
19303# flags to be left without arguments
19304need_version=unknown
19305
19306case $host_os in
19307aix3*)
cristy99bd5232011-12-07 14:38:20 +000019308 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19310 shlibpath_var=LIBPATH
19311
19312 # AIX 3 has no versioning support, so we append a major version to the name.
19313 soname_spec='${libname}${release}${shared_ext}$major'
19314 ;;
19315
19316aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019317 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019318 need_lib_prefix=no
19319 need_version=no
19320 hardcode_into_libs=yes
19321 if test "$host_cpu" = ia64; then
19322 # AIX 5 supports IA64
19323 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19324 shlibpath_var=LD_LIBRARY_PATH
19325 else
19326 # With GCC up to 2.95.x, collect2 would create an import file
19327 # for dependence libraries. The import file would start with
19328 # the line `#! .'. This would cause the generated library to
19329 # depend on `.', always an invalid library. This was fixed in
19330 # development snapshots of GCC prior to 3.0.
19331 case $host_os in
19332 aix4 | aix4.[01] | aix4.[01].*)
19333 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19334 echo ' yes '
19335 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19336 :
19337 else
19338 can_build_shared=no
19339 fi
19340 ;;
19341 esac
19342 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19343 # soname into executable. Probably we can add versioning support to
19344 # collect2, so additional links can be useful in future.
19345 if test "$aix_use_runtimelinking" = yes; then
19346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19347 # instead of lib<name>.a to let people know that these are not
19348 # typical AIX shared libraries.
19349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19350 else
19351 # We preserve .a as extension for shared libraries through AIX4.2
19352 # and later when we are not doing run time linking.
19353 library_names_spec='${libname}${release}.a $libname.a'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 fi
19356 shlibpath_var=LIBPATH
19357 fi
19358 ;;
19359
19360amigaos*)
19361 case $host_cpu in
19362 powerpc)
19363 # Since July 2007 AmigaOS4 officially supports .so libraries.
19364 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19366 ;;
19367 m68k)
19368 library_names_spec='$libname.ixlibrary $libname.a'
19369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019370 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 +000019371 ;;
19372 esac
19373 ;;
19374
19375beos*)
19376 library_names_spec='${libname}${shared_ext}'
19377 dynamic_linker="$host_os ld.so"
19378 shlibpath_var=LIBRARY_PATH
19379 ;;
19380
19381bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019382 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019383 need_version=no
19384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19385 soname_spec='${libname}${release}${shared_ext}$major'
19386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19387 shlibpath_var=LD_LIBRARY_PATH
19388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19390 # the default ld.so.conf also contains /usr/contrib/lib and
19391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19392 # libtool to hard-code these into programs
19393 ;;
19394
19395cygwin* | mingw* | pw32* | cegcc*)
19396 version_type=windows
19397 shrext_cmds=".dll"
19398 need_version=no
19399 need_lib_prefix=no
19400
cristyda16f162011-02-19 23:52:17 +000019401 case $GCC,$cc_basename in
19402 yes,*)
19403 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019404 library_names_spec='$libname.dll.a'
19405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19406 postinstall_cmds='base_file=`basename \${file}`~
19407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19408 dldir=$destdir/`dirname \$dlpath`~
19409 test -d \$dldir || mkdir -p \$dldir~
19410 $install_prog $dir/$dlname \$dldir/$dlname~
19411 chmod a+x \$dldir/$dlname~
19412 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19413 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19414 fi'
19415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19416 dlpath=$dir/\$dldll~
19417 $RM \$dlpath'
19418 shlibpath_overrides_runpath=yes
19419
19420 case $host_os in
19421 cygwin*)
19422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019424
cristy73bd4a52010-10-05 11:24:23 +000019425 ;;
19426 mingw* | cegcc*)
19427 # MinGW DLLs use traditional 'lib' prefix
19428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019429 ;;
19430 pw32*)
19431 # pw32 DLLs use 'pw' prefix rather than 'lib'
19432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19433 ;;
19434 esac
cristyda16f162011-02-19 23:52:17 +000019435 dynamic_linker='Win32 ld.exe'
19436 ;;
19437
19438 *,cl*)
19439 # Native MSVC
19440 libname_spec='$name'
19441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19442 library_names_spec='${libname}.dll.lib'
19443
19444 case $build_os in
19445 mingw*)
19446 sys_lib_search_path_spec=
19447 lt_save_ifs=$IFS
19448 IFS=';'
19449 for lt_path in $LIB
19450 do
19451 IFS=$lt_save_ifs
19452 # Let DOS variable expansion print the short 8.3 style file name.
19453 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19454 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19455 done
19456 IFS=$lt_save_ifs
19457 # Convert to MSYS style.
19458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19459 ;;
19460 cygwin*)
19461 # Convert to unix form, then to dos form, then back to unix form
19462 # but this time dos style (no spaces!) so that the unix form looks
19463 # like /cygdrive/c/PROGRA~1:/cygdr...
19464 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19465 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19466 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19467 ;;
19468 *)
19469 sys_lib_search_path_spec="$LIB"
19470 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19471 # It is most probably a Windows format PATH.
19472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19473 else
19474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19475 fi
19476 # FIXME: find the short name or the path components, as spaces are
19477 # common. (e.g. "Program Files" -> "PROGRA~1")
19478 ;;
19479 esac
19480
19481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19482 postinstall_cmds='base_file=`basename \${file}`~
19483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19484 dldir=$destdir/`dirname \$dlpath`~
19485 test -d \$dldir || mkdir -p \$dldir~
19486 $install_prog $dir/$dlname \$dldir/$dlname'
19487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19488 dlpath=$dir/\$dldll~
19489 $RM \$dlpath'
19490 shlibpath_overrides_runpath=yes
19491 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019492 ;;
19493
19494 *)
cristyda16f162011-02-19 23:52:17 +000019495 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019497 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019498 ;;
19499 esac
cristy73bd4a52010-10-05 11:24:23 +000019500 # FIXME: first we should search . and the directory the executable is in
19501 shlibpath_var=PATH
19502 ;;
19503
19504darwin* | rhapsody*)
19505 dynamic_linker="$host_os dyld"
19506 version_type=darwin
19507 need_lib_prefix=no
19508 need_version=no
19509 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19510 soname_spec='${libname}${release}${major}$shared_ext'
19511 shlibpath_overrides_runpath=yes
19512 shlibpath_var=DYLD_LIBRARY_PATH
19513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19514
19515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19516 ;;
19517
19518dgux*)
cristy99bd5232011-12-07 14:38:20 +000019519 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019520 need_lib_prefix=no
19521 need_version=no
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 shlibpath_var=LD_LIBRARY_PATH
19525 ;;
19526
cristy73bd4a52010-10-05 11:24:23 +000019527freebsd* | dragonfly*)
19528 # DragonFly does not have aout. When/if they implement a new
19529 # versioning mechanism, adjust this.
19530 if test -x /usr/bin/objformat; then
19531 objformat=`/usr/bin/objformat`
19532 else
19533 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019534 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019535 *) objformat=elf ;;
19536 esac
19537 fi
19538 version_type=freebsd-$objformat
19539 case $version_type in
19540 freebsd-elf*)
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19542 need_version=no
19543 need_lib_prefix=no
19544 ;;
19545 freebsd-*)
19546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19547 need_version=yes
19548 ;;
19549 esac
19550 shlibpath_var=LD_LIBRARY_PATH
19551 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019552 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019553 shlibpath_overrides_runpath=yes
19554 ;;
19555 freebsd3.[01]* | freebsdelf3.[01]*)
19556 shlibpath_overrides_runpath=yes
19557 hardcode_into_libs=yes
19558 ;;
19559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19561 shlibpath_overrides_runpath=no
19562 hardcode_into_libs=yes
19563 ;;
19564 *) # from 4.6 on, and DragonFly
19565 shlibpath_overrides_runpath=yes
19566 hardcode_into_libs=yes
19567 ;;
19568 esac
19569 ;;
19570
19571gnu*)
cristy99bd5232011-12-07 14:38:20 +000019572 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019573 need_lib_prefix=no
19574 need_version=no
19575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19576 soname_spec='${libname}${release}${shared_ext}$major'
19577 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019578 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019579 hardcode_into_libs=yes
19580 ;;
19581
cristy0c60a692010-11-04 01:09:47 +000019582haiku*)
cristy99bd5232011-12-07 14:38:20 +000019583 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019584 need_lib_prefix=no
19585 need_version=no
19586 dynamic_linker="$host_os runtime_loader"
19587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19588 soname_spec='${libname}${release}${shared_ext}$major'
19589 shlibpath_var=LIBRARY_PATH
19590 shlibpath_overrides_runpath=yes
19591 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19592 hardcode_into_libs=yes
19593 ;;
19594
cristy73bd4a52010-10-05 11:24:23 +000019595hpux9* | hpux10* | hpux11*)
19596 # Give a soname corresponding to the major version so that dld.sl refuses to
19597 # link against other versions.
19598 version_type=sunos
19599 need_lib_prefix=no
19600 need_version=no
19601 case $host_cpu in
19602 ia64*)
19603 shrext_cmds='.so'
19604 hardcode_into_libs=yes
19605 dynamic_linker="$host_os dld.so"
19606 shlibpath_var=LD_LIBRARY_PATH
19607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19609 soname_spec='${libname}${release}${shared_ext}$major'
19610 if test "X$HPUX_IA64_MODE" = X32; then
19611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19612 else
19613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19614 fi
19615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19616 ;;
19617 hppa*64*)
19618 shrext_cmds='.sl'
19619 hardcode_into_libs=yes
19620 dynamic_linker="$host_os dld.sl"
19621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19627 ;;
19628 *)
19629 shrext_cmds='.sl'
19630 dynamic_linker="$host_os dld.sl"
19631 shlibpath_var=SHLIB_PATH
19632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19634 soname_spec='${libname}${release}${shared_ext}$major'
19635 ;;
19636 esac
cristy0c60a692010-11-04 01:09:47 +000019637 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019638 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019639 # or fails outright, so override atomically:
19640 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019641 ;;
19642
19643interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000019644 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019645 need_lib_prefix=no
19646 need_version=no
19647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19648 soname_spec='${libname}${release}${shared_ext}$major'
19649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19650 shlibpath_var=LD_LIBRARY_PATH
19651 shlibpath_overrides_runpath=no
19652 hardcode_into_libs=yes
19653 ;;
19654
19655irix5* | irix6* | nonstopux*)
19656 case $host_os in
19657 nonstopux*) version_type=nonstopux ;;
19658 *)
19659 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000019660 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019661 else
19662 version_type=irix
19663 fi ;;
19664 esac
19665 need_lib_prefix=no
19666 need_version=no
19667 soname_spec='${libname}${release}${shared_ext}$major'
19668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19669 case $host_os in
19670 irix5* | nonstopux*)
19671 libsuff= shlibsuff=
19672 ;;
19673 *)
19674 case $LD in # libtool.m4 will add one of these switches to LD
19675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19676 libsuff= shlibsuff= libmagic=32-bit;;
19677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19678 libsuff=32 shlibsuff=N32 libmagic=N32;;
19679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19681 *) libsuff= shlibsuff= libmagic=never-match;;
19682 esac
19683 ;;
19684 esac
19685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19686 shlibpath_overrides_runpath=no
19687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19689 hardcode_into_libs=yes
19690 ;;
19691
19692# No shared lib support for Linux oldld, aout, or coff.
19693linux*oldld* | linux*aout* | linux*coff*)
19694 dynamic_linker=no
19695 ;;
19696
cristy99bd5232011-12-07 14:38:20 +000019697# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000019698linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000019699 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019700 need_lib_prefix=no
19701 need_version=no
19702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19703 soname_spec='${libname}${release}${shared_ext}$major'
19704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19705 shlibpath_var=LD_LIBRARY_PATH
19706 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019707
cristy73bd4a52010-10-05 11:24:23 +000019708 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019709 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019710 $as_echo_n "(cached) " >&6
19711else
19712 lt_cv_shlibpath_overrides_runpath=no
19713 save_LDFLAGS=$LDFLAGS
19714 save_libdir=$libdir
19715 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19716 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019718/* end confdefs.h. */
19719
19720int
19721main ()
19722{
19723
19724 ;
19725 return 0;
19726}
19727_ACEOF
19728if ac_fn_cxx_try_link "$LINENO"; then :
19729 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019730 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019731fi
19732fi
19733rm -f core conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019735 LDFLAGS=$save_LDFLAGS
19736 libdir=$save_libdir
19737
19738fi
19739
19740 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019741
19742 # This implies no fast_install, which is unacceptable.
19743 # Some rework will be needed to allow for fast_install
19744 # before this can be enabled.
19745 hardcode_into_libs=yes
19746
19747 # Add ABI-specific directories to the system library path.
19748 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19749
19750 # Append ld.so.conf contents to the search path
19751 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019752 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 +000019753 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019754
cristy73bd4a52010-10-05 11:24:23 +000019755 fi
19756
19757 # We used to test for /lib/ld.so.1 and disable shared libraries on
19758 # powerpc, because MkLinux only supported shared libraries with the
19759 # GNU dynamic linker. Since this was broken with cross compilers,
19760 # most powerpc-linux boxes support dynamic linking these days and
19761 # people can always --disable-shared, the test was removed, and we
19762 # assume the GNU/Linux dynamic linker is in use.
19763 dynamic_linker='GNU/Linux ld.so'
19764 ;;
19765
19766netbsd*)
19767 version_type=sunos
19768 need_lib_prefix=no
19769 need_version=no
19770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19773 dynamic_linker='NetBSD (a.out) ld.so'
19774 else
19775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19776 soname_spec='${libname}${release}${shared_ext}$major'
19777 dynamic_linker='NetBSD ld.elf_so'
19778 fi
19779 shlibpath_var=LD_LIBRARY_PATH
19780 shlibpath_overrides_runpath=yes
19781 hardcode_into_libs=yes
19782 ;;
19783
19784newsos6)
cristy99bd5232011-12-07 14:38:20 +000019785 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19787 shlibpath_var=LD_LIBRARY_PATH
19788 shlibpath_overrides_runpath=yes
19789 ;;
19790
19791*nto* | *qnx*)
19792 version_type=qnx
19793 need_lib_prefix=no
19794 need_version=no
19795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19796 soname_spec='${libname}${release}${shared_ext}$major'
19797 shlibpath_var=LD_LIBRARY_PATH
19798 shlibpath_overrides_runpath=no
19799 hardcode_into_libs=yes
19800 dynamic_linker='ldqnx.so'
19801 ;;
19802
19803openbsd*)
19804 version_type=sunos
19805 sys_lib_dlsearch_path_spec="/usr/lib"
19806 need_lib_prefix=no
19807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19808 case $host_os in
19809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19810 *) need_version=no ;;
19811 esac
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19814 shlibpath_var=LD_LIBRARY_PATH
19815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19816 case $host_os in
19817 openbsd2.[89] | openbsd2.[89].*)
19818 shlibpath_overrides_runpath=no
19819 ;;
19820 *)
19821 shlibpath_overrides_runpath=yes
19822 ;;
19823 esac
19824 else
19825 shlibpath_overrides_runpath=yes
19826 fi
19827 ;;
19828
19829os2*)
19830 libname_spec='$name'
19831 shrext_cmds=".dll"
19832 need_lib_prefix=no
19833 library_names_spec='$libname${shared_ext} $libname.a'
19834 dynamic_linker='OS/2 ld.exe'
19835 shlibpath_var=LIBPATH
19836 ;;
19837
19838osf3* | osf4* | osf5*)
19839 version_type=osf
19840 need_lib_prefix=no
19841 need_version=no
19842 soname_spec='${libname}${release}${shared_ext}$major'
19843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19844 shlibpath_var=LD_LIBRARY_PATH
19845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19847 ;;
19848
19849rdos*)
19850 dynamic_linker=no
19851 ;;
19852
19853solaris*)
cristy99bd5232011-12-07 14:38:20 +000019854 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019855 need_lib_prefix=no
19856 need_version=no
19857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19858 soname_spec='${libname}${release}${shared_ext}$major'
19859 shlibpath_var=LD_LIBRARY_PATH
19860 shlibpath_overrides_runpath=yes
19861 hardcode_into_libs=yes
19862 # ldd complains unless libraries are executable
19863 postinstall_cmds='chmod +x $lib'
19864 ;;
19865
19866sunos4*)
19867 version_type=sunos
19868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19870 shlibpath_var=LD_LIBRARY_PATH
19871 shlibpath_overrides_runpath=yes
19872 if test "$with_gnu_ld" = yes; then
19873 need_lib_prefix=no
19874 fi
19875 need_version=yes
19876 ;;
19877
19878sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000019879 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19881 soname_spec='${libname}${release}${shared_ext}$major'
19882 shlibpath_var=LD_LIBRARY_PATH
19883 case $host_vendor in
19884 sni)
19885 shlibpath_overrides_runpath=no
19886 need_lib_prefix=no
19887 runpath_var=LD_RUN_PATH
19888 ;;
19889 siemens)
19890 need_lib_prefix=no
19891 ;;
19892 motorola)
19893 need_lib_prefix=no
19894 need_version=no
19895 shlibpath_overrides_runpath=no
19896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19897 ;;
19898 esac
19899 ;;
19900
19901sysv4*MP*)
19902 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000019903 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19905 soname_spec='$libname${shared_ext}.$major'
19906 shlibpath_var=LD_LIBRARY_PATH
19907 fi
19908 ;;
19909
19910sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19911 version_type=freebsd-elf
19912 need_lib_prefix=no
19913 need_version=no
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19915 soname_spec='${libname}${release}${shared_ext}$major'
19916 shlibpath_var=LD_LIBRARY_PATH
19917 shlibpath_overrides_runpath=yes
19918 hardcode_into_libs=yes
19919 if test "$with_gnu_ld" = yes; then
19920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19921 else
19922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19923 case $host_os in
19924 sco3.2v5*)
19925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19926 ;;
19927 esac
19928 fi
19929 sys_lib_dlsearch_path_spec='/usr/lib'
19930 ;;
19931
19932tpf*)
19933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000019934 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019935 need_lib_prefix=no
19936 need_version=no
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19938 shlibpath_var=LD_LIBRARY_PATH
19939 shlibpath_overrides_runpath=no
19940 hardcode_into_libs=yes
19941 ;;
19942
19943uts4*)
cristy99bd5232011-12-07 14:38:20 +000019944 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19946 soname_spec='${libname}${release}${shared_ext}$major'
19947 shlibpath_var=LD_LIBRARY_PATH
19948 ;;
19949
19950*)
19951 dynamic_linker=no
19952 ;;
19953esac
19954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19955$as_echo "$dynamic_linker" >&6; }
19956test "$dynamic_linker" = no && can_build_shared=no
19957
19958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19959if test "$GCC" = yes; then
19960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19961fi
19962
19963if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19965fi
19966if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19968fi
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
cristy0c60a692010-11-04 01:09:47 +000020005
20006
cristy73bd4a52010-10-05 11:24:23 +000020007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20008$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20009hardcode_action_CXX=
20010if test -n "$hardcode_libdir_flag_spec_CXX" ||
20011 test -n "$runpath_var_CXX" ||
20012 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20013
20014 # We can hardcode non-existent directories.
20015 if test "$hardcode_direct_CXX" != no &&
20016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20017 # have to relink, otherwise we might link with an installed library
20018 # when we should be linking with a yet-to-be-installed one
20019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20020 test "$hardcode_minus_L_CXX" != no; then
20021 # Linking always hardcodes the temporary library directory.
20022 hardcode_action_CXX=relink
20023 else
20024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20025 hardcode_action_CXX=immediate
20026 fi
20027else
20028 # We cannot hardcode anything, or else we can only hardcode existing
20029 # directories.
20030 hardcode_action_CXX=unsupported
20031fi
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20033$as_echo "$hardcode_action_CXX" >&6; }
20034
20035if test "$hardcode_action_CXX" = relink ||
20036 test "$inherit_rpath_CXX" = yes; then
20037 # Fast installation is not supported
20038 enable_fast_install=no
20039elif test "$shlibpath_overrides_runpath" = yes ||
20040 test "$enable_shared" = no; then
20041 # Fast installation is not necessary
20042 enable_fast_install=needless
20043fi
20044
20045
20046
20047
20048
20049
20050
20051 fi # test -n "$compiler"
20052
20053 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020054 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020055 LDCXX=$LD
20056 LD=$lt_save_LD
20057 GCC=$lt_save_GCC
20058 with_gnu_ld=$lt_save_with_gnu_ld
20059 lt_cv_path_LDCXX=$lt_cv_path_LD
20060 lt_cv_path_LD=$lt_save_path_LD
20061 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20062 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20063fi # test "$_lt_caught_CXX_error" != yes
20064
20065ac_ext=c
20066ac_cpp='$CPP $CPPFLAGS'
20067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20069ac_compiler_gnu=$ac_cv_c_compiler_gnu
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
cristy99bd5232011-12-07 14:38:20 +000020083
20084
cristy73bd4a52010-10-05 11:24:23 +000020085 ac_config_commands="$ac_config_commands libtool"
20086
20087
20088
20089
20090# Only expand once:
20091
20092
20093
cristy3ed852e2009-09-05 21:47:34 +000020094
20095
20096# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020097
20098
20099
20100
20101
20102
20103
cristy73bd4a52010-10-05 11:24:23 +000020104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20105$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020106if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020107 $as_echo_n "(cached) " >&6
20108else
20109
20110module=yes
20111eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020112module=no
20113eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020114
20115fi
20116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20117$as_echo "$libltdl_cv_shlibext" >&6; }
20118if test -n "$libltdl_cv_shlibext"; then
20119
20120cat >>confdefs.h <<_ACEOF
20121#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20122_ACEOF
20123
20124fi
cristy99bd5232011-12-07 14:38:20 +000020125if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20126
20127cat >>confdefs.h <<_ACEOF
20128#define LT_SHARED_EXT "$libltdl_cv_shrext"
20129_ACEOF
20130
20131fi
cristy73bd4a52010-10-05 11:24:23 +000020132
20133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20134$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020135if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020136 $as_echo_n "(cached) " >&6
20137else
20138 lt_cv_module_path_var="$shlibpath_var"
20139fi
20140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20141$as_echo "$lt_cv_module_path_var" >&6; }
20142if test -n "$lt_cv_module_path_var"; then
20143
20144cat >>confdefs.h <<_ACEOF
20145#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20146_ACEOF
20147
20148fi
20149
20150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20151$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020152if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020153 $as_echo_n "(cached) " >&6
20154else
20155 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20156fi
20157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20158$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20159if test -n "$lt_cv_sys_dlsearch_path"; then
20160 sys_dlsearch_path=
20161 for dir in $lt_cv_sys_dlsearch_path; do
20162 if test -z "$sys_dlsearch_path"; then
20163 sys_dlsearch_path="$dir"
20164 else
20165 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20166 fi
20167 done
20168
20169cat >>confdefs.h <<_ACEOF
20170#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20171_ACEOF
20172
20173fi
20174
20175
20176LT_DLLOADERS=
20177
20178
20179ac_ext=c
20180ac_cpp='$CPP $CPPFLAGS'
20181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20183ac_compiler_gnu=$ac_cv_c_compiler_gnu
20184
20185
20186LIBADD_DLOPEN=
20187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20188$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020189if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020190 $as_echo_n "(cached) " >&6
20191else
20192 ac_func_search_save_LIBS=$LIBS
20193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194/* end confdefs.h. */
20195
20196/* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20199#ifdef __cplusplus
20200extern "C"
20201#endif
20202char dlopen ();
20203int
20204main ()
20205{
20206return dlopen ();
20207 ;
20208 return 0;
20209}
20210_ACEOF
20211for ac_lib in '' dl; do
20212 if test -z "$ac_lib"; then
20213 ac_res="none required"
20214 else
20215 ac_res=-l$ac_lib
20216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20217 fi
20218 if ac_fn_c_try_link "$LINENO"; then :
20219 ac_cv_search_dlopen=$ac_res
20220fi
20221rm -f core conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020223 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020224 break
20225fi
20226done
cristyda16f162011-02-19 23:52:17 +000020227if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020228
20229else
20230 ac_cv_search_dlopen=no
20231fi
20232rm conftest.$ac_ext
20233LIBS=$ac_func_search_save_LIBS
20234fi
20235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20236$as_echo "$ac_cv_search_dlopen" >&6; }
20237ac_res=$ac_cv_search_dlopen
20238if test "$ac_res" != no; then :
20239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20240
20241$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20242
20243 if test "$ac_cv_search_dlopen" != "none required" ; then
20244 LIBADD_DLOPEN="-ldl"
20245 fi
20246 libltdl_cv_lib_dl_dlopen="yes"
20247 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20248else
20249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20250/* end confdefs.h. */
20251#if HAVE_DLFCN_H
20252# include <dlfcn.h>
20253#endif
20254
20255int
20256main ()
20257{
20258dlopen(0, 0);
20259 ;
20260 return 0;
20261}
20262_ACEOF
20263if ac_fn_c_try_link "$LINENO"; then :
20264
20265$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20266
20267 libltdl_cv_func_dlopen="yes"
20268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20269else
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20271$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020272if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020273 $as_echo_n "(cached) " >&6
20274else
20275 ac_check_lib_save_LIBS=$LIBS
20276LIBS="-lsvld $LIBS"
20277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278/* end confdefs.h. */
20279
20280/* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20283#ifdef __cplusplus
20284extern "C"
20285#endif
20286char dlopen ();
20287int
20288main ()
20289{
20290return dlopen ();
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295if ac_fn_c_try_link "$LINENO"; then :
20296 ac_cv_lib_svld_dlopen=yes
20297else
20298 ac_cv_lib_svld_dlopen=no
20299fi
20300rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302LIBS=$ac_check_lib_save_LIBS
20303fi
20304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20305$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020306if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020307
20308$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20309
20310 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20311 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20312fi
20313
20314fi
20315rm -f core conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext conftest.$ac_ext
20317fi
20318
20319if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20320then
20321 lt_save_LIBS="$LIBS"
20322 LIBS="$LIBS $LIBADD_DLOPEN"
20323 for ac_func in dlerror
20324do :
20325 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020326if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020327 cat >>confdefs.h <<_ACEOF
20328#define HAVE_DLERROR 1
20329_ACEOF
20330
20331fi
20332done
20333
20334 LIBS="$lt_save_LIBS"
20335fi
20336
20337
20338LIBADD_SHL_LOAD=
20339ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020340if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020341
20342$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20343
20344 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20345else
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20347$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020348if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020349 $as_echo_n "(cached) " >&6
20350else
20351 ac_check_lib_save_LIBS=$LIBS
20352LIBS="-ldld $LIBS"
20353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354/* end confdefs.h. */
20355
20356/* Override any GCC internal prototype to avoid an error.
20357 Use char because int might match the return type of a GCC
20358 builtin and then its argument prototype would still apply. */
20359#ifdef __cplusplus
20360extern "C"
20361#endif
20362char shl_load ();
20363int
20364main ()
20365{
20366return shl_load ();
20367 ;
20368 return 0;
20369}
20370_ACEOF
20371if ac_fn_c_try_link "$LINENO"; then :
20372 ac_cv_lib_dld_shl_load=yes
20373else
20374 ac_cv_lib_dld_shl_load=no
20375fi
20376rm -f core conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
20378LIBS=$ac_check_lib_save_LIBS
20379fi
20380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20381$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020382if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020383
20384$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20385
20386 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20387 LIBADD_SHL_LOAD="-ldld"
20388fi
20389
20390fi
20391
20392
20393
20394case $host_os in
20395darwin[1567].*)
20396# We only want this for pre-Mac OS X 10.4.
20397 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020398if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020399
20400$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20401
20402 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20403fi
20404
20405 ;;
20406beos*)
20407 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20408 ;;
20409cygwin* | mingw* | os2* | pw32*)
20410 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20411"
cristyda16f162011-02-19 23:52:17 +000020412if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020413 ac_have_decl=1
20414else
20415 ac_have_decl=0
20416fi
20417
20418cat >>confdefs.h <<_ACEOF
20419#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20420_ACEOF
20421
20422 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20423 ;;
20424esac
20425
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20427$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020428if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020429 $as_echo_n "(cached) " >&6
20430else
20431 ac_check_lib_save_LIBS=$LIBS
20432LIBS="-ldld $LIBS"
20433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434/* end confdefs.h. */
20435
20436/* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439#ifdef __cplusplus
20440extern "C"
20441#endif
20442char dld_link ();
20443int
20444main ()
20445{
20446return dld_link ();
20447 ;
20448 return 0;
20449}
20450_ACEOF
20451if ac_fn_c_try_link "$LINENO"; then :
20452 ac_cv_lib_dld_dld_link=yes
20453else
20454 ac_cv_lib_dld_dld_link=no
20455fi
20456rm -f core conftest.err conftest.$ac_objext \
20457 conftest$ac_exeext conftest.$ac_ext
20458LIBS=$ac_check_lib_save_LIBS
20459fi
20460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20461$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020462if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020463
20464$as_echo "#define HAVE_DLD 1" >>confdefs.h
20465
20466 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20467fi
20468
20469
20470
20471
20472LT_DLPREOPEN=
20473if test -n "$LT_DLLOADERS"
20474then
20475 for lt_loader in $LT_DLLOADERS; do
20476 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20477 done
20478
20479$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20480
20481fi
20482
20483
20484LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20485
20486
20487ac_ext=c
20488ac_cpp='$CPP $CPPFLAGS'
20489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492
20493
20494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20495$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020496if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020497 $as_echo_n "(cached) " >&6
20498else
20499 lt_cv_sys_symbol_underscore=no
20500 cat > conftest.$ac_ext <<_LT_EOF
20501void nm_test_func(){}
20502int main(){nm_test_func;return 0;}
20503_LT_EOF
20504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20505 (eval $ac_compile) 2>&5
20506 ac_status=$?
20507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20508 test $ac_status = 0; }; then
20509 # Now try to grab the symbols.
20510 ac_nlist=conftest.nm
20511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20512 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20513 ac_status=$?
20514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20515 test $ac_status = 0; } && test -s "$ac_nlist"; then
20516 # See whether the symbols have a leading underscore.
20517 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20518 lt_cv_sys_symbol_underscore=yes
20519 else
20520 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20521 :
20522 else
20523 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20524 fi
20525 fi
20526 else
20527 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20528 fi
20529 else
20530 echo "configure: failed program was:" >&5
20531 cat conftest.c >&5
20532 fi
20533 rm -rf conftest*
20534
20535fi
20536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20537$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20538 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20539
20540
20541if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20542 if test x"$libltdl_cv_func_dlopen" = xyes ||
20543 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20545$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020546if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020547 $as_echo_n "(cached) " >&6
20548else
20549 libltdl_cv_need_uscore=unknown
20550 save_LIBS="$LIBS"
20551 LIBS="$LIBS $LIBADD_DLOPEN"
20552 if test "$cross_compiling" = yes; then :
20553 libltdl_cv_need_uscore=cross
20554else
20555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20556 lt_status=$lt_dlunknown
20557 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020558#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020559#include "confdefs.h"
20560
20561#if HAVE_DLFCN_H
20562#include <dlfcn.h>
20563#endif
20564
20565#include <stdio.h>
20566
20567#ifdef RTLD_GLOBAL
20568# define LT_DLGLOBAL RTLD_GLOBAL
20569#else
20570# ifdef DL_GLOBAL
20571# define LT_DLGLOBAL DL_GLOBAL
20572# else
20573# define LT_DLGLOBAL 0
20574# endif
20575#endif
20576
20577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20578 find out it does not work in some platform. */
20579#ifndef LT_DLLAZY_OR_NOW
20580# ifdef RTLD_LAZY
20581# define LT_DLLAZY_OR_NOW RTLD_LAZY
20582# else
20583# ifdef DL_LAZY
20584# define LT_DLLAZY_OR_NOW DL_LAZY
20585# else
20586# ifdef RTLD_NOW
20587# define LT_DLLAZY_OR_NOW RTLD_NOW
20588# else
20589# ifdef DL_NOW
20590# define LT_DLLAZY_OR_NOW DL_NOW
20591# else
20592# define LT_DLLAZY_OR_NOW 0
20593# endif
20594# endif
20595# endif
20596# endif
20597#endif
20598
cristy0c60a692010-11-04 01:09:47 +000020599/* When -fvisbility=hidden is used, assume the code has been annotated
20600 correspondingly for the symbols needed. */
20601#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020602int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020603#endif
20604
cristyda16f162011-02-19 23:52:17 +000020605int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020606int main ()
20607{
20608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20609 int status = $lt_dlunknown;
20610
20611 if (self)
20612 {
20613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020614 else
20615 {
20616 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20617 else puts (dlerror ());
20618 }
cristy73bd4a52010-10-05 11:24:23 +000020619 /* dlclose (self); */
20620 }
20621 else
20622 puts (dlerror ());
20623
20624 return status;
20625}
20626_LT_EOF
20627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20628 (eval $ac_link) 2>&5
20629 ac_status=$?
20630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20632 (./conftest; exit; ) >&5 2>/dev/null
20633 lt_status=$?
20634 case x$lt_status in
20635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20637 x$lt_dlunknown|x*) ;;
20638 esac
20639 else :
20640 # compilation failed
20641
20642 fi
20643fi
20644rm -fr conftest*
20645
20646 LIBS="$save_LIBS"
20647
20648fi
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20650$as_echo "$libltdl_cv_need_uscore" >&6; }
20651 fi
20652fi
20653
20654if test x"$libltdl_cv_need_uscore" = xyes; then
20655
20656$as_echo "#define NEED_USCORE 1" >>confdefs.h
20657
20658fi
20659
20660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20661$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020662if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020663 $as_echo_n "(cached) " >&6
20664else
20665 # PORTME does your system automatically load deplibs for dlopen?
20666 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20667 # For now, we just catch OSes we know something about -- in the
20668 # future, we'll try test this programmatically.
20669 lt_cv_sys_dlopen_deplibs=unknown
20670 case $host_os in
20671 aix3*|aix4.1.*|aix4.2.*)
20672 # Unknown whether this is true for these versions of AIX, but
20673 # we want this `case' here to explicitly catch those versions.
20674 lt_cv_sys_dlopen_deplibs=unknown
20675 ;;
20676 aix[4-9]*)
20677 lt_cv_sys_dlopen_deplibs=yes
20678 ;;
20679 amigaos*)
20680 case $host_cpu in
20681 powerpc)
20682 lt_cv_sys_dlopen_deplibs=no
20683 ;;
20684 esac
20685 ;;
20686 darwin*)
20687 # Assuming the user has installed a libdl from somewhere, this is true
20688 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20689 lt_cv_sys_dlopen_deplibs=yes
20690 ;;
20691 freebsd* | dragonfly*)
20692 lt_cv_sys_dlopen_deplibs=yes
20693 ;;
cristy0c60a692010-11-04 01:09:47 +000020694 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020695 # GNU and its variants, using gnu ld.so (Glibc)
20696 lt_cv_sys_dlopen_deplibs=yes
20697 ;;
20698 hpux10*|hpux11*)
20699 lt_cv_sys_dlopen_deplibs=yes
20700 ;;
20701 interix*)
20702 lt_cv_sys_dlopen_deplibs=yes
20703 ;;
20704 irix[12345]*|irix6.[01]*)
20705 # Catch all versions of IRIX before 6.2, and indicate that we don't
20706 # know how it worked for any of those versions.
20707 lt_cv_sys_dlopen_deplibs=unknown
20708 ;;
20709 irix*)
20710 # The case above catches anything before 6.2, and it's known that
20711 # at 6.2 and later dlopen does load deplibs.
20712 lt_cv_sys_dlopen_deplibs=yes
20713 ;;
20714 netbsd*)
20715 lt_cv_sys_dlopen_deplibs=yes
20716 ;;
20717 openbsd*)
20718 lt_cv_sys_dlopen_deplibs=yes
20719 ;;
20720 osf[1234]*)
20721 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20722 # it did *not* use an RPATH in a shared library to find objects the
20723 # library depends on, so we explicitly say `no'.
20724 lt_cv_sys_dlopen_deplibs=no
20725 ;;
20726 osf5.0|osf5.0a|osf5.1)
20727 # dlopen *does* load deplibs and with the right loader patch applied
20728 # it even uses RPATH in a shared library to search for shared objects
20729 # that the library depends on, but there's no easy way to know if that
20730 # patch is installed. Since this is the case, all we can really
20731 # say is unknown -- it depends on the patch being installed. If
20732 # it is, this changes to `yes'. Without it, it would be `no'.
20733 lt_cv_sys_dlopen_deplibs=unknown
20734 ;;
20735 osf*)
20736 # the two cases above should catch all versions of osf <= 5.1. Read
20737 # the comments above for what we know about them.
20738 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20739 # is used to find them so we can finally say `yes'.
20740 lt_cv_sys_dlopen_deplibs=yes
20741 ;;
20742 qnx*)
20743 lt_cv_sys_dlopen_deplibs=yes
20744 ;;
20745 solaris*)
20746 lt_cv_sys_dlopen_deplibs=yes
20747 ;;
20748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20749 libltdl_cv_sys_dlopen_deplibs=yes
20750 ;;
20751 esac
20752
20753fi
20754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20755$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20756if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20757
20758$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20759
20760fi
20761
20762:
20763
20764for ac_header in argz.h
20765do :
20766 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20767"
cristyda16f162011-02-19 23:52:17 +000020768if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020769 cat >>confdefs.h <<_ACEOF
20770#define HAVE_ARGZ_H 1
20771_ACEOF
20772
20773fi
20774
20775done
20776
20777
20778ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20779# include <argz.h>
20780#endif
20781"
cristyda16f162011-02-19 23:52:17 +000020782if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020783
20784cat >>confdefs.h <<_ACEOF
20785#define HAVE_ERROR_T 1
20786_ACEOF
20787
20788
20789else
20790
20791$as_echo "#define error_t int" >>confdefs.h
20792
20793
20794$as_echo "#define __error_t_defined 1" >>confdefs.h
20795
20796fi
20797
20798
20799ARGZ_H=
20800for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20801 argz_next argz_stringify
20802do :
20803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20804ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020805if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020806 cat >>confdefs.h <<_ACEOF
20807#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20808_ACEOF
20809
20810else
20811 ARGZ_H=argz.h;
20812
20813 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20814
20815fi
20816done
20817
20818
20819if test -z "$ARGZ_H"; then :
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20821$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020822if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020823 $as_echo_n "(cached) " >&6
20824else
20825 case $host_os in #(
20826 *cygwin*)
20827 lt_cv_sys_argz_works=no
20828 if test "$cross_compiling" != no; then
20829 lt_cv_sys_argz_works="guessing no"
20830 else
20831 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20832 save_IFS=$IFS
20833 IFS=-.
20834 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20835 IFS=$save_IFS
20836 lt_os_major=${2-0}
20837 lt_os_minor=${3-0}
20838 lt_os_micro=${4-0}
20839 if test "$lt_os_major" -gt 1 \
20840 || { test "$lt_os_major" -eq 1 \
20841 && { test "$lt_os_minor" -gt 5 \
20842 || { test "$lt_os_minor" -eq 5 \
20843 && test "$lt_os_micro" -gt 24; }; }; }; then
20844 lt_cv_sys_argz_works=yes
20845 fi
20846 fi
20847 ;; #(
20848 *) lt_cv_sys_argz_works=yes ;;
20849 esac
20850fi
20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20852$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020853 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020854
20855$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20856
20857else
20858 ARGZ_H=argz.h
20859
20860
20861 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20862
20863fi
20864fi
20865
20866
20867
20868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20869$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020870if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020871 $as_echo_n "(cached) " >&6
20872else
20873 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20874 libltdl_cv_preloaded_symbols=yes
20875 else
20876 libltdl_cv_preloaded_symbols=no
20877 fi
20878
20879fi
20880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20881$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20882if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20883
20884$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20885
20886fi
20887
20888# Set options
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900# Check whether --with-included_ltdl was given.
20901if test "${with_included_ltdl+set}" = set; then :
20902 withval=$with_included_ltdl;
20903fi
20904
20905
20906if test "x$with_included_ltdl" != xyes; then
20907 # We are not being forced to use the included libltdl sources, so
20908 # decide whether there is a useful installed version we can use.
20909 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20910
20911"
cristyda16f162011-02-19 23:52:17 +000020912if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020913 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20914 #include <ltdl.h>
20915"
cristyda16f162011-02-19 23:52:17 +000020916if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20918$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020919if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020920 $as_echo_n "(cached) " >&6
20921else
20922 ac_check_lib_save_LIBS=$LIBS
20923LIBS="-lltdl $LIBS"
20924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20925/* end confdefs.h. */
20926
20927/* Override any GCC internal prototype to avoid an error.
20928 Use char because int might match the return type of a GCC
20929 builtin and then its argument prototype would still apply. */
20930#ifdef __cplusplus
20931extern "C"
20932#endif
20933char lt_dladvise_preload ();
20934int
20935main ()
20936{
20937return lt_dladvise_preload ();
20938 ;
20939 return 0;
20940}
20941_ACEOF
20942if ac_fn_c_try_link "$LINENO"; then :
20943 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20944else
20945 ac_cv_lib_ltdl_lt_dladvise_preload=no
20946fi
20947rm -f core conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext conftest.$ac_ext
20949LIBS=$ac_check_lib_save_LIBS
20950fi
20951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20952$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020953if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020954 with_included_ltdl=no
20955else
20956 with_included_ltdl=yes
20957fi
20958
20959else
20960 with_included_ltdl=yes
20961fi
20962
20963else
20964 with_included_ltdl=yes
20965fi
20966
20967
20968fi
20969
20970
20971
20972
20973# Check whether --with-ltdl_include was given.
20974if test "${with_ltdl_include+set}" = set; then :
20975 withval=$with_ltdl_include;
20976fi
20977
20978
20979if test -n "$with_ltdl_include"; then
20980 if test -f "$with_ltdl_include/ltdl.h"; then :
20981 else
cristy98dddb52010-11-04 00:30:15 +000020982 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020983 fi
20984else
20985 with_ltdl_include=no
20986fi
20987
20988
20989# Check whether --with-ltdl_lib was given.
20990if test "${with_ltdl_lib+set}" = set; then :
20991 withval=$with_ltdl_lib;
20992fi
20993
20994
20995if test -n "$with_ltdl_lib"; then
20996 if test -f "$with_ltdl_lib/libltdl.la"; then :
20997 else
cristy98dddb52010-11-04 00:30:15 +000020998 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020999 fi
21000else
21001 with_ltdl_lib=no
21002fi
21003
21004case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21005 ,yes,no,no,)
21006 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021007 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021008 "") enable_ltdl_convenience=yes
21009 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21010esac
21011LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21012LTDLDEPS=$LIBLTDL
21013LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21014
21015
21016
21017
21018
21019# For backwards non-gettext consistent compatibility...
21020INCLTDL="$LTDLINCL"
21021
21022
21023 ;;
21024 ,no,no,no,)
21025 # If the included ltdl is not to be used, then use the
21026 # preinstalled libltdl we found.
21027
21028$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21029
21030 LIBLTDL=-lltdl
21031 LTDLDEPS=
21032 LTDLINCL=
21033 ;;
21034 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021035 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021036 ;;
21037 *) with_included_ltdl=no
21038 LIBLTDL="-L$with_ltdl_lib -lltdl"
21039 LTDLDEPS=
21040 LTDLINCL="-I$with_ltdl_include"
21041 ;;
21042esac
21043INCLTDL="$LTDLINCL"
21044
21045# Report our decision...
21046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21047$as_echo_n "checking where to find libltdl headers... " >&6; }
21048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21049$as_echo "$LTDLINCL" >&6; }
21050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21051$as_echo_n "checking where to find libltdl library... " >&6; }
21052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21053$as_echo "$LIBLTDL" >&6; }
21054
21055
21056
21057# Check whether --enable-ltdl-install was given.
21058if test "${enable_ltdl_install+set}" = set; then :
21059 enableval=$enable_ltdl_install;
21060fi
21061
21062
21063case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21064 *yes*) ;;
21065 *) enable_ltdl_convenience=yes ;;
21066esac
21067
21068 if test x"${enable_ltdl_install-no}" != xno; then
21069 INSTALL_LTDL_TRUE=
21070 INSTALL_LTDL_FALSE='#'
21071else
21072 INSTALL_LTDL_TRUE='#'
21073 INSTALL_LTDL_FALSE=
21074fi
21075
21076 if test x"${enable_ltdl_convenience-no}" != xno; then
21077 CONVENIENCE_LTDL_TRUE=
21078 CONVENIENCE_LTDL_FALSE='#'
21079else
21080 CONVENIENCE_LTDL_TRUE='#'
21081 CONVENIENCE_LTDL_FALSE=
21082fi
21083
21084
21085
21086
21087
21088
cristy73bd4a52010-10-05 11:24:23 +000021089# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21090# the user used. This is so that ltdl.h can pick up the parent projects
21091# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21092# definitions required by ltdl.c.
21093# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21094
21095
21096
21097for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21098do :
21099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21100ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21101"
cristy98dddb52010-11-04 00:30:15 +000021102if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021103 cat >>confdefs.h <<_ACEOF
21104#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21105_ACEOF
21106
21107fi
21108
21109done
21110
21111
21112for ac_func in closedir opendir readdir
21113do :
21114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21115ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021116if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021117 cat >>confdefs.h <<_ACEOF
21118#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21119_ACEOF
21120
21121else
21122
21123
21124 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21125
21126fi
21127done
21128
21129for ac_func in strlcat strlcpy
21130do :
21131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21132ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021133if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021134 cat >>confdefs.h <<_ACEOF
21135#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21136_ACEOF
21137
21138else
21139
21140
21141 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21142
21143fi
21144done
21145
21146
21147
21148cat >>confdefs.h <<_ACEOF
21149#define LT_LIBEXT "$libext"
21150_ACEOF
21151
21152
cristyda16f162011-02-19 23:52:17 +000021153name=
21154eval "lt_libprefix=\"$libname_spec\""
21155
21156cat >>confdefs.h <<_ACEOF
21157#define LT_LIBPREFIX "$lt_libprefix"
21158_ACEOF
21159
21160
cristy73bd4a52010-10-05 11:24:23 +000021161name=ltdl
cristyda16f162011-02-19 23:52:17 +000021162eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021163
21164
21165
21166
21167
21168
21169
21170
21171# Only expand once:
21172
21173
cristy3ed852e2009-09-05 21:47:34 +000021174
21175# Check to see if building shared libraries
21176libtool_build_shared_libs='no'
21177if test "$enable_shared" = 'yes'; then
21178 libtool_build_shared_libs='yes'
21179fi
21180
21181# Check to see if building static libraries
21182libtool_build_static_libs='no'
21183if test "$enable_static" = 'yes'; then
21184 libtool_build_static_libs='yes'
21185fi
21186
cristy73bd4a52010-10-05 11:24:23 +000021187 if test "${libtool_build_shared_libs}" = 'yes'; then
21188 WITH_SHARED_LIBS_TRUE=
21189 WITH_SHARED_LIBS_FALSE='#'
21190else
21191 WITH_SHARED_LIBS_TRUE='#'
21192 WITH_SHARED_LIBS_FALSE=
21193fi
21194
cristy3ed852e2009-09-05 21:47:34 +000021195#
21196# Enable support for building loadable modules
21197#
21198
21199# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021200if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 withval=$with_modules; with_modules=$withval
21202else
cristy5a1cefd2010-01-06 20:42:35 +000021203 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021204fi
21205
21206
21207# Only allow building loadable modules if we are building shared libraries
21208if test "$with_modules" != 'no' ; then
21209 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021210 { $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 +000021211$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21212 with_modules='no'
21213 fi
21214fi
21215if test "$with_modules" != 'no'; then
21216
cristy8b350f62009-11-15 23:12:43 +000021217$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021218
21219fi
cristy73bd4a52010-10-05 11:24:23 +000021220 if test "$with_modules" != 'no'; then
21221 WITH_MODULES_TRUE=
21222 WITH_MODULES_FALSE='#'
21223else
21224 WITH_MODULES_TRUE='#'
21225 WITH_MODULES_FALSE=
21226fi
21227
cristy3ed852e2009-09-05 21:47:34 +000021228
21229# Enable building/use of libltdl if we are building shared libraries regardless
21230# of whether modules are built or not.
21231with_ltdl='no'
21232if test "$libtool_build_shared_libs" != 'no'; then
21233 with_ltdl='yes'
21234fi
21235
cristy73bd4a52010-10-05 11:24:23 +000021236 if test "$with_ltdl" != 'no'; then
21237 WITH_LTDL_TRUE=
21238 WITH_LTDL_FALSE='#'
21239else
21240 WITH_LTDL_TRUE='#'
21241 WITH_LTDL_FALSE=
21242fi
21243
cristy3ed852e2009-09-05 21:47:34 +000021244if test "$with_ltdl" != 'no'; then
21245
cristy8b350f62009-11-15 23:12:43 +000021246$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021247
21248
21249 # Set DLLDFLAGS
21250 if test X"$enable_shared" = Xyes; then
21251 DLLDFLAGS=-export-dynamic
21252
21253 fi
21254fi
21255
21256# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021257# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021258# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021259if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021260 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21261else
21262 enable_delegate_build='no'
21263fi
21264
21265
21266# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021267if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021268 enableval=$enable_deprecated; enable_deprecated=$enableval
21269else
21270 enable_deprecated='no'
21271fi
21272
21273
21274if test "$enable_deprecated" = 'yes'; then
21275
cristy8b350f62009-11-15 23:12:43 +000021276$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021277
21278else
21279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21280fi
21281
21282# Build a version of ImageMagick which operates uninstalled.
21283# Used to build distributions located via MAGICK_HOME / executable path
21284# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021285if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021286 enableval=$enable_installed; enable_installed=$enableval
21287else
21288 enable_installed='yes'
21289fi
21290
21291
21292if test "$enable_installed" = 'yes'; then
21293
cristy8b350f62009-11-15 23:12:43 +000021294$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021295
21296else
21297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21298fi
21299
21300# Permit enciphering and deciphering image pixels.
21301# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021302if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021303 enableval=$enable_cipher; enable_cipher=$enableval
21304else
21305 enable_cipher='yes'
21306fi
21307
21308
21309if test "$enable_cipher" = 'yes'; then
21310
cristy8b350f62009-11-15 23:12:43 +000021311$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021312
21313fi
21314
cristy6e3607c2011-09-13 13:59:17 +000021315# Build a zero-configuration version of ImageMagick.
21316# Check whether --enable-zero-configuration was given.
21317if test "${enable_zero_configuration+set}" = set; then :
21318 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021319else
cristy6e3607c2011-09-13 13:59:17 +000021320 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021321fi
21322
21323
cristy6e3607c2011-09-13 13:59:17 +000021324if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021325
cristy6e3607c2011-09-13 13:59:17 +000021326$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021327
cristy81af5702011-09-13 14:20:58 +000021328 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021329fi
21330
21331# Build a high dynamic range version of ImageMagick.
21332# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021333if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021334 enableval=$enable_hdri; enable_hdri=$enableval
21335else
21336 enable_hdri='no'
21337fi
21338
21339
21340MAGICK_HDRI=""
21341if test "$enable_hdri" = 'yes'; then
21342 MAGICK_HDRI="HDRI"
21343
cristy8b350f62009-11-15 23:12:43 +000021344$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021345
cristyfd9dcd42010-08-08 18:07:02 +000021346 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021347fi
21348
cristy3ed852e2009-09-05 21:47:34 +000021349# Build a version of ImageMagick with assert statements.
21350# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021351if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021352 enableval=$enable_assert; enable_assert=$enableval
21353else
21354 enable_assert='yes'
21355fi
21356
21357
21358if test "$enable_assert" = 'no'; then
21359
cristy8b350f62009-11-15 23:12:43 +000021360$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021361
21362fi
21363
cristya448bd22011-10-14 12:38:13 +000021364# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021365
21366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21367$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21368 # Check whether --enable-maintainer-mode was given.
21369if test "${enable_maintainer_mode+set}" = set; then :
21370 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21371else
21372 USE_MAINTAINER_MODE=no
21373fi
21374
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21376$as_echo "$USE_MAINTAINER_MODE" >&6; }
21377 if test $USE_MAINTAINER_MODE = yes; then
21378 MAINTAINER_MODE_TRUE=
21379 MAINTAINER_MODE_FALSE='#'
21380else
21381 MAINTAINER_MODE_TRUE='#'
21382 MAINTAINER_MODE_FALSE=
21383fi
21384
21385 MAINT=$MAINTAINER_MODE_TRUE
21386
21387
cristy3ed852e2009-09-05 21:47:34 +000021388
cristy3ed852e2009-09-05 21:47:34 +000021389# Enable ccmalloc memory debugging support
21390# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021391if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021392 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21393else
21394 enable_ccmalloc='no'
21395fi
21396
21397
21398# Enable Electric Fence memory debugging support
21399# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021400if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021401 enableval=$enable_efence; enable_efence=$enableval
21402else
21403 enable_efence='no'
21404fi
21405
21406
21407# Enable prof-based profiling support
21408# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021409if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021410 enableval=$enable_prof; enable_prof=$enableval
21411else
21412 enable_prof='no'
21413fi
21414
21415
21416# Enable gprof-based profiling support
21417# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021418if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021419 enableval=$enable_gprof; enable_gprof=$enableval
21420else
21421 enable_gprof='no'
21422fi
21423
21424
21425# Enable gcov-based profiling support
21426# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021427if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021428 enableval=$enable_gcov; enable_gcov=$enableval
21429else
21430 enable_gcov='no'
21431fi
21432
21433
21434enable_profiling='no'
21435if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21436 enable_profiling='yes'
21437 if test "$libtool_build_shared_libs" = 'yes'; then
21438 echo "Warning: Can not profile code using shared libraries"
21439 fi
21440fi
21441
21442# Magick API method prefix
21443
21444# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021445if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021446 withval=$with_method_prefix; with_method_prefix=$enableval
21447else
21448 with_method_prefix=''
21449fi
21450
21451
21452if test "$with_method_prefix" != ''; then
21453
21454cat >>confdefs.h <<_ACEOF
21455#define NAMESPACE_PREFIX $with_method_prefix
21456_ACEOF
21457
21458fi
21459
21460# Number of bits in a Quantum
21461
21462# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021463if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021464 withval=$with_quantum_depth; with_quantum_depth=$withval
21465else
21466 with_quantum_depth=16
21467fi
21468
21469
21470if test "$with_quantum_depth" != '8'; then
21471 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21472fi
21473
21474case "${with_quantum_depth}" in
21475 8 ) ;;
21476 16 ) ;;
21477 32 ) ;;
21478 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021479 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021480esac
21481QUANTUM_DEPTH="$with_quantum_depth"
21482
21483cat >>confdefs.h <<_ACEOF
21484#define QUANTUM_DEPTH $QUANTUM_DEPTH
21485_ACEOF
21486
21487
21488# Set pixel cache threshold
21489
21490# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021491if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021492 withval=$with_cache; with_cache=$withval
21493else
21494 with_cache=''
21495fi
21496
21497
21498if test "$with_cache" != ''; then
21499
21500cat >>confdefs.h <<_ACEOF
21501#define PixelCacheThreshold $with_cache
21502_ACEOF
21503
21504 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21505fi
21506
21507# Disable/Enable support for full delegate paths
21508
21509# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021510if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021511 withval=$with_frozenpaths; with_frozenpaths=$withval
21512else
21513 with_frozenpaths='no'
21514fi
21515
21516
21517# Enable build/install of Magick++
21518
21519# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021520if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021521 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21522else
21523 with_magick_plus_plus='yes'
21524fi
21525
21526
21527# Disable build/install of PerlMagick.
21528
21529# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021530if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 withval=$with_perl; with_perl=$withval
21532else
cristyb5f4e2f2010-04-25 00:49:11 +000021533 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021534fi
21535
21536
21537# Options to pass when configuring PerlMagick
21538
21539# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021540if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021541 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021542fi
21543
21544
cristy3ed852e2009-09-05 21:47:34 +000021545
21546# Enable umem, object-caching memory allocation library.
21547
21548# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021549if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021550 withval=$with_umem; with_umem=$withval
21551else
21552 with_umem='no'
21553fi
21554
21555if test "$with_umem" != 'yes' ; then
21556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21557fi
21558
21559#
21560# Specify path to shared libstdc++ if not in normal location
21561#
21562
21563# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021564if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021565 withval=$with_libstdc; with_libstdc=$withval
21566else
21567 with_libstdc=''
21568fi
21569
21570
21571if test "$with_libstdc" != ''; then
21572 if test -d "$with_libstdc"; then
21573 LIBSTDCLDFLAGS="-L$with_libstdc"
21574 fi
21575fi
21576
21577
21578# Does gcc required -traditional?
21579if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021581$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021582if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021583 $as_echo_n "(cached) " >&6
21584else
21585 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021587/* end confdefs.h. */
21588#include <sgtty.h>
21589Autoconf TIOCGETP
21590_ACEOF
21591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021592 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021593 ac_cv_prog_gcc_traditional=yes
21594else
21595 ac_cv_prog_gcc_traditional=no
21596fi
21597rm -f conftest*
21598
21599
21600 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021602/* end confdefs.h. */
21603#include <termio.h>
21604Autoconf TCGETA
21605_ACEOF
21606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021607 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021608 ac_cv_prog_gcc_traditional=yes
21609fi
21610rm -f conftest*
21611
21612 fi
21613fi
cristy8b350f62009-11-15 23:12:43 +000021614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021615$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21616 if test $ac_cv_prog_gcc_traditional = yes; then
21617 CC="$CC -traditional"
21618 fi
21619fi
21620
21621
21622########
21623#
21624# Set defines required to build DLLs and modules using MinGW
21625#
21626########
21627# These options are set for multi-thread DLL module build
21628# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21629# module: _DLL
21630# executable/Magick++: _DLL _MAGICKMOD_
21631MODULE_EXTRA_CPPFLAGS=''
21632LIBRARY_EXTRA_CPPFLAGS=''
21633if test "${native_win32_build}" = 'yes'; then
21634 if test "${libtool_build_shared_libs}" = 'yes'; then
21635 CPPFLAGS="$CPPFLAGS -D_DLL"
21636 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21637 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21638 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21639 if test "$with_modules" = 'yes'; then
21640 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21641 else
21642 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21643 fi
21644 else
21645 CPPFLAGS="$CPPFLAGS -D_LIB"
21646 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21647 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21648 fi
21649 if test "$with_threads" = 'yes'; then
21650 CPPFLAGS="$CPPFLAGS -D_MT"
21651 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21652 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21653 fi
21654fi
21655
21656
21657
21658# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021660$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021661if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021662 $as_echo_n "(cached) " >&6
21663else
cristy8b350f62009-11-15 23:12:43 +000021664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021665/* end confdefs.h. */
21666#include <stdlib.h>
21667#include <stdarg.h>
21668#include <string.h>
21669#include <float.h>
21670
21671int
21672main ()
21673{
21674
21675 ;
21676 return 0;
21677}
21678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021679if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021680 ac_cv_header_stdc=yes
21681else
cristy8b350f62009-11-15 23:12:43 +000021682 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021683fi
cristy3ed852e2009-09-05 21:47:34 +000021684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21685
21686if test $ac_cv_header_stdc = yes; then
21687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021689/* end confdefs.h. */
21690#include <string.h>
21691
21692_ACEOF
21693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021694 $EGREP "memchr" >/dev/null 2>&1; then :
21695
cristy3ed852e2009-09-05 21:47:34 +000021696else
21697 ac_cv_header_stdc=no
21698fi
21699rm -f conftest*
21700
21701fi
21702
21703if test $ac_cv_header_stdc = yes; then
21704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021706/* end confdefs.h. */
21707#include <stdlib.h>
21708
21709_ACEOF
21710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021711 $EGREP "free" >/dev/null 2>&1; then :
21712
cristy3ed852e2009-09-05 21:47:34 +000021713else
21714 ac_cv_header_stdc=no
21715fi
21716rm -f conftest*
21717
21718fi
21719
21720if test $ac_cv_header_stdc = yes; then
21721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021722 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021723 :
21724else
cristy8b350f62009-11-15 23:12:43 +000021725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021726/* end confdefs.h. */
21727#include <ctype.h>
21728#include <stdlib.h>
21729#if ((' ' & 0x0FF) == 0x020)
21730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21732#else
21733# define ISLOWER(c) \
21734 (('a' <= (c) && (c) <= 'i') \
21735 || ('j' <= (c) && (c) <= 'r') \
21736 || ('s' <= (c) && (c) <= 'z'))
21737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21738#endif
21739
21740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21741int
21742main ()
21743{
21744 int i;
21745 for (i = 0; i < 256; i++)
21746 if (XOR (islower (i), ISLOWER (i))
21747 || toupper (i) != TOUPPER (i))
21748 return 2;
21749 return 0;
21750}
21751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021752if ac_fn_c_try_run "$LINENO"; then :
21753
cristy3ed852e2009-09-05 21:47:34 +000021754else
cristy8b350f62009-11-15 23:12:43 +000021755 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021756fi
cristy8b350f62009-11-15 23:12:43 +000021757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21758 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021759fi
21760
cristy3ed852e2009-09-05 21:47:34 +000021761fi
21762fi
cristy8b350f62009-11-15 23:12:43 +000021763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021764$as_echo "$ac_cv_header_stdc" >&6; }
21765if test $ac_cv_header_stdc = yes; then
21766
cristy8b350f62009-11-15 23:12:43 +000021767$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021768
21769fi
21770
21771if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021772 { $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 +000021773 header files. Compilation cannot proceed. Please install the ANSI C
21774 headers and rerun this script." >&5
21775$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21776 header files. Compilation cannot proceed. Please install the ANSI C
21777 headers and rerun this script." >&2;};
21778fi
cristya0b81c32010-01-22 02:54:33 +000021779
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21781$as_echo_n "checking whether to enable assertions... " >&6; }
21782 # Check whether --enable-assert was given.
21783if test "${enable_assert+set}" = set; then :
21784 enableval=$enable_assert; ac_enable_assert=$enableval
21785 if test "x$enableval" = xno; then :
21786
21787$as_echo "#define NDEBUG 1" >>confdefs.h
21788
21789elif test "x$enableval" != xyes; then :
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21791$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21792 ac_enable_assert=yes
21793fi
21794else
21795 ac_enable_assert=yes
21796fi
21797
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21799$as_echo "$ac_enable_assert" >&6; }
21800
cristy3ed852e2009-09-05 21:47:34 +000021801ac_header_dirent=no
21802for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21803 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021806if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 $as_echo_n "(cached) " >&6
21808else
cristy8b350f62009-11-15 23:12:43 +000021809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021810/* end confdefs.h. */
21811#include <sys/types.h>
21812#include <$ac_hdr>
21813
21814int
21815main ()
21816{
21817if ((DIR *) 0)
21818return 0;
21819 ;
21820 return 0;
21821}
21822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021823if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021824 eval "$as_ac_Header=yes"
21825else
cristy8b350f62009-11-15 23:12:43 +000021826 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021827fi
cristy3ed852e2009-09-05 21:47:34 +000021828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829fi
cristy8b350f62009-11-15 23:12:43 +000021830eval ac_res=\$$as_ac_Header
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021834 cat >>confdefs.h <<_ACEOF
21835#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21836_ACEOF
21837
21838ac_header_dirent=$ac_hdr; break
21839fi
21840
21841done
21842# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21843if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021845$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021846if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021847 $as_echo_n "(cached) " >&6
21848else
21849 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021851/* end confdefs.h. */
21852
21853/* Override any GCC internal prototype to avoid an error.
21854 Use char because int might match the return type of a GCC
21855 builtin and then its argument prototype would still apply. */
21856#ifdef __cplusplus
21857extern "C"
21858#endif
21859char opendir ();
21860int
21861main ()
21862{
21863return opendir ();
21864 ;
21865 return 0;
21866}
21867_ACEOF
21868for ac_lib in '' dir; do
21869 if test -z "$ac_lib"; then
21870 ac_res="none required"
21871 else
21872 ac_res=-l$ac_lib
21873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21874 fi
cristy8b350f62009-11-15 23:12:43 +000021875 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021876 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021877fi
cristy8b350f62009-11-15 23:12:43 +000021878rm -f core conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021880 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 break
21882fi
21883done
cristyda16f162011-02-19 23:52:17 +000021884if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021885
cristy3ed852e2009-09-05 21:47:34 +000021886else
21887 ac_cv_search_opendir=no
21888fi
21889rm conftest.$ac_ext
21890LIBS=$ac_func_search_save_LIBS
21891fi
cristy8b350f62009-11-15 23:12:43 +000021892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021893$as_echo "$ac_cv_search_opendir" >&6; }
21894ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021895if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21897
21898fi
21899
21900else
cristy8b350f62009-11-15 23:12:43 +000021901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021903if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021904 $as_echo_n "(cached) " >&6
21905else
21906 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021908/* end confdefs.h. */
21909
21910/* Override any GCC internal prototype to avoid an error.
21911 Use char because int might match the return type of a GCC
21912 builtin and then its argument prototype would still apply. */
21913#ifdef __cplusplus
21914extern "C"
21915#endif
21916char opendir ();
21917int
21918main ()
21919{
21920return opendir ();
21921 ;
21922 return 0;
21923}
21924_ACEOF
21925for ac_lib in '' x; do
21926 if test -z "$ac_lib"; then
21927 ac_res="none required"
21928 else
21929 ac_res=-l$ac_lib
21930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21931 fi
cristy8b350f62009-11-15 23:12:43 +000021932 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021934fi
cristy8b350f62009-11-15 23:12:43 +000021935rm -f core conftest.err conftest.$ac_objext \
21936 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021937 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021938 break
21939fi
21940done
cristyda16f162011-02-19 23:52:17 +000021941if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021942
cristy3ed852e2009-09-05 21:47:34 +000021943else
21944 ac_cv_search_opendir=no
21945fi
21946rm conftest.$ac_ext
21947LIBS=$ac_func_search_save_LIBS
21948fi
cristy8b350f62009-11-15 23:12:43 +000021949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021950$as_echo "$ac_cv_search_opendir" >&6; }
21951ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021952if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21954
21955fi
21956
21957fi
21958
21959
21960# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021961for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021962do :
21963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 cat >>confdefs.h <<_ACEOF
21967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21968_ACEOF
21969
21970fi
21971
21972done
21973
21974
21975########
21976#
21977# Checks for typedefs, structures, and compiler characteristics.
21978#
21979########
21980
cristy8b350f62009-11-15 23:12:43 +000021981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021982$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021983if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021984 $as_echo_n "(cached) " >&6
21985else
cristy8b350f62009-11-15 23:12:43 +000021986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021987/* end confdefs.h. */
21988
21989#include <stdbool.h>
21990#ifndef bool
21991 "error: bool is not defined"
21992#endif
21993#ifndef false
21994 "error: false is not defined"
21995#endif
21996#if false
21997 "error: false is not 0"
21998#endif
21999#ifndef true
22000 "error: true is not defined"
22001#endif
22002#if true != 1
22003 "error: true is not 1"
22004#endif
22005#ifndef __bool_true_false_are_defined
22006 "error: __bool_true_false_are_defined is not defined"
22007#endif
22008
22009 struct s { _Bool s: 1; _Bool t; } s;
22010
22011 char a[true == 1 ? 1 : -1];
22012 char b[false == 0 ? 1 : -1];
22013 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22014 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000022015 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000022016 char f[(_Bool) 0.0 == false ? 1 : -1];
22017 char g[true];
22018 char h[sizeof (_Bool)];
22019 char i[sizeof s.t];
22020 enum { j = false, k = true, l = false * true, m = true * 256 };
22021 /* The following fails for
22022 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22023 _Bool n[m];
22024 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22025 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000022026 /* Catch a bug in an HP-UX C compiler. See
22027 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22028 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22029 */
22030 _Bool q = true;
22031 _Bool *pq = &q;
22032
22033int
22034main ()
22035{
22036
cristyda16f162011-02-19 23:52:17 +000022037 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000022038 *pq |= q;
22039 *pq |= ! q;
22040 /* Refer to every declared value, to avoid compiler optimizations. */
22041 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22042 + !m + !n + !o + !p + !q + !pq);
22043
22044 ;
22045 return 0;
22046}
22047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 ac_cv_header_stdbool_h=yes
22050else
cristy8b350f62009-11-15 23:12:43 +000022051 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022052fi
cristy3ed852e2009-09-05 21:47:34 +000022053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054fi
cristy8b350f62009-11-15 23:12:43 +000022055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022056$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022057ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022058if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022059
22060cat >>confdefs.h <<_ACEOF
22061#define HAVE__BOOL 1
22062_ACEOF
22063
22064
22065fi
22066
22067if test $ac_cv_header_stdbool_h = yes; then
22068
cristy8b350f62009-11-15 23:12:43 +000022069$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022070
22071fi
22072
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022075if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 $as_echo_n "(cached) " >&6
22077else
cristy8b350f62009-11-15 23:12:43 +000022078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022079/* end confdefs.h. */
22080
22081int
22082main ()
22083{
22084
22085volatile int x;
22086int * volatile y = (int *) 0;
22087return !x && !y;
22088 ;
22089 return 0;
22090}
22091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022093 ac_cv_c_volatile=yes
22094else
cristy8b350f62009-11-15 23:12:43 +000022095 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022096fi
cristy3ed852e2009-09-05 21:47:34 +000022097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22098fi
cristy8b350f62009-11-15 23:12:43 +000022099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022100$as_echo "$ac_cv_c_volatile" >&6; }
22101if test $ac_cv_c_volatile = no; then
22102
cristy8b350f62009-11-15 23:12:43 +000022103$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022104
22105fi
22106
cristy8b350f62009-11-15 23:12:43 +000022107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022109if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022110 $as_echo_n "(cached) " >&6
22111else
cristy8b350f62009-11-15 23:12:43 +000022112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022113/* end confdefs.h. */
22114#define x(y) #y
22115
22116char *s = x(teststring);
22117_ACEOF
22118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022119 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 ac_cv_c_stringize=no
22121else
22122 ac_cv_c_stringize=yes
22123fi
22124rm -f conftest*
22125
22126fi
cristy8b350f62009-11-15 23:12:43 +000022127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022128$as_echo "$ac_cv_c_stringize" >&6; }
22129if test $ac_cv_c_stringize = yes; then
22130
cristy8b350f62009-11-15 23:12:43 +000022131$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022132
22133fi
22134
cristy8b350f62009-11-15 23:12:43 +000022135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022136$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022137if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022138 $as_echo_n "(cached) " >&6
22139else
cristy8b350f62009-11-15 23:12:43 +000022140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022141/* end confdefs.h. */
22142#include <sys/types.h>
22143#include <sys/stat.h>
22144
22145#if defined S_ISBLK && defined S_IFDIR
22146extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22147#endif
22148
22149#if defined S_ISBLK && defined S_IFCHR
22150extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22151#endif
22152
22153#if defined S_ISLNK && defined S_IFREG
22154extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22155#endif
22156
22157#if defined S_ISSOCK && defined S_IFREG
22158extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22159#endif
22160
22161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022163 ac_cv_header_stat_broken=no
22164else
cristy8b350f62009-11-15 23:12:43 +000022165 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022166fi
cristy3ed852e2009-09-05 21:47:34 +000022167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22168fi
cristy8b350f62009-11-15 23:12:43 +000022169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022170$as_echo "$ac_cv_header_stat_broken" >&6; }
22171if test $ac_cv_header_stat_broken = yes; then
22172
cristy8b350f62009-11-15 23:12:43 +000022173$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022174
22175fi
22176
cristy8b350f62009-11-15 23:12:43 +000022177{ $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 +000022178$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022179if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022180 $as_echo_n "(cached) " >&6
22181else
cristy8b350f62009-11-15 23:12:43 +000022182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022183/* end confdefs.h. */
22184#include <sys/types.h>
22185#include <sys/time.h>
22186#include <time.h>
22187
22188int
22189main ()
22190{
22191if ((struct tm *) 0)
22192return 0;
22193 ;
22194 return 0;
22195}
22196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022198 ac_cv_header_time=yes
22199else
cristy8b350f62009-11-15 23:12:43 +000022200 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022201fi
cristy3ed852e2009-09-05 21:47:34 +000022202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203fi
cristy8b350f62009-11-15 23:12:43 +000022204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022205$as_echo "$ac_cv_header_time" >&6; }
22206if test $ac_cv_header_time = yes; then
22207
cristy8b350f62009-11-15 23:12:43 +000022208$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022209
22210fi
22211
cristy8b350f62009-11-15 23:12:43 +000022212{ $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 +000022213$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022214if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022215 $as_echo_n "(cached) " >&6
22216else
cristy8b350f62009-11-15 23:12:43 +000022217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022218/* end confdefs.h. */
22219#include <sys/types.h>
22220#include <time.h>
22221
22222int
22223main ()
22224{
22225struct tm tm;
22226 int *p = &tm.tm_sec;
22227 return !p;
22228 ;
22229 return 0;
22230}
22231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022232if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 ac_cv_struct_tm=time.h
22234else
cristy8b350f62009-11-15 23:12:43 +000022235 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022236fi
cristy3ed852e2009-09-05 21:47:34 +000022237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238fi
cristy8b350f62009-11-15 23:12:43 +000022239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022240$as_echo "$ac_cv_struct_tm" >&6; }
22241if test $ac_cv_struct_tm = sys/time.h; then
22242
cristy8b350f62009-11-15 23:12:43 +000022243$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022244
22245fi
22246
cristy92703d82010-04-26 00:18:18 +000022247ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22248#include <$ac_cv_struct_tm>
22249
22250"
cristyda16f162011-02-19 23:52:17 +000022251if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022252
22253cat >>confdefs.h <<_ACEOF
22254#define HAVE_STRUCT_TM_TM_ZONE 1
22255_ACEOF
22256
22257
22258fi
22259
22260if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22261
22262$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22263
22264else
22265 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22266"
cristyda16f162011-02-19 23:52:17 +000022267if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022268 ac_have_decl=1
22269else
22270 ac_have_decl=0
22271fi
22272
22273cat >>confdefs.h <<_ACEOF
22274#define HAVE_DECL_TZNAME $ac_have_decl
22275_ACEOF
22276
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22278$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022279if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022280 $as_echo_n "(cached) " >&6
22281else
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283/* end confdefs.h. */
22284#include <time.h>
22285#if !HAVE_DECL_TZNAME
22286extern char *tzname[];
22287#endif
22288
22289int
22290main ()
22291{
22292return tzname[0][0];
22293 ;
22294 return 0;
22295}
22296_ACEOF
22297if ac_fn_c_try_link "$LINENO"; then :
22298 ac_cv_var_tzname=yes
22299else
22300 ac_cv_var_tzname=no
22301fi
22302rm -f core conftest.err conftest.$ac_objext \
22303 conftest$ac_exeext conftest.$ac_ext
22304fi
22305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22306$as_echo "$ac_cv_var_tzname" >&6; }
22307 if test $ac_cv_var_tzname = yes; then
22308
22309$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22310
22311 fi
22312fi
22313
cristy8b350f62009-11-15 23:12:43 +000022314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022315$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022316if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022317 $as_echo_n "(cached) " >&6
22318else
22319 echo '#! /bin/cat
22320exit 69
22321' >conftest
22322chmod u+x conftest
22323(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22324if test $? -ne 69; then
22325 ac_cv_sys_interpreter=yes
22326else
22327 ac_cv_sys_interpreter=no
22328fi
22329rm -f conftest
22330fi
cristy8b350f62009-11-15 23:12:43 +000022331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022332$as_echo "$ac_cv_sys_interpreter" >&6; }
22333interpval=$ac_cv_sys_interpreter
22334
22335
cristy3ed852e2009-09-05 21:47:34 +000022336# If the C compiler supports the keyword inline, do nothing. Otherwise
22337# define inline to __inline__ or __inline if it accepts one of those,
22338# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022340$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022341if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022342 $as_echo_n "(cached) " >&6
22343else
22344 ac_cv_c_inline=no
22345for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022347/* end confdefs.h. */
22348#ifndef __cplusplus
22349typedef int foo_t;
22350static $ac_kw foo_t static_foo () {return 0; }
22351$ac_kw foo_t foo () {return 0; }
22352#endif
22353
22354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022355if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022356 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022357fi
cristy3ed852e2009-09-05 21:47:34 +000022358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22359 test "$ac_cv_c_inline" != no && break
22360done
22361
22362fi
cristy8b350f62009-11-15 23:12:43 +000022363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022364$as_echo "$ac_cv_c_inline" >&6; }
22365
cristy3ed852e2009-09-05 21:47:34 +000022366case $ac_cv_c_inline in
22367 inline | yes) ;;
22368 *)
22369 case $ac_cv_c_inline in
22370 no) ac_val=;;
22371 *) ac_val=$ac_cv_c_inline;;
22372 esac
22373 cat >>confdefs.h <<_ACEOF
22374#ifndef __cplusplus
22375#define inline $ac_val
22376#endif
22377_ACEOF
22378 ;;
22379esac
22380
22381
22382# If the C compiler supports the keyword restrict, do nothing. Otherwise
22383# define restrict to __restrict__ or __restrict if it accepts one of those,
22384# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022386$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022387if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 $as_echo_n "(cached) " >&6
22389else
22390 ac_cv_c_restrict=no
22391 # The order here caters to the fact that C++ does not require restrict.
22392 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022394/* end confdefs.h. */
22395typedef int * int_ptr;
22396 int foo (int_ptr $ac_kw ip) {
22397 return ip[0];
22398 }
22399int
22400main ()
22401{
22402int s[1];
22403 int * $ac_kw t = s;
22404 t[0] = 0;
22405 return foo(t)
22406 ;
22407 return 0;
22408}
22409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022410if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022411 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022412fi
cristy3ed852e2009-09-05 21:47:34 +000022413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 test "$ac_cv_c_restrict" != no && break
22415 done
22416
22417fi
cristy8b350f62009-11-15 23:12:43 +000022418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022419$as_echo "$ac_cv_c_restrict" >&6; }
22420
cristy3ed852e2009-09-05 21:47:34 +000022421 case $ac_cv_c_restrict in
22422 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022423 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022424 ;;
22425 *) cat >>confdefs.h <<_ACEOF
22426#define restrict $ac_cv_c_restrict
22427_ACEOF
22428 ;;
22429 esac
22430
22431
22432# If words are stored with the most significant byte first (like
22433# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022435$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022436if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022437 $as_echo_n "(cached) " >&6
22438else
22439 ac_cv_c_bigendian=unknown
22440 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022442/* end confdefs.h. */
22443#ifndef __APPLE_CC__
22444 not a universal capable compiler
22445 #endif
22446 typedef int dummy;
22447
22448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022449if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022450
22451 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022452 # there are at least two -arch flags with different values.
22453 ac_arch=
22454 ac_prev=
22455 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22456 if test -n "$ac_prev"; then
22457 case $ac_word in
22458 i?86 | x86_64 | ppc | ppc64)
22459 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22460 ac_arch=$ac_word
22461 else
22462 ac_cv_c_bigendian=universal
22463 break
22464 fi
22465 ;;
22466 esac
22467 ac_prev=
22468 elif test "x$ac_word" = "x-arch"; then
22469 ac_prev=arch
22470 fi
22471 done
cristy3ed852e2009-09-05 21:47:34 +000022472fi
cristy3ed852e2009-09-05 21:47:34 +000022473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22474 if test $ac_cv_c_bigendian = unknown; then
22475 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022477/* end confdefs.h. */
22478#include <sys/types.h>
22479 #include <sys/param.h>
22480
22481int
22482main ()
22483{
22484#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22485 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22486 && LITTLE_ENDIAN)
22487 bogus endian macros
22488 #endif
22489
22490 ;
22491 return 0;
22492}
22493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022494if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022495 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022497/* end confdefs.h. */
22498#include <sys/types.h>
22499 #include <sys/param.h>
22500
22501int
22502main ()
22503{
22504#if BYTE_ORDER != BIG_ENDIAN
22505 not big endian
22506 #endif
22507
22508 ;
22509 return 0;
22510}
22511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022512if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022513 ac_cv_c_bigendian=yes
22514else
cristy8b350f62009-11-15 23:12:43 +000022515 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022516fi
cristy3ed852e2009-09-05 21:47:34 +000022517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022518fi
cristy3ed852e2009-09-05 21:47:34 +000022519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22520 fi
22521 if test $ac_cv_c_bigendian = unknown; then
22522 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022524/* end confdefs.h. */
22525#include <limits.h>
22526
22527int
22528main ()
22529{
22530#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22531 bogus endian macros
22532 #endif
22533
22534 ;
22535 return 0;
22536}
22537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022538if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022539 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022541/* end confdefs.h. */
22542#include <limits.h>
22543
22544int
22545main ()
22546{
22547#ifndef _BIG_ENDIAN
22548 not big endian
22549 #endif
22550
22551 ;
22552 return 0;
22553}
22554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022556 ac_cv_c_bigendian=yes
22557else
cristy8b350f62009-11-15 23:12:43 +000022558 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022559fi
cristy3ed852e2009-09-05 21:47:34 +000022560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022561fi
cristy3ed852e2009-09-05 21:47:34 +000022562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 fi
22564 if test $ac_cv_c_bigendian = unknown; then
22565 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022566 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022567 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022569/* end confdefs.h. */
22570short int ascii_mm[] =
22571 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22572 short int ascii_ii[] =
22573 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22574 int use_ascii (int i) {
22575 return ascii_mm[i] + ascii_ii[i];
22576 }
22577 short int ebcdic_ii[] =
22578 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22579 short int ebcdic_mm[] =
22580 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22581 int use_ebcdic (int i) {
22582 return ebcdic_mm[i] + ebcdic_ii[i];
22583 }
22584 extern int foo;
22585
22586int
22587main ()
22588{
22589return use_ascii (foo) == use_ebcdic (foo);
22590 ;
22591 return 0;
22592}
22593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22596 ac_cv_c_bigendian=yes
22597 fi
22598 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22599 if test "$ac_cv_c_bigendian" = unknown; then
22600 ac_cv_c_bigendian=no
22601 else
22602 # finding both strings is unlikely to happen, but who knows?
22603 ac_cv_c_bigendian=unknown
22604 fi
22605 fi
cristy3ed852e2009-09-05 21:47:34 +000022606fi
cristy3ed852e2009-09-05 21:47:34 +000022607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608else
cristy8b350f62009-11-15 23:12:43 +000022609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022610/* end confdefs.h. */
22611$ac_includes_default
22612int
22613main ()
22614{
22615
22616 /* Are we little or big endian? From Harbison&Steele. */
22617 union
22618 {
22619 long int l;
22620 char c[sizeof (long int)];
22621 } u;
22622 u.l = 1;
22623 return u.c[sizeof (long int) - 1] == 1;
22624
22625 ;
22626 return 0;
22627}
22628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022629if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022630 ac_cv_c_bigendian=no
22631else
cristy8b350f62009-11-15 23:12:43 +000022632 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022633fi
cristy8b350f62009-11-15 23:12:43 +000022634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22635 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022636fi
22637
cristy3ed852e2009-09-05 21:47:34 +000022638 fi
22639fi
cristy8b350f62009-11-15 23:12:43 +000022640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022641$as_echo "$ac_cv_c_bigendian" >&6; }
22642 case $ac_cv_c_bigendian in #(
22643 yes)
cristy8b350f62009-11-15 23:12:43 +000022644 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022645;; #(
22646 no)
22647 ;; #(
22648 universal)
22649
cristy8b350f62009-11-15 23:12:43 +000022650$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022651
22652 ;; #(
22653 *)
cristy98dddb52010-11-04 00:30:15 +000022654 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022655 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022656 esac
22657
22658
cristy501c8042011-05-26 17:46:28 +000022659# Define to a suitable type, if standard headers do not define it.
22660ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22661case $ac_cv_c_int8_t in #(
22662 no|yes) ;; #(
22663 *)
cristy3ed852e2009-09-05 21:47:34 +000022664
22665cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022666#define int8_t $ac_cv_c_int8_t
22667_ACEOF
22668;;
22669esac
22670
22671ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22672case $ac_cv_c_int16_t in #(
22673 no|yes) ;; #(
22674 *)
22675
22676cat >>confdefs.h <<_ACEOF
22677#define int16_t $ac_cv_c_int16_t
22678_ACEOF
22679;;
22680esac
22681
22682ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22683case $ac_cv_c_int32_t in #(
22684 no|yes) ;; #(
22685 *)
22686
22687cat >>confdefs.h <<_ACEOF
22688#define int32_t $ac_cv_c_int32_t
22689_ACEOF
22690;;
22691esac
22692
22693ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22694case $ac_cv_c_int64_t in #(
22695 no|yes) ;; #(
22696 *)
22697
22698cat >>confdefs.h <<_ACEOF
22699#define int64_t $ac_cv_c_int64_t
22700_ACEOF
22701;;
22702esac
22703
22704
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22706$as_echo_n "checking for long long int... " >&6; }
22707if ${ac_cv_type_long_long_int+:} false; then :
22708 $as_echo_n "(cached) " >&6
22709else
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711/* end confdefs.h. */
22712
22713 /* For now, do not test the preprocessor; as of 2007 there are too many
22714 implementations with broken preprocessors. Perhaps this can
22715 be revisited in 2012. In the meantime, code should not expect
22716 #if to work with literals wider than 32 bits. */
22717 /* Test literals. */
22718 long long int ll = 9223372036854775807ll;
22719 long long int nll = -9223372036854775807LL;
22720 unsigned long long int ull = 18446744073709551615ULL;
22721 /* Test constant expressions. */
22722 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22723 ? 1 : -1)];
22724 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22725 ? 1 : -1)];
22726 int i = 63;
22727int
22728main ()
22729{
22730/* Test availability of runtime routines for shift and division. */
22731 long long int llmax = 9223372036854775807ll;
22732 unsigned long long int ullmax = 18446744073709551615ull;
22733 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22734 | (llmax / ll) | (llmax % ll)
22735 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22736 | (ullmax / ull) | (ullmax % ull));
22737 ;
22738 return 0;
22739}
22740
22741_ACEOF
22742if ac_fn_c_try_link "$LINENO"; then :
22743 if test "$cross_compiling" = yes; then :
22744 ac_cv_type_long_long_int=yes
22745else
22746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22747/* end confdefs.h. */
22748#include <limits.h>
22749 #ifndef LLONG_MAX
22750 # define HALF \
22751 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22752 # define LLONG_MAX (HALF - 1 + HALF)
22753 #endif
22754int
22755main ()
22756{
22757long long int n = 1;
22758 int i;
22759 for (i = 0; ; i++)
22760 {
22761 long long int m = n << i;
22762 if (m >> i != n)
22763 return 1;
22764 if (LLONG_MAX / 2 < m)
22765 break;
22766 }
22767 return 0;
22768 ;
22769 return 0;
22770}
22771_ACEOF
22772if ac_fn_c_try_run "$LINENO"; then :
22773 ac_cv_type_long_long_int=yes
22774else
22775 ac_cv_type_long_long_int=no
22776fi
22777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22778 conftest.$ac_objext conftest.beam conftest.$ac_ext
22779fi
22780
22781else
22782 ac_cv_type_long_long_int=no
22783fi
22784rm -f core conftest.err conftest.$ac_objext \
22785 conftest$ac_exeext conftest.$ac_ext
22786fi
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22788$as_echo "$ac_cv_type_long_long_int" >&6; }
22789 if test $ac_cv_type_long_long_int = yes; then
22790
22791$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22792
22793 fi
22794
22795
22796
22797 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22798if test "x$ac_cv_type_intmax_t" = xyes; then :
22799
22800$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22801
22802else
22803 test $ac_cv_type_long_long_int = yes \
22804 && ac_type='long long int' \
22805 || ac_type='long int'
22806
22807cat >>confdefs.h <<_ACEOF
22808#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022809_ACEOF
22810
22811fi
22812
22813
cristy501c8042011-05-26 17:46:28 +000022814
22815 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22816if test "x$ac_cv_type_intptr_t" = xyes; then :
22817
22818$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022819
cristy3ed852e2009-09-05 21:47:34 +000022820else
cristy501c8042011-05-26 17:46:28 +000022821 for ac_type in 'int' 'long int' 'long long int'; do
22822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22823/* end confdefs.h. */
22824$ac_includes_default
22825int
22826main ()
22827{
22828static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22829test_array [0] = 0
22830
22831 ;
22832 return 0;
22833}
22834_ACEOF
22835if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022836
22837cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022838#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022839_ACEOF
22840
cristy501c8042011-05-26 17:46:28 +000022841 ac_type=
22842fi
22843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844 test -z "$ac_type" && break
22845 done
cristy3ed852e2009-09-05 21:47:34 +000022846fi
22847
22848
cristy3ed852e2009-09-05 21:47:34 +000022849
cristy501c8042011-05-26 17:46:28 +000022850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22851$as_echo_n "checking for long double... " >&6; }
22852if ${ac_cv_type_long_double+:} false; then :
22853 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022854else
cristy501c8042011-05-26 17:46:28 +000022855 if test "$GCC" = yes; then
22856 ac_cv_type_long_double=yes
22857 else
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859/* end confdefs.h. */
22860/* The Stardent Vistra knows sizeof (long double), but does
22861 not support it. */
22862 long double foo = 0.0L;
22863int
22864main ()
22865{
22866static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22867 sizeof (double) <= sizeof (long double))];
22868test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022869
cristy501c8042011-05-26 17:46:28 +000022870 ;
22871 return 0;
22872}
cristy3ed852e2009-09-05 21:47:34 +000022873_ACEOF
cristy501c8042011-05-26 17:46:28 +000022874if ac_fn_c_try_compile "$LINENO"; then :
22875 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022876else
cristy501c8042011-05-26 17:46:28 +000022877 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022878fi
cristy501c8042011-05-26 17:46:28 +000022879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22880 fi
cristy3ed852e2009-09-05 21:47:34 +000022881fi
cristy501c8042011-05-26 17:46:28 +000022882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22883$as_echo "$ac_cv_type_long_double" >&6; }
22884 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022885
cristy501c8042011-05-26 17:46:28 +000022886$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022887
cristy501c8042011-05-26 17:46:28 +000022888 fi
22889
cristy3ed852e2009-09-05 21:47:34 +000022890
cristy8b350f62009-11-15 23:12:43 +000022891 { $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 +000022892$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022893if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022894 $as_echo_n "(cached) " >&6
22895else
cristy8b350f62009-11-15 23:12:43 +000022896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022897/* end confdefs.h. */
22898#include <float.h>
22899 long double const a[] =
22900 {
22901 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22902 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22903 };
22904 long double
22905 f (long double x)
22906 {
22907 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22908 + (x ? f (x) : 'c'));
22909 }
22910
22911int
22912main ()
22913{
22914static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22915 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22916 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22917 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22918 && (int) LDBL_EPSILON == 0
22919 )];
22920test_array [0] = 0
22921
22922 ;
22923 return 0;
22924}
22925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022927 ac_cv_type_long_double_wider=yes
22928else
cristy8b350f62009-11-15 23:12:43 +000022929 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022930fi
cristy3ed852e2009-09-05 21:47:34 +000022931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932fi
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo "$ac_cv_type_long_double_wider" >&6; }
22935 if test $ac_cv_type_long_double_wider = yes; then
22936
cristy8b350f62009-11-15 23:12:43 +000022937$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022938
22939 fi
22940
22941
cristy501c8042011-05-26 17:46:28 +000022942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22943$as_echo_n "checking for long long int... " >&6; }
22944if ${ac_cv_type_long_long_int+:} false; then :
22945 $as_echo_n "(cached) " >&6
22946else
22947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22948/* end confdefs.h. */
22949
22950 /* For now, do not test the preprocessor; as of 2007 there are too many
22951 implementations with broken preprocessors. Perhaps this can
22952 be revisited in 2012. In the meantime, code should not expect
22953 #if to work with literals wider than 32 bits. */
22954 /* Test literals. */
22955 long long int ll = 9223372036854775807ll;
22956 long long int nll = -9223372036854775807LL;
22957 unsigned long long int ull = 18446744073709551615ULL;
22958 /* Test constant expressions. */
22959 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22960 ? 1 : -1)];
22961 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22962 ? 1 : -1)];
22963 int i = 63;
22964int
22965main ()
22966{
22967/* Test availability of runtime routines for shift and division. */
22968 long long int llmax = 9223372036854775807ll;
22969 unsigned long long int ullmax = 18446744073709551615ull;
22970 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22971 | (llmax / ll) | (llmax % ll)
22972 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22973 | (ullmax / ull) | (ullmax % ull));
22974 ;
22975 return 0;
22976}
22977
22978_ACEOF
22979if ac_fn_c_try_link "$LINENO"; then :
22980 if test "$cross_compiling" = yes; then :
22981 ac_cv_type_long_long_int=yes
22982else
22983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22984/* end confdefs.h. */
22985#include <limits.h>
22986 #ifndef LLONG_MAX
22987 # define HALF \
22988 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22989 # define LLONG_MAX (HALF - 1 + HALF)
22990 #endif
22991int
22992main ()
22993{
22994long long int n = 1;
22995 int i;
22996 for (i = 0; ; i++)
22997 {
22998 long long int m = n << i;
22999 if (m >> i != n)
23000 return 1;
23001 if (LLONG_MAX / 2 < m)
23002 break;
23003 }
23004 return 0;
23005 ;
23006 return 0;
23007}
23008_ACEOF
23009if ac_fn_c_try_run "$LINENO"; then :
23010 ac_cv_type_long_long_int=yes
23011else
23012 ac_cv_type_long_long_int=no
23013fi
23014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23015 conftest.$ac_objext conftest.beam conftest.$ac_ext
23016fi
23017
23018else
23019 ac_cv_type_long_long_int=no
23020fi
23021rm -f core conftest.err conftest.$ac_objext \
23022 conftest$ac_exeext conftest.$ac_ext
23023fi
23024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23025$as_echo "$ac_cv_type_long_long_int" >&6; }
23026 if test $ac_cv_type_long_long_int = yes; then
23027
23028$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23029
23030 fi
23031
23032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23033$as_echo_n "checking for mbstate_t... " >&6; }
23034if ${ac_cv_type_mbstate_t+:} false; then :
23035 $as_echo_n "(cached) " >&6
23036else
23037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038/* end confdefs.h. */
23039$ac_includes_default
23040# include <wchar.h>
23041int
23042main ()
23043{
23044mbstate_t x; return sizeof x;
23045 ;
23046 return 0;
23047}
23048_ACEOF
23049if ac_fn_c_try_compile "$LINENO"; then :
23050 ac_cv_type_mbstate_t=yes
23051else
23052 ac_cv_type_mbstate_t=no
23053fi
23054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055fi
23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23057$as_echo "$ac_cv_type_mbstate_t" >&6; }
23058 if test $ac_cv_type_mbstate_t = yes; then
23059
23060$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23061
23062 else
23063
23064$as_echo "#define mbstate_t int" >>confdefs.h
23065
23066 fi
23067ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23068if test "x$ac_cv_type_mode_t" = xyes; then :
23069
23070else
23071
23072cat >>confdefs.h <<_ACEOF
23073#define mode_t int
23074_ACEOF
23075
23076fi
23077
23078ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23079if test "x$ac_cv_type_off_t" = xyes; then :
23080
23081else
23082
23083cat >>confdefs.h <<_ACEOF
23084#define off_t long int
23085_ACEOF
23086
23087fi
23088
23089ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23090if test "x$ac_cv_type_pid_t" = xyes; then :
23091
23092else
23093
23094cat >>confdefs.h <<_ACEOF
23095#define pid_t int
23096_ACEOF
23097
23098fi
23099
23100ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23101if test "x$ac_cv_type_size_t" = xyes; then :
23102
23103else
23104
23105cat >>confdefs.h <<_ACEOF
23106#define size_t unsigned int
23107_ACEOF
23108
23109fi
23110
23111ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23112if test "x$ac_cv_type_ssize_t" = xyes; then :
23113
23114else
23115
23116cat >>confdefs.h <<_ACEOF
23117#define ssize_t int
23118_ACEOF
23119
23120fi
23121
23122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23123$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23124if ${ac_cv_type_uid_t+:} false; then :
23125 $as_echo_n "(cached) " >&6
23126else
23127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23128/* end confdefs.h. */
23129#include <sys/types.h>
23130
23131_ACEOF
23132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23133 $EGREP "uid_t" >/dev/null 2>&1; then :
23134 ac_cv_type_uid_t=yes
23135else
23136 ac_cv_type_uid_t=no
23137fi
23138rm -f conftest*
23139
23140fi
23141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23142$as_echo "$ac_cv_type_uid_t" >&6; }
23143if test $ac_cv_type_uid_t = no; then
23144
23145$as_echo "#define uid_t int" >>confdefs.h
23146
23147
23148$as_echo "#define gid_t int" >>confdefs.h
23149
23150fi
23151
23152ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23153case $ac_cv_c_uint8_t in #(
23154 no|yes) ;; #(
23155 *)
23156
23157$as_echo "#define _UINT8_T 1" >>confdefs.h
23158
23159
23160cat >>confdefs.h <<_ACEOF
23161#define uint8_t $ac_cv_c_uint8_t
23162_ACEOF
23163;;
23164 esac
23165
23166ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23167case $ac_cv_c_uint16_t in #(
23168 no|yes) ;; #(
23169 *)
23170
23171
23172cat >>confdefs.h <<_ACEOF
23173#define uint16_t $ac_cv_c_uint16_t
23174_ACEOF
23175;;
23176 esac
23177
23178ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23179case $ac_cv_c_uint32_t in #(
23180 no|yes) ;; #(
23181 *)
23182
23183$as_echo "#define _UINT32_T 1" >>confdefs.h
23184
23185
23186cat >>confdefs.h <<_ACEOF
23187#define uint32_t $ac_cv_c_uint32_t
23188_ACEOF
23189;;
23190 esac
23191
23192ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23193case $ac_cv_c_uint64_t in #(
23194 no|yes) ;; #(
23195 *)
23196
23197$as_echo "#define _UINT64_T 1" >>confdefs.h
23198
23199
23200cat >>confdefs.h <<_ACEOF
23201#define uint64_t $ac_cv_c_uint64_t
23202_ACEOF
23203;;
23204 esac
23205
23206
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23208$as_echo_n "checking for unsigned long long int... " >&6; }
23209if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23210 $as_echo_n "(cached) " >&6
23211else
23212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213/* end confdefs.h. */
23214
23215 /* For now, do not test the preprocessor; as of 2007 there are too many
23216 implementations with broken preprocessors. Perhaps this can
23217 be revisited in 2012. In the meantime, code should not expect
23218 #if to work with literals wider than 32 bits. */
23219 /* Test literals. */
23220 long long int ll = 9223372036854775807ll;
23221 long long int nll = -9223372036854775807LL;
23222 unsigned long long int ull = 18446744073709551615ULL;
23223 /* Test constant expressions. */
23224 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23225 ? 1 : -1)];
23226 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23227 ? 1 : -1)];
23228 int i = 63;
23229int
23230main ()
23231{
23232/* Test availability of runtime routines for shift and division. */
23233 long long int llmax = 9223372036854775807ll;
23234 unsigned long long int ullmax = 18446744073709551615ull;
23235 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23236 | (llmax / ll) | (llmax % ll)
23237 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23238 | (ullmax / ull) | (ullmax % ull));
23239 ;
23240 return 0;
23241}
23242
23243_ACEOF
23244if ac_fn_c_try_link "$LINENO"; then :
23245 ac_cv_type_unsigned_long_long_int=yes
23246else
23247 ac_cv_type_unsigned_long_long_int=no
23248fi
23249rm -f core conftest.err conftest.$ac_objext \
23250 conftest$ac_exeext conftest.$ac_ext
23251fi
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23253$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23254 if test $ac_cv_type_unsigned_long_long_int = yes; then
23255
23256$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23257
23258 fi
23259
23260
23261
23262 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23263if test "x$ac_cv_type_uintmax_t" = xyes; then :
23264
23265$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23266
23267else
23268 test $ac_cv_type_unsigned_long_long_int = yes \
23269 && ac_type='unsigned long long int' \
23270 || ac_type='unsigned long int'
23271
23272cat >>confdefs.h <<_ACEOF
23273#define uintmax_t $ac_type
23274_ACEOF
23275
23276fi
23277
23278
23279
23280 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23281if test "x$ac_cv_type_uintptr_t" = xyes; then :
23282
23283$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23284
23285else
23286 for ac_type in 'unsigned int' 'unsigned long int' \
23287 'unsigned long long int'; do
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289/* end confdefs.h. */
23290$ac_includes_default
23291int
23292main ()
23293{
23294static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23295test_array [0] = 0
23296
23297 ;
23298 return 0;
23299}
23300_ACEOF
23301if ac_fn_c_try_compile "$LINENO"; then :
23302
23303cat >>confdefs.h <<_ACEOF
23304#define uintptr_t $ac_type
23305_ACEOF
23306
23307 ac_type=
23308fi
23309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23310 test -z "$ac_type" && break
23311 done
23312fi
23313
23314
23315
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23317$as_echo_n "checking for unsigned long long int... " >&6; }
23318if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23319 $as_echo_n "(cached) " >&6
23320else
23321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23322/* end confdefs.h. */
23323
23324 /* For now, do not test the preprocessor; as of 2007 there are too many
23325 implementations with broken preprocessors. Perhaps this can
23326 be revisited in 2012. In the meantime, code should not expect
23327 #if to work with literals wider than 32 bits. */
23328 /* Test literals. */
23329 long long int ll = 9223372036854775807ll;
23330 long long int nll = -9223372036854775807LL;
23331 unsigned long long int ull = 18446744073709551615ULL;
23332 /* Test constant expressions. */
23333 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23334 ? 1 : -1)];
23335 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23336 ? 1 : -1)];
23337 int i = 63;
23338int
23339main ()
23340{
23341/* Test availability of runtime routines for shift and division. */
23342 long long int llmax = 9223372036854775807ll;
23343 unsigned long long int ullmax = 18446744073709551615ull;
23344 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23345 | (llmax / ll) | (llmax % ll)
23346 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23347 | (ullmax / ull) | (ullmax % ull));
23348 ;
23349 return 0;
23350}
23351
23352_ACEOF
23353if ac_fn_c_try_link "$LINENO"; then :
23354 ac_cv_type_unsigned_long_long_int=yes
23355else
23356 ac_cv_type_unsigned_long_long_int=no
23357fi
23358rm -f core conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
23360fi
23361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23362$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23363 if test $ac_cv_type_unsigned_long_long_int = yes; then
23364
23365$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23366
23367 fi
23368
23369
cristy3ed852e2009-09-05 21:47:34 +000023370# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23371# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023374if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023375 $as_echo_n "(cached) " >&6
23376else
cristy8b350f62009-11-15 23:12:43 +000023377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023378/* end confdefs.h. */
23379$ac_includes_default
23380int
23381main ()
23382{
23383static int test_array [1 - 2 * !(((char) -1) < 0)];
23384test_array [0] = 0
23385
23386 ;
23387 return 0;
23388}
23389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023390if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023391 ac_cv_c_char_unsigned=no
23392else
cristy8b350f62009-11-15 23:12:43 +000023393 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023394fi
cristy3ed852e2009-09-05 21:47:34 +000023395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396fi
cristy8b350f62009-11-15 23:12:43 +000023397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023398$as_echo "$ac_cv_c_char_unsigned" >&6; }
23399if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023400 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023401
23402fi
23403
23404
23405# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23406# The cast to long int works around a bug in the HP C Compiler
23407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23409# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023411$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023412if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023413 $as_echo_n "(cached) " >&6
23414else
cristy8b350f62009-11-15 23:12:43 +000023415 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 +000023416
cristy3ed852e2009-09-05 21:47:34 +000023417else
cristy8b350f62009-11-15 23:12:43 +000023418 if test "$ac_cv_type_signed_short" = yes; then
23419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023421as_fn_error 77 "cannot compute sizeof (signed short)
23422See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023423 else
23424 ac_cv_sizeof_signed_short=0
23425 fi
23426fi
cristy8b350f62009-11-15 23:12:43 +000023427
cristy3ed852e2009-09-05 21:47:34 +000023428fi
cristy8b350f62009-11-15 23:12:43 +000023429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023430$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23431
23432
23433
23434cat >>confdefs.h <<_ACEOF
23435#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23436_ACEOF
23437
23438
23439
23440# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23441# The cast to long int works around a bug in the HP C Compiler
23442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23444# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023446$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023447if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023448 $as_echo_n "(cached) " >&6
23449else
cristy8b350f62009-11-15 23:12:43 +000023450 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 +000023451
cristy3ed852e2009-09-05 21:47:34 +000023452else
cristy8b350f62009-11-15 23:12:43 +000023453 if test "$ac_cv_type_unsigned_short" = yes; then
23454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023456as_fn_error 77 "cannot compute sizeof (unsigned short)
23457See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023458 else
23459 ac_cv_sizeof_unsigned_short=0
23460 fi
23461fi
cristy8b350f62009-11-15 23:12:43 +000023462
cristy3ed852e2009-09-05 21:47:34 +000023463fi
cristy8b350f62009-11-15 23:12:43 +000023464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23466
23467
23468
23469cat >>confdefs.h <<_ACEOF
23470#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23471_ACEOF
23472
23473
23474
23475# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23476# The cast to long int works around a bug in the HP C Compiler
23477# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23478# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23479# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023481$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023482if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023483 $as_echo_n "(cached) " >&6
23484else
cristy8b350f62009-11-15 23:12:43 +000023485 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 +000023486
cristy3ed852e2009-09-05 21:47:34 +000023487else
cristy8b350f62009-11-15 23:12:43 +000023488 if test "$ac_cv_type_signed_int" = yes; then
23489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023491as_fn_error 77 "cannot compute sizeof (signed int)
23492See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023493 else
23494 ac_cv_sizeof_signed_int=0
23495 fi
23496fi
cristy8b350f62009-11-15 23:12:43 +000023497
cristy3ed852e2009-09-05 21:47:34 +000023498fi
cristy8b350f62009-11-15 23:12:43 +000023499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023500$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23501
23502
23503
23504cat >>confdefs.h <<_ACEOF
23505#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23506_ACEOF
23507
23508
23509
23510# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23511# The cast to long int works around a bug in the HP C Compiler
23512# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23513# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23514# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023516$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023517if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023518 $as_echo_n "(cached) " >&6
23519else
cristy8b350f62009-11-15 23:12:43 +000023520 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 +000023521
cristy3ed852e2009-09-05 21:47:34 +000023522else
cristy8b350f62009-11-15 23:12:43 +000023523 if test "$ac_cv_type_unsigned_int" = yes; then
23524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023526as_fn_error 77 "cannot compute sizeof (unsigned int)
23527See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023528 else
23529 ac_cv_sizeof_unsigned_int=0
23530 fi
23531fi
cristy8b350f62009-11-15 23:12:43 +000023532
cristy3ed852e2009-09-05 21:47:34 +000023533fi
cristy8b350f62009-11-15 23:12:43 +000023534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023535$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23536
23537
23538
23539cat >>confdefs.h <<_ACEOF
23540#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23541_ACEOF
23542
23543
23544
23545# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23546# The cast to long int works around a bug in the HP C Compiler
23547# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23548# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23549# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023551$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023552if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023553 $as_echo_n "(cached) " >&6
23554else
cristy8b350f62009-11-15 23:12:43 +000023555 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 +000023556
cristy3ed852e2009-09-05 21:47:34 +000023557else
cristy8b350f62009-11-15 23:12:43 +000023558 if test "$ac_cv_type_signed_long" = yes; then
23559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023561as_fn_error 77 "cannot compute sizeof (signed long)
23562See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023563 else
23564 ac_cv_sizeof_signed_long=0
23565 fi
23566fi
cristy8b350f62009-11-15 23:12:43 +000023567
cristy3ed852e2009-09-05 21:47:34 +000023568fi
cristy8b350f62009-11-15 23:12:43 +000023569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023570$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23571
23572
23573
23574cat >>confdefs.h <<_ACEOF
23575#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23576_ACEOF
23577
23578
23579
23580# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23581# The cast to long int works around a bug in the HP C Compiler
23582# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23583# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23584# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023587if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023588 $as_echo_n "(cached) " >&6
23589else
cristy8b350f62009-11-15 23:12:43 +000023590 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 +000023591
cristy3ed852e2009-09-05 21:47:34 +000023592else
cristy8b350f62009-11-15 23:12:43 +000023593 if test "$ac_cv_type_unsigned_long" = yes; then
23594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023596as_fn_error 77 "cannot compute sizeof (unsigned long)
23597See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023598 else
23599 ac_cv_sizeof_unsigned_long=0
23600 fi
23601fi
cristy8b350f62009-11-15 23:12:43 +000023602
cristy3ed852e2009-09-05 21:47:34 +000023603fi
cristy8b350f62009-11-15 23:12:43 +000023604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023605$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23606
23607
23608
23609cat >>confdefs.h <<_ACEOF
23610#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23611_ACEOF
23612
23613
23614
23615# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23616# 'signed long long' is not supported then the value defined is zero.
23617# The cast to long int works around a bug in the HP C Compiler
23618# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23619# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23620# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023622$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023623if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023624 $as_echo_n "(cached) " >&6
23625else
cristy8b350f62009-11-15 23:12:43 +000023626 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 +000023627
cristy3ed852e2009-09-05 21:47:34 +000023628else
cristy8b350f62009-11-15 23:12:43 +000023629 if test "$ac_cv_type_signed_long_long" = yes; then
23630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023632as_fn_error 77 "cannot compute sizeof (signed long long)
23633See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023634 else
23635 ac_cv_sizeof_signed_long_long=0
23636 fi
23637fi
cristy8b350f62009-11-15 23:12:43 +000023638
cristy3ed852e2009-09-05 21:47:34 +000023639fi
cristy8b350f62009-11-15 23:12:43 +000023640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023641$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23642
23643
23644
23645cat >>confdefs.h <<_ACEOF
23646#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23647_ACEOF
23648
23649
23650
23651# Obtain size of a 'unsigned long long' and define as
23652# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23653# supported then the value defined is zero.
23654# The cast to long int works around a bug in the HP C Compiler
23655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23657# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023659$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023660if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023661 $as_echo_n "(cached) " >&6
23662else
cristy8b350f62009-11-15 23:12:43 +000023663 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 +000023664
cristy3ed852e2009-09-05 21:47:34 +000023665else
cristy8b350f62009-11-15 23:12:43 +000023666 if test "$ac_cv_type_unsigned_long_long" = yes; then
23667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023669as_fn_error 77 "cannot compute sizeof (unsigned long long)
23670See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023671 else
23672 ac_cv_sizeof_unsigned_long_long=0
23673 fi
23674fi
cristy8b350f62009-11-15 23:12:43 +000023675
cristy3ed852e2009-09-05 21:47:34 +000023676fi
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23679
23680
23681
23682cat >>confdefs.h <<_ACEOF
23683#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23684_ACEOF
23685
23686
23687
23688# Obtain size of off_t and define as SIZEOF_OFF_T
23689# The cast to long int works around a bug in the HP C Compiler
23690# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23691# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23692# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023694$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023695if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023696 $as_echo_n "(cached) " >&6
23697else
cristy8b350f62009-11-15 23:12:43 +000023698 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 +000023699
cristy3ed852e2009-09-05 21:47:34 +000023700else
cristy8b350f62009-11-15 23:12:43 +000023701 if test "$ac_cv_type_off_t" = yes; then
23702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023704as_fn_error 77 "cannot compute sizeof (off_t)
23705See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023706 else
23707 ac_cv_sizeof_off_t=0
23708 fi
23709fi
cristy8b350f62009-11-15 23:12:43 +000023710
cristy3ed852e2009-09-05 21:47:34 +000023711fi
cristy8b350f62009-11-15 23:12:43 +000023712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo "$ac_cv_sizeof_off_t" >&6; }
23714
23715
23716
23717cat >>confdefs.h <<_ACEOF
23718#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23719_ACEOF
23720
23721
23722
23723# Obtain size of size_t and define as SIZEOF_SIZE_T
23724# The cast to long int works around a bug in the HP C Compiler
23725# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23726# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23727# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023729$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023730if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023731 $as_echo_n "(cached) " >&6
23732else
cristy8b350f62009-11-15 23:12:43 +000023733 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 +000023734
cristy3ed852e2009-09-05 21:47:34 +000023735else
cristy8b350f62009-11-15 23:12:43 +000023736 if test "$ac_cv_type_size_t" = yes; then
23737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023739as_fn_error 77 "cannot compute sizeof (size_t)
23740See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023741 else
23742 ac_cv_sizeof_size_t=0
23743 fi
23744fi
cristy8b350f62009-11-15 23:12:43 +000023745
cristy3ed852e2009-09-05 21:47:34 +000023746fi
cristy8b350f62009-11-15 23:12:43 +000023747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023748$as_echo "$ac_cv_sizeof_size_t" >&6; }
23749
23750
23751
23752cat >>confdefs.h <<_ACEOF
23753#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23754_ACEOF
23755
23756
23757
cristy330e9352010-06-01 18:42:49 +000023758# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23759# The cast to long int works around a bug in the HP C Compiler
23760# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23761# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23762# This bug is HP SR number 8606223364.
23763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23764$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023765if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023766 $as_echo_n "(cached) " >&6
23767else
23768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23769
23770else
23771 if test "$ac_cv_type_ssize_t" = yes; then
23772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023774as_fn_error 77 "cannot compute sizeof (ssize_t)
23775See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023776 else
23777 ac_cv_sizeof_ssize_t=0
23778 fi
23779fi
23780
23781fi
23782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23783$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23784
23785
23786
23787cat >>confdefs.h <<_ACEOF
23788#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23789_ACEOF
23790
23791
23792
cristy3ed852e2009-09-05 21:47:34 +000023793# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23794# The cast to long int works around a bug in the HP C Compiler
23795# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23796# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23797# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023799$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023800if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023801 $as_echo_n "(cached) " >&6
23802else
cristy8b350f62009-11-15 23:12:43 +000023803 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 +000023804
cristy3ed852e2009-09-05 21:47:34 +000023805else
cristy8b350f62009-11-15 23:12:43 +000023806 if test "$ac_cv_type_unsigned_intp" = yes; then
23807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023809as_fn_error 77 "cannot compute sizeof (unsigned int*)
23810See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023811 else
23812 ac_cv_sizeof_unsigned_intp=0
23813 fi
23814fi
cristy8b350f62009-11-15 23:12:43 +000023815
cristy3ed852e2009-09-05 21:47:34 +000023816fi
cristy8b350f62009-11-15 23:12:43 +000023817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023818$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23819
23820
23821
23822cat >>confdefs.h <<_ACEOF
23823#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23824_ACEOF
23825
23826
23827
23828#
23829# Compute sized types for current CPU and compiler options.
23830#
23831
cristy8b350f62009-11-15 23:12:43 +000023832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023833$as_echo_n "checking for signed 8-bit type... " >&6; }
23834INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023835{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23836$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023837
23838
cristy8b350f62009-11-15 23:12:43 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023840$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23841UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023842{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23843$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023844
23845
cristy8b350f62009-11-15 23:12:43 +000023846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023847$as_echo_n "checking for signed 16-bit type... " >&6; }
23848INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023849{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23850$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023851
23852
cristy8b350f62009-11-15 23:12:43 +000023853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023854$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23855UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023856{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23857$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023858
23859
cristy8b350f62009-11-15 23:12:43 +000023860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023861$as_echo_n "checking for signed 32-bit type... " >&6; }
23862INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023863INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023864if test $ac_cv_sizeof_signed_int -eq 4; then
23865 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023866 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023867elif test $ac_cv_sizeof_signed_long -eq 4; then
23868 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023869 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023870fi
cristy09b53e12011-10-14 12:47:22 +000023871{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23872$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023873
23874
cristy6d5e20f2011-04-25 13:48:54 +000023875
cristy8b350f62009-11-15 23:12:43 +000023876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023877$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23878UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023879UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023880if test $ac_cv_sizeof_unsigned_int -eq 4; then
23881 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023882 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023883elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23884 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023885 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023886fi
cristy09b53e12011-10-14 12:47:22 +000023887{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23888$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023889
23890
cristy6d5e20f2011-04-25 13:48:54 +000023891
cristy8b350f62009-11-15 23:12:43 +000023892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo_n "checking for signed 64-bit type... " >&6; }
23894INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023895INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023896if test $ac_cv_sizeof_signed_long -eq 8; then
23897 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023898 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023899elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23900 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023901 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023902fi
cristy3a99dcf2011-12-17 01:29:40 +000023903case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023904 mingw* )
23905 INT64_F='"I64"'
23906 ;;
23907esac
cristy09b53e12011-10-14 12:47:22 +000023908{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23909$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023910
23911
cristy6d5e20f2011-04-25 13:48:54 +000023912
cristy8b350f62009-11-15 23:12:43 +000023913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23915UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023916UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023917if test $ac_cv_sizeof_unsigned_long -eq 8; then
23918 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023919 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023920elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23921 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023922 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023923fi
cristy3a99dcf2011-12-17 01:29:40 +000023924case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023925 mingw* )
23926 UINT64_F='"I64"'
23927 ;;
23928esac
cristy09b53e12011-10-14 12:47:22 +000023929{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23930$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023931
23932
cristy6d5e20f2011-04-25 13:48:54 +000023933
cristy8b350f62009-11-15 23:12:43 +000023934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023935$as_echo_n "checking for unsigned maximum type... " >&6; }
23936UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023937UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023938if test "$UINT64_T" != 'none'; then
23939 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023940 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023941elif test "$UINT32_T" != 'none'; then
23942 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023943 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023944fi
cristy09b53e12011-10-14 12:47:22 +000023945{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23946$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023947
23948
cristy6d5e20f2011-04-25 13:48:54 +000023949
cristy8b350f62009-11-15 23:12:43 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023951$as_echo_n "checking for pointer difference type... " >&6; }
23952UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023953UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023954if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23955 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023956 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023957elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23958 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023959 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023960fi
cristy09b53e12011-10-14 12:47:22 +000023961{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23962$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023963
23964
cristy6d5e20f2011-04-25 13:48:54 +000023965
cristy8b350f62009-11-15 23:12:43 +000023966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023967$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023969/* end confdefs.h. */
23970
23971int
23972main ()
23973{
23974{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23975 ;
23976 return 0;
23977}
23978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023979if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023980 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23981$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023982else
cristy09b53e12011-10-14 12:47:22 +000023983 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23984$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023986$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023988/* end confdefs.h. */
23989
23990int
23991main ()
23992{
23993{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23994 ;
23995 return 0;
23996}
23997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023998if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023999 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24000$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024001
cristy8b350f62009-11-15 23:12:43 +000024002$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024003
24004else
cristy09b53e12011-10-14 12:47:22 +000024005 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24006$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024007
cristy8b350f62009-11-15 23:12:43 +000024008$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024009
24010fi
cristy3ed852e2009-09-05 21:47:34 +000024011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012fi
cristy3ed852e2009-09-05 21:47:34 +000024013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24014
24015########
24016#
24017# Check for functions
24018#
24019########
cristy73bd4a52010-10-05 11:24:23 +000024020for ac_header in stdlib.h unistd.h
24021do :
24022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24023ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024024if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024025 cat >>confdefs.h <<_ACEOF
24026#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24027_ACEOF
24028
24029fi
24030
24031done
24032
24033for ac_func in getpagesize
24034do :
24035 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024036if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024037 cat >>confdefs.h <<_ACEOF
24038#define HAVE_GETPAGESIZE 1
24039_ACEOF
24040
24041fi
24042done
24043
24044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24045$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024046if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024047 $as_echo_n "(cached) " >&6
24048else
24049 if test "$cross_compiling" = yes; then :
24050 magick_cv_func_mmap_fileio=no
24051else
24052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24053/* end confdefs.h. */
24054$ac_includes_default
24055/* malloc might have been renamed as rpl_malloc. */
24056#undef malloc
24057
24058/*
24059 This test is derived from GNU Autoconf's similar macro.
24060 The purpose of this test is to verify that files may be memory
24061 mapped, and that memory mapping and file I/O are coherent.
24062
24063 The test creates a test file, memory maps the file, updates
24064 the file using the memory map, and then reads the file using
24065 file I/O to verify that the file contains the updates.
24066*/
24067
24068#include <fcntl.h>
24069#include <sys/mman.h>
24070
24071#if !STDC_HEADERS && !HAVE_STDLIB_H
24072char *malloc ();
24073#endif
24074
24075/* This mess was copied from the GNU getpagesize.h. */
24076#if !HAVE_GETPAGESIZE
24077/* Assume that all systems that can run configure have sys/param.h. */
24078# if !HAVE_SYS_PARAM_H
24079# define HAVE_SYS_PARAM_H 1
24080# endif
24081
24082# ifdef _SC_PAGESIZE
24083# define getpagesize() sysconf(_SC_PAGESIZE)
24084# else /* no _SC_PAGESIZE */
24085# if HAVE_SYS_PARAM_H
24086# include <sys/param.h>
24087# ifdef EXEC_PAGESIZE
24088# define getpagesize() EXEC_PAGESIZE
24089# else /* no EXEC_PAGESIZE */
24090# ifdef NBPG
24091# define getpagesize() NBPG * CLSIZE
24092# ifndef CLSIZE
24093# define CLSIZE 1
24094# endif /* no CLSIZE */
24095# else /* no NBPG */
24096# ifdef NBPC
24097# define getpagesize() NBPC
24098# else /* no NBPC */
24099# ifdef PAGESIZE
24100# define getpagesize() PAGESIZE
24101# endif /* PAGESIZE */
24102# endif /* no NBPC */
24103# endif /* no NBPG */
24104# endif /* no EXEC_PAGESIZE */
24105# else /* no HAVE_SYS_PARAM_H */
24106# define getpagesize() 8192 /* punt totally */
24107# endif /* no HAVE_SYS_PARAM_H */
24108# endif /* no _SC_PAGESIZE */
24109
24110#endif /* no HAVE_GETPAGESIZE */
24111
24112int
24113main ()
24114{
24115 char *data, *data2, *data3;
24116 int i, pagesize;
24117 int fd;
24118
24119 pagesize = getpagesize ();
24120
24121 /* First, make a file with some known garbage in it. */
24122 data = (char *) malloc (pagesize);
24123 if (!data)
24124 exit (1);
24125 for (i = 0; i < pagesize; ++i)
24126 *(data + i) = rand ();
24127 umask (0);
24128 fd = creat ("conftest.mmap", 0600);
24129 if (fd < 0)
24130 exit (1);
24131 if (write (fd, data, pagesize) != pagesize)
24132 exit (1);
24133 close (fd);
24134
24135 /* Mmap the file as read/write/shared and verify that we see the
24136 same garbage. */
24137 fd = open ("conftest.mmap", O_RDWR);
24138 if (fd < 0)
24139 exit (1);
24140 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24141 if (data2 == 0)
24142 exit (1);
24143 for (i = 0; i < pagesize; ++i)
24144 if (*(data + i) != *(data2 + i))
24145 exit (1);
24146
24147 /* Finally, make sure that changes to the mapped area
24148 percolate back to the file as seen by read(). */
24149 for (i = 0; i < pagesize; ++i)
24150 *(data2 + i) = *(data2 + i) + 1;
24151 data3 = (char *) malloc (pagesize);
24152 if (!data3)
24153 exit (1);
24154 if (read (fd, data3, pagesize) != pagesize)
24155 exit (1);
24156 for (i = 0; i < pagesize; ++i)
24157 if (*(data2 + i) != *(data3 + i))
24158 exit (1);
24159 close (fd);
24160 exit (0);
24161}
24162_ACEOF
24163if ac_fn_c_try_run "$LINENO"; then :
24164 magick_cv_func_mmap_fileio=yes
24165else
24166 magick_cv_func_mmap_fileio=no
24167fi
24168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24169 conftest.$ac_objext conftest.beam conftest.$ac_ext
24170fi
24171
24172fi
24173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24174$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24175if test $magick_cv_func_mmap_fileio = yes; then
24176
24177$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24178
24179fi
24180rm -f conftest.mmap
24181
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024184if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 $as_echo_n "(cached) " >&6
24186else
cristy8b350f62009-11-15 23:12:43 +000024187 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024188 ac_cv_func_closedir_void=yes
24189else
cristy8b350f62009-11-15 23:12:43 +000024190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024191/* end confdefs.h. */
24192$ac_includes_default
24193#include <$ac_header_dirent>
24194#ifndef __cplusplus
24195int closedir ();
24196#endif
24197
24198int
24199main ()
24200{
24201return closedir (opendir (".")) != 0;
24202 ;
24203 return 0;
24204}
24205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024206if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024207 ac_cv_func_closedir_void=no
24208else
cristy8b350f62009-11-15 23:12:43 +000024209 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024210fi
cristy8b350f62009-11-15 23:12:43 +000024211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24212 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024213fi
24214
cristy3ed852e2009-09-05 21:47:34 +000024215fi
cristy8b350f62009-11-15 23:12:43 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024217$as_echo "$ac_cv_func_closedir_void" >&6; }
24218if test $ac_cv_func_closedir_void = yes; then
24219
cristy8b350f62009-11-15 23:12:43 +000024220$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024221
24222fi
24223
cristycd4c5312009-11-22 01:19:08 +000024224
24225
24226
24227 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024228do :
24229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024230ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24231"
cristy98dddb52010-11-04 00:30:15 +000024232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024233 cat >>confdefs.h <<_ACEOF
24234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24235_ACEOF
24236
24237fi
24238
24239done
24240
cristycd4c5312009-11-22 01:19:08 +000024241
24242
24243
24244
24245
24246
24247
cristy3ed852e2009-09-05 21:47:34 +000024248for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024249do :
24250 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024251if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024252 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024253#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024254_ACEOF
24255
24256fi
24257done
24258
cristy8b350f62009-11-15 23:12:43 +000024259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024260$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024261if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024262 $as_echo_n "(cached) " >&6
24263else
cristy8b350f62009-11-15 23:12:43 +000024264 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 ac_cv_func_mmap_fixed_mapped=no
24266else
cristy8b350f62009-11-15 23:12:43 +000024267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024268/* end confdefs.h. */
24269$ac_includes_default
24270/* malloc might have been renamed as rpl_malloc. */
24271#undef malloc
24272
24273/* Thanks to Mike Haertel and Jim Avera for this test.
24274 Here is a matrix of mmap possibilities:
24275 mmap private not fixed
24276 mmap private fixed at somewhere currently unmapped
24277 mmap private fixed at somewhere already mapped
24278 mmap shared not fixed
24279 mmap shared fixed at somewhere currently unmapped
24280 mmap shared fixed at somewhere already mapped
24281 For private mappings, we should verify that changes cannot be read()
24282 back from the file, nor mmap's back from the file at a different
24283 address. (There have been systems where private was not correctly
24284 implemented like the infamous i386 svr4.0, and systems where the
24285 VM page cache was not coherent with the file system buffer cache
24286 like early versions of FreeBSD and possibly contemporary NetBSD.)
24287 For shared mappings, we should conversely verify that changes get
24288 propagated back to all the places they're supposed to be.
24289
24290 Grep wants private fixed already mapped.
24291 The main things grep needs to know about mmap are:
24292 * does it exist and is it safe to write into the mmap'd area
24293 * how to use it (BSD variants) */
24294
24295#include <fcntl.h>
24296#include <sys/mman.h>
24297
24298#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24299char *malloc ();
24300#endif
24301
24302/* This mess was copied from the GNU getpagesize.h. */
24303#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024304# ifdef _SC_PAGESIZE
24305# define getpagesize() sysconf(_SC_PAGESIZE)
24306# else /* no _SC_PAGESIZE */
24307# ifdef HAVE_SYS_PARAM_H
24308# include <sys/param.h>
24309# ifdef EXEC_PAGESIZE
24310# define getpagesize() EXEC_PAGESIZE
24311# else /* no EXEC_PAGESIZE */
24312# ifdef NBPG
24313# define getpagesize() NBPG * CLSIZE
24314# ifndef CLSIZE
24315# define CLSIZE 1
24316# endif /* no CLSIZE */
24317# else /* no NBPG */
24318# ifdef NBPC
24319# define getpagesize() NBPC
24320# else /* no NBPC */
24321# ifdef PAGESIZE
24322# define getpagesize() PAGESIZE
24323# endif /* PAGESIZE */
24324# endif /* no NBPC */
24325# endif /* no NBPG */
24326# endif /* no EXEC_PAGESIZE */
24327# else /* no HAVE_SYS_PARAM_H */
24328# define getpagesize() 8192 /* punt totally */
24329# endif /* no HAVE_SYS_PARAM_H */
24330# endif /* no _SC_PAGESIZE */
24331
24332#endif /* no HAVE_GETPAGESIZE */
24333
24334int
24335main ()
24336{
24337 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024338 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024339 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024340 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024341
24342 pagesize = getpagesize ();
24343
24344 /* First, make a file with some known garbage in it. */
24345 data = (char *) malloc (pagesize);
24346 if (!data)
24347 return 1;
24348 for (i = 0; i < pagesize; ++i)
24349 *(data + i) = rand ();
24350 umask (0);
24351 fd = creat ("conftest.mmap", 0600);
24352 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024353 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024354 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024355 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024356 close (fd);
24357
cristycd4c5312009-11-22 01:19:08 +000024358 /* Next, check that the tail of a page is zero-filled. File must have
24359 non-zero length, otherwise we risk SIGBUS for entire page. */
24360 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24361 if (fd2 < 0)
24362 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024363 cdata2 = "";
24364 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024365 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024366 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024367 if (data2 == MAP_FAILED)
24368 return 6;
24369 for (i = 0; i < pagesize; ++i)
24370 if (*(data2 + i))
24371 return 7;
24372 close (fd2);
24373 if (munmap (data2, pagesize))
24374 return 8;
24375
cristy3ed852e2009-09-05 21:47:34 +000024376 /* Next, try to mmap the file at a fixed address which already has
24377 something else allocated at it. If we can, also make sure that
24378 we see the same garbage. */
24379 fd = open ("conftest.mmap", O_RDWR);
24380 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024381 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024382 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24383 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024384 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024385 for (i = 0; i < pagesize; ++i)
24386 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024387 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024388
24389 /* Finally, make sure that changes to the mapped area do not
24390 percolate back to the file as seen by read(). (This is a bug on
24391 some variants of i386 svr4.0.) */
24392 for (i = 0; i < pagesize; ++i)
24393 *(data2 + i) = *(data2 + i) + 1;
24394 data3 = (char *) malloc (pagesize);
24395 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024396 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024397 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024398 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024399 for (i = 0; i < pagesize; ++i)
24400 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024401 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024402 close (fd);
24403 return 0;
24404}
24405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024406if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024407 ac_cv_func_mmap_fixed_mapped=yes
24408else
cristy8b350f62009-11-15 23:12:43 +000024409 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024410fi
cristy8b350f62009-11-15 23:12:43 +000024411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24412 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024413fi
24414
cristy3ed852e2009-09-05 21:47:34 +000024415fi
cristy8b350f62009-11-15 23:12:43 +000024416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024417$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24418if test $ac_cv_func_mmap_fixed_mapped = yes; then
24419
cristy8b350f62009-11-15 23:12:43 +000024420$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024421
24422fi
cristycd4c5312009-11-22 01:19:08 +000024423rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024424
cristy3ed852e2009-09-05 21:47:34 +000024425for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024426do :
24427 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024428if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024429 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024430#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024431_ACEOF
24432
24433fi
24434
24435done
24436
cristy3ed852e2009-09-05 21:47:34 +000024437for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024438do :
24439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24440ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024441if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024442 cat >>confdefs.h <<_ACEOF
24443#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24444_ACEOF
24445
24446fi
24447done
24448
24449if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024451$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024452if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024453 $as_echo_n "(cached) " >&6
24454else
cristy8b350f62009-11-15 23:12:43 +000024455 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024456 ac_cv_func_fork_works=cross
24457else
cristy8b350f62009-11-15 23:12:43 +000024458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024459/* end confdefs.h. */
24460$ac_includes_default
24461int
24462main ()
24463{
24464
24465 /* By Ruediger Kuhlmann. */
24466 return fork () < 0;
24467
24468 ;
24469 return 0;
24470}
24471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024472if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024473 ac_cv_func_fork_works=yes
24474else
cristy8b350f62009-11-15 23:12:43 +000024475 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024476fi
cristy8b350f62009-11-15 23:12:43 +000024477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24478 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024479fi
24480
cristy3ed852e2009-09-05 21:47:34 +000024481fi
cristy8b350f62009-11-15 23:12:43 +000024482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024483$as_echo "$ac_cv_func_fork_works" >&6; }
24484
24485else
24486 ac_cv_func_fork_works=$ac_cv_func_fork
24487fi
24488if test "x$ac_cv_func_fork_works" = xcross; then
24489 case $host in
24490 *-*-amigaos* | *-*-msdosdjgpp*)
24491 # Override, as these systems have only a dummy fork() stub
24492 ac_cv_func_fork_works=no
24493 ;;
24494 *)
24495 ac_cv_func_fork_works=yes
24496 ;;
24497 esac
cristy8b350f62009-11-15 23:12:43 +000024498 { $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 +000024499$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24500fi
24501ac_cv_func_vfork_works=$ac_cv_func_vfork
24502if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024504$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024505if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024506 $as_echo_n "(cached) " >&6
24507else
cristy8b350f62009-11-15 23:12:43 +000024508 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024509 ac_cv_func_vfork_works=cross
24510else
cristy8b350f62009-11-15 23:12:43 +000024511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024512/* end confdefs.h. */
24513/* Thanks to Paul Eggert for this test. */
24514$ac_includes_default
24515#include <sys/wait.h>
24516#ifdef HAVE_VFORK_H
24517# include <vfork.h>
24518#endif
24519/* On some sparc systems, changes by the child to local and incoming
24520 argument registers are propagated back to the parent. The compiler
24521 is told about this with #include <vfork.h>, but some compilers
24522 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24523 static variable whose address is put into a register that is
24524 clobbered by the vfork. */
24525static void
24526#ifdef __cplusplus
24527sparc_address_test (int arg)
24528# else
24529sparc_address_test (arg) int arg;
24530#endif
24531{
24532 static pid_t child;
24533 if (!child) {
24534 child = vfork ();
24535 if (child < 0) {
24536 perror ("vfork");
24537 _exit(2);
24538 }
24539 if (!child) {
24540 arg = getpid();
24541 write(-1, "", 0);
24542 _exit (arg);
24543 }
24544 }
24545}
24546
24547int
24548main ()
24549{
24550 pid_t parent = getpid ();
24551 pid_t child;
24552
24553 sparc_address_test (0);
24554
24555 child = vfork ();
24556
24557 if (child == 0) {
24558 /* Here is another test for sparc vfork register problems. This
24559 test uses lots of local variables, at least as many local
24560 variables as main has allocated so far including compiler
24561 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24562 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24563 reuse the register of parent for one of the local variables,
24564 since it will think that parent can't possibly be used any more
24565 in this routine. Assigning to the local variable will thus
24566 munge parent in the parent process. */
24567 pid_t
24568 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24569 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24570 /* Convince the compiler that p..p7 are live; otherwise, it might
24571 use the same hardware register for all 8 local variables. */
24572 if (p != p1 || p != p2 || p != p3 || p != p4
24573 || p != p5 || p != p6 || p != p7)
24574 _exit(1);
24575
24576 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24577 from child file descriptors. If the child closes a descriptor
24578 before it execs or exits, this munges the parent's descriptor
24579 as well. Test for this by closing stdout in the child. */
24580 _exit(close(fileno(stdout)) != 0);
24581 } else {
24582 int status;
24583 struct stat st;
24584
24585 while (wait(&status) != child)
24586 ;
24587 return (
24588 /* Was there some problem with vforking? */
24589 child < 0
24590
24591 /* Did the child fail? (This shouldn't happen.) */
24592 || status
24593
24594 /* Did the vfork/compiler bug occur? */
24595 || parent != getpid()
24596
24597 /* Did the file descriptor bug occur? */
24598 || fstat(fileno(stdout), &st) != 0
24599 );
24600 }
24601}
24602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024603if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024604 ac_cv_func_vfork_works=yes
24605else
cristy8b350f62009-11-15 23:12:43 +000024606 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024607fi
cristy8b350f62009-11-15 23:12:43 +000024608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24609 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024610fi
24611
cristy3ed852e2009-09-05 21:47:34 +000024612fi
cristy8b350f62009-11-15 23:12:43 +000024613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024614$as_echo "$ac_cv_func_vfork_works" >&6; }
24615
24616fi;
24617if test "x$ac_cv_func_fork_works" = xcross; then
24618 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024619 { $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 +000024620$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24621fi
24622
24623if test "x$ac_cv_func_vfork_works" = xyes; then
24624
cristy8b350f62009-11-15 23:12:43 +000024625$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024626
24627else
24628
cristy8b350f62009-11-15 23:12:43 +000024629$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024630
24631fi
24632if test "x$ac_cv_func_fork_works" = xyes; then
24633
cristy8b350f62009-11-15 23:12:43 +000024634$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024635
24636fi
24637
cristy8b350f62009-11-15 23:12:43 +000024638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024639$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024640if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024641 $as_echo_n "(cached) " >&6
24642else
cristy8b350f62009-11-15 23:12:43 +000024643 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024644 ac_cv_func_memcmp_working=no
24645else
cristy8b350f62009-11-15 23:12:43 +000024646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024647/* end confdefs.h. */
24648$ac_includes_default
24649int
24650main ()
24651{
24652
24653 /* Some versions of memcmp are not 8-bit clean. */
24654 char c0 = '\100', c1 = '\200', c2 = '\201';
24655 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24656 return 1;
24657
24658 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24659 or more and with at least one buffer not starting on a 4-byte boundary.
24660 William Lewis provided this test program. */
24661 {
24662 char foo[21];
24663 char bar[21];
24664 int i;
24665 for (i = 0; i < 4; i++)
24666 {
24667 char *a = foo + i;
24668 char *b = bar + i;
24669 strcpy (a, "--------01111111");
24670 strcpy (b, "--------10000000");
24671 if (memcmp (a, b, 16) >= 0)
24672 return 1;
24673 }
24674 return 0;
24675 }
24676
24677 ;
24678 return 0;
24679}
24680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024681if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024682 ac_cv_func_memcmp_working=yes
24683else
cristy8b350f62009-11-15 23:12:43 +000024684 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024685fi
cristy8b350f62009-11-15 23:12:43 +000024686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24687 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024688fi
24689
cristy3ed852e2009-09-05 21:47:34 +000024690fi
cristy8b350f62009-11-15 23:12:43 +000024691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024692$as_echo "$ac_cv_func_memcmp_working" >&6; }
24693test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24694 *" memcmp.$ac_objext "* ) ;;
24695 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24696 ;;
24697esac
24698
24699
cristy3ed852e2009-09-05 21:47:34 +000024700for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024701do :
24702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24703ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024704if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024705 cat >>confdefs.h <<_ACEOF
24706#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24707_ACEOF
24708
24709fi
24710
24711done
24712
cristy8b350f62009-11-15 23:12:43 +000024713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024714$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024715if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024716 $as_echo_n "(cached) " >&6
24717else
24718 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24719 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24720 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024722/* end confdefs.h. */
24723$ac_includes_default
24724#ifdef HAVE_SYS_SELECT_H
24725# include <sys/select.h>
24726#endif
24727#ifdef HAVE_SYS_SOCKET_H
24728# include <sys/socket.h>
24729#endif
24730
24731int
24732main ()
24733{
24734extern int select ($ac_arg1,
24735 $ac_arg234, $ac_arg234, $ac_arg234,
24736 $ac_arg5);
24737 ;
24738 return 0;
24739}
24740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024741if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024742 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024743fi
cristy3ed852e2009-09-05 21:47:34 +000024744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745 done
24746 done
24747done
24748# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024749: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024750
24751fi
cristy8b350f62009-11-15 23:12:43 +000024752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024753$as_echo "$ac_cv_func_select_args" >&6; }
24754ac_save_IFS=$IFS; IFS=','
24755set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24756IFS=$ac_save_IFS
24757shift
24758
24759cat >>confdefs.h <<_ACEOF
24760#define SELECT_TYPE_ARG1 $1
24761_ACEOF
24762
24763
24764cat >>confdefs.h <<_ACEOF
24765#define SELECT_TYPE_ARG234 ($2)
24766_ACEOF
24767
24768
24769cat >>confdefs.h <<_ACEOF
24770#define SELECT_TYPE_ARG5 ($3)
24771_ACEOF
24772
24773rm -f conftest*
24774
cristyda16f162011-02-19 23:52:17 +000024775if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 $as_echo_n "(cached) " >&6
24777else
24778 ac_cv_func_setvbuf_reversed=no
24779fi
24780
24781
cristy8b350f62009-11-15 23:12:43 +000024782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024783$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024784if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024785 $as_echo_n "(cached) " >&6
24786else
cristy8b350f62009-11-15 23:12:43 +000024787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024788/* end confdefs.h. */
24789#include <sys/types.h>
24790#include <signal.h>
24791
24792int
24793main ()
24794{
24795return *(signal (0, 0)) (0) == 1;
24796 ;
24797 return 0;
24798}
24799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024800if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024801 ac_cv_type_signal=int
24802else
cristy8b350f62009-11-15 23:12:43 +000024803 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024804fi
cristy3ed852e2009-09-05 21:47:34 +000024805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24806fi
cristy8b350f62009-11-15 23:12:43 +000024807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024808$as_echo "$ac_cv_type_signal" >&6; }
24809
24810cat >>confdefs.h <<_ACEOF
24811#define RETSIGTYPE $ac_cv_type_signal
24812_ACEOF
24813
24814
cristy8b350f62009-11-15 23:12:43 +000024815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024816$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024817if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024818 $as_echo_n "(cached) " >&6
24819else
cristy8b350f62009-11-15 23:12:43 +000024820 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024821 ac_cv_func_strtod=no
24822else
cristy8b350f62009-11-15 23:12:43 +000024823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024824/* end confdefs.h. */
24825
24826$ac_includes_default
24827#ifndef strtod
24828double strtod ();
24829#endif
24830int
24831main()
24832{
24833 {
24834 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24835 char *string = " +69";
24836 char *term;
24837 double value;
24838 value = strtod (string, &term);
24839 if (value != 69 || term != (string + 4))
24840 return 1;
24841 }
24842
24843 {
24844 /* Under Solaris 2.4, strtod returns the wrong value for the
24845 terminating character under some conditions. */
24846 char *string = "NaN";
24847 char *term;
24848 strtod (string, &term);
24849 if (term != string && *(term - 1) == 0)
24850 return 1;
24851 }
24852 return 0;
24853}
24854
24855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024856if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024857 ac_cv_func_strtod=yes
24858else
cristy8b350f62009-11-15 23:12:43 +000024859 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024860fi
cristy8b350f62009-11-15 23:12:43 +000024861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24862 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024863fi
24864
cristy3ed852e2009-09-05 21:47:34 +000024865fi
cristy8b350f62009-11-15 23:12:43 +000024866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024867$as_echo "$ac_cv_func_strtod" >&6; }
24868if test $ac_cv_func_strtod = no; then
24869 case " $LIBOBJS " in
24870 *" strtod.$ac_objext "* ) ;;
24871 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24872 ;;
24873esac
24874
cristy8b350f62009-11-15 23:12:43 +000024875ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024876if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024877
cristy3ed852e2009-09-05 21:47:34 +000024878fi
24879
cristy3ed852e2009-09-05 21:47:34 +000024880if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024882$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024883if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024884 $as_echo_n "(cached) " >&6
24885else
24886 ac_check_lib_save_LIBS=$LIBS
24887LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024889/* end confdefs.h. */
24890
24891/* Override any GCC internal prototype to avoid an error.
24892 Use char because int might match the return type of a GCC
24893 builtin and then its argument prototype would still apply. */
24894#ifdef __cplusplus
24895extern "C"
24896#endif
24897char pow ();
24898int
24899main ()
24900{
24901return pow ();
24902 ;
24903 return 0;
24904}
24905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024907 ac_cv_lib_m_pow=yes
24908else
cristy8b350f62009-11-15 23:12:43 +000024909 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024910fi
cristy8b350f62009-11-15 23:12:43 +000024911rm -f core conftest.err conftest.$ac_objext \
24912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024913LIBS=$ac_check_lib_save_LIBS
24914fi
cristy8b350f62009-11-15 23:12:43 +000024915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024916$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024917if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024918 POW_LIB=-lm
24919else
cristy8b350f62009-11-15 23:12:43 +000024920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024921$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24922fi
24923
24924fi
24925
24926fi
24927
cristy7d4a1d62011-10-13 15:54:12 +000024928ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24929if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24930 ac_have_decl=1
24931else
24932 ac_have_decl=0
24933fi
24934
24935cat >>confdefs.h <<_ACEOF
24936#define HAVE_DECL_STRERROR_R $ac_have_decl
24937_ACEOF
24938
24939for ac_func in strerror_r
24940do :
24941 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24942if test "x$ac_cv_func_strerror_r" = xyes; then :
24943 cat >>confdefs.h <<_ACEOF
24944#define HAVE_STRERROR_R 1
24945_ACEOF
24946
24947fi
24948done
24949
24950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24951$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24952if ${ac_cv_func_strerror_r_char_p+:} false; then :
24953 $as_echo_n "(cached) " >&6
24954else
24955
24956 ac_cv_func_strerror_r_char_p=no
24957 if test $ac_cv_have_decl_strerror_r = yes; then
24958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24959/* end confdefs.h. */
24960$ac_includes_default
24961int
24962main ()
24963{
24964
24965 char buf[100];
24966 char x = *strerror_r (0, buf, sizeof buf);
24967 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024968 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024969
24970 ;
24971 return 0;
24972}
24973_ACEOF
24974if ac_fn_c_try_compile "$LINENO"; then :
24975 ac_cv_func_strerror_r_char_p=yes
24976fi
24977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 else
24979 # strerror_r is not declared. Choose between
24980 # systems that have relatively inaccessible declarations for the
24981 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24982 # former has a strerror_r that returns char*, while the latter
24983 # has a strerror_r that returns `int'.
24984 # This test should segfault on the DEC system.
24985 if test "$cross_compiling" = yes; then :
24986 :
24987else
24988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24989/* end confdefs.h. */
24990$ac_includes_default
24991 extern char *strerror_r ();
24992int
24993main ()
24994{
24995char buf[100];
24996 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024997 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024998 ;
24999 return 0;
25000}
25001_ACEOF
25002if ac_fn_c_try_run "$LINENO"; then :
25003 ac_cv_func_strerror_r_char_p=yes
25004fi
25005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25006 conftest.$ac_objext conftest.beam conftest.$ac_ext
25007fi
25008
25009 fi
25010
25011fi
25012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25013$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25014if test $ac_cv_func_strerror_r_char_p = yes; then
25015
25016$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25017
25018fi
25019
cristy3ed852e2009-09-05 21:47:34 +000025020for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025021do :
25022 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025023if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025024 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025025#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025026_ACEOF
25027
cristy8b350f62009-11-15 23:12:43 +000025028ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025029if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025030
cristy8b350f62009-11-15 23:12:43 +000025031$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025032
25033fi
25034
25035fi
25036done
25037
25038
25039
cristy161b9262010-03-20 19:34:32 +000025040#
25041# Find math library
25042#
25043MATH_LIBS=''
25044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25045$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025046if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025047 $as_echo_n "(cached) " >&6
25048else
25049 ac_check_lib_save_LIBS=$LIBS
25050LIBS="-lm $LIBS"
25051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052/* end confdefs.h. */
25053
25054/* Override any GCC internal prototype to avoid an error.
25055 Use char because int might match the return type of a GCC
25056 builtin and then its argument prototype would still apply. */
25057#ifdef __cplusplus
25058extern "C"
25059#endif
25060char sqrt ();
25061int
25062main ()
25063{
25064return sqrt ();
25065 ;
25066 return 0;
25067}
25068_ACEOF
25069if ac_fn_c_try_link "$LINENO"; then :
25070 ac_cv_lib_m_sqrt=yes
25071else
25072 ac_cv_lib_m_sqrt=no
25073fi
25074rm -f core conftest.err conftest.$ac_objext \
25075 conftest$ac_exeext conftest.$ac_ext
25076LIBS=$ac_check_lib_save_LIBS
25077fi
25078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25079$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025080if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025081 MATH_LIBS="-lm"
25082fi
25083
25084LIBS="$MATH_LIBS $LIBS"
25085
25086
cristy82b20722011-11-05 21:52:36 +000025087for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025088do :
25089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25090ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025091if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025092 cat >>confdefs.h <<_ACEOF
25093#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25094_ACEOF
25095
25096fi
25097done
25098
25099
cristye43a45e2009-09-28 14:49:00 +000025100#
25101# Check for clock_gettime().
25102#
cristy8b350f62009-11-15 23:12:43 +000025103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025104$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025105if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025106 $as_echo_n "(cached) " >&6
25107else
25108 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025110/* end confdefs.h. */
25111
25112/* Override any GCC internal prototype to avoid an error.
25113 Use char because int might match the return type of a GCC
25114 builtin and then its argument prototype would still apply. */
25115#ifdef __cplusplus
25116extern "C"
25117#endif
25118char clock_gettime ();
25119int
25120main ()
25121{
25122return clock_gettime ();
25123 ;
25124 return 0;
25125}
25126_ACEOF
25127for ac_lib in '' rt; do
25128 if test -z "$ac_lib"; then
25129 ac_res="none required"
25130 else
25131 ac_res=-l$ac_lib
25132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25133 fi
cristy8b350f62009-11-15 23:12:43 +000025134 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025135 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025136fi
cristy8b350f62009-11-15 23:12:43 +000025137rm -f core conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025139 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025140 break
25141fi
25142done
cristyda16f162011-02-19 23:52:17 +000025143if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025144
cristye43a45e2009-09-28 14:49:00 +000025145else
25146 ac_cv_search_clock_gettime=no
25147fi
25148rm conftest.$ac_ext
25149LIBS=$ac_func_search_save_LIBS
25150fi
cristy8b350f62009-11-15 23:12:43 +000025151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025152$as_echo "$ac_cv_search_clock_gettime" >&6; }
25153ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025154if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25156
25157
cristy8b350f62009-11-15 23:12:43 +000025158$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025159
cristy8b350f62009-11-15 23:12:43 +000025160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025161$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025163/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025164
25165 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025166int
25167main ()
25168{
25169clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025170 ;
25171 return 0;
25172}
25173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025174if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025175
cristy09b53e12011-10-14 12:47:22 +000025176 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25177$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025178
cristy8b350f62009-11-15 23:12:43 +000025179$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025180
25181
25182else
cristy09b53e12011-10-14 12:47:22 +000025183 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25184$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025185
25186fi
cristye43a45e2009-09-28 14:49:00 +000025187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25188
25189else
25190
cristy8b350f62009-11-15 23:12:43 +000025191 for ac_func in gettimeofday ftime
25192do :
25193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025195if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025196 cat >>confdefs.h <<_ACEOF
25197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25198_ACEOF
25199 break
25200fi
25201done
25202
25203
25204
25205fi
25206
25207
cristy3ed852e2009-09-05 21:47:34 +000025208########
25209#
25210# Check for function prototypes
25211#
25212########
25213
cristy8b350f62009-11-15 23:12:43 +000025214ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025215#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025216"
cristyda16f162011-02-19 23:52:17 +000025217if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025218 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025219else
cristy8b350f62009-11-15 23:12:43 +000025220 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025221fi
25222
cristy3ed852e2009-09-05 21:47:34 +000025223cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025224#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025226ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025227#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025228"
cristyda16f162011-02-19 23:52:17 +000025229if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025230 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025231else
cristy8b350f62009-11-15 23:12:43 +000025232 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025233fi
25234
cristy3ed852e2009-09-05 21:47:34 +000025235cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025236#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025237_ACEOF
25238
25239
cristy8b350f62009-11-15 23:12:43 +000025240ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025241#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025242"
cristyda16f162011-02-19 23:52:17 +000025243if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025244 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025245else
cristy8b350f62009-11-15 23:12:43 +000025246 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025247fi
25248
cristy3ed852e2009-09-05 21:47:34 +000025249cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025250#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025251_ACEOF
25252
25253
cristy8b350f62009-11-15 23:12:43 +000025254ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025255#include <stdio.h>
25256#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025257"
cristyda16f162011-02-19 23:52:17 +000025258if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025259 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025260else
cristy8b350f62009-11-15 23:12:43 +000025261 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025262fi
25263
cristy3ed852e2009-09-05 21:47:34 +000025264cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025265#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025266_ACEOF
25267
25268
cristy3ed852e2009-09-05 21:47:34 +000025269########
25270#
25271# C++ Support Tests (For Magick++)
25272#
25273########
25274have_magick_plus_plus='no'
25275if test "$with_magick_plus_plus" = 'yes'; then
25276 OLIBS="$LIBS"
25277 LIBS=''
25278 ac_ext=cpp
25279ac_cpp='$CXXCPP $CPPFLAGS'
25280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25283
25284
25285 # Full set of headers used...
25286 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25287 # functional iomanip iosfwd iostream iterator list string strstream utility
25288 ac_ext=cpp
25289ac_cpp='$CXXCPP $CPPFLAGS'
25290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25293
25294 ac_ext=cpp
25295ac_cpp='$CXXCPP $CPPFLAGS'
25296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25299if test -z "$CXX"; then
25300 if test -n "$CCC"; then
25301 CXX=$CCC
25302 else
25303 if test -n "$ac_tool_prefix"; then
25304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25305 do
25306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025310if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025311 $as_echo_n "(cached) " >&6
25312else
25313 if test -n "$CXX"; then
25314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25315else
25316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25317for as_dir in $PATH
25318do
25319 IFS=$as_save_IFS
25320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025325 break 2
25326 fi
25327done
cristy8b350f62009-11-15 23:12:43 +000025328 done
cristy3ed852e2009-09-05 21:47:34 +000025329IFS=$as_save_IFS
25330
25331fi
25332fi
25333CXX=$ac_cv_prog_CXX
25334if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo "$CXX" >&6; }
25337else
cristy8b350f62009-11-15 23:12:43 +000025338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025339$as_echo "no" >&6; }
25340fi
25341
25342
25343 test -n "$CXX" && break
25344 done
25345fi
25346if test -z "$CXX"; then
25347 ac_ct_CXX=$CXX
25348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25349do
25350 # Extract the first word of "$ac_prog", so it can be a program name with args.
25351set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025353$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025354if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025355 $as_echo_n "(cached) " >&6
25356else
25357 if test -n "$ac_ct_CXX"; then
25358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25359else
25360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25361for as_dir in $PATH
25362do
25363 IFS=$as_save_IFS
25364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25367 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369 break 2
25370 fi
25371done
cristy8b350f62009-11-15 23:12:43 +000025372 done
cristy3ed852e2009-09-05 21:47:34 +000025373IFS=$as_save_IFS
25374
25375fi
25376fi
25377ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25378if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025380$as_echo "$ac_ct_CXX" >&6; }
25381else
cristy8b350f62009-11-15 23:12:43 +000025382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025383$as_echo "no" >&6; }
25384fi
25385
25386
25387 test -n "$ac_ct_CXX" && break
25388done
25389
25390 if test "x$ac_ct_CXX" = x; then
25391 CXX="g++"
25392 else
25393 case $cross_compiling:$ac_tool_warned in
25394yes:)
cristy8b350f62009-11-15 23:12:43 +000025395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25397ac_tool_warned=yes ;;
25398esac
25399 CXX=$ac_ct_CXX
25400 fi
25401fi
25402
25403 fi
25404fi
25405# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025406$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407set X $ac_compile
25408ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025409for ac_option in --version -v -V -qversion; do
25410 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025411case "(($ac_try" in
25412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413 *) ac_try_echo=$ac_try;;
25414esac
cristy8b350f62009-11-15 23:12:43 +000025415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25416$as_echo "$ac_try_echo"; } >&5
25417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025418 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025419 if test -s conftest.err; then
25420 sed '10a\
25421... rest of stderr output deleted ...
25422 10q' conftest.err >conftest.er1
25423 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025424 fi
cristycd4c5312009-11-22 01:19:08 +000025425 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25427 test $ac_status = 0; }
25428done
cristy3ed852e2009-09-05 21:47:34 +000025429
cristy8b350f62009-11-15 23:12:43 +000025430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025431$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025432if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025433 $as_echo_n "(cached) " >&6
25434else
cristy8b350f62009-11-15 23:12:43 +000025435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025436/* end confdefs.h. */
25437
25438int
25439main ()
25440{
25441#ifndef __GNUC__
25442 choke me
25443#endif
25444
25445 ;
25446 return 0;
25447}
25448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025449if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025450 ac_compiler_gnu=yes
25451else
cristy8b350f62009-11-15 23:12:43 +000025452 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025453fi
cristy3ed852e2009-09-05 21:47:34 +000025454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25455ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25456
25457fi
cristy8b350f62009-11-15 23:12:43 +000025458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25460if test $ac_compiler_gnu = yes; then
25461 GXX=yes
25462else
25463 GXX=
25464fi
25465ac_test_CXXFLAGS=${CXXFLAGS+set}
25466ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025468$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025469if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025470 $as_echo_n "(cached) " >&6
25471else
25472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25473 ac_cxx_werror_flag=yes
25474 ac_cv_prog_cxx_g=no
25475 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025477/* end confdefs.h. */
25478
25479int
25480main ()
25481{
25482
25483 ;
25484 return 0;
25485}
25486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025487if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025488 ac_cv_prog_cxx_g=yes
25489else
cristy8b350f62009-11-15 23:12:43 +000025490 CXXFLAGS=""
25491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025492/* end confdefs.h. */
25493
25494int
25495main ()
25496{
25497
25498 ;
25499 return 0;
25500}
25501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025502if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025503
cristy8b350f62009-11-15 23:12:43 +000025504else
25505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025506 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025508/* end confdefs.h. */
25509
25510int
25511main ()
25512{
25513
25514 ;
25515 return 0;
25516}
25517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025518if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025520fi
cristy3ed852e2009-09-05 21:47:34 +000025521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25522fi
cristy3ed852e2009-09-05 21:47:34 +000025523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524fi
cristy3ed852e2009-09-05 21:47:34 +000025525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25527fi
cristy8b350f62009-11-15 23:12:43 +000025528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025529$as_echo "$ac_cv_prog_cxx_g" >&6; }
25530if test "$ac_test_CXXFLAGS" = set; then
25531 CXXFLAGS=$ac_save_CXXFLAGS
25532elif test $ac_cv_prog_cxx_g = yes; then
25533 if test "$GXX" = yes; then
25534 CXXFLAGS="-g -O2"
25535 else
25536 CXXFLAGS="-g"
25537 fi
25538else
25539 if test "$GXX" = yes; then
25540 CXXFLAGS="-O2"
25541 else
25542 CXXFLAGS=
25543 fi
25544fi
25545ac_ext=cpp
25546ac_cpp='$CXXCPP $CPPFLAGS'
25547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25550
cristy73bd4a52010-10-05 11:24:23 +000025551depcc="$CXX" am_compiler_list=
25552
25553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25554$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025555if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025556 $as_echo_n "(cached) " >&6
25557else
25558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25559 # We make a subdir and do the tests there. Otherwise we can end up
25560 # making bogus files that we don't know about and never remove. For
25561 # instance it was reported that on HP-UX the gcc test will end up
25562 # making a dummy file named `D' -- because `-MD' means `put the output
25563 # in D'.
cristy7247bba2012-02-05 16:37:27 +000025564 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025565 mkdir conftest.dir
25566 # Copy depcomp to subdir because otherwise we won't find it if we're
25567 # using a relative directory.
25568 cp "$am_depcomp" conftest.dir
25569 cd conftest.dir
25570 # We will build objects and dependencies in a subdirectory because
25571 # it helps to detect inapplicable dependency modes. For instance
25572 # both Tru64's cc and ICC support -MD to output dependencies as a
25573 # side effect of compilation, but ICC will put the dependencies in
25574 # the current directory while Tru64 will put them in the object
25575 # directory.
25576 mkdir sub
25577
25578 am_cv_CXX_dependencies_compiler_type=none
25579 if test "$am_compiler_list" = ""; then
25580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25581 fi
25582 am__universal=false
25583 case " $depcc " in #(
25584 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25585 esac
25586
25587 for depmode in $am_compiler_list; do
25588 # Setup a source with many dependencies, because some compilers
25589 # like to wrap large dependency lists on column 80 (with \), and
25590 # we should not choose a depcomp mode which is confused by this.
25591 #
25592 # We need to recreate these files for each test, as the compiler may
25593 # overwrite some of them when testing with obscure command lines.
25594 # This happens at least with the AIX C compiler.
25595 : > sub/conftest.c
25596 for i in 1 2 3 4 5 6; do
25597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25598 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25599 # Solaris 8's {/usr,}/bin/sh.
25600 touch sub/conftst$i.h
25601 done
25602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25603
25604 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25605 # mode. It turns out that the SunPro C++ compiler does not properly
25606 # handle `-M -o', and we need to detect this. Also, some Intel
25607 # versions had trouble with output in subdirs
25608 am__obj=sub/conftest.${OBJEXT-o}
25609 am__minus_obj="-o $am__obj"
25610 case $depmode in
25611 gcc)
25612 # This depmode causes a compiler race in universal mode.
25613 test "$am__universal" = false || continue
25614 ;;
25615 nosideeffect)
25616 # after this tag, mechanisms are not by side-effect, so they'll
25617 # only be used when explicitly requested
25618 if test "x$enable_dependency_tracking" = xyes; then
25619 continue
25620 else
25621 break
25622 fi
25623 ;;
cristy7247bba2012-02-05 16:37:27 +000025624 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000025625 # This compiler won't grok `-c -o', but also, the minuso test has
25626 # not run yet. These depmodes are late enough in the game, and
25627 # so weak that their functioning should not be impacted.
25628 am__obj=conftest.${OBJEXT-o}
25629 am__minus_obj=
25630 ;;
25631 none) break ;;
25632 esac
25633 if depmode=$depmode \
25634 source=sub/conftest.c object=$am__obj \
25635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25636 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25637 >/dev/null 2>conftest.err &&
25638 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25639 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25640 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25641 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25642 # icc doesn't choke on unknown options, it will just issue warnings
25643 # or remarks (even with -Werror). So we grep stderr for any message
25644 # that says an option was ignored or not supported.
25645 # When given -MP, icc 7.0 and 7.1 complain thusly:
25646 # icc: Command line warning: ignoring option '-M'; no argument required
25647 # The diagnosis changed in icc 8.0:
25648 # icc: Command line remark: option '-MP' not supported
25649 if (grep 'ignoring option' conftest.err ||
25650 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25651 am_cv_CXX_dependencies_compiler_type=$depmode
25652 break
25653 fi
25654 fi
25655 done
25656
25657 cd ..
25658 rm -rf conftest.dir
25659else
25660 am_cv_CXX_dependencies_compiler_type=none
25661fi
25662
25663fi
25664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25665$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25666CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25667
25668 if
25669 test "x$enable_dependency_tracking" != xno \
25670 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25671 am__fastdepCXX_TRUE=
25672 am__fastdepCXX_FALSE='#'
25673else
25674 am__fastdepCXX_TRUE='#'
25675 am__fastdepCXX_FALSE=
25676fi
25677
25678
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25680$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025681if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025682 $as_echo_n "(cached) " >&6
25683else
25684
25685 ac_ext=cpp
25686ac_cpp='$CXXCPP $CPPFLAGS'
25687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25690
25691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25692/* end confdefs.h. */
25693
25694int f(int x){return 1;}
25695int f(char x){return 1;}
25696int f(bool x){return 1;}
25697
25698int
25699main ()
25700{
25701bool b = true; return f(b);
25702 ;
25703 return 0;
25704}
25705_ACEOF
25706if ac_fn_cxx_try_compile "$LINENO"; then :
25707 ax_cv_cxx_bool=yes
25708else
25709 ax_cv_cxx_bool=no
25710fi
25711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25712 ac_ext=cpp
25713ac_cpp='$CXXCPP $CPPFLAGS'
25714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25717
25718
25719fi
25720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25721$as_echo "$ax_cv_cxx_bool" >&6; }
25722if test "$ax_cv_cxx_bool" = yes; then
25723
25724$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25725
25726fi
25727
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25729$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025730if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025731 $as_echo_n "(cached) " >&6
25732else
25733
25734 ac_ext=cpp
25735ac_cpp='$CXXCPP $CPPFLAGS'
25736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25739
25740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25741/* end confdefs.h. */
25742namespace Outer { namespace Inner { int i = 0; }}
25743int
25744main ()
25745{
25746using namespace Outer::Inner; return i;
25747 ;
25748 return 0;
25749}
25750_ACEOF
25751if ac_fn_cxx_try_compile "$LINENO"; then :
25752 ax_cv_cxx_namespaces=yes
25753else
25754 ax_cv_cxx_namespaces=no
25755fi
25756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25757 ac_ext=cpp
25758ac_cpp='$CXXCPP $CPPFLAGS'
25759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25762
25763
25764fi
25765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25766$as_echo "$ax_cv_cxx_namespaces" >&6; }
25767if test "$ax_cv_cxx_namespaces" = yes; then
25768
25769$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25770
25771fi
25772
25773
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25775$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025776if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025777 $as_echo_n "(cached) " >&6
25778else
25779
25780 ac_ext=cpp
25781ac_cpp='$CXXCPP $CPPFLAGS'
25782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25785
25786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787/* end confdefs.h. */
25788#include <iostream>
25789 std::istream& is = std::cin;
25790int
25791main ()
25792{
25793
25794 ;
25795 return 0;
25796}
25797_ACEOF
25798if ac_fn_cxx_try_compile "$LINENO"; then :
25799 ax_cv_cxx_have_std_namespace=yes
25800else
25801 ax_cv_cxx_have_std_namespace=no
25802fi
25803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804 ac_ext=cpp
25805ac_cpp='$CXXCPP $CPPFLAGS'
25806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25809
25810
25811fi
25812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25813$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25814 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25815
25816$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25817
25818 fi
25819
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25821$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025822if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025823 $as_echo_n "(cached) " >&6
25824else
25825
25826
25827 ac_ext=cpp
25828ac_cpp='$CXXCPP $CPPFLAGS'
25829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25832
25833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25834/* end confdefs.h. */
25835#include <iostream>
25836#include <map>
25837#include <iomanip>
25838#include <cmath>
25839#ifdef HAVE_NAMESPACES
25840using namespace std;
25841#endif
25842int
25843main ()
25844{
25845return 0;
25846 ;
25847 return 0;
25848}
25849_ACEOF
25850if ac_fn_cxx_try_compile "$LINENO"; then :
25851 ac_cv_cxx_have_std_libs=yes
25852else
25853 ac_cv_cxx_have_std_libs=no
25854fi
25855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 ac_ext=cpp
25857ac_cpp='$CXXCPP $CPPFLAGS'
25858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25861
25862
25863fi
25864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25865$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25866if test "$ac_cv_cxx_have_std_libs" = yes; then
25867
25868$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25869
25870fi
25871
cristy3ed852e2009-09-05 21:47:34 +000025872
25873 OPENMP_CXXFLAGS=
25874 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025875if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025876 enableval=$enable_openmp;
25877fi
25878
25879 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25881$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025882if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025883 $as_echo_n "(cached) " >&6
25884else
cristy8b350f62009-11-15 23:12:43 +000025885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25886/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025887
25888#ifndef _OPENMP
25889 choke me
25890#endif
25891#include <omp.h>
25892int main () { return omp_get_num_threads (); }
25893
25894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025895if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025896 ac_cv_prog_cxx_openmp='none needed'
25897else
cristy8b350f62009-11-15 23:12:43 +000025898 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025899 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25900 ac_save_CXXFLAGS=$CXXFLAGS
25901 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025904
25905#ifndef _OPENMP
25906 choke me
25907#endif
25908#include <omp.h>
25909int main () { return omp_get_num_threads (); }
25910
25911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025912if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025913 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025914fi
cristy8b350f62009-11-15 23:12:43 +000025915rm -f core conftest.err conftest.$ac_objext \
25916 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025917 CXXFLAGS=$ac_save_CXXFLAGS
25918 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25919 break
25920 fi
25921 done
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 +000025926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25928 case $ac_cv_prog_cxx_openmp in #(
25929 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025930 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025931 *)
cristy8b350f62009-11-15 23:12:43 +000025932 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025933 esac
25934 fi
25935
25936
25937 ac_ext=c
25938ac_cpp='$CPP $CPPFLAGS'
25939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25941ac_compiler_gnu=$ac_cv_c_compiler_gnu
25942
25943
cristy8b350f62009-11-15 23:12:43 +000025944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025945$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25946 if \
cristy964cb7f2010-04-25 23:18:00 +000025947 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025948 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025949 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025950 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025951 have_magick_plus_plus='yes'
25952 else
25953 have_magick_plus_plus='no (failed tests)'
25954 fi
cristy09b53e12011-10-14 12:47:22 +000025955 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25956$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025957 LIBS="$OLIBS"
25958fi
cristy73bd4a52010-10-05 11:24:23 +000025959 if test "$have_magick_plus_plus" = 'yes'; then
25960 WITH_MAGICK_PLUS_PLUS_TRUE=
25961 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25962else
25963 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25964 WITH_MAGICK_PLUS_PLUS_FALSE=
25965fi
25966
cristy3ed852e2009-09-05 21:47:34 +000025967
25968# Only check for delegate libraries in subdirectories if requested.
25969if test "$enable_delegate_build" != 'no'; then
25970 # Check for delegate sub-directories and add -I & -L options as required.
25971 # This presumes that delegates are installed as detailed in the ImageMagick
25972 # README. If delegates are installed in a standard location where the
25973 # compiler will automatically find them then these options should not be
25974 # required.
25975
25976 #
25977 # Most delegates have includes in the same directory as the library, but not all...
25978 #
25979 # Includes
cristy2542fc62011-12-06 17:50:25 +000025980 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025981 if test -d "$builddir/$dir"; then
25982 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25983 else
25984 if test -d "$srcdirfull/$dir"; then
25985 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25986 fi
25987 fi
25988 done
25989
25990 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025991 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025992 if test -d "$builddir/$dir/.libs"; then
25993 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25994 else
25995 if test -d "$srcdirfull/$dir/.libs"; then
25996 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25997 fi
25998 fi
25999 if test -d "$builddir/$dir"; then
26000 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26001 else
26002 if test -d "$srcdirfull/$dir"; then
26003 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26004 fi
26005 fi
26006 done
26007fi
26008
26009# Assume that delegate headers reside under same directory as ImageMagick
26010# installation prefix.
26011MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26012
26013#
26014# Find the X11 RGB database
26015#
cristy8b350f62009-11-15 23:12:43 +000026016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026017$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026018if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026019 $as_echo_n "(cached) " >&6
26020else
26021 # Look for the header file in a standard set of common directories.
26022# Check X11 before X11Rn because it is often a symlink to the current release.
26023 for ac_dir in \
26024 /lib/usr/lib/X11 \
26025 /usr/X11/lib \
26026 /usr/X11R4/lib \
26027 /usr/X11R5/lib \
26028 /usr/X11R6/lib \
26029 /usr/X11R7/lib \
26030 /usr/X386/lib \
26031 /usr/XFree86/lib/X11 \
26032 /usr/athena/lib \
26033 /usr/lib \
26034 /usr/lib/X11 \
26035 /usr/lib/X11R4 \
26036 /usr/lib/X11R5 \
26037 /usr/lib/X11R6 \
26038 /usr/lib/X11R7 \
26039 /usr/local/X11/lib \
26040 /usr/local/X11R4/lib \
26041 /usr/local/X11R5/lib \
26042 /usr/local/X11R6/lib \
26043 /usr/local/lib \
26044 /usr/local/lib/X11 \
26045 /usr/local/lib/X11R4 \
26046 /usr/local/lib/X11R5 \
26047 /usr/local/lib/X11R6 \
26048 /usr/local/lib/X11R7 \
26049 /usr/local/x11r5/lib \
26050 /usr/lpp/Xamples/lib \
26051 /usr/openwin/lib \
26052 /usr/openwin/share/lib \
26053 /usr/unsupported/lib \
26054 /usr/x386/lib \
26055 ; do
26056 if test -f "$ac_dir/X11/rgb.txt"; then
26057 im_cv_x_configure="$ac_dir/X11/"
26058 break
26059 elif test -f "$ac_dir/rgb.txt"; then
26060 im_cv_x_configure="$ac_dir/"
26061 break
26062 fi
26063
26064 done
26065fi
cristy8b350f62009-11-15 23:12:43 +000026066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026067$as_echo "$im_cv_x_configure" >&6; }
26068X11_CONFIGURE_PATH="$im_cv_x_configure"
26069case "${build_os}" in
26070 mingw* )
26071 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26072 ;;
26073esac
26074
26075cat >>confdefs.h <<_ACEOF
26076#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26077_ACEOF
26078
26079
26080#
26081# Find OpenMP library
26082#
26083GOMP_LIBS=''
26084if test "$enable_openmp" != 'no'; then
26085 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026086 # Open64 (passes for GCC but uses different OpenMP implementation)
26087 if test "x$GOMP_LIBS" = x ; then
26088 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26090$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26091if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26092 $as_echo_n "(cached) " >&6
26093else
26094 ac_check_lib_save_LIBS=$LIBS
26095LIBS="-lopenmp $LIBS"
26096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097/* end confdefs.h. */
26098
26099/* Override any GCC internal prototype to avoid an error.
26100 Use char because int might match the return type of a GCC
26101 builtin and then its argument prototype would still apply. */
26102#ifdef __cplusplus
26103extern "C"
26104#endif
26105char omp_get_num_procs ();
26106int
26107main ()
26108{
26109return omp_get_num_procs ();
26110 ;
26111 return 0;
26112}
26113_ACEOF
26114if ac_fn_c_try_link "$LINENO"; then :
26115 ac_cv_lib_openmp_omp_get_num_procs=yes
26116else
26117 ac_cv_lib_openmp_omp_get_num_procs=no
26118fi
26119rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
26121LIBS=$ac_check_lib_save_LIBS
26122fi
26123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26124$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26125if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26126 GOMP_LIBS="-lopenmp"
26127fi
26128
26129 fi
26130 fi
26131 # GCC
26132 if test "x$GOMP_LIBS" = x ; then
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026134$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026135if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026136 $as_echo_n "(cached) " >&6
26137else
26138 ac_check_lib_save_LIBS=$LIBS
26139LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026141/* end confdefs.h. */
26142
26143/* Override any GCC internal prototype to avoid an error.
26144 Use char because int might match the return type of a GCC
26145 builtin and then its argument prototype would still apply. */
26146#ifdef __cplusplus
26147extern "C"
26148#endif
26149char GOMP_parallel_start ();
26150int
26151main ()
26152{
26153return GOMP_parallel_start ();
26154 ;
26155 return 0;
26156}
26157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026158if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026159 ac_cv_lib_gomp_GOMP_parallel_start=yes
26160else
cristy8b350f62009-11-15 23:12:43 +000026161 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026162fi
cristy8b350f62009-11-15 23:12:43 +000026163rm -f core conftest.err conftest.$ac_objext \
26164 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026165LIBS=$ac_check_lib_save_LIBS
26166fi
cristy8b350f62009-11-15 23:12:43 +000026167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026168$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026169if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026170 GOMP_LIBS="-lgomp"
26171fi
cristy18307f12011-12-30 01:20:16 +000026172
26173 fi
cristy3ed852e2009-09-05 21:47:34 +000026174 else
cristy18307f12011-12-30 01:20:16 +000026175 # Sun CC
26176 if test "x$GOMP_LIBS" = x ; then
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026178$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026179if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026180 $as_echo_n "(cached) " >&6
26181else
26182 ac_check_lib_save_LIBS=$LIBS
26183LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026185/* end confdefs.h. */
26186
26187/* Override any GCC internal prototype to avoid an error.
26188 Use char because int might match the return type of a GCC
26189 builtin and then its argument prototype would still apply. */
26190#ifdef __cplusplus
26191extern "C"
26192#endif
26193char sunw_mp_register_warn ();
26194int
26195main ()
26196{
26197return sunw_mp_register_warn ();
26198 ;
26199 return 0;
26200}
26201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026203 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26204else
cristy8b350f62009-11-15 23:12:43 +000026205 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026206fi
cristy8b350f62009-11-15 23:12:43 +000026207rm -f core conftest.err conftest.$ac_objext \
26208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026209LIBS=$ac_check_lib_save_LIBS
26210fi
cristy8b350f62009-11-15 23:12:43 +000026211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026212$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026213if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026214 GOMP_LIBS="-lmtsk"
26215fi
cristy18307f12011-12-30 01:20:16 +000026216
26217 fi
26218 # AIX xlc
26219 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026221$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026222if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026223 $as_echo_n "(cached) " >&6
26224else
26225 ac_check_lib_save_LIBS=$LIBS
26226LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026228/* end confdefs.h. */
26229
26230/* Override any GCC internal prototype to avoid an error.
26231 Use char because int might match the return type of a GCC
26232 builtin and then its argument prototype would still apply. */
26233#ifdef __cplusplus
26234extern "C"
26235#endif
26236char _xlsmpFlush ();
26237int
26238main ()
26239{
26240return _xlsmpFlush ();
26241 ;
26242 return 0;
26243}
26244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 ac_cv_lib_xlsmp__xlsmpFlush=yes
26247else
cristy8b350f62009-11-15 23:12:43 +000026248 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026249fi
cristy8b350f62009-11-15 23:12:43 +000026250rm -f core conftest.err conftest.$ac_objext \
26251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026252LIBS=$ac_check_lib_save_LIBS
26253fi
cristy8b350f62009-11-15 23:12:43 +000026254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026255$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026256if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026257 GOMP_LIBS="-lxlsmp"
26258fi
cristy18307f12011-12-30 01:20:16 +000026259
26260 fi
26261 # SGI IRIX 6.5 MIPSpro C/C++
26262 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026264$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026265if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026266 $as_echo_n "(cached) " >&6
26267else
26268 ac_check_lib_save_LIBS=$LIBS
26269LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026271/* end confdefs.h. */
26272
26273/* Override any GCC internal prototype to avoid an error.
26274 Use char because int might match the return type of a GCC
26275 builtin and then its argument prototype would still apply. */
26276#ifdef __cplusplus
26277extern "C"
26278#endif
26279char mp_destroy ();
26280int
26281main ()
26282{
26283return mp_destroy ();
26284 ;
26285 return 0;
26286}
26287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026289 ac_cv_lib_mp_mp_destroy=yes
26290else
cristy8b350f62009-11-15 23:12:43 +000026291 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026292fi
cristy8b350f62009-11-15 23:12:43 +000026293rm -f core conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026295LIBS=$ac_check_lib_save_LIBS
26296fi
cristy8b350f62009-11-15 23:12:43 +000026297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026299if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026300 GOMP_LIBS="-lmp"
26301fi
cristy18307f12011-12-30 01:20:16 +000026302
26303 fi
cristy3ed852e2009-09-05 21:47:34 +000026304 fi
26305 LIBS="$GOMP_LIBS $LIBS"
26306fi
26307
26308
26309#
26310# Find Posix threads library
26311#
26312THREAD_LIBS=''
26313if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26314
26315 if test "x$PTHREAD_LIBS" = "x"; then
26316 case "${host_cpu}-${host_os}" in
26317 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026318
26319
26320
26321ac_ext=c
26322ac_cpp='$CPP $CPPFLAGS'
26323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26325ac_compiler_gnu=$ac_cv_c_compiler_gnu
26326
26327magick_pthread_lib_ok=no
26328
26329LIB=-lc_r
26330save_LIBS="$LIBS"
26331LIBS="$LIBS $LIB"
26332
26333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26334$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26336/* end confdefs.h. */
26337#include <pthread.h>
26338int
26339main ()
26340{
26341 pthread_t th;
26342 pthread_join(th, 0);
26343 pthread_attr_init(0);
26344 pthread_cleanup_push(0, 0);
26345 pthread_create(0,0,0,0);
26346 pthread_cleanup_pop(0);
26347 ;
26348 return 0;
26349}
26350_ACEOF
26351if ac_fn_c_try_link "$LINENO"; then :
26352 magick_pthread_lib_ok=yes
26353fi
26354rm -f core conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
26356
26357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26358$as_echo "${magick_pthread_lib_ok}" >&6; }
26359if test "$magick_pthread_lib_ok" = yes
26360then
26361 PTHREAD_LIBS=-lc_r
26362 :
26363else
26364
26365 :
26366fi
26367
26368LIBS="$save_LIBS"
26369
26370ac_ext=c
26371ac_cpp='$CPP $CPPFLAGS'
26372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26374ac_compiler_gnu=$ac_cv_c_compiler_gnu
26375
26376 ;;
cristy3ed852e2009-09-05 21:47:34 +000026377 esac
26378 fi
26379
26380 for lib in pthread pthreads; do
26381 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026382
26383
26384
26385ac_ext=c
26386ac_cpp='$CPP $CPPFLAGS'
26387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26389ac_compiler_gnu=$ac_cv_c_compiler_gnu
26390
26391magick_pthread_lib_ok=no
26392
26393LIB=-l$lib
26394save_LIBS="$LIBS"
26395LIBS="$LIBS $LIB"
26396
26397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26398$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26400/* end confdefs.h. */
26401#include <pthread.h>
26402int
26403main ()
26404{
26405 pthread_t th;
26406 pthread_join(th, 0);
26407 pthread_attr_init(0);
26408 pthread_cleanup_push(0, 0);
26409 pthread_create(0,0,0,0);
26410 pthread_cleanup_pop(0);
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415if ac_fn_c_try_link "$LINENO"; then :
26416 magick_pthread_lib_ok=yes
26417fi
26418rm -f core conftest.err conftest.$ac_objext \
26419 conftest$ac_exeext conftest.$ac_ext
26420
26421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26422$as_echo "${magick_pthread_lib_ok}" >&6; }
26423if test "$magick_pthread_lib_ok" = yes
26424then
26425 PTHREAD_LIBS=-l$lib
26426 :
26427else
26428
26429 :
26430fi
26431
26432LIBS="$save_LIBS"
26433
26434ac_ext=c
26435ac_cpp='$CPP $CPPFLAGS'
26436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26438ac_compiler_gnu=$ac_cv_c_compiler_gnu
26439
26440
cristy3ed852e2009-09-05 21:47:34 +000026441 fi
26442 done
26443
26444 THREAD_LIBS="$PTHREAD_LIBS"
26445 LIBS="$LIBS $THREAD_LIBS"
26446fi
26447
26448
26449#
26450# Check for umem.
26451#
26452have_umem='no'
26453UMEM_LIBS=''
26454if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026456$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026457 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26458$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026459 failed=0
26460 passed=0
cristy8b350f62009-11-15 23:12:43 +000026461 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026462if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026463 passed=`expr $passed + 1`
26464else
26465 failed=`expr $failed + 1`
26466fi
26467
26468
cristy8b350f62009-11-15 23:12:43 +000026469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026471if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026472 $as_echo_n "(cached) " >&6
26473else
26474 ac_check_lib_save_LIBS=$LIBS
26475LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026477/* end confdefs.h. */
26478
26479/* Override any GCC internal prototype to avoid an error.
26480 Use char because int might match the return type of a GCC
26481 builtin and then its argument prototype would still apply. */
26482#ifdef __cplusplus
26483extern "C"
26484#endif
26485char umem_alloc ();
26486int
26487main ()
26488{
26489return umem_alloc ();
26490 ;
26491 return 0;
26492}
26493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026495 ac_cv_lib_umem_umem_alloc=yes
26496else
cristy8b350f62009-11-15 23:12:43 +000026497 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026498fi
cristy8b350f62009-11-15 23:12:43 +000026499rm -f core conftest.err conftest.$ac_objext \
26500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026501LIBS=$ac_check_lib_save_LIBS
26502fi
cristy8b350f62009-11-15 23:12:43 +000026503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026504$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026505if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026506 passed=`expr $passed + 1`
26507else
26508 failed=`expr $failed + 1`
26509fi
26510
cristy8b350f62009-11-15 23:12:43 +000026511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026512$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026513if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026514 $as_echo_n "(cached) " >&6
26515else
26516 ac_check_lib_save_LIBS=$LIBS
26517LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026519/* end confdefs.h. */
26520
26521/* Override any GCC internal prototype to avoid an error.
26522 Use char because int might match the return type of a GCC
26523 builtin and then its argument prototype would still apply. */
26524#ifdef __cplusplus
26525extern "C"
26526#endif
26527char umem_free ();
26528int
26529main ()
26530{
26531return umem_free ();
26532 ;
26533 return 0;
26534}
26535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026537 ac_cv_lib_umem_umem_free=yes
26538else
cristy8b350f62009-11-15 23:12:43 +000026539 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026540fi
cristy8b350f62009-11-15 23:12:43 +000026541rm -f core conftest.err conftest.$ac_objext \
26542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026543LIBS=$ac_check_lib_save_LIBS
26544fi
cristy8b350f62009-11-15 23:12:43 +000026545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026546$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026547if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026548 passed=`expr $passed + 1`
26549else
26550 failed=`expr $failed + 1`
26551fi
26552
cristy8b350f62009-11-15 23:12:43 +000026553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026554$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26555 if test $passed -gt 0; then
26556 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026557 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26558$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026559 have_umem='no (failed tests)'
26560 else
26561 UMEM_LIBS='-lumem'
26562 LIBS="$UMEM_LIBS $LIBS"
26563
cristy8b350f62009-11-15 23:12:43 +000026564$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026565
cristy09b53e12011-10-14 12:47:22 +000026566 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26567$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026568 have_umem='yes'
26569 fi
26570 else
cristy09b53e12011-10-14 12:47:22 +000026571 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26572$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026573 fi
26574fi
cristy73bd4a52010-10-05 11:24:23 +000026575 if test "$have_umem" = 'yes'; then
26576 HasUMEM_TRUE=
26577 HasUMEM_FALSE='#'
26578else
26579 HasUMEM_TRUE='#'
26580 HasUMEM_FALSE=
26581fi
26582
cristy3ed852e2009-09-05 21:47:34 +000026583
26584
26585#
26586# Add support for ccmalloc memory debugging library if requested
26587#
26588have_ccmalloc='no'
26589CCMALLOC_LIBS=''
26590if test "$enable_ccmalloc" = 'yes'; then
26591 # Extract the first word of "ccmalloc", so it can be a program name with args.
26592set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026594$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026595if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 $as_echo_n "(cached) " >&6
26597else
26598 case $CCMALLOCDelegate in
26599 [\\/]* | ?:[\\/]*)
26600 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26601 ;;
26602 *)
26603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26604for as_dir in $PATH
26605do
26606 IFS=$as_save_IFS
26607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26610 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026612 break 2
26613 fi
26614done
cristy8b350f62009-11-15 23:12:43 +000026615 done
cristy3ed852e2009-09-05 21:47:34 +000026616IFS=$as_save_IFS
26617
26618 ;;
26619esac
26620fi
26621CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26622if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo "$CCMALLOCDelegate" >&6; }
26625else
cristy8b350f62009-11-15 23:12:43 +000026626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026627$as_echo "no" >&6; }
26628fi
26629
26630
26631 if test -n "$CCMALLOCDelegate"; then
26632 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26633 OLIBS="$LIBS"
26634 # Assume that gcc is used with ccmalloc.
26635 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026637$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026638if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026639 $as_echo_n "(cached) " >&6
26640else
26641 ac_check_lib_save_LIBS=$LIBS
26642LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026644/* end confdefs.h. */
26645
26646/* Override any GCC internal prototype to avoid an error.
26647 Use char because int might match the return type of a GCC
26648 builtin and then its argument prototype would still apply. */
26649#ifdef __cplusplus
26650extern "C"
26651#endif
26652char ccmalloc_malloc ();
26653int
26654main ()
26655{
26656return ccmalloc_malloc ();
26657 ;
26658 return 0;
26659}
26660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026662 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26663else
cristy8b350f62009-11-15 23:12:43 +000026664 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026665fi
cristy8b350f62009-11-15 23:12:43 +000026666rm -f core conftest.err conftest.$ac_objext \
26667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026668LIBS=$ac_check_lib_save_LIBS
26669fi
cristy8b350f62009-11-15 23:12:43 +000026670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026671$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026672if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026673 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26674fi
26675
26676 if test -n "$CCMALLOC_LIBS"; then
26677 LIBS="$OLIBS"
26678 LIBS="$LIBS $CCMALLOC_LIBS"
26679 have_ccmalloc='yes'
26680 else
26681 LIBS="$OLIBS"
26682 fi
26683 fi
26684fi
26685
26686#
26687# Add support for efence memory debugging library if requested
26688#
26689if test "$enable_efence" = 'yes'; then
26690 EFENCE_LIBS='-lefence'
26691 LIBS="$EFENCE_LIBS $LIBS"
26692fi
26693
cristy3ed852e2009-09-05 21:47:34 +000026694
26695#
26696# Check for BZLIB
26697#
26698
26699
26700# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026701if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 withval=$with_bzlib; with_bzlib=$withval
26703else
26704 with_bzlib='yes'
26705fi
26706
26707
26708if test "$with_bzlib" != 'yes'; then
26709 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26710fi
26711
26712have_bzlib='no'
26713if test "$with_bzlib" != 'no'; then
26714 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026715 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26716$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026718$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026719 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26720$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026721 failed=0
26722 passed=0
26723 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026724 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026725if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026726 passed=`expr $passed + 1`
26727else
26728 failed=`expr $failed + 1`
26729fi
26730
26731
cristy8b350f62009-11-15 23:12:43 +000026732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026734if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 $as_echo_n "(cached) " >&6
26736else
26737 ac_check_lib_save_LIBS=$LIBS
26738LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026740/* end confdefs.h. */
26741
26742/* Override any GCC internal prototype to avoid an error.
26743 Use char because int might match the return type of a GCC
26744 builtin and then its argument prototype would still apply. */
26745#ifdef __cplusplus
26746extern "C"
26747#endif
26748char BZ2_bzDecompress ();
26749int
26750main ()
26751{
26752return BZ2_bzDecompress ();
26753 ;
26754 return 0;
26755}
26756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026758 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26759else
cristy8b350f62009-11-15 23:12:43 +000026760 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026761fi
cristy8b350f62009-11-15 23:12:43 +000026762rm -f core conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026764LIBS=$ac_check_lib_save_LIBS
26765fi
cristy8b350f62009-11-15 23:12:43 +000026766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026767$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026768if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026769 found_libbz=`expr $found_libbz + 1`
26770fi
26771
26772 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026774$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026775if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026776 $as_echo_n "(cached) " >&6
26777else
26778 ac_check_lib_save_LIBS=$LIBS
26779LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026781/* end confdefs.h. */
26782
26783/* Override any GCC internal prototype to avoid an error.
26784 Use char because int might match the return type of a GCC
26785 builtin and then its argument prototype would still apply. */
26786#ifdef __cplusplus
26787extern "C"
26788#endif
26789char _imp__BZ2_decompress ();
26790int
26791main ()
26792{
26793return _imp__BZ2_decompress ();
26794 ;
26795 return 0;
26796}
26797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026799 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26800else
cristy8b350f62009-11-15 23:12:43 +000026801 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026802fi
cristy8b350f62009-11-15 23:12:43 +000026803rm -f core conftest.err conftest.$ac_objext \
26804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026805LIBS=$ac_check_lib_save_LIBS
26806fi
cristy8b350f62009-11-15 23:12:43 +000026807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026808$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026809if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026810 found_libbz=`expr $found_libbz + 1`
26811fi
26812
26813 fi
26814 if test $found_libbz -gt 0; then
26815 passed=`expr $passed + 1`
26816 else
26817 failed=`expr $failed + 1`
26818 fi
cristy8b350f62009-11-15 23:12:43 +000026819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026820$as_echo_n "checking if BZLIB package is complete... " >&6; }
26821 if test $passed -gt 0; then
26822 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026823 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26824$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026825 have_bzlib='no (failed tests)'
26826 else
26827 BZLIB_LIBS='-lbz2'
26828 LIBS="$BZLIB_LIBS $LIBS"
26829
cristy8b350f62009-11-15 23:12:43 +000026830$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026831
cristy09b53e12011-10-14 12:47:22 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26833$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026834 have_bzlib='yes'
26835 fi
26836 else
cristy09b53e12011-10-14 12:47:22 +000026837 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26838$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026839 fi
26840fi
cristy73bd4a52010-10-05 11:24:23 +000026841 if test "$have_bzlib" = 'yes'; then
26842 BZLIB_DELEGATE_TRUE=
26843 BZLIB_DELEGATE_FALSE='#'
26844else
26845 BZLIB_DELEGATE_TRUE='#'
26846 BZLIB_DELEGATE_FALSE=
26847fi
26848
cristy3ed852e2009-09-05 21:47:34 +000026849
26850
26851#
26852# Find the X11 include and library directories.
26853#
26854IPC_LIBS=''
26855X11_LIBS=''
26856XEXT_LIBS=''
26857XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026859$as_echo_n "checking for X... " >&6; }
26860
26861
26862# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026863if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026864 withval=$with_x;
26865fi
26866
26867# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26868if test "x$with_x" = xno; then
26869 # The user explicitly disabled X.
26870 have_x=disabled
26871else
26872 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026873 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026874 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026875 $as_echo_n "(cached) " >&6
26876else
26877 # One or both of the vars are not set, and there is no cached value.
26878ac_x_includes=no ac_x_libraries=no
26879rm -f -r conftest.dir
26880if mkdir conftest.dir; then
26881 cd conftest.dir
26882 cat >Imakefile <<'_ACEOF'
26883incroot:
26884 @echo incroot='${INCROOT}'
26885usrlibdir:
26886 @echo usrlibdir='${USRLIBDIR}'
26887libdir:
26888 @echo libdir='${LIBDIR}'
26889_ACEOF
26890 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026891 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026892 for ac_var in incroot usrlibdir libdir; do
26893 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26894 done
26895 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26896 for ac_extension in a so sl dylib la dll; do
26897 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26898 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26899 ac_im_usrlibdir=$ac_im_libdir; break
26900 fi
26901 done
26902 # Screen out bogus values from the imake configuration. They are
26903 # bogus both because they are the default anyway, and because
26904 # using them would break gcc on systems where it needs fixed includes.
26905 case $ac_im_incroot in
26906 /usr/include) ac_x_includes= ;;
26907 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26908 esac
26909 case $ac_im_usrlibdir in
26910 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26911 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26912 esac
26913 fi
26914 cd ..
26915 rm -f -r conftest.dir
26916fi
26917
26918# Standard set of common directories for X headers.
26919# Check X11 before X11Rn because it is often a symlink to the current release.
26920ac_x_header_dirs='
26921/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026922/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026923/usr/X11R6/include
26924/usr/X11R5/include
26925/usr/X11R4/include
26926
26927/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026928/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026929/usr/include/X11R6
26930/usr/include/X11R5
26931/usr/include/X11R4
26932
26933/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026934/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026935/usr/local/X11R6/include
26936/usr/local/X11R5/include
26937/usr/local/X11R4/include
26938
26939/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026940/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026941/usr/local/include/X11R6
26942/usr/local/include/X11R5
26943/usr/local/include/X11R4
26944
26945/usr/X386/include
26946/usr/x386/include
26947/usr/XFree86/include/X11
26948
26949/usr/include
26950/usr/local/include
26951/usr/unsupported/include
26952/usr/athena/include
26953/usr/local/x11r5/include
26954/usr/lpp/Xamples/include
26955
26956/usr/openwin/include
26957/usr/openwin/share/include'
26958
26959if test "$ac_x_includes" = no; then
26960 # Guess where to find include files, by looking for Xlib.h.
26961 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026963/* end confdefs.h. */
26964#include <X11/Xlib.h>
26965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026966if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026967 # We can compile using X headers with no special include directory.
26968ac_x_includes=
26969else
cristyc7083c12009-10-14 03:16:55 +000026970 for ac_dir in $ac_x_header_dirs; do
26971 if test -r "$ac_dir/X11/Xlib.h"; then
26972 ac_x_includes=$ac_dir
26973 break
26974 fi
26975done
26976fi
cristyda16f162011-02-19 23:52:17 +000026977rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026978fi # $ac_x_includes = no
26979
26980if test "$ac_x_libraries" = no; then
26981 # Check for the libraries.
26982 # See if we find them without any special options.
26983 # Don't add to $LIBS permanently.
26984 ac_save_LIBS=$LIBS
26985 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026987/* end confdefs.h. */
26988#include <X11/Xlib.h>
26989int
26990main ()
26991{
26992XrmInitialize ()
26993 ;
26994 return 0;
26995}
26996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026997if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026998 LIBS=$ac_save_LIBS
26999# We can link X programs with no special library path.
27000ac_x_libraries=
27001else
cristy8b350f62009-11-15 23:12:43 +000027002 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027003for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27004do
27005 # Don't even attempt the hair of trying to link an X program!
27006 for ac_extension in a so sl dylib la dll; do
27007 if test -r "$ac_dir/libX11.$ac_extension"; then
27008 ac_x_libraries=$ac_dir
27009 break 2
27010 fi
27011 done
27012done
27013fi
cristy8b350f62009-11-15 23:12:43 +000027014rm -f core conftest.err conftest.$ac_objext \
27015 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027016fi # $ac_x_libraries = no
27017
27018case $ac_x_includes,$ac_x_libraries in #(
27019 no,* | *,no | *\'*)
27020 # Didn't find X, or a directory has "'" in its name.
27021 ac_cv_have_x="have_x=no";; #(
27022 *)
27023 # Record where we found X for the cache.
27024 ac_cv_have_x="have_x=yes\
27025 ac_x_includes='$ac_x_includes'\
27026 ac_x_libraries='$ac_x_libraries'"
27027esac
27028fi
27029;; #(
27030 *) have_x=yes;;
27031 esac
27032 eval "$ac_cv_have_x"
27033fi # $with_x != no
27034
27035if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027037$as_echo "$have_x" >&6; }
27038 no_x=yes
27039else
27040 # If each of the values was on the command line, it overrides each guess.
27041 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27042 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27043 # Update the cache value to reflect the command line values.
27044 ac_cv_have_x="have_x=yes\
27045 ac_x_includes='$x_includes'\
27046 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027048$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27049fi
27050
cristy3ed852e2009-09-05 21:47:34 +000027051if test "$no_x" = yes; then
27052 # Not all programs may use this symbol, but it does not hurt to define it.
27053
cristy8b350f62009-11-15 23:12:43 +000027054$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027055
27056 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27057else
27058 if test -n "$x_includes"; then
27059 X_CFLAGS="$X_CFLAGS -I$x_includes"
27060 fi
27061
27062 # It would also be nice to do this for all -L options, not just this one.
27063 if test -n "$x_libraries"; then
27064 X_LIBS="$X_LIBS -L$x_libraries"
27065 # For Solaris; some versions of Sun CC require a space after -R and
27066 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027068$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27069 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27070 ac_xsave_c_werror_flag=$ac_c_werror_flag
27071 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027073/* end confdefs.h. */
27074
27075int
27076main ()
27077{
27078
27079 ;
27080 return 0;
27081}
27082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027083if ac_fn_c_try_link "$LINENO"; then :
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo "no" >&6; }
27086 X_LIBS="$X_LIBS -R$x_libraries"
27087else
cristy8b350f62009-11-15 23:12:43 +000027088 LIBS="$ac_xsave_LIBS -R $x_libraries"
27089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027090/* end confdefs.h. */
27091
27092int
27093main ()
27094{
27095
27096 ;
27097 return 0;
27098}
27099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027100if ac_fn_c_try_link "$LINENO"; then :
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027102$as_echo "yes" >&6; }
27103 X_LIBS="$X_LIBS -R $x_libraries"
27104else
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo "neither works" >&6; }
27107fi
cristy8b350f62009-11-15 23:12:43 +000027108rm -f core conftest.err conftest.$ac_objext \
27109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027110fi
cristy8b350f62009-11-15 23:12:43 +000027111rm -f core conftest.err conftest.$ac_objext \
27112 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027113 ac_c_werror_flag=$ac_xsave_c_werror_flag
27114 LIBS=$ac_xsave_LIBS
27115 fi
27116
27117 # Check for system-dependent libraries X programs must link with.
27118 # Do this before checking for the system-independent R6 libraries
27119 # (-lICE), since we may need -lsocket or whatever for X linking.
27120
27121 if test "$ISC" = yes; then
27122 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27123 else
27124 # Martyn Johnson says this is needed for Ultrix, if the X
27125 # libraries were built with DECnet support. And Karl Berry says
27126 # the Alpha needs dnet_stub (dnet does not exist).
27127 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027129/* end confdefs.h. */
27130
27131/* Override any GCC internal prototype to avoid an error.
27132 Use char because int might match the return type of a GCC
27133 builtin and then its argument prototype would still apply. */
27134#ifdef __cplusplus
27135extern "C"
27136#endif
27137char XOpenDisplay ();
27138int
27139main ()
27140{
27141return XOpenDisplay ();
27142 ;
27143 return 0;
27144}
27145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027146if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027147
cristy8b350f62009-11-15 23:12:43 +000027148else
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027150$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027151if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027152 $as_echo_n "(cached) " >&6
27153else
27154 ac_check_lib_save_LIBS=$LIBS
27155LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027157/* end confdefs.h. */
27158
27159/* Override any GCC internal prototype to avoid an error.
27160 Use char because int might match the return type of a GCC
27161 builtin and then its argument prototype would still apply. */
27162#ifdef __cplusplus
27163extern "C"
27164#endif
27165char dnet_ntoa ();
27166int
27167main ()
27168{
27169return dnet_ntoa ();
27170 ;
27171 return 0;
27172}
27173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027175 ac_cv_lib_dnet_dnet_ntoa=yes
27176else
cristy8b350f62009-11-15 23:12:43 +000027177 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027178fi
cristy8b350f62009-11-15 23:12:43 +000027179rm -f core conftest.err conftest.$ac_objext \
27180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027181LIBS=$ac_check_lib_save_LIBS
27182fi
cristy8b350f62009-11-15 23:12:43 +000027183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027184$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027185if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027186 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27187fi
27188
27189 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027191$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027192if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027193 $as_echo_n "(cached) " >&6
27194else
27195 ac_check_lib_save_LIBS=$LIBS
27196LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198/* end confdefs.h. */
27199
27200/* Override any GCC internal prototype to avoid an error.
27201 Use char because int might match the return type of a GCC
27202 builtin and then its argument prototype would still apply. */
27203#ifdef __cplusplus
27204extern "C"
27205#endif
27206char dnet_ntoa ();
27207int
27208main ()
27209{
27210return dnet_ntoa ();
27211 ;
27212 return 0;
27213}
27214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27217else
cristy8b350f62009-11-15 23:12:43 +000027218 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027219fi
cristy8b350f62009-11-15 23:12:43 +000027220rm -f core conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027222LIBS=$ac_check_lib_save_LIBS
27223fi
cristy8b350f62009-11-15 23:12:43 +000027224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027226if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27228fi
27229
27230 fi
27231fi
cristy8b350f62009-11-15 23:12:43 +000027232rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234 LIBS="$ac_xsave_LIBS"
27235
27236 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27237 # to get the SysV transport functions.
27238 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27239 # needs -lnsl.
27240 # The nsl library prevents programs from opening the X display
27241 # on Irix 5.2, according to T.E. Dickey.
27242 # The functions gethostbyname, getservbyname, and inet_addr are
27243 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027244 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027245if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027246
cristy3ed852e2009-09-05 21:47:34 +000027247fi
27248
cristy3ed852e2009-09-05 21:47:34 +000027249 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027252if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027253 $as_echo_n "(cached) " >&6
27254else
27255 ac_check_lib_save_LIBS=$LIBS
27256LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027258/* end confdefs.h. */
27259
27260/* Override any GCC internal prototype to avoid an error.
27261 Use char because int might match the return type of a GCC
27262 builtin and then its argument prototype would still apply. */
27263#ifdef __cplusplus
27264extern "C"
27265#endif
27266char gethostbyname ();
27267int
27268main ()
27269{
27270return gethostbyname ();
27271 ;
27272 return 0;
27273}
27274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027275if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 ac_cv_lib_nsl_gethostbyname=yes
27277else
cristy8b350f62009-11-15 23:12:43 +000027278 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027279fi
cristy8b350f62009-11-15 23:12:43 +000027280rm -f core conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027282LIBS=$ac_check_lib_save_LIBS
27283fi
cristy8b350f62009-11-15 23:12:43 +000027284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027285$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027286if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27288fi
27289
27290 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027292$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027293if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027294 $as_echo_n "(cached) " >&6
27295else
27296 ac_check_lib_save_LIBS=$LIBS
27297LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027299/* end confdefs.h. */
27300
27301/* Override any GCC internal prototype to avoid an error.
27302 Use char because int might match the return type of a GCC
27303 builtin and then its argument prototype would still apply. */
27304#ifdef __cplusplus
27305extern "C"
27306#endif
27307char gethostbyname ();
27308int
27309main ()
27310{
27311return gethostbyname ();
27312 ;
27313 return 0;
27314}
27315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 ac_cv_lib_bsd_gethostbyname=yes
27318else
cristy8b350f62009-11-15 23:12:43 +000027319 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027320fi
cristy8b350f62009-11-15 23:12:43 +000027321rm -f core conftest.err conftest.$ac_objext \
27322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027323LIBS=$ac_check_lib_save_LIBS
27324fi
cristy8b350f62009-11-15 23:12:43 +000027325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027326$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027327if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27329fi
27330
27331 fi
27332 fi
27333
27334 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27335 # socket/setsockopt and other routines are undefined under SCO ODT
27336 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27337 # on later versions), says Simon Leinen: it contains gethostby*
27338 # variants that don't use the name server (or something). -lsocket
27339 # must be given before -lnsl if both are needed. We assume that
27340 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027341 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027342if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027343
cristy3ed852e2009-09-05 21:47:34 +000027344fi
27345
cristy3ed852e2009-09-05 21:47:34 +000027346 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027349if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 $as_echo_n "(cached) " >&6
27351else
27352 ac_check_lib_save_LIBS=$LIBS
27353LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027355/* end confdefs.h. */
27356
27357/* Override any GCC internal prototype to avoid an error.
27358 Use char because int might match the return type of a GCC
27359 builtin and then its argument prototype would still apply. */
27360#ifdef __cplusplus
27361extern "C"
27362#endif
27363char connect ();
27364int
27365main ()
27366{
27367return connect ();
27368 ;
27369 return 0;
27370}
27371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027372if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027373 ac_cv_lib_socket_connect=yes
27374else
cristy8b350f62009-11-15 23:12:43 +000027375 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027376fi
cristy8b350f62009-11-15 23:12:43 +000027377rm -f core conftest.err conftest.$ac_objext \
27378 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027379LIBS=$ac_check_lib_save_LIBS
27380fi
cristy8b350f62009-11-15 23:12:43 +000027381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027382$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027383if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027384 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27385fi
27386
27387 fi
27388
27389 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027390 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027391if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027392
cristy3ed852e2009-09-05 21:47:34 +000027393fi
27394
cristy3ed852e2009-09-05 21:47:34 +000027395 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027397$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027398if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 $as_echo_n "(cached) " >&6
27400else
27401 ac_check_lib_save_LIBS=$LIBS
27402LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027404/* end confdefs.h. */
27405
27406/* Override any GCC internal prototype to avoid an error.
27407 Use char because int might match the return type of a GCC
27408 builtin and then its argument prototype would still apply. */
27409#ifdef __cplusplus
27410extern "C"
27411#endif
27412char remove ();
27413int
27414main ()
27415{
27416return remove ();
27417 ;
27418 return 0;
27419}
27420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 ac_cv_lib_posix_remove=yes
27423else
cristy8b350f62009-11-15 23:12:43 +000027424 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027425fi
cristy8b350f62009-11-15 23:12:43 +000027426rm -f core conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428LIBS=$ac_check_lib_save_LIBS
27429fi
cristy8b350f62009-11-15 23:12:43 +000027430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027432if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27434fi
27435
27436 fi
27437
27438 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027439 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027440if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027441
cristy3ed852e2009-09-05 21:47:34 +000027442fi
27443
cristy3ed852e2009-09-05 21:47:34 +000027444 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027446$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027447if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027448 $as_echo_n "(cached) " >&6
27449else
27450 ac_check_lib_save_LIBS=$LIBS
27451LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027453/* end confdefs.h. */
27454
27455/* Override any GCC internal prototype to avoid an error.
27456 Use char because int might match the return type of a GCC
27457 builtin and then its argument prototype would still apply. */
27458#ifdef __cplusplus
27459extern "C"
27460#endif
27461char shmat ();
27462int
27463main ()
27464{
27465return shmat ();
27466 ;
27467 return 0;
27468}
27469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027470if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027471 ac_cv_lib_ipc_shmat=yes
27472else
cristy8b350f62009-11-15 23:12:43 +000027473 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027474fi
cristy8b350f62009-11-15 23:12:43 +000027475rm -f core conftest.err conftest.$ac_objext \
27476 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027477LIBS=$ac_check_lib_save_LIBS
27478fi
cristy8b350f62009-11-15 23:12:43 +000027479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027481if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27483fi
27484
27485 fi
27486 fi
27487
27488 # Check for libraries that X11R6 Xt/Xaw programs need.
27489 ac_save_LDFLAGS=$LDFLAGS
27490 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27491 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27492 # check for ICE first), but we must link in the order -lSM -lICE or
27493 # we get undefined symbols. So assume we have SM if we have ICE.
27494 # These have to be linked with before -lX11, unlike the other
27495 # libraries we check for below, so use a different variable.
27496 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027498$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027499if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027500 $as_echo_n "(cached) " >&6
27501else
27502 ac_check_lib_save_LIBS=$LIBS
27503LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027505/* end confdefs.h. */
27506
27507/* Override any GCC internal prototype to avoid an error.
27508 Use char because int might match the return type of a GCC
27509 builtin and then its argument prototype would still apply. */
27510#ifdef __cplusplus
27511extern "C"
27512#endif
27513char IceConnectionNumber ();
27514int
27515main ()
27516{
27517return IceConnectionNumber ();
27518 ;
27519 return 0;
27520}
27521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027523 ac_cv_lib_ICE_IceConnectionNumber=yes
27524else
cristy8b350f62009-11-15 23:12:43 +000027525 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027526fi
cristy8b350f62009-11-15 23:12:43 +000027527rm -f core conftest.err conftest.$ac_objext \
27528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027529LIBS=$ac_check_lib_save_LIBS
27530fi
cristy8b350f62009-11-15 23:12:43 +000027531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027533if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027534 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27535fi
27536
27537 LDFLAGS=$ac_save_LDFLAGS
27538
27539fi
27540
27541if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027542 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27543$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027545$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027546 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27547$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027548 LDFLAGS="$LDFLAGS $X_LIBS"
27549 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27550 LIBS="$X11_LIBS $LIBS"
27551 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27552
27553
cristy8b350f62009-11-15 23:12:43 +000027554$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027555
27556 #
27557 # Check for X11 shared memory extension
27558 #
27559 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027560 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027561if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027562 have_shmctl='yes'
27563fi
27564
27565 if test "$have_shmctl" != 'yes'; then
27566 PERSIST_LIBS=$LIBS
27567 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027569/* end confdefs.h. */
27570
27571/* Override any GCC internal prototype to avoid an error.
27572 Use char because int might match the return type of a GCC
27573 builtin and then its argument prototype would still apply. */
27574#ifdef __cplusplus
27575extern "C"
27576#endif
27577char shmctl ();
27578int
27579main ()
27580{
27581return shmctl ();
27582 ;
27583 return 0;
27584}
27585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027586if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027587 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027588fi
cristy8b350f62009-11-15 23:12:43 +000027589rm -f core conftest.err conftest.$ac_objext \
27590 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027591 LIBS=$PERSIST_LIBS
27592 fi
27593
27594 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027596$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027597if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027598 $as_echo_n "(cached) " >&6
27599else
27600 ac_check_lib_save_LIBS=$LIBS
27601LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027603/* end confdefs.h. */
27604
27605/* Override any GCC internal prototype to avoid an error.
27606 Use char because int might match the return type of a GCC
27607 builtin and then its argument prototype would still apply. */
27608#ifdef __cplusplus
27609extern "C"
27610#endif
27611char XShmAttach ();
27612int
27613main ()
27614{
27615return XShmAttach ();
27616 ;
27617 return 0;
27618}
27619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 ac_cv_lib_Xext_XShmAttach=yes
27622else
cristy8b350f62009-11-15 23:12:43 +000027623 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027624fi
cristy8b350f62009-11-15 23:12:43 +000027625rm -f core conftest.err conftest.$ac_objext \
27626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627LIBS=$ac_check_lib_save_LIBS
27628fi
cristy8b350f62009-11-15 23:12:43 +000027629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027630$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027631if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027632 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027633$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027634
27635fi
27636
27637 fi
27638
27639 #
27640 # Check for X11 shape extension
27641 #
cristy8b350f62009-11-15 23:12:43 +000027642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027643$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027644if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 $as_echo_n "(cached) " >&6
27646else
27647 ac_check_lib_save_LIBS=$LIBS
27648LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027650/* end confdefs.h. */
27651
27652/* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27655#ifdef __cplusplus
27656extern "C"
27657#endif
27658char XShapeCombineMask ();
27659int
27660main ()
27661{
27662return XShapeCombineMask ();
27663 ;
27664 return 0;
27665}
27666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027668 ac_cv_lib_Xext_XShapeCombineMask=yes
27669else
cristy8b350f62009-11-15 23:12:43 +000027670 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027671fi
cristy8b350f62009-11-15 23:12:43 +000027672rm -f core conftest.err conftest.$ac_objext \
27673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027674LIBS=$ac_check_lib_save_LIBS
27675fi
cristy8b350f62009-11-15 23:12:43 +000027676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027677$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027678if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027679 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027680$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027681
27682fi
27683
cristy8b350f62009-11-15 23:12:43 +000027684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027685$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027686if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027687 $as_echo_n "(cached) " >&6
27688else
27689 ac_check_lib_save_LIBS=$LIBS
27690LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027692/* end confdefs.h. */
27693
27694/* Override any GCC internal prototype to avoid an error.
27695 Use char because int might match the return type of a GCC
27696 builtin and then its argument prototype would still apply. */
27697#ifdef __cplusplus
27698extern "C"
27699#endif
27700char XtSetEventDispatcher ();
27701int
27702main ()
27703{
27704return XtSetEventDispatcher ();
27705 ;
27706 return 0;
27707}
27708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027709if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027710 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27711else
cristy8b350f62009-11-15 23:12:43 +000027712 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027713fi
cristy8b350f62009-11-15 23:12:43 +000027714rm -f core conftest.err conftest.$ac_objext \
27715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027716LIBS=$ac_check_lib_save_LIBS
27717fi
cristy8b350f62009-11-15 23:12:43 +000027718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027719$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027720if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 XT_LIBS='-lXt'
27722fi
27723
27724 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27725fi
27726if test "$no_x" != 'yes'; then
27727 have_x='yes'
27728else
27729 have_x='no'
27730fi
cristy73bd4a52010-10-05 11:24:23 +000027731 if test "$have_x" = 'yes'; then
27732 X11_DELEGATE_TRUE=
27733 X11_DELEGATE_FALSE='#'
27734else
27735 X11_DELEGATE_TRUE='#'
27736 X11_DELEGATE_FALSE=
27737fi
27738
cristy3ed852e2009-09-05 21:47:34 +000027739
27740
27741
27742
27743#
27744# Check for ZLIB
27745#
27746
27747# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027748if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027749 withval=$with_zlib; with_zlib=$withval
27750else
27751 with_zlib='yes'
27752fi
27753
27754
27755if test "$with_zlib" != 'yes'; then
27756 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27757fi
27758
27759have_zlib='no'
27760ZLIB_LIBS=''
27761if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27763$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027765$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027766 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27767$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027768 ZLIB_LIBS=''
27769 failed=0
27770 passed=0
cristy8b350f62009-11-15 23:12:43 +000027771 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027772if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 passed=`expr $passed + 1`
27774else
27775 failed=`expr $failed + 1`
27776fi
27777
27778
cristy8b350f62009-11-15 23:12:43 +000027779 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027780if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027781 passed=`expr $passed + 1`
27782else
27783 failed=`expr $failed + 1`
27784fi
27785
27786
cristy8b350f62009-11-15 23:12:43 +000027787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027788$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027789if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027790 $as_echo_n "(cached) " >&6
27791else
27792 ac_check_lib_save_LIBS=$LIBS
27793LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027795/* end confdefs.h. */
27796
27797/* Override any GCC internal prototype to avoid an error.
27798 Use char because int might match the return type of a GCC
27799 builtin and then its argument prototype would still apply. */
27800#ifdef __cplusplus
27801extern "C"
27802#endif
27803char compress ();
27804int
27805main ()
27806{
27807return compress ();
27808 ;
27809 return 0;
27810}
27811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 ac_cv_lib_z_compress=yes
27814else
cristy8b350f62009-11-15 23:12:43 +000027815 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027816fi
cristy8b350f62009-11-15 23:12:43 +000027817rm -f core conftest.err conftest.$ac_objext \
27818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027819LIBS=$ac_check_lib_save_LIBS
27820fi
cristy8b350f62009-11-15 23:12:43 +000027821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027822$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027823if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 passed=`expr $passed + 1`
27825else
27826 failed=`expr $failed + 1`
27827fi
27828
cristy8b350f62009-11-15 23:12:43 +000027829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027830$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027831if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027832 $as_echo_n "(cached) " >&6
27833else
27834 ac_check_lib_save_LIBS=$LIBS
27835LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027837/* end confdefs.h. */
27838
27839/* Override any GCC internal prototype to avoid an error.
27840 Use char because int might match the return type of a GCC
27841 builtin and then its argument prototype would still apply. */
27842#ifdef __cplusplus
27843extern "C"
27844#endif
27845char uncompress ();
27846int
27847main ()
27848{
27849return uncompress ();
27850 ;
27851 return 0;
27852}
27853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 ac_cv_lib_z_uncompress=yes
27856else
cristy8b350f62009-11-15 23:12:43 +000027857 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027858fi
cristy8b350f62009-11-15 23:12:43 +000027859rm -f core conftest.err conftest.$ac_objext \
27860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027861LIBS=$ac_check_lib_save_LIBS
27862fi
cristy8b350f62009-11-15 23:12:43 +000027863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027864$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027865if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 passed=`expr $passed + 1`
27867else
27868 failed=`expr $failed + 1`
27869fi
27870
cristy8b350f62009-11-15 23:12:43 +000027871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027872$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027873if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 $as_echo_n "(cached) " >&6
27875else
27876 ac_check_lib_save_LIBS=$LIBS
27877LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027879/* end confdefs.h. */
27880
27881/* Override any GCC internal prototype to avoid an error.
27882 Use char because int might match the return type of a GCC
27883 builtin and then its argument prototype would still apply. */
27884#ifdef __cplusplus
27885extern "C"
27886#endif
27887char deflate ();
27888int
27889main ()
27890{
27891return deflate ();
27892 ;
27893 return 0;
27894}
27895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 ac_cv_lib_z_deflate=yes
27898else
cristy8b350f62009-11-15 23:12:43 +000027899 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027900fi
cristy8b350f62009-11-15 23:12:43 +000027901rm -f core conftest.err conftest.$ac_objext \
27902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027903LIBS=$ac_check_lib_save_LIBS
27904fi
cristy8b350f62009-11-15 23:12:43 +000027905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027907if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 passed=`expr $passed + 1`
27909else
27910 failed=`expr $failed + 1`
27911fi
27912
cristy8b350f62009-11-15 23:12:43 +000027913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027914$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027915if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 $as_echo_n "(cached) " >&6
27917else
27918 ac_check_lib_save_LIBS=$LIBS
27919LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027921/* end confdefs.h. */
27922
27923/* Override any GCC internal prototype to avoid an error.
27924 Use char because int might match the return type of a GCC
27925 builtin and then its argument prototype would still apply. */
27926#ifdef __cplusplus
27927extern "C"
27928#endif
27929char inflate ();
27930int
27931main ()
27932{
27933return inflate ();
27934 ;
27935 return 0;
27936}
27937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027939 ac_cv_lib_z_inflate=yes
27940else
cristy8b350f62009-11-15 23:12:43 +000027941 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027942fi
cristy8b350f62009-11-15 23:12:43 +000027943rm -f core conftest.err conftest.$ac_objext \
27944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027945LIBS=$ac_check_lib_save_LIBS
27946fi
cristy8b350f62009-11-15 23:12:43 +000027947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027948$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027949if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 passed=`expr $passed + 1`
27951else
27952 failed=`expr $failed + 1`
27953fi
27954
cristy8b350f62009-11-15 23:12:43 +000027955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027956$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027957if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 $as_echo_n "(cached) " >&6
27959else
27960 ac_check_lib_save_LIBS=$LIBS
27961LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027963/* end confdefs.h. */
27964
27965/* Override any GCC internal prototype to avoid an error.
27966 Use char because int might match the return type of a GCC
27967 builtin and then its argument prototype would still apply. */
27968#ifdef __cplusplus
27969extern "C"
27970#endif
27971char gzseek ();
27972int
27973main ()
27974{
27975return gzseek ();
27976 ;
27977 return 0;
27978}
27979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027981 ac_cv_lib_z_gzseek=yes
27982else
cristy8b350f62009-11-15 23:12:43 +000027983 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027984fi
cristy8b350f62009-11-15 23:12:43 +000027985rm -f core conftest.err conftest.$ac_objext \
27986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027987LIBS=$ac_check_lib_save_LIBS
27988fi
cristy8b350f62009-11-15 23:12:43 +000027989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027990$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027991if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027992 passed=`expr $passed + 1`
27993else
27994 failed=`expr $failed + 1`
27995fi
27996
cristy8b350f62009-11-15 23:12:43 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027998$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027999if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 $as_echo_n "(cached) " >&6
28001else
28002 ac_check_lib_save_LIBS=$LIBS
28003LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005/* end confdefs.h. */
28006
28007/* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010#ifdef __cplusplus
28011extern "C"
28012#endif
28013char gztell ();
28014int
28015main ()
28016{
28017return gztell ();
28018 ;
28019 return 0;
28020}
28021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 ac_cv_lib_z_gztell=yes
28024else
cristy8b350f62009-11-15 23:12:43 +000028025 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028026fi
cristy8b350f62009-11-15 23:12:43 +000028027rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028029LIBS=$ac_check_lib_save_LIBS
28030fi
cristy8b350f62009-11-15 23:12:43 +000028031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028033if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 passed=`expr $passed + 1`
28035else
28036 failed=`expr $failed + 1`
28037fi
28038
cristy8b350f62009-11-15 23:12:43 +000028039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028040$as_echo_n "checking if ZLIB package is complete... " >&6; }
28041 if test $passed -gt 0; then
28042 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028043 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28044$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028045 have_zlib='no (failed tests)'
28046 else
28047 ZLIB_LIBS='-lz'
28048 LIBS="$ZLIB_LIBS $LIBS"
28049
cristy8b350f62009-11-15 23:12:43 +000028050$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028051
cristy09b53e12011-10-14 12:47:22 +000028052 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28053$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028054 have_zlib='yes'
28055 fi
28056 else
cristy09b53e12011-10-14 12:47:22 +000028057 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28058$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028059 fi
28060fi
cristy73bd4a52010-10-05 11:24:23 +000028061 if test "$have_zlib" = 'yes'; then
28062 ZLIB_DELEGATE_TRUE=
28063 ZLIB_DELEGATE_FALSE='#'
28064else
28065 ZLIB_DELEGATE_TRUE='#'
28066 ZLIB_DELEGATE_FALSE=
28067fi
28068
cristy3ed852e2009-09-05 21:47:34 +000028069
28070
28071#
28072# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28073#
28074LIB_DL=''
28075if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028077$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028078if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028079 $as_echo_n "(cached) " >&6
28080else
28081 ac_check_lib_save_LIBS=$LIBS
28082LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028084/* end confdefs.h. */
28085
28086/* Override any GCC internal prototype to avoid an error.
28087 Use char because int might match the return type of a GCC
28088 builtin and then its argument prototype would still apply. */
28089#ifdef __cplusplus
28090extern "C"
28091#endif
28092char dlopen ();
28093int
28094main ()
28095{
28096return dlopen ();
28097 ;
28098 return 0;
28099}
28100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028101if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028102 ac_cv_lib_dl_dlopen=yes
28103else
cristy8b350f62009-11-15 23:12:43 +000028104 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028105fi
cristy8b350f62009-11-15 23:12:43 +000028106rm -f core conftest.err conftest.$ac_objext \
28107 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028108LIBS=$ac_check_lib_save_LIBS
28109fi
cristy8b350f62009-11-15 23:12:43 +000028110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028111$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028112if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028113 LIB_DL='-ldl'
28114fi
28115
28116 LIBS="$LIB_DL $LIBS"
28117fi
28118
28119
28120
28121#
28122# Check for Autotrace delegate library.
28123#
28124
28125# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028126if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028127 withval=$with_autotrace; with_autotrace=$withval
28128else
28129 with_autotrace='no'
28130fi
28131
28132
28133if test "$with_autotrace" != 'yes'; then
28134 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28135fi
28136
28137have_autotrace='no'
28138AUTOTRACE_CFLAGS=""
28139AUTOTRACE_LIBS=""
28140AUTOTRACE_PKG=""
28141if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28143$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028144
28145pkg_failed=no
28146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28147$as_echo_n "checking for AUTOTRACE... " >&6; }
28148
28149if test -n "$AUTOTRACE_CFLAGS"; then
28150 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28151 elif test -n "$PKG_CONFIG"; then
28152 if test -n "$PKG_CONFIG" && \
28153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28154 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28155 ac_status=$?
28156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28157 test $ac_status = 0; }; then
28158 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28159else
28160 pkg_failed=yes
28161fi
28162 else
28163 pkg_failed=untried
28164fi
28165if test -n "$AUTOTRACE_LIBS"; then
28166 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28167 elif test -n "$PKG_CONFIG"; then
28168 if test -n "$PKG_CONFIG" && \
28169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28170 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28171 ac_status=$?
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; then
28174 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28175else
28176 pkg_failed=yes
28177fi
28178 else
28179 pkg_failed=untried
28180fi
28181
28182
28183
28184if test $pkg_failed = yes; then
28185
28186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28187 _pkg_short_errors_supported=yes
28188else
28189 _pkg_short_errors_supported=no
28190fi
28191 if test $_pkg_short_errors_supported = yes; then
28192 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28193 else
28194 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28195 fi
28196 # Put the nasty error message in config.log where it belongs
28197 echo "$AUTOTRACE_PKG_ERRORS" >&5
28198
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28200$as_echo "no" >&6; }
28201 have_autotrace=no
28202elif test $pkg_failed = untried; then
28203 have_autotrace=no
28204else
28205 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28206 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28208$as_echo "yes" >&6; }
28209 have_autotrace=yes
28210fi
cristy09b53e12011-10-14 12:47:22 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28212$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028213fi
28214
28215if test "$have_autotrace" = 'yes'; then
28216 failed=0
28217
cristy8b350f62009-11-15 23:12:43 +000028218$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028219
28220 if test "$with_modules" = 'no'; then
28221 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28222 fi
28223fi
28224
cristy73bd4a52010-10-05 11:24:23 +000028225 if test "$have_autotrace" = 'yes'; then
28226 AUTOTRACE_DELEGATE_TRUE=
28227 AUTOTRACE_DELEGATE_FALSE='#'
28228else
28229 AUTOTRACE_DELEGATE_TRUE='#'
28230 AUTOTRACE_DELEGATE_FALSE=
28231fi
28232
cristy3ed852e2009-09-05 21:47:34 +000028233
28234
28235
28236
28237#
28238# Check for Display Postscript delegate library.
28239#
28240
28241# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028242if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028243 withval=$with_dps; with_dps=$withval
28244else
28245 with_dps='yes'
28246fi
28247
28248
28249if test "$with_dps" != 'yes'; then
28250 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28251fi
28252
28253have_dps='no'
28254DPS_LIBS=''
28255if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28257$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028260 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28261$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028262 failed=0
28263 passed=0
28264 PERSIST_CPPFLAGS="$CPPFLAGS"
28265 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028266 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 +000028267if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 passed=`expr $passed + 1`
28269else
28270 failed=`expr $failed + 1`
28271fi
28272
28273
28274 # DPS issues:
28275 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28276 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28277 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28278 # ImageMagick itself doesn't use -lXt.
28279 have_libdps='no'
28280 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028283if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 $as_echo_n "(cached) " >&6
28285else
28286 ac_check_lib_save_LIBS=$LIBS
28287LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028289/* end confdefs.h. */
28290
28291/* Override any GCC internal prototype to avoid an error.
28292 Use char because int might match the return type of a GCC
28293 builtin and then its argument prototype would still apply. */
28294#ifdef __cplusplus
28295extern "C"
28296#endif
28297char DPSInitialize ();
28298int
28299main ()
28300{
28301return DPSInitialize ();
28302 ;
28303 return 0;
28304}
28305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028306if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 ac_cv_lib_dps_DPSInitialize=yes
28308else
cristy8b350f62009-11-15 23:12:43 +000028309 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028310fi
cristy8b350f62009-11-15 23:12:43 +000028311rm -f core conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028313LIBS=$ac_check_lib_save_LIBS
28314fi
cristy8b350f62009-11-15 23:12:43 +000028315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028317if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 have_libdps='yes'
28319else
28320 have_libdps='no'
28321fi
28322
28323 if test "$have_libdps" != 'yes'; then
28324 # Unset cache variable so we can try again.
28325 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028327$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028328if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028329 $as_echo_n "(cached) " >&6
28330else
28331 ac_check_lib_save_LIBS=$LIBS
28332LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028334/* end confdefs.h. */
28335
28336/* Override any GCC internal prototype to avoid an error.
28337 Use char because int might match the return type of a GCC
28338 builtin and then its argument prototype would still apply. */
28339#ifdef __cplusplus
28340extern "C"
28341#endif
28342char DPSInitialize ();
28343int
28344main ()
28345{
28346return DPSInitialize ();
28347 ;
28348 return 0;
28349}
28350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 ac_cv_lib_dps_DPSInitialize=yes
28353else
cristy8b350f62009-11-15 23:12:43 +000028354 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028355fi
cristy8b350f62009-11-15 23:12:43 +000028356rm -f core conftest.err conftest.$ac_objext \
28357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028358LIBS=$ac_check_lib_save_LIBS
28359fi
cristy8b350f62009-11-15 23:12:43 +000028360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028361$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028362if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028363 have_libdps='yes'
28364else
28365 have_libdps='no'
28366fi
28367
28368 if test "$have_libdps" = 'yes'; then
28369 LIBDPS_XT='-lXt'
28370 fi
28371 fi
28372 if test "$have_libdps" = 'yes'; then
28373 passed=`expr $passed + 1`
28374 else
28375 failed=`expr $failed + 1`
28376 fi
cristy8b350f62009-11-15 23:12:43 +000028377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028378$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028379if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028380 $as_echo_n "(cached) " >&6
28381else
28382 ac_check_lib_save_LIBS=$LIBS
28383LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028385/* end confdefs.h. */
28386
28387/* Override any GCC internal prototype to avoid an error.
28388 Use char because int might match the return type of a GCC
28389 builtin and then its argument prototype would still apply. */
28390#ifdef __cplusplus
28391extern "C"
28392#endif
28393char XDPSPixelsPerPoint ();
28394int
28395main ()
28396{
28397return XDPSPixelsPerPoint ();
28398 ;
28399 return 0;
28400}
28401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028403 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28404else
cristy8b350f62009-11-15 23:12:43 +000028405 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028406fi
cristy8b350f62009-11-15 23:12:43 +000028407rm -f core conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028409LIBS=$ac_check_lib_save_LIBS
28410fi
cristy8b350f62009-11-15 23:12:43 +000028411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028412$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028413if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028414 passed=`expr $passed + 1`
28415else
28416 failed=`expr $failed + 1`
28417fi
28418
cristy8b350f62009-11-15 23:12:43 +000028419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028420$as_echo_n "checking if DPS package is complete... " >&6; }
28421 if test $passed -gt 0; then
28422 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28424$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028425 have_dps='no (failed tests)'
28426 CPPFLAGS="$PERSIST_CPPFLAGS"
28427 else
28428 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28429 LIBS="$DPS_LIBS $LIBS"
28430
cristy8b350f62009-11-15 23:12:43 +000028431$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028432
cristy09b53e12011-10-14 12:47:22 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28434$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028435 have_dps='yes'
28436 fi
28437 else
cristy09b53e12011-10-14 12:47:22 +000028438 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28439$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028440 CPPFLAGS=$PERSIST_CPPFLAGS
28441 fi
28442fi
cristy73bd4a52010-10-05 11:24:23 +000028443 if test "$have_dps" = 'yes'; then
28444 DPS_DELEGATE_TRUE=
28445 DPS_DELEGATE_FALSE='#'
28446else
28447 DPS_DELEGATE_TRUE='#'
28448 DPS_DELEGATE_FALSE=
28449fi
28450
cristy3ed852e2009-09-05 21:47:34 +000028451
28452
28453
28454#
28455# Check for DJVU delegate library.
28456#
28457
28458# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028459if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028460 withval=$with_djvu; with_djvu=$withval
28461else
28462 with_djvu='yes'
28463fi
28464
28465
28466if test "$with_djvu" != 'yes'; then
28467 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28468fi
28469
28470have_djvu='no'
28471DJVU_LIBS=''
28472if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028473 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28474$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028477 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28478$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028479 failed=0
28480 passed=0
cristy8b350f62009-11-15 23:12:43 +000028481 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 +000028482if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028483 passed=`expr $passed + 1`
28484else
28485 failed=`expr $failed + 1`
28486fi
28487
28488
cristy8b350f62009-11-15 23:12:43 +000028489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028490$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028491if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 $as_echo_n "(cached) " >&6
28493else
28494 ac_check_lib_save_LIBS=$LIBS
28495LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028497/* end confdefs.h. */
28498
28499/* Override any GCC internal prototype to avoid an error.
28500 Use char because int might match the return type of a GCC
28501 builtin and then its argument prototype would still apply. */
28502#ifdef __cplusplus
28503extern "C"
28504#endif
28505char ddjvu_context_create ();
28506int
28507main ()
28508{
28509return ddjvu_context_create ();
28510 ;
28511 return 0;
28512}
28513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028514if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28516else
cristy8b350f62009-11-15 23:12:43 +000028517 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028518fi
cristy8b350f62009-11-15 23:12:43 +000028519rm -f core conftest.err conftest.$ac_objext \
28520 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028521LIBS=$ac_check_lib_save_LIBS
28522fi
cristy8b350f62009-11-15 23:12:43 +000028523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028524$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028525if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028526 passed=`expr $passed + 1`
28527else
28528 failed=`expr $failed + 1`
28529fi
28530
cristy8b350f62009-11-15 23:12:43 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo_n "checking if DJVU package is complete... " >&6; }
28533 if test $passed -gt 0; then
28534 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028535 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28536$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028537 have_djvu='no (failed tests)'
28538 else
28539 DJVU_LIBS='-ldjvulibre'
28540 LIBS="$DJVU_LIBS $LIBS"
28541
cristy8b350f62009-11-15 23:12:43 +000028542$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028543
cristy09b53e12011-10-14 12:47:22 +000028544 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28545$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028546 have_djvu='yes'
28547 fi
28548 else
cristy09b53e12011-10-14 12:47:22 +000028549 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28550$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028551 fi
28552fi
cristy73bd4a52010-10-05 11:24:23 +000028553 if test "$have_djvu" = 'yes'; then
28554 DJVU_DELEGATE_TRUE=
28555 DJVU_DELEGATE_FALSE='#'
28556else
28557 DJVU_DELEGATE_TRUE='#'
28558 DJVU_DELEGATE_FALSE=
28559fi
28560
cristy3ed852e2009-09-05 21:47:34 +000028561
28562
28563
28564#
cristy430a7312010-01-21 20:44:04 +000028565# Set DejaVu font directory.
28566#
28567
28568# Check whether --with-dejavu-font-dir was given.
28569if test "${with_dejavu_font_dir+set}" = set; then :
28570 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28571else
28572 with_dejavu_font_dir='default'
28573fi
28574
28575
28576if test "$with_dejavu_font_dir" != 'default'; then
28577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28578fi
28579
28580
28581#
cristy3ed852e2009-09-05 21:47:34 +000028582# Check for FFTW delegate library.
28583#
28584
28585# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028586if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028587 withval=$with_fftw; with_fftw=$withval
28588else
28589 with_fftw='yes'
28590fi
28591
28592
28593if test "$with_fftw" != 'yes'; then
28594 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28595fi
28596
cristy81beccd2011-10-03 18:17:24 +000028597have_fftw='no'
28598FFTW_LIBS=''
28599if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28601$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28603$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028604 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28605$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028606 failed=0
28607 passed=0
28608 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28609if test "x$ac_cv_header_fftw3_h" = xyes; then :
28610 passed=`expr $passed + 1`
28611else
28612 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028613fi
28614
cristy81beccd2011-10-03 18:17:24 +000028615
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28617$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28618if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28619 $as_echo_n "(cached) " >&6
28620else
28621 ac_check_lib_save_LIBS=$LIBS
28622LIBS="-lfftw3 $LIBS"
28623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28624/* end confdefs.h. */
28625
28626/* Override any GCC internal prototype to avoid an error.
28627 Use char because int might match the return type of a GCC
28628 builtin and then its argument prototype would still apply. */
28629#ifdef __cplusplus
28630extern "C"
28631#endif
28632char fftw_execute ();
28633int
28634main ()
28635{
28636return fftw_execute ();
28637 ;
28638 return 0;
28639}
28640_ACEOF
28641if ac_fn_c_try_link "$LINENO"; then :
28642 ac_cv_lib_fftw3_fftw_execute=yes
28643else
28644 ac_cv_lib_fftw3_fftw_execute=no
28645fi
28646rm -f core conftest.err conftest.$ac_objext \
28647 conftest$ac_exeext conftest.$ac_ext
28648LIBS=$ac_check_lib_save_LIBS
28649fi
28650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28651$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28652if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28653 passed=`expr $passed + 1`
28654else
28655 failed=`expr $failed + 1`
28656fi
28657
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28659$as_echo_n "checking if FFTW package is complete... " >&6; }
28660 if test $passed -gt 0; then
28661 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028662 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28663$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028664 have_fftw='no (failed tests)'
28665 else
28666 FFTW_LIBS='-lfftw3'
28667 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028668
cristy8b350f62009-11-15 23:12:43 +000028669$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028670
cristy09b53e12011-10-14 12:47:22 +000028671 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28672$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028673 have_fftw='yes'
28674 fi
28675 else
cristy09b53e12011-10-14 12:47:22 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28677$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028678 fi
28679fi
cristy73bd4a52010-10-05 11:24:23 +000028680 if test "$have_fftw" = 'yes'; then
28681 FFTW_DELEGATE_TRUE=
28682 FFTW_DELEGATE_FALSE='#'
28683else
28684 FFTW_DELEGATE_TRUE='#'
28685 FFTW_DELEGATE_FALSE=
28686fi
28687
cristy3ed852e2009-09-05 21:47:34 +000028688
28689
28690
28691#
28692# Check for FlashPIX delegate library.
28693#
28694
28695# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028696if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028697 withval=$with_fpx; with_fpx=$withval
28698else
28699 with_fpx='yes'
28700fi
28701
28702
28703if test "$with_fpx" != 'yes'; then
28704 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28705fi
28706
28707have_fpx='no'
28708FPX_LIBS=''
28709if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028710 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28711$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028713$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028714 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28715$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028716 failed=0
28717 passed=0
28718 ac_ext=cpp
28719ac_cpp='$CXXCPP $CPPFLAGS'
28720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28723
28724
cristy8b350f62009-11-15 23:12:43 +000028725ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028726if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028727 passed=`expr $passed + 1`
28728else
28729 failed=`expr $failed + 1`
28730fi
28731
28732
cristy8b350f62009-11-15 23:12:43 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028734$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028735if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028736 $as_echo_n "(cached) " >&6
28737else
28738 ac_check_lib_save_LIBS=$LIBS
28739LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028741/* end confdefs.h. */
28742
28743/* Override any GCC internal prototype to avoid an error.
28744 Use char because int might match the return type of a GCC
28745 builtin and then its argument prototype would still apply. */
28746#ifdef __cplusplus
28747extern "C"
28748#endif
28749char FPX_OpenImageByFilename ();
28750int
28751main ()
28752{
28753return FPX_OpenImageByFilename ();
28754 ;
28755 return 0;
28756}
28757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028758if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028759 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28760else
cristy8b350f62009-11-15 23:12:43 +000028761 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028762fi
cristy8b350f62009-11-15 23:12:43 +000028763rm -f core conftest.err conftest.$ac_objext \
28764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028765LIBS=$ac_check_lib_save_LIBS
28766fi
cristy8b350f62009-11-15 23:12:43 +000028767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028768$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028769if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028770 passed=`expr $passed + 1`
28771else
28772 failed=`expr $failed + 1`
28773fi
28774
28775 ac_ext=c
28776ac_cpp='$CPP $CPPFLAGS'
28777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28779ac_compiler_gnu=$ac_cv_c_compiler_gnu
28780
cristy8b350f62009-11-15 23:12:43 +000028781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028782$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28783 if test $passed -gt 0; then
28784 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028785 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28786$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028787 have_fpx='no (failed tests)'
28788 else
28789 FPX_LIBS='-lfpx'
28790
cristy8b350f62009-11-15 23:12:43 +000028791$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028792
cristy09b53e12011-10-14 12:47:22 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28794$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028795 have_fpx='yes'
28796 PERLMAINCC="$CXX"
28797 fi
28798 else
cristy09b53e12011-10-14 12:47:22 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28800$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028801 fi
28802fi
cristy73bd4a52010-10-05 11:24:23 +000028803 if test "$have_fpx" = 'yes'; then
28804 FPX_DELEGATE_TRUE=
28805 FPX_DELEGATE_FALSE='#'
28806else
28807 FPX_DELEGATE_TRUE='#'
28808 FPX_DELEGATE_FALSE=
28809fi
28810
cristy3ed852e2009-09-05 21:47:34 +000028811
28812
28813
28814#
28815# Check for fontconfig delegate library.
28816#
28817
28818# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028819if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028820 withval=$with_fontconfig; with_fontconfig=$withval
28821else
28822 with_fontconfig=$have_x
28823fi
28824
28825
28826if test "$with_fontconfig" != 'yes'; then
28827 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28828fi
28829
28830have_fontconfig='no'
28831FONTCONFIG_CFLAGS=""
28832FONTCONFIG_LIBS=""
28833FONTCONFIG_PKG=""
28834if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28836$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028837
28838pkg_failed=no
28839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28840$as_echo_n "checking for FONTCONFIG... " >&6; }
28841
28842if test -n "$FONTCONFIG_CFLAGS"; then
28843 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28844 elif test -n "$PKG_CONFIG"; then
28845 if test -n "$PKG_CONFIG" && \
28846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28847 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28848 ac_status=$?
28849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28850 test $ac_status = 0; }; then
28851 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28852else
28853 pkg_failed=yes
28854fi
28855 else
28856 pkg_failed=untried
28857fi
28858if test -n "$FONTCONFIG_LIBS"; then
28859 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28860 elif test -n "$PKG_CONFIG"; then
28861 if test -n "$PKG_CONFIG" && \
28862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28863 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28864 ac_status=$?
28865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28866 test $ac_status = 0; }; then
28867 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28868else
28869 pkg_failed=yes
28870fi
28871 else
28872 pkg_failed=untried
28873fi
28874
28875
28876
28877if test $pkg_failed = yes; then
28878
28879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28880 _pkg_short_errors_supported=yes
28881else
28882 _pkg_short_errors_supported=no
28883fi
28884 if test $_pkg_short_errors_supported = yes; then
28885 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28886 else
28887 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28888 fi
28889 # Put the nasty error message in config.log where it belongs
28890 echo "$FONTCONFIG_PKG_ERRORS" >&5
28891
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28893$as_echo "no" >&6; }
28894 have_fontconfig=no
28895elif test $pkg_failed = untried; then
28896 have_fontconfig=no
28897else
28898 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28899 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28901$as_echo "yes" >&6; }
28902 have_fontconfig=yes
28903fi
cristy09b53e12011-10-14 12:47:22 +000028904 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28905$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028906fi
28907
28908if test "$have_fontconfig" = 'yes'; then
28909
cristy8b350f62009-11-15 23:12:43 +000028910$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028911
cristyd09bcf92010-03-25 03:04:45 +000028912 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028913 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028914 fi
cristy3ed852e2009-09-05 21:47:34 +000028915fi
28916
cristy73bd4a52010-10-05 11:24:23 +000028917 if test "$have_fontconfig" = 'yes'; then
28918 FONTCONFIG_DELEGATE_TRUE=
28919 FONTCONFIG_DELEGATE_FALSE='#'
28920else
28921 FONTCONFIG_DELEGATE_TRUE='#'
28922 FONTCONFIG_DELEGATE_FALSE=
28923fi
28924
cristy3ed852e2009-09-05 21:47:34 +000028925
28926
28927
28928
28929#
cristy81beccd2011-10-03 18:17:24 +000028930# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028931#
28932
28933# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028934if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028935 withval=$with_freetype; with_freetype=$withval
28936else
28937 with_freetype='yes'
28938fi
28939
28940
cristy81beccd2011-10-03 18:17:24 +000028941
cristy3ed852e2009-09-05 21:47:34 +000028942if test "$with_freetype" != 'yes'; then
28943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28944fi
28945
cristy81beccd2011-10-03 18:17:24 +000028946have_freetype='no'
28947FREETYPE_LIBS=''
28948if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028949 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28950$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28952$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028953 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28954$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028955 failed=0
28956 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028957 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028958 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028959 freetype_config=''
28960 # Allow the user to specify the location of freetype.
28961 if test "$with_freetype" != 'yes'; then
28962 if test -x "${with_freetype}/bin/freetype-config"; then
28963 freetype_config="${with_freetype}/bin/freetype-config"
28964 elif test -x "${with_freetype}"; then
28965 freetype_config=${with_freetype}
28966 fi
28967 fi
28968 if test -z "$freetype_config"; then
28969 # Extract the first word of "freetype-config", so it can be a program name with args.
28970set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28972$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028973if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028974 $as_echo_n "(cached) " >&6
28975else
cristy98ca0f52011-10-08 23:19:10 +000028976 case $freetype_config in
28977 [\\/]* | ?:[\\/]*)
28978 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28979 ;;
28980 *)
28981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028982for as_dir in $PATH
28983do
28984 IFS=$as_save_IFS
28985 test -z "$as_dir" && as_dir=.
28986 for ac_exec_ext in '' $ac_executable_extensions; do
28987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028988 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28990 break 2
28991 fi
28992done
28993 done
28994IFS=$as_save_IFS
28995
cristy98ca0f52011-10-08 23:19:10 +000028996 ;;
28997esac
cristy81beccd2011-10-03 18:17:24 +000028998fi
cristy98ca0f52011-10-08 23:19:10 +000028999freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029000if test -n "$freetype_config"; then
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29002$as_echo "$freetype_config" >&6; }
29003else
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29005$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029006fi
29007
cristy98ca0f52011-10-08 23:19:10 +000029008 fi
29009 if test -n "$freetype_config"; then
29010 freetype_prefix=`${freetype_config} --prefix`
29011 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29012 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29013 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029014 fi
29015
29016 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029018$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29019if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29020 $as_echo_n "(cached) " >&6
29021else
29022 ac_check_lib_save_LIBS=$LIBS
29023LIBS="-lfreetype $LIBS"
29024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29025/* end confdefs.h. */
29026
29027/* Override any GCC internal prototype to avoid an error.
29028 Use char because int might match the return type of a GCC
29029 builtin and then its argument prototype would still apply. */
29030#ifdef __cplusplus
29031extern "C"
29032#endif
29033char FT_Init_FreeType ();
29034int
29035main ()
29036{
29037return FT_Init_FreeType ();
29038 ;
29039 return 0;
29040}
29041_ACEOF
29042if ac_fn_c_try_link "$LINENO"; then :
29043 ac_cv_lib_freetype_FT_Init_FreeType=yes
29044else
29045 ac_cv_lib_freetype_FT_Init_FreeType=no
29046fi
29047rm -f core conftest.err conftest.$ac_objext \
29048 conftest$ac_exeext conftest.$ac_ext
29049LIBS=$ac_check_lib_save_LIBS
29050fi
29051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29052$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29053if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29054 FREETYPE_LIBS='-lfreetype'
29055fi
29056
cristy98ca0f52011-10-08 23:19:10 +000029057 if test "$FREETYPE_LIBS" != ''; then
29058 passed=`expr $passed + 1`
29059 else
29060 failed=`expr $failed + 1`
29061 LDFLAGS="$PERSIST_LDFLAGS"
29062 fi
cristy81beccd2011-10-03 18:17:24 +000029063 fi
29064
29065 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29066if test "x$ac_cv_header_ft2build_h" = xyes; then :
29067 FT2BUILD_H='#include <ft2build.h>'
29068else
29069 ft2build=''
29070fi
29071
29072
29073 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29074"
29075if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29076 have_freetype_h='yes'
29077else
29078 have_freetype_h='no'
29079fi
29080
29081
cristy98ca0f52011-10-08 23:19:10 +000029082 if test "$have_freetype_h" = 'yes'; then
29083 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029084 else
cristy98ca0f52011-10-08 23:19:10 +000029085 failed=`expr $failed + 1`
29086 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029087 fi
29088
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29090$as_echo_n "checking if FreeType package is complete... " >&6; }
29091 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029092 if test $failed -gt 0; then
29093 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029094 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29095$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029096 have_freetype='no (failed tests)'
29097 else
29098 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029099
cristy8b350f62009-11-15 23:12:43 +000029100$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029101
cristy98ca0f52011-10-08 23:19:10 +000029102 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029103
29104$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29105
cristy81beccd2011-10-03 18:17:24 +000029106 fi
cristy09b53e12011-10-14 12:47:22 +000029107 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29108$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029109 have_freetype='yes'
29110 fi
cristy81beccd2011-10-03 18:17:24 +000029111 else
cristy09b53e12011-10-14 12:47:22 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29113$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029114 fi
29115fi
cristy73bd4a52010-10-05 11:24:23 +000029116 if test "$have_freetype" = 'yes'; then
29117 FREETYPE_DELEGATE_TRUE=
29118 FREETYPE_DELEGATE_FALSE='#'
29119else
29120 FREETYPE_DELEGATE_TRUE='#'
29121 FREETYPE_DELEGATE_FALSE=
29122fi
29123
cristy3ed852e2009-09-05 21:47:34 +000029124
29125
29126
cristy3ed852e2009-09-05 21:47:34 +000029127#
29128# Check for Ghostscript library or framework.
29129#
29130# Test for iapi.h & test for gsapi_new_instance in -lgs
29131# or -framework Ghostscript
29132
29133
29134# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029135if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029136 withval=$with_gslib; with_gslib=$withval
29137else
29138 with_gslib='no'
29139fi
29140
29141
cristyb7931f12009-09-25 10:22:21 +000029142gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029143if test "$with_gslib" != 'yes'; then
29144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29145fi
29146
29147have_gslib='no'
29148GS_LIBS=''
29149if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29151$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029153$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029154 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29155$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029156 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029157 failed=0
29158 passed=0
cristy8b350f62009-11-15 23:12:43 +000029159 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 +000029160if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029161 passed=`expr $passed + 1`
29162else
29163 failed=`expr $failed + 1`
29164fi
29165
29166
cristy8b350f62009-11-15 23:12:43 +000029167 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 +000029168if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029169 passed=`expr $passed + 1`
29170else
29171 failed=`expr $failed + 1`
29172fi
29173
29174
cristy73bd4a52010-10-05 11:24:23 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29176$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029177if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029178 $as_echo_n "(cached) " >&6
29179else
29180 ac_check_framework_save_LIBS=$LIBS
29181LIBS="-framework Ghostscript $LIBS"
29182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29183/* end confdefs.h. */
29184
29185/* Override any GCC internal prototype to avoid an error.
29186 Use char because int might match the return type of a GCC
29187 builtin and then its argument prototype would still apply. */
29188#ifdef __cplusplus
29189extern "C"
29190#endif
29191char gsapi_new_instance ();
29192int
29193main ()
29194{
29195return gsapi_new_instance ();
29196 ;
29197 return 0;
29198}
29199_ACEOF
29200if ac_fn_c_try_link "$LINENO"; then :
29201 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29202else
29203 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29204fi
29205rm -f core conftest.err conftest.$ac_objext \
29206 conftest$ac_exeext conftest.$ac_ext
29207LIBS=$ac_check_framework_save_LIBS
29208fi
29209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29210$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29211if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29212 framework=`expr $framework + 1`
29213else
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029215$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029216if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029217 $as_echo_n "(cached) " >&6
29218else
29219 ac_check_lib_save_LIBS=$LIBS
29220LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029222/* end confdefs.h. */
29223
29224/* Override any GCC internal prototype to avoid an error.
29225 Use char because int might match the return type of a GCC
29226 builtin and then its argument prototype would still apply. */
29227#ifdef __cplusplus
29228extern "C"
29229#endif
29230char gsapi_new_instance ();
29231int
29232main ()
29233{
29234return gsapi_new_instance ();
29235 ;
29236 return 0;
29237}
29238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029239if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029240 ac_cv_lib_gs_gsapi_new_instance=yes
29241else
cristy8b350f62009-11-15 23:12:43 +000029242 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029243fi
cristy8b350f62009-11-15 23:12:43 +000029244rm -f core conftest.err conftest.$ac_objext \
29245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029246LIBS=$ac_check_lib_save_LIBS
29247fi
cristy8b350f62009-11-15 23:12:43 +000029248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029249$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029250if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029251 passed=`expr $passed + 1`
29252else
29253 failed=`expr $failed + 1`
29254fi
cristy73bd4a52010-10-05 11:24:23 +000029255
29256fi
cristy8b350f62009-11-15 23:12:43 +000029257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029258$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29259 if test $passed -gt 0; then
29260 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029261 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29262$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029263 have_gslib='no (failed tests)'
29264 else
29265 if test $framework -gt 0; then
29266 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029267 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029268 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29269$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029270 else
cristy09b53e12011-10-14 12:47:22 +000029271 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29272$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029273 GS_LIBS='-lgs'
29274 fi
29275 LIBS="$GS_LIBS $LIBS"
29276
cristy8b350f62009-11-15 23:12:43 +000029277$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029278
29279 have_gslib='yes'
29280 fi
29281 else
cristy09b53e12011-10-14 12:47:22 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29283$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029284 fi
29285fi
cristy73bd4a52010-10-05 11:24:23 +000029286 if test "$have_gslib" = 'yes'; then
29287 GS_DELEGATE_TRUE=
29288 GS_DELEGATE_FALSE='#'
29289else
29290 GS_DELEGATE_TRUE='#'
29291 GS_DELEGATE_FALSE=
29292fi
29293
cristy3ed852e2009-09-05 21:47:34 +000029294
29295
29296# Set default font search path
29297
29298# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029299if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029300 withval=$with_fontpath; with_fontpath=$withval
29301else
29302 with_fontpath=''
29303fi
29304
29305
29306if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29307 with_fontpath=''
29308else
29309
29310cat >>confdefs.h <<_ACEOF
29311#define MAGICK_FONT_PATH "$with_fontpath"
29312_ACEOF
29313
29314fi
29315if test "$with_fontpath=" != ''; then
29316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29317fi
29318
29319# Set Ghostscript font directory
29320
29321# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029322if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029323 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29324else
29325 with_gs_font_dir='default'
29326fi
29327
29328
29329if test "$with_gs_font_dir" != 'default'; then
29330 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29331fi
29332
29333
29334#
29335# Check for GVC delegate library.
29336#
29337
29338# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029339if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029340 withval=$with_gvc; with_gvc=$withval
29341else
29342 with_gvc='yes'
29343fi
29344
29345
29346if test "$with_gvc" != 'yes'; then
29347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29348fi
29349
29350GVC_PKG=""
29351if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029352 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29353$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029354
29355pkg_failed=no
29356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29357$as_echo_n "checking for GVC... " >&6; }
29358
29359if test -n "$GVC_CFLAGS"; then
29360 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29361 elif test -n "$PKG_CONFIG"; then
29362 if test -n "$PKG_CONFIG" && \
29363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29364 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29365 ac_status=$?
29366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29367 test $ac_status = 0; }; then
29368 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29369else
29370 pkg_failed=yes
29371fi
29372 else
29373 pkg_failed=untried
29374fi
29375if test -n "$GVC_LIBS"; then
29376 pkg_cv_GVC_LIBS="$GVC_LIBS"
29377 elif test -n "$PKG_CONFIG"; then
29378 if test -n "$PKG_CONFIG" && \
29379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29380 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29381 ac_status=$?
29382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29383 test $ac_status = 0; }; then
29384 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29385else
29386 pkg_failed=yes
29387fi
29388 else
29389 pkg_failed=untried
29390fi
29391
29392
29393
29394if test $pkg_failed = yes; then
29395
29396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29397 _pkg_short_errors_supported=yes
29398else
29399 _pkg_short_errors_supported=no
29400fi
29401 if test $_pkg_short_errors_supported = yes; then
29402 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29403 else
29404 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29405 fi
29406 # Put the nasty error message in config.log where it belongs
29407 echo "$GVC_PKG_ERRORS" >&5
29408
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29410$as_echo "no" >&6; }
29411 have_gvc=no
29412elif test $pkg_failed = untried; then
29413 have_gvc=no
29414else
29415 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29416 GVC_LIBS=$pkg_cv_GVC_LIBS
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29418$as_echo "yes" >&6; }
29419 have_gvc=yes
29420fi
cristy09b53e12011-10-14 12:47:22 +000029421 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29422$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029423fi
29424
29425if test "$have_gvc" = 'yes'; then
29426
cristy8b350f62009-11-15 23:12:43 +000029427$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029428
29429 if test "$with_modules" = 'no'; then
29430 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29431 fi
29432fi
29433
cristy73bd4a52010-10-05 11:24:23 +000029434 if test "$have_gvc" = 'yes'; then
29435 GVC_DELEGATE_TRUE=
29436 GVC_DELEGATE_FALSE='#'
29437else
29438 GVC_DELEGATE_TRUE='#'
29439 GVC_DELEGATE_FALSE=
29440fi
29441
cristy3ed852e2009-09-05 21:47:34 +000029442
29443
29444
29445
29446#
29447# Check for JBIG delegate library.
29448#
29449
29450
29451# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029452if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029453 withval=$with_jbig; with_jbig=$withval
29454else
29455 with_jbig='yes'
29456fi
29457
29458
29459have_jbig='no'
29460JBIG_LIBS=''
29461if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29463$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029466 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29467$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029468 failed=0
29469 passed=0
cristy8b350f62009-11-15 23:12:43 +000029470 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029471if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029472 passed=`expr $passed + 1`
29473else
29474 failed=`expr $failed + 1`
29475fi
29476
29477
cristy8b350f62009-11-15 23:12:43 +000029478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029479$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029480if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029481 $as_echo_n "(cached) " >&6
29482else
29483 ac_check_lib_save_LIBS=$LIBS
29484LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029486/* end confdefs.h. */
29487
29488/* Override any GCC internal prototype to avoid an error.
29489 Use char because int might match the return type of a GCC
29490 builtin and then its argument prototype would still apply. */
29491#ifdef __cplusplus
29492extern "C"
29493#endif
29494char jbg_dec_init ();
29495int
29496main ()
29497{
29498return jbg_dec_init ();
29499 ;
29500 return 0;
29501}
29502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029503if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029504 ac_cv_lib_jbig_jbg_dec_init=yes
29505else
cristy8b350f62009-11-15 23:12:43 +000029506 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029507fi
cristy8b350f62009-11-15 23:12:43 +000029508rm -f core conftest.err conftest.$ac_objext \
29509 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029510LIBS=$ac_check_lib_save_LIBS
29511fi
cristy8b350f62009-11-15 23:12:43 +000029512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029513$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029514if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029515 passed=`expr $passed + 1`
29516else
29517 failed=`expr $failed + 1`
29518fi
29519
cristy8b350f62009-11-15 23:12:43 +000029520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029521$as_echo_n "checking if JBIG package is complete... " >&6; }
29522 if test $passed -gt 0; then
29523 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29525$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029526 have_jbig='no (failed tests)'
29527 else
29528 JBIG_LIBS='-ljbig'
29529 LIBS="$JBIG_LIBS $LIBS"
29530
cristy8b350f62009-11-15 23:12:43 +000029531$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029532
cristy09b53e12011-10-14 12:47:22 +000029533 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29534$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029535 have_jbig='yes'
29536 fi
29537 else
cristy09b53e12011-10-14 12:47:22 +000029538 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29539$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029540 fi
29541fi
cristy73bd4a52010-10-05 11:24:23 +000029542 if test "$have_jbig" = 'yes'; then
29543 JBIG_DELEGATE_TRUE=
29544 JBIG_DELEGATE_FALSE='#'
29545else
29546 JBIG_DELEGATE_TRUE='#'
29547 JBIG_DELEGATE_FALSE=
29548fi
29549
cristy3ed852e2009-09-05 21:47:34 +000029550
29551
29552
29553#
29554# Check for JPEG delegate library.
29555#
29556
29557# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029558if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029559 withval=$with_jpeg; with_jpeg=$withval
29560else
29561 with_jpeg='yes'
29562fi
29563
29564
29565if test "$with_jpeg" != 'yes'; then
29566 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29567fi
29568
29569have_jpeg='no'
29570JPEG_LIBS=''
29571if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029572 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29573$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029575$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29577$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029578 failed=0
29579 passed=0
cristy8b350f62009-11-15 23:12:43 +000029580 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029581if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 passed=`expr $passed + 1`
29583else
29584 failed=`expr $failed + 1`
29585fi
29586
29587
cristy8b350f62009-11-15 23:12:43 +000029588 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029589if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029590 passed=`expr $passed + 1`
29591else
29592 failed=`expr $failed + 1`
29593fi
29594
29595
cristy8b350f62009-11-15 23:12:43 +000029596 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029597if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029598 passed=`expr $passed + 1`
29599else
29600 failed=`expr $failed + 1`
29601fi
29602
29603
cristy8b350f62009-11-15 23:12:43 +000029604 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029605if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029606 passed=`expr $passed + 1`
29607else
29608 failed=`expr $failed + 1`
29609fi
29610
29611
cristy8b350f62009-11-15 23:12:43 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029613$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029614if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029615 $as_echo_n "(cached) " >&6
29616else
29617 ac_check_lib_save_LIBS=$LIBS
29618LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029620/* end confdefs.h. */
29621
29622/* Override any GCC internal prototype to avoid an error.
29623 Use char because int might match the return type of a GCC
29624 builtin and then its argument prototype would still apply. */
29625#ifdef __cplusplus
29626extern "C"
29627#endif
29628char jpeg_read_header ();
29629int
29630main ()
29631{
29632return jpeg_read_header ();
29633 ;
29634 return 0;
29635}
29636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029638 ac_cv_lib_jpeg_jpeg_read_header=yes
29639else
cristy8b350f62009-11-15 23:12:43 +000029640 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029641fi
cristy8b350f62009-11-15 23:12:43 +000029642rm -f core conftest.err conftest.$ac_objext \
29643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029644LIBS=$ac_check_lib_save_LIBS
29645fi
cristy8b350f62009-11-15 23:12:43 +000029646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029647$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029648if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029649 passed=`expr $passed + 1`
29650else
29651 failed=`expr $failed + 1`
29652fi
29653
29654
29655# Test for compatible JPEG library
29656if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029659if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029660 $as_echo_n "(cached) " >&6
29661else
cristy8b350f62009-11-15 23:12:43 +000029662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029663/* end confdefs.h. */
29664#include <stdio.h>
29665#include <stdlib.h>
29666#include <jpeglib.h>
29667
29668int
29669main ()
29670{
29671
29672#if JPEG_LIB_VERSION < 62
29673#error IJG JPEG library must be version 6b or newer!
29674#endif
29675return 0;
29676
29677 ;
29678 return 0;
29679}
29680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029682 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29683else
cristy8b350f62009-11-15 23:12:43 +000029684 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029685fi
cristy3ed852e2009-09-05 21:47:34 +000029686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687fi
cristy8b350f62009-11-15 23:12:43 +000029688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029689$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29690fi
cristy8b350f62009-11-15 23:12:43 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029692$as_echo_n "checking if JPEG package is complete... " >&6; }
29693 if test $passed -gt 0; then
29694 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29696$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029697 have_jpeg='no (failed tests)'
29698 else
29699 JPEG_LIBS='-ljpeg'
29700 LIBS="$JPEG_LIBS $LIBS"
29701
cristy8b350f62009-11-15 23:12:43 +000029702$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029703
cristy09b53e12011-10-14 12:47:22 +000029704 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29705$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029706 have_jpeg='yes'
29707 fi
29708 else
cristy09b53e12011-10-14 12:47:22 +000029709 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29710$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029711 fi
29712fi
cristy73bd4a52010-10-05 11:24:23 +000029713 if test "$have_jpeg" = 'yes'; then
29714 JPEG_DELEGATE_TRUE=
29715 JPEG_DELEGATE_FALSE='#'
29716else
29717 JPEG_DELEGATE_TRUE='#'
29718 JPEG_DELEGATE_FALSE=
29719fi
29720
cristy3ed852e2009-09-05 21:47:34 +000029721
29722
29723
29724#
29725# Check for JPEG Version 2 delegate library.
29726#
29727
29728# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029729if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029730 withval=$with_jp2; with_jp2=$withval
29731else
29732 with_jp2='yes'
29733fi
29734
29735
29736if test "$with_jp2" != 'yes'; then
29737 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29738fi
29739
29740have_jp2='no'
29741JP2_LIBS=''
29742if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029743 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29744$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029747 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29748$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029749 failed=0
29750 passed=0
cristy8b350f62009-11-15 23:12:43 +000029751 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 +000029752if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029753 passed=`expr $passed + 1`
29754else
29755 failed=`expr $failed + 1`
29756fi
29757
29758
cristy8b350f62009-11-15 23:12:43 +000029759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029760$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029761if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029762 $as_echo_n "(cached) " >&6
29763else
29764 ac_check_lib_save_LIBS=$LIBS
29765LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029767/* end confdefs.h. */
29768
29769/* Override any GCC internal prototype to avoid an error.
29770 Use char because int might match the return type of a GCC
29771 builtin and then its argument prototype would still apply. */
29772#ifdef __cplusplus
29773extern "C"
29774#endif
29775char jas_stream_fopen ();
29776int
29777main ()
29778{
29779return jas_stream_fopen ();
29780 ;
29781 return 0;
29782}
29783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029784if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 ac_cv_lib_jasper_jas_stream_fopen=yes
29786else
cristy8b350f62009-11-15 23:12:43 +000029787 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029788fi
cristy8b350f62009-11-15 23:12:43 +000029789rm -f core conftest.err conftest.$ac_objext \
29790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029791LIBS=$ac_check_lib_save_LIBS
29792fi
cristy8b350f62009-11-15 23:12:43 +000029793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029794$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029795if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029796 passed=`expr $passed + 1`
29797else
29798 failed=`expr $failed + 1`
29799fi
29800
cristy8b350f62009-11-15 23:12:43 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029802$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29803 if test $passed -gt 0; then
29804 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029805 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29806$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029807 have_jp2='no (failed tests)'
29808 else
29809 JP2_LIBS='-ljasper'
29810 LIBS="$JP2_LIBS $LIBS"
29811
cristy8b350f62009-11-15 23:12:43 +000029812$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029813
cristy09b53e12011-10-14 12:47:22 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29815$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029816 have_jp2='yes'
29817 fi
29818 else
cristy09b53e12011-10-14 12:47:22 +000029819 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29820$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029821 fi
29822fi
cristy73bd4a52010-10-05 11:24:23 +000029823 if test "$have_jp2" = 'yes'; then
29824 JP2_DELEGATE_TRUE=
29825 JP2_DELEGATE_FALSE='#'
29826else
29827 JP2_DELEGATE_TRUE='#'
29828 JP2_DELEGATE_FALSE=
29829fi
29830
cristy3ed852e2009-09-05 21:47:34 +000029831
29832
29833
29834#
29835# Check for LCMS delegate library.
29836#
cristy71203402010-06-18 13:12:03 +000029837# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029838
29839# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029840if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029841 withval=$with_lcms; with_lcms=$withval
29842else
29843 with_lcms='yes'
29844fi
29845
cristy71203402010-06-18 13:12:03 +000029846if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029847 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29848fi
29849
cristy71203402010-06-18 13:12:03 +000029850# Disable LCMS2.
29851
29852# Check whether --with-lcms2 was given.
29853if test "${with_lcms2+set}" = set; then :
29854 withval=$with_lcms2; with_lcms2=$withval
29855else
29856 with_lcms2='yes'
29857fi
29858
29859if test "$with_lcms2" != 'yes' ; then
29860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29861fi
29862
29863have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029864LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029865if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029866 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29867$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29869$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029870 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29871$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029872 failed=0
29873 passed=0
29874 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029875
29876 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029877 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029878if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029879 have_lcms_header='yes'
29880fi
29881
29882
29883 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029884
29885$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29886
cristy71203402010-06-18 13:12:03 +000029887 passed=`expr $passed + 1`
29888 fi
29889
29890 # Check for <lcms2/lcms2.h)
29891 if test "$have_lcms_header" != 'yes'; then
29892 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 +000029893if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029894 have_lcms_header='yes'
29895fi
29896
29897
cristy71203402010-06-18 13:12:03 +000029898 if test "$have_lcms_header" = 'yes'; then
29899 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029900
cristy71203402010-06-18 13:12:03 +000029901$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029902
cristy71203402010-06-18 13:12:03 +000029903 fi
cristyd09bcf92010-03-25 03:04:45 +000029904 fi
cristy71203402010-06-18 13:12:03 +000029905
29906 # Failed to find lcms header?
29907 if test "$have_lcms_header" != 'yes'; then
29908 failed=`expr $failed + 1`
29909 fi
29910
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29912$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029913if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029914 $as_echo_n "(cached) " >&6
29915else
29916 ac_check_lib_save_LIBS=$LIBS
29917LIBS="-llcms2 $LIBS"
29918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29919/* end confdefs.h. */
29920
29921/* Override any GCC internal prototype to avoid an error.
29922 Use char because int might match the return type of a GCC
29923 builtin and then its argument prototype would still apply. */
29924#ifdef __cplusplus
29925extern "C"
29926#endif
cristy71203402010-06-18 13:12:03 +000029927char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029928int
29929main ()
29930{
cristy71203402010-06-18 13:12:03 +000029931return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029932 ;
29933 return 0;
29934}
29935_ACEOF
29936if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029937 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029938else
cristy71203402010-06-18 13:12:03 +000029939 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029940fi
29941rm -f core conftest.err conftest.$ac_objext \
29942 conftest$ac_exeext conftest.$ac_ext
29943LIBS=$ac_check_lib_save_LIBS
29944fi
cristy71203402010-06-18 13:12:03 +000029945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29946$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029947if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029948 passed=`expr $passed + 1`
29949else
29950 failed=`expr $failed + 1`
29951fi
29952
cristy71203402010-06-18 13:12:03 +000029953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29954$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029955 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029956 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29958$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029959 have_lcms2='no (failed tests)'
29960 else
29961 LCMS_LIBS='-llcms2'
29962 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29964$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029965 have_lcms2='yes'
29966 fi
cristyd09bcf92010-03-25 03:04:45 +000029967 else
cristy09b53e12011-10-14 12:47:22 +000029968 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29969$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029970 fi
29971fi
29972
cristy71203402010-06-18 13:12:03 +000029973#
29974# Check for LCMS v1 (1.11 or later)
29975#
29976if test $have_lcms2 = 'yes'; then
29977 with_lcms='no'
29978fi
29979
29980have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029981if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029982 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29983$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29985$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29987$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029988 failed=0
29989 passed=0
29990 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029991
29992 # Check for <lcms.h>
29993 if test "$have_lcms_header" != 'yes'; then
29994 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029995if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 have_lcms_header='yes'
29997fi
29998
29999
cristy71203402010-06-18 13:12:03 +000030000 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030001 passed=`expr $passed + 1`
30002
cristy8b350f62009-11-15 23:12:43 +000030003$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030004
cristy71203402010-06-18 13:12:03 +000030005 fi
30006 fi
30007
30008 # Check for <lcms/lcms.h>
30009 if test "$have_lcms_header" != 'yes'; then
30010 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 +000030011if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030012 have_lcms_header='yes'
30013fi
30014
30015
cristy71203402010-06-18 13:12:03 +000030016 if test "$have_lcms_header" = 'yes'; then
30017 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030018
cristy8b350f62009-11-15 23:12:43 +000030019$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030020
cristy71203402010-06-18 13:12:03 +000030021 fi
cristy3ed852e2009-09-05 21:47:34 +000030022 fi
cristy71203402010-06-18 13:12:03 +000030023
30024 # Failed to find lcms header?
30025 if test "$have_lcms_header" != 'yes'; then
30026 failed=`expr $failed + 1`
30027 fi
30028
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30030$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030031if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030032 $as_echo_n "(cached) " >&6
30033else
30034 ac_check_lib_save_LIBS=$LIBS
30035LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030037/* end confdefs.h. */
30038
30039/* Override any GCC internal prototype to avoid an error.
30040 Use char because int might match the return type of a GCC
30041 builtin and then its argument prototype would still apply. */
30042#ifdef __cplusplus
30043extern "C"
30044#endif
cristy71203402010-06-18 13:12:03 +000030045char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030046int
30047main ()
30048{
cristy71203402010-06-18 13:12:03 +000030049return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030050 ;
30051 return 0;
30052}
30053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030054if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030055 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030056else
cristy71203402010-06-18 13:12:03 +000030057 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030058fi
cristy8b350f62009-11-15 23:12:43 +000030059rm -f core conftest.err conftest.$ac_objext \
30060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030061LIBS=$ac_check_lib_save_LIBS
30062fi
cristy71203402010-06-18 13:12:03 +000030063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30064$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030065if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030066 passed=`expr $passed + 1`
30067else
30068 failed=`expr $failed + 1`
30069fi
30070
cristy8b350f62009-11-15 23:12:43 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030072$as_echo_n "checking if LCMS package is complete... " >&6; }
30073 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030074 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30076$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030077 have_lcms='no (failed tests)'
30078 else
30079 LCMS_LIBS='-llcms'
30080 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30082$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030083 have_lcms='yes'
30084 fi
cristy3ed852e2009-09-05 21:47:34 +000030085 else
cristy09b53e12011-10-14 12:47:22 +000030086 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30087$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030088 fi
30089fi
cristy71203402010-06-18 13:12:03 +000030090
cristy73bd4a52010-10-05 11:24:23 +000030091 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30092 LCMS_DELEGATE_TRUE=
30093 LCMS_DELEGATE_FALSE='#'
30094else
30095 LCMS_DELEGATE_TRUE='#'
30096 LCMS_DELEGATE_FALSE=
30097fi
30098
cristy71203402010-06-18 13:12:03 +000030099if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30100
30101$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30102
30103fi
30104
cristy3ed852e2009-09-05 21:47:34 +000030105
30106
30107
30108#
30109# Check for the LQR (Liquid Rescale) delegate library.
30110#
30111
30112# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030113if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030114 withval=$with_lqr; with_lqr=$withval
30115else
30116 with_lqr='yes'
30117fi
30118
30119
30120if test "$with_lqr" != 'yes'; then
30121 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30122fi
30123
30124have_lqr='no'
30125LQR_CFLAGS=""
30126LQR_LIBS=""
30127LQR_PKG=""
30128if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030129 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30130$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030131
30132pkg_failed=no
30133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30134$as_echo_n "checking for LQR... " >&6; }
30135
30136if test -n "$LQR_CFLAGS"; then
30137 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30138 elif test -n "$PKG_CONFIG"; then
30139 if test -n "$PKG_CONFIG" && \
30140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30141 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30142 ac_status=$?
30143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30144 test $ac_status = 0; }; then
30145 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30146else
30147 pkg_failed=yes
30148fi
30149 else
30150 pkg_failed=untried
30151fi
30152if test -n "$LQR_LIBS"; then
30153 pkg_cv_LQR_LIBS="$LQR_LIBS"
30154 elif test -n "$PKG_CONFIG"; then
30155 if test -n "$PKG_CONFIG" && \
30156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30157 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30158 ac_status=$?
30159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30160 test $ac_status = 0; }; then
30161 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30162else
30163 pkg_failed=yes
30164fi
30165 else
30166 pkg_failed=untried
30167fi
30168
30169
30170
30171if test $pkg_failed = yes; then
30172
30173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30174 _pkg_short_errors_supported=yes
30175else
30176 _pkg_short_errors_supported=no
30177fi
30178 if test $_pkg_short_errors_supported = yes; then
30179 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30180 else
30181 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30182 fi
30183 # Put the nasty error message in config.log where it belongs
30184 echo "$LQR_PKG_ERRORS" >&5
30185
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30187$as_echo "no" >&6; }
30188 have_lqr=no
30189elif test $pkg_failed = untried; then
30190 have_lqr=no
30191else
30192 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30193 LQR_LIBS=$pkg_cv_LQR_LIBS
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30195$as_echo "yes" >&6; }
30196 have_lqr=yes
30197fi
cristy09b53e12011-10-14 12:47:22 +000030198 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30199$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030200fi
30201
30202if test "$have_lqr" = 'yes'; then
30203
cristy8b350f62009-11-15 23:12:43 +000030204$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030205
30206 CFLAGS="$LQR_CFLAGS $CFLAGS"
30207fi
30208
cristy73bd4a52010-10-05 11:24:23 +000030209 if test "$have_lqr" = 'yes'; then
30210 LQR_DELEGATE_TRUE=
30211 LQR_DELEGATE_FALSE='#'
30212else
30213 LQR_DELEGATE_TRUE='#'
30214 LQR_DELEGATE_FALSE=
30215fi
30216
cristy3ed852e2009-09-05 21:47:34 +000030217
30218
30219
30220
cristy81beccd2011-10-03 18:17:24 +000030221# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030222
30223# Check whether --with-lzma was given.
30224if test "${with_lzma+set}" = set; then :
30225 withval=$with_lzma; with_lzma=$withval
30226else
30227 with_lzma='yes'
30228fi
30229
cristy81beccd2011-10-03 18:17:24 +000030230if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030231 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30232fi
30233
cristyb94e5002011-11-14 13:20:10 +000030234LZMA_PKG=""
30235if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30237$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030238
30239pkg_failed=no
30240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030241$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030242
30243if test -n "$LZMA_CFLAGS"; then
30244 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30245 elif test -n "$PKG_CONFIG"; then
30246 if test -n "$PKG_CONFIG" && \
30247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30248 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30249 ac_status=$?
30250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30251 test $ac_status = 0; }; then
30252 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30253else
30254 pkg_failed=yes
30255fi
30256 else
30257 pkg_failed=untried
30258fi
30259if test -n "$LZMA_LIBS"; then
30260 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30261 elif test -n "$PKG_CONFIG"; then
30262 if test -n "$PKG_CONFIG" && \
30263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30264 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30265 ac_status=$?
30266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30267 test $ac_status = 0; }; then
30268 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30269else
30270 pkg_failed=yes
30271fi
30272 else
30273 pkg_failed=untried
30274fi
30275
30276
30277
30278if test $pkg_failed = yes; then
30279
30280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30281 _pkg_short_errors_supported=yes
30282else
30283 _pkg_short_errors_supported=no
30284fi
30285 if test $_pkg_short_errors_supported = yes; then
30286 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30287 else
30288 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30289 fi
30290 # Put the nasty error message in config.log where it belongs
30291 echo "$LZMA_PKG_ERRORS" >&5
30292
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30294$as_echo "no" >&6; }
30295 have_lzma=no
30296elif test $pkg_failed = untried; then
30297 have_lzma=no
30298else
30299 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30300 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30302$as_echo "yes" >&6; }
30303 have_lzma=yes
30304fi
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030306$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030307fi
30308
cristyb94e5002011-11-14 13:20:10 +000030309if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030310
30311$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30312
cristyb94e5002011-11-14 13:20:10 +000030313 if test "$with_modules" = 'no'; then
30314 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030315 fi
cristyfbb0ef02010-12-19 02:32:11 +000030316fi
cristyb94e5002011-11-14 13:20:10 +000030317
cristyfbb0ef02010-12-19 02:32:11 +000030318 if test "$have_lzma" = 'yes'; then
30319 LZMA_DELEGATE_TRUE=
30320 LZMA_DELEGATE_FALSE='#'
30321else
30322 LZMA_DELEGATE_TRUE='#'
30323 LZMA_DELEGATE_FALSE=
30324fi
30325
30326
30327
30328
cristyb94e5002011-11-14 13:20:10 +000030329
cristy3ed852e2009-09-05 21:47:34 +000030330#
30331# Check for the OpenEXR delegate library.
30332#
30333
30334# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030335if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030336 withval=$with_openexr; with_openexr=$withval
30337else
30338 with_openexr='yes'
30339fi
30340
30341
30342if test "$with_openexr" != 'yes'; then
30343 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30344fi
30345
30346have_openexr='no'
30347OPENEXR_CFLAGS=""
30348OPENEXR_LIBS=""
30349OPENEXR_PKG=""
30350if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030351 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30352$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030353
30354pkg_failed=no
30355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30356$as_echo_n "checking for OPENEXR... " >&6; }
30357
30358if test -n "$OPENEXR_CFLAGS"; then
30359 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30360 elif test -n "$PKG_CONFIG"; then
30361 if test -n "$PKG_CONFIG" && \
30362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30363 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30364 ac_status=$?
30365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30366 test $ac_status = 0; }; then
30367 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30368else
30369 pkg_failed=yes
30370fi
30371 else
30372 pkg_failed=untried
30373fi
30374if test -n "$OPENEXR_LIBS"; then
30375 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30376 elif test -n "$PKG_CONFIG"; then
30377 if test -n "$PKG_CONFIG" && \
30378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30379 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30380 ac_status=$?
30381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30382 test $ac_status = 0; }; then
30383 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30384else
30385 pkg_failed=yes
30386fi
30387 else
30388 pkg_failed=untried
30389fi
30390
30391
30392
30393if test $pkg_failed = yes; then
30394
30395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30396 _pkg_short_errors_supported=yes
30397else
30398 _pkg_short_errors_supported=no
30399fi
30400 if test $_pkg_short_errors_supported = yes; then
30401 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30402 else
30403 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30404 fi
30405 # Put the nasty error message in config.log where it belongs
30406 echo "$OPENEXR_PKG_ERRORS" >&5
30407
30408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30409$as_echo "no" >&6; }
30410 have_openexr=no
30411elif test $pkg_failed = untried; then
30412 have_openexr=no
30413else
30414 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30415 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30417$as_echo "yes" >&6; }
30418 have_openexr=yes
30419fi
cristy09b53e12011-10-14 12:47:22 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30421$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030422fi
30423
30424if test "$have_openexr" = 'yes'; then
30425
cristy8b350f62009-11-15 23:12:43 +000030426$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030427
30428 if test "$with_modules" = 'no'; then
30429 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30430 fi
30431fi
30432
cristy73bd4a52010-10-05 11:24:23 +000030433 if test "$have_openexr" = 'yes'; then
30434 OPENEXR_DELEGATE_TRUE=
30435 OPENEXR_DELEGATE_FALSE='#'
30436else
30437 OPENEXR_DELEGATE_TRUE='#'
30438 OPENEXR_DELEGATE_FALSE=
30439fi
30440
cristy3ed852e2009-09-05 21:47:34 +000030441
30442
30443
30444
30445#
cristy41cbe8a2011-10-27 01:35:18 +000030446# Check for PANGO delegate library.
30447#
30448
30449# Check whether --with-pango was given.
30450if test "${with_pango+set}" = set; then :
30451 withval=$with_pango; with_pango=$withval
30452else
30453 with_pango=$have_x
30454fi
30455
30456
30457if test "$with_pango" != 'yes'; then
30458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30459fi
30460
30461have_pango='no'
30462have_pangoft2='no'
30463PANGO_CFLAGS=""
30464PANGO_LIBS=""
30465PANGO_PKG=""
30466if test "x$with_pango" = "xyes"; then
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30468$as_echo "-------------------------------------------------------------" >&6; }
30469
30470pkg_failed=no
30471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30472$as_echo_n "checking for PANGO... " >&6; }
30473
30474if test -n "$PANGO_CFLAGS"; then
30475 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30476 elif test -n "$PKG_CONFIG"; then
30477 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30479 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030480 ac_status=$?
30481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30482 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030483 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030484else
30485 pkg_failed=yes
30486fi
30487 else
30488 pkg_failed=untried
30489fi
30490if test -n "$PANGO_LIBS"; then
30491 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30492 elif test -n "$PKG_CONFIG"; then
30493 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30495 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030496 ac_status=$?
30497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30498 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030499 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030500else
30501 pkg_failed=yes
30502fi
30503 else
30504 pkg_failed=untried
30505fi
30506
30507
30508
30509if test $pkg_failed = yes; then
30510
30511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30512 _pkg_short_errors_supported=yes
30513else
30514 _pkg_short_errors_supported=no
30515fi
30516 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030517 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030518 else
cristy2542fc62011-12-06 17:50:25 +000030519 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030520 fi
30521 # Put the nasty error message in config.log where it belongs
30522 echo "$PANGO_PKG_ERRORS" >&5
30523
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30525$as_echo "no" >&6; }
30526 have_pangoft2=no
30527elif test $pkg_failed = untried; then
30528 have_pangoft2=no
30529else
30530 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30531 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30533$as_echo "yes" >&6; }
30534 have_pangoft2=yes
30535fi
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30537$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030538
30539pkg_failed=no
30540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30541$as_echo_n "checking for PANGO... " >&6; }
30542
30543if test -n "$PANGO_CFLAGS"; then
30544 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30545 elif test -n "$PKG_CONFIG"; then
30546 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030547 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30548 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030549 ac_status=$?
30550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30551 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030552 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030553else
30554 pkg_failed=yes
30555fi
30556 else
30557 pkg_failed=untried
30558fi
30559if test -n "$PANGO_LIBS"; then
30560 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30561 elif test -n "$PKG_CONFIG"; then
30562 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30564 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030565 ac_status=$?
30566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30567 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030568 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030569else
30570 pkg_failed=yes
30571fi
30572 else
30573 pkg_failed=untried
30574fi
30575
30576
30577
30578if test $pkg_failed = yes; then
30579
30580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30581 _pkg_short_errors_supported=yes
30582else
30583 _pkg_short_errors_supported=no
30584fi
30585 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030586 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030587 else
cristy2542fc62011-12-06 17:50:25 +000030588 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030589 fi
30590 # Put the nasty error message in config.log where it belongs
30591 echo "$PANGO_PKG_ERRORS" >&5
30592
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30594$as_echo "no" >&6; }
30595 have_pango=no
30596elif test $pkg_failed = untried; then
30597 have_pango=no
30598else
30599 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30600 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30602$as_echo "yes" >&6; }
30603 have_pango=yes
30604fi
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30606$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030607fi
30608
30609if test "$have_pango" = 'yes'; then
30610
30611$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30612
30613 if test "$with_modules" = 'no'; then
30614 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30615 fi
30616fi
30617
30618if test "$have_pangoft2" = 'yes'; then
30619
30620$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30621
30622 if test "$with_modules" = 'no'; then
30623 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30624 fi
30625fi
30626
30627 if test "$have_pango" = 'yes'; then
30628 PANGO_DELEGATE_TRUE=
30629 PANGO_DELEGATE_FALSE='#'
30630else
30631 PANGO_DELEGATE_TRUE='#'
30632 PANGO_DELEGATE_FALSE=
30633fi
30634
30635 if test "$have_pangoft2" = 'yes'; then
30636 PANGOFT2_DELEGATE_TRUE=
30637 PANGOFT2_DELEGATE_FALSE='#'
30638else
30639 PANGOFT2_DELEGATE_TRUE='#'
30640 PANGOFT2_DELEGATE_FALSE=
30641fi
30642
30643
30644
30645
30646
30647#
cristy3ed852e2009-09-05 21:47:34 +000030648# Check for PNG delegate library.
30649#
30650
30651# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030652if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030653 withval=$with_png; with_png=$withval
30654else
30655 with_png='yes'
30656fi
30657
30658
30659if test "$with_png" != 'yes'; then
30660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30661fi
30662
cristy81beccd2011-10-03 18:17:24 +000030663have_png='no'
30664PNG_LIBS=''
30665
30666if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030667 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30668$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30670$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030671 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30672$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030673 failed=0
30674 passed=0
30675 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30676if test "x$ac_cv_header_png_h" = xyes; then :
30677 passed=`expr $passed + 1`
30678else
30679 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030680fi
30681
cristy81beccd2011-10-03 18:17:24 +000030682
30683
30684 if test $passed -gt 0; then
30685 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030686 if test "$have_png" = 'no' ; then
30687 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030688 pnglib='png'
30689 else
30690 pnglib="png1${var}"
30691 fi
30692
30693# Test for compatible LIBPNG library
30694 failed=0
30695 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030696 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030697 if test "${pnglib}" != 'png' ; then
30698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30699$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30701/* end confdefs.h. */
30702#include <stdio.h>
30703#include <stdlib.h>
30704#include <png.h>
30705
30706int
30707main ()
30708{
30709
30710#if PNG_LIBPNG_VER_MINOR != ${var}
30711#error LIBPNG library must be version 1${var}!
30712Kaboom, Kaboom
30713#endif
30714return 0;
30715
30716 ;
30717 return 0;
30718}
30719_ACEOF
30720if ac_fn_c_try_compile "$LINENO"; then :
30721 ac_cv_libpng_ok='yes'
30722else
30723 ac_cv_libpng_ok='no'
30724fi
30725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30726 if test "$ac_cv_libpng_ok" = 'yes' ; then
30727 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030728 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30729$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030730 else
30731 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030732 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30733$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030734 fi
30735 else
30736 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030737 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30738$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030739 fi
30740 fi
30741
30742 if test $passed -gt 0 -a $failed -le 0; then
30743 if test "1${var}" = '15' ; then
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30745$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30746if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30747 $as_echo_n "(cached) " >&6
30748else
30749 ac_check_lib_save_LIBS=$LIBS
30750LIBS="-lpng15 $LIBS"
30751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30752/* end confdefs.h. */
30753
30754/* Override any GCC internal prototype to avoid an error.
30755 Use char because int might match the return type of a GCC
30756 builtin and then its argument prototype would still apply. */
30757#ifdef __cplusplus
30758extern "C"
30759#endif
30760char png_get_io_ptr ();
30761int
30762main ()
30763{
30764return png_get_io_ptr ();
30765 ;
30766 return 0;
30767}
30768_ACEOF
30769if ac_fn_c_try_link "$LINENO"; then :
30770 ac_cv_lib_png15_png_get_io_ptr=yes
30771else
30772 ac_cv_lib_png15_png_get_io_ptr=no
30773fi
30774rm -f core conftest.err conftest.$ac_objext \
30775 conftest$ac_exeext conftest.$ac_ext
30776LIBS=$ac_check_lib_save_LIBS
30777fi
30778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30779$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30780if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30781 passed=`expr $passed + 1`
30782else
30783 failed=`expr $failed + 1`
30784fi
30785
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30787$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30788if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30789 $as_echo_n "(cached) " >&6
30790else
30791 ac_check_lib_save_LIBS=$LIBS
30792LIBS="-lpng15 $LIBS"
30793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30794/* end confdefs.h. */
30795
30796/* Override any GCC internal prototype to avoid an error.
30797 Use char because int might match the return type of a GCC
30798 builtin and then its argument prototype would still apply. */
30799#ifdef __cplusplus
30800extern "C"
30801#endif
30802char png_longjmp ();
30803int
30804main ()
30805{
30806return png_longjmp ();
30807 ;
30808 return 0;
30809}
30810_ACEOF
30811if ac_fn_c_try_link "$LINENO"; then :
30812 ac_cv_lib_png15_png_longjmp=yes
30813else
30814 ac_cv_lib_png15_png_longjmp=no
30815fi
30816rm -f core conftest.err conftest.$ac_objext \
30817 conftest$ac_exeext conftest.$ac_ext
30818LIBS=$ac_check_lib_save_LIBS
30819fi
30820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30821$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30822if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30823 passed=`expr $passed + 1`
30824else
30825 failed=`expr $failed + 1`
30826fi
30827
30828 fi
30829 if test "1${var}" = '14' ; then
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30831$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30832if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30833 $as_echo_n "(cached) " >&6
30834else
30835 ac_check_lib_save_LIBS=$LIBS
30836LIBS="-lpng14 $LIBS"
30837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838/* end confdefs.h. */
30839
30840/* Override any GCC internal prototype to avoid an error.
30841 Use char because int might match the return type of a GCC
30842 builtin and then its argument prototype would still apply. */
30843#ifdef __cplusplus
30844extern "C"
30845#endif
30846char png_get_io_ptr ();
30847int
30848main ()
30849{
30850return png_get_io_ptr ();
30851 ;
30852 return 0;
30853}
30854_ACEOF
30855if ac_fn_c_try_link "$LINENO"; then :
30856 ac_cv_lib_png14_png_get_io_ptr=yes
30857else
30858 ac_cv_lib_png14_png_get_io_ptr=no
30859fi
30860rm -f core conftest.err conftest.$ac_objext \
30861 conftest$ac_exeext conftest.$ac_ext
30862LIBS=$ac_check_lib_save_LIBS
30863fi
30864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30865$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30866if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30867 passed=`expr $passed + 1`
30868else
30869 failed=`expr $failed + 1`
30870fi
30871
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30873$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30874if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30875 $as_echo_n "(cached) " >&6
30876else
30877 ac_check_lib_save_LIBS=$LIBS
30878LIBS="-lpng14 $LIBS"
30879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30880/* end confdefs.h. */
30881
30882/* Override any GCC internal prototype to avoid an error.
30883 Use char because int might match the return type of a GCC
30884 builtin and then its argument prototype would still apply. */
30885#ifdef __cplusplus
30886extern "C"
30887#endif
30888char png_get_io_state ();
30889int
30890main ()
30891{
30892return png_get_io_state ();
30893 ;
30894 return 0;
30895}
30896_ACEOF
30897if ac_fn_c_try_link "$LINENO"; then :
30898 ac_cv_lib_png14_png_get_io_state=yes
30899else
30900 ac_cv_lib_png14_png_get_io_state=no
30901fi
30902rm -f core conftest.err conftest.$ac_objext \
30903 conftest$ac_exeext conftest.$ac_ext
30904LIBS=$ac_check_lib_save_LIBS
30905fi
30906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30907$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30908if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30909 passed=`expr $passed + 1`
30910else
30911 failed=`expr $failed + 1`
30912fi
30913
30914 fi
30915 if test "1${var}" = '12' ; then
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30917$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30918if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30919 $as_echo_n "(cached) " >&6
30920else
30921 ac_check_lib_save_LIBS=$LIBS
30922LIBS="-lpng12 $LIBS"
30923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30924/* end confdefs.h. */
30925
30926/* Override any GCC internal prototype to avoid an error.
30927 Use char because int might match the return type of a GCC
30928 builtin and then its argument prototype would still apply. */
30929#ifdef __cplusplus
30930extern "C"
30931#endif
30932char png_get_io_ptr ();
30933int
30934main ()
30935{
30936return png_get_io_ptr ();
30937 ;
30938 return 0;
30939}
30940_ACEOF
30941if ac_fn_c_try_link "$LINENO"; then :
30942 ac_cv_lib_png12_png_get_io_ptr=yes
30943else
30944 ac_cv_lib_png12_png_get_io_ptr=no
30945fi
30946rm -f core conftest.err conftest.$ac_objext \
30947 conftest$ac_exeext conftest.$ac_ext
30948LIBS=$ac_check_lib_save_LIBS
30949fi
30950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30951$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30952if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30953 passed=`expr $passed + 1`
30954else
30955 failed=`expr $failed + 1`
30956fi
30957
30958 fi
30959 if test "1${var}" = '1' ; then
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30961$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30962if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30963 $as_echo_n "(cached) " >&6
30964else
30965 ac_check_lib_save_LIBS=$LIBS
30966LIBS="-lpng $LIBS"
30967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30968/* end confdefs.h. */
30969
30970/* Override any GCC internal prototype to avoid an error.
30971 Use char because int might match the return type of a GCC
30972 builtin and then its argument prototype would still apply. */
30973#ifdef __cplusplus
30974extern "C"
30975#endif
30976char png_get_io_ptr ();
30977int
30978main ()
30979{
30980return png_get_io_ptr ();
30981 ;
30982 return 0;
30983}
30984_ACEOF
30985if ac_fn_c_try_link "$LINENO"; then :
30986 ac_cv_lib_png_png_get_io_ptr=yes
30987else
30988 ac_cv_lib_png_png_get_io_ptr=no
30989fi
30990rm -f core conftest.err conftest.$ac_objext \
30991 conftest$ac_exeext conftest.$ac_ext
30992LIBS=$ac_check_lib_save_LIBS
30993fi
30994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30995$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30996if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30997 passed=`expr $passed + 1`
30998else
30999 failed=`expr $failed + 1`
31000fi
31001
31002 fi
31003 if test $passed -gt 0 -a $failed -le 0 ; then
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31005$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31006 if test $passed -gt 0 ; then
31007 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031008 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31009$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031010 have_png='no (failed tests)'
31011 else
31012 PNG_LIBS="-l${pnglib}"
31013 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031014
cristy8b350f62009-11-15 23:12:43 +000031015$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031016
cristy09b53e12011-10-14 12:47:22 +000031017 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31018$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031019 have_png='yes'
31020 fi
31021 fi
31022 fi
31023 fi
31024 fi
31025 done
31026 fi
cristy3ed852e2009-09-05 21:47:34 +000031027fi
cristy64877302011-08-23 19:10:31 +000031028
cristy73bd4a52010-10-05 11:24:23 +000031029 if test "$have_png" = 'yes'; then
31030 PNG_DELEGATE_TRUE=
31031 PNG_DELEGATE_FALSE='#'
31032else
31033 PNG_DELEGATE_TRUE='#'
31034 PNG_DELEGATE_FALSE=
31035fi
31036
cristy3ed852e2009-09-05 21:47:34 +000031037
cristy50d3f5c2011-09-10 20:09:06 +000031038
cristy3ed852e2009-09-05 21:47:34 +000031039
31040
31041#
31042# Check for RSVG delegate library.
31043#
31044
31045# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031046if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031047 withval=$with_rsvg; with_rsvg=$withval
31048else
31049 with_rsvg=$have_x
31050fi
31051
31052
31053if test "$with_rsvg" != 'yes'; then
31054 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31055fi
31056
31057have_rsvg='no'
31058have_cairo='no'
31059RSVG_CFLAGS=""
31060RSVG_LIBS=""
31061RSVG_PKG=""
31062if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031063 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31064$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031065
31066pkg_failed=no
31067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31068$as_echo_n "checking for RSVG... " >&6; }
31069
31070if test -n "$RSVG_CFLAGS"; then
31071 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31072 elif test -n "$PKG_CONFIG"; then
31073 if test -n "$PKG_CONFIG" && \
31074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31075 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31076 ac_status=$?
31077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31078 test $ac_status = 0; }; then
31079 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31080else
31081 pkg_failed=yes
31082fi
31083 else
31084 pkg_failed=untried
31085fi
31086if test -n "$RSVG_LIBS"; then
31087 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31088 elif test -n "$PKG_CONFIG"; then
31089 if test -n "$PKG_CONFIG" && \
31090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31091 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31092 ac_status=$?
31093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31094 test $ac_status = 0; }; then
31095 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31096else
31097 pkg_failed=yes
31098fi
31099 else
31100 pkg_failed=untried
31101fi
31102
31103
31104
31105if test $pkg_failed = yes; then
31106
31107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31108 _pkg_short_errors_supported=yes
31109else
31110 _pkg_short_errors_supported=no
31111fi
31112 if test $_pkg_short_errors_supported = yes; then
31113 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31114 else
31115 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31116 fi
31117 # Put the nasty error message in config.log where it belongs
31118 echo "$RSVG_PKG_ERRORS" >&5
31119
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31121$as_echo "no" >&6; }
31122 have_rsvg=no
31123elif test $pkg_failed = untried; then
31124 have_rsvg=no
31125else
31126 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31127 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31129$as_echo "yes" >&6; }
31130 have_rsvg=yes
31131fi
cristy09b53e12011-10-14 12:47:22 +000031132 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31133$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031134
31135pkg_failed=no
31136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31137$as_echo_n "checking for CAIRO_SVG... " >&6; }
31138
31139if test -n "$CAIRO_SVG_CFLAGS"; then
31140 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31141 elif test -n "$PKG_CONFIG"; then
31142 if test -n "$PKG_CONFIG" && \
31143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31144 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31145 ac_status=$?
31146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31147 test $ac_status = 0; }; then
31148 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31149else
31150 pkg_failed=yes
31151fi
31152 else
31153 pkg_failed=untried
31154fi
31155if test -n "$CAIRO_SVG_LIBS"; then
31156 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31157 elif test -n "$PKG_CONFIG"; then
31158 if test -n "$PKG_CONFIG" && \
31159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31160 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31161 ac_status=$?
31162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31163 test $ac_status = 0; }; then
31164 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31165else
31166 pkg_failed=yes
31167fi
31168 else
31169 pkg_failed=untried
31170fi
31171
31172
31173
31174if test $pkg_failed = yes; then
31175
31176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31177 _pkg_short_errors_supported=yes
31178else
31179 _pkg_short_errors_supported=no
31180fi
31181 if test $_pkg_short_errors_supported = yes; then
31182 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31183 else
31184 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31185 fi
31186 # Put the nasty error message in config.log where it belongs
31187 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31188
31189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31190$as_echo "no" >&6; }
31191 have_cairo=no
31192elif test $pkg_failed = untried; then
31193 have_cairo=no
31194else
31195 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31196 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31198$as_echo "yes" >&6; }
31199 have_cairo=yes
31200fi
cristy09b53e12011-10-14 12:47:22 +000031201 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31202$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031203fi
31204
31205if test "$have_rsvg" = 'yes'; then
31206
cristy8b350f62009-11-15 23:12:43 +000031207$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031208
31209 if test "$with_modules" = 'no'; then
31210 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31211 fi
31212fi
31213
31214if test "$have_cairo" = 'yes'; then
31215
cristy8b350f62009-11-15 23:12:43 +000031216$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031217
31218 if test "$with_modules" = 'no'; then
31219 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31220 fi
31221fi
31222
cristy73bd4a52010-10-05 11:24:23 +000031223 if test "$have_rsvg" = 'yes'; then
31224 RSVG_DELEGATE_TRUE=
31225 RSVG_DELEGATE_FALSE='#'
31226else
31227 RSVG_DELEGATE_TRUE='#'
31228 RSVG_DELEGATE_FALSE=
31229fi
31230
31231 if test "$have_cairo" = 'yes'; then
31232 CAIRO_DELEGATE_TRUE=
31233 CAIRO_DELEGATE_FALSE='#'
31234else
31235 CAIRO_DELEGATE_TRUE='#'
31236 CAIRO_DELEGATE_FALSE=
31237fi
31238
cristy3ed852e2009-09-05 21:47:34 +000031239
31240
31241
31242
31243#
31244# Check for TIFF delegate library.
31245#
31246
31247# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031248if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031249 withval=$with_tiff; with_tiff=$withval
31250else
31251 with_tiff='yes'
31252fi
31253
31254
31255if test "$with_tiff" != 'yes'; then
31256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31257fi
31258
31259have_tiff='no'
31260TIFF_LIBS=''
31261if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031262 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31263$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031265$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031266 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31267$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031268 failed=0
31269 passed=0
cristy8b350f62009-11-15 23:12:43 +000031270 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031271if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031272 passed=`expr $passed + 1`
31273else
31274 failed=`expr $failed + 1`
31275fi
31276
31277
cristy8b350f62009-11-15 23:12:43 +000031278 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031279if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031280 passed=`expr $passed + 1`
31281else
31282 failed=`expr $failed + 1`
31283fi
31284
31285
cristy8b350f62009-11-15 23:12:43 +000031286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031287$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031288if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031289 $as_echo_n "(cached) " >&6
31290else
31291 ac_check_lib_save_LIBS=$LIBS
31292LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031294/* end confdefs.h. */
31295
31296/* Override any GCC internal prototype to avoid an error.
31297 Use char because int might match the return type of a GCC
31298 builtin and then its argument prototype would still apply. */
31299#ifdef __cplusplus
31300extern "C"
31301#endif
31302char TIFFOpen ();
31303int
31304main ()
31305{
31306return TIFFOpen ();
31307 ;
31308 return 0;
31309}
31310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 ac_cv_lib_tiff_TIFFOpen=yes
31313else
cristy8b350f62009-11-15 23:12:43 +000031314 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031315fi
cristy8b350f62009-11-15 23:12:43 +000031316rm -f core conftest.err conftest.$ac_objext \
31317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031318LIBS=$ac_check_lib_save_LIBS
31319fi
cristy8b350f62009-11-15 23:12:43 +000031320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031321$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031322if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031323 passed=`expr $passed + 1`
31324else
31325 failed=`expr $failed + 1`
31326fi
31327
cristy8b350f62009-11-15 23:12:43 +000031328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031329$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031330if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031331 $as_echo_n "(cached) " >&6
31332else
31333 ac_check_lib_save_LIBS=$LIBS
31334LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031336/* end confdefs.h. */
31337
31338/* Override any GCC internal prototype to avoid an error.
31339 Use char because int might match the return type of a GCC
31340 builtin and then its argument prototype would still apply. */
31341#ifdef __cplusplus
31342extern "C"
31343#endif
31344char TIFFClientOpen ();
31345int
31346main ()
31347{
31348return TIFFClientOpen ();
31349 ;
31350 return 0;
31351}
31352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031353if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031354 ac_cv_lib_tiff_TIFFClientOpen=yes
31355else
cristy8b350f62009-11-15 23:12:43 +000031356 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031357fi
cristy8b350f62009-11-15 23:12:43 +000031358rm -f core conftest.err conftest.$ac_objext \
31359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031360LIBS=$ac_check_lib_save_LIBS
31361fi
cristy8b350f62009-11-15 23:12:43 +000031362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031363$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031364if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031365 passed=`expr $passed + 1`
31366else
31367 failed=`expr $failed + 1`
31368fi
31369
cristy8b350f62009-11-15 23:12:43 +000031370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031371$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031372if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031373 $as_echo_n "(cached) " >&6
31374else
31375 ac_check_lib_save_LIBS=$LIBS
31376LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031378/* end confdefs.h. */
31379
31380/* Override any GCC internal prototype to avoid an error.
31381 Use char because int might match the return type of a GCC
31382 builtin and then its argument prototype would still apply. */
31383#ifdef __cplusplus
31384extern "C"
31385#endif
31386char TIFFIsByteSwapped ();
31387int
31388main ()
31389{
31390return TIFFIsByteSwapped ();
31391 ;
31392 return 0;
31393}
31394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031396 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31397else
cristy8b350f62009-11-15 23:12:43 +000031398 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031399fi
cristy8b350f62009-11-15 23:12:43 +000031400rm -f core conftest.err conftest.$ac_objext \
31401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031402LIBS=$ac_check_lib_save_LIBS
31403fi
cristy8b350f62009-11-15 23:12:43 +000031404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031405$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031406if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031407 passed=`expr $passed + 1`
31408else
31409 failed=`expr $failed + 1`
31410fi
31411
cristy8b350f62009-11-15 23:12:43 +000031412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031414if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031415 $as_echo_n "(cached) " >&6
31416else
31417 ac_check_lib_save_LIBS=$LIBS
31418LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031420/* end confdefs.h. */
31421
31422/* Override any GCC internal prototype to avoid an error.
31423 Use char because int might match the return type of a GCC
31424 builtin and then its argument prototype would still apply. */
31425#ifdef __cplusplus
31426extern "C"
31427#endif
31428char TIFFReadRGBATile ();
31429int
31430main ()
31431{
31432return TIFFReadRGBATile ();
31433 ;
31434 return 0;
31435}
31436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031438 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31439else
cristy8b350f62009-11-15 23:12:43 +000031440 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031441fi
cristy8b350f62009-11-15 23:12:43 +000031442rm -f core conftest.err conftest.$ac_objext \
31443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031444LIBS=$ac_check_lib_save_LIBS
31445fi
cristy8b350f62009-11-15 23:12:43 +000031446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031447$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031448if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031449 passed=`expr $passed + 1`
31450else
31451 failed=`expr $failed + 1`
31452fi
31453
cristy8b350f62009-11-15 23:12:43 +000031454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031455$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031456if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031457 $as_echo_n "(cached) " >&6
31458else
31459 ac_check_lib_save_LIBS=$LIBS
31460LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031462/* end confdefs.h. */
31463
31464/* Override any GCC internal prototype to avoid an error.
31465 Use char because int might match the return type of a GCC
31466 builtin and then its argument prototype would still apply. */
31467#ifdef __cplusplus
31468extern "C"
31469#endif
31470char TIFFReadRGBAStrip ();
31471int
31472main ()
31473{
31474return TIFFReadRGBAStrip ();
31475 ;
31476 return 0;
31477}
31478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031480 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31481else
cristy8b350f62009-11-15 23:12:43 +000031482 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031483fi
cristy8b350f62009-11-15 23:12:43 +000031484rm -f core conftest.err conftest.$ac_objext \
31485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031486LIBS=$ac_check_lib_save_LIBS
31487fi
cristy8b350f62009-11-15 23:12:43 +000031488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031489$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031490if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031491 passed=`expr $passed + 1`
31492else
31493 failed=`expr $failed + 1`
31494fi
31495
cristy8b350f62009-11-15 23:12:43 +000031496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031497$as_echo_n "checking if TIFF package is complete... " >&6; }
31498 if test $passed -gt 0; then
31499 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031500 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31501$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031502 have_tiff='no (failed tests)'
31503 else
31504 TIFF_LIBS='-ltiff'
31505 LIBS="$TIFF_LIBS $LIBS"
31506
cristy8b350f62009-11-15 23:12:43 +000031507$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031508
cristy09b53e12011-10-14 12:47:22 +000031509 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31510$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031511 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031512 for ac_header in tiffconf.h
31513do :
31514 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031515if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031516 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031517#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031518_ACEOF
31519
31520fi
31521
31522done
31523
cristy8b350f62009-11-15 23:12:43 +000031524 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031525 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31526 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31527 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031528do :
31529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31530ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031531if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031532 cat >>confdefs.h <<_ACEOF
31533#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31534_ACEOF
31535
31536fi
31537done
31538
31539 fi
31540 else
cristy09b53e12011-10-14 12:47:22 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31542$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031543 fi
31544fi
cristy73bd4a52010-10-05 11:24:23 +000031545 if test "$have_tiff" = 'yes'; then
31546 TIFF_DELEGATE_TRUE=
31547 TIFF_DELEGATE_FALSE='#'
31548else
31549 TIFF_DELEGATE_TRUE='#'
31550 TIFF_DELEGATE_FALSE=
31551fi
31552
cristy3ed852e2009-09-05 21:47:34 +000031553
31554
31555
31556#
cristyb1860752011-03-14 00:27:46 +000031557# Check for WEBP delegate library.
31558#
31559
31560# Check whether --with-webp was given.
31561if test "${with_webp+set}" = set; then :
31562 withval=$with_webp; with_webp=$withval
31563else
31564 with_webp='yes'
31565fi
31566
31567
31568if test "$with_webp" != 'yes'; then
31569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31570fi
31571
31572have_webp='no'
31573WEBP_LIBS=''
31574if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031575 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31576$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31578$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31580$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031581 failed=0
31582 passed=0
31583 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31584if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31585 passed=`expr $passed + 1`
31586else
31587 failed=`expr $failed + 1`
31588fi
31589
31590
31591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31592$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31593if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31594 $as_echo_n "(cached) " >&6
31595else
31596 ac_check_lib_save_LIBS=$LIBS
31597LIBS="-lwebp $LIBS"
31598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31599/* end confdefs.h. */
31600
31601/* Override any GCC internal prototype to avoid an error.
31602 Use char because int might match the return type of a GCC
31603 builtin and then its argument prototype would still apply. */
31604#ifdef __cplusplus
31605extern "C"
31606#endif
31607char WebPDecodeRGB ();
31608int
31609main ()
31610{
31611return WebPDecodeRGB ();
31612 ;
31613 return 0;
31614}
31615_ACEOF
31616if ac_fn_c_try_link "$LINENO"; then :
31617 ac_cv_lib_webp_WebPDecodeRGB=yes
31618else
31619 ac_cv_lib_webp_WebPDecodeRGB=no
31620fi
31621rm -f core conftest.err conftest.$ac_objext \
31622 conftest$ac_exeext conftest.$ac_ext
31623LIBS=$ac_check_lib_save_LIBS
31624fi
31625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31626$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31627if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31628 passed=`expr $passed + 1`
31629else
31630 failed=`expr $failed + 1`
31631fi
31632
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31634$as_echo_n "checking if WEBP package is complete... " >&6; }
31635 if test $passed -gt 0; then
31636 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031637 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31638$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031639 have_webp='no (failed tests)'
31640 else
31641 WEBP_LIBS='-lwebp'
31642 LIBS="$WEBP_LIBS $LIBS"
31643
31644$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31645
cristy09b53e12011-10-14 12:47:22 +000031646 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31647$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031648 have_webp='yes'
31649 fi
31650 else
cristy09b53e12011-10-14 12:47:22 +000031651 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31652$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031653 fi
31654fi
31655 if test "$have_webp" = 'yes'; then
31656 WEBP_DELEGATE_TRUE=
31657 WEBP_DELEGATE_FALSE='#'
31658else
31659 WEBP_DELEGATE_TRUE='#'
31660 WEBP_DELEGATE_FALSE=
31661fi
31662
31663
31664
31665
31666#
cristy3ed852e2009-09-05 21:47:34 +000031667# Set Windows font directory.
31668#
31669
31670# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031671if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031672 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31673else
31674 with_windows_font_dir=''
31675fi
31676
31677if test "$with_windows_font_dir" != '' ; then
31678 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31679fi
31680
31681
31682#
31683# Check for WMF delegate library.
31684#
31685
31686# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031687if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031688 withval=$with_wmf; with_wmf=$withval
31689else
cristy50c2b692012-02-06 14:45:10 +000031690 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031691fi
31692
31693
31694if test "$with_wmf" != 'yes'; then
31695 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31696fi
31697
31698have_wmf='no'
31699WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031700WMF_LIBS_DEPS=''
31701OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031702if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31704$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031706$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31708$as_echo "" >&6; }
31709 have_libwmf='no'
31710 have_libwmflite='no'
31711 have_libwmf_ipa_h='no'
31712
31713 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31714"
31715if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31716 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031717fi
31718
31719
cristy03f7cf92011-12-15 01:40:41 +000031720 if test "$have_libwmf_ipa_h" = 'yes'; then
31721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31722$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31723if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031724 $as_echo_n "(cached) " >&6
31725else
31726 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031727LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031729/* end confdefs.h. */
31730
31731/* Override any GCC internal prototype to avoid an error.
31732 Use char because int might match the return type of a GCC
31733 builtin and then its argument prototype would still apply. */
31734#ifdef __cplusplus
31735extern "C"
31736#endif
cristy03f7cf92011-12-15 01:40:41 +000031737char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031738int
31739main ()
31740{
cristy03f7cf92011-12-15 01:40:41 +000031741return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031742 ;
31743 return 0;
31744}
31745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031746if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031747 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031748else
cristy03f7cf92011-12-15 01:40:41 +000031749 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031750fi
cristy8b350f62009-11-15 23:12:43 +000031751rm -f core conftest.err conftest.$ac_objext \
31752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031753LIBS=$ac_check_lib_save_LIBS
31754fi
cristy03f7cf92011-12-15 01:40:41 +000031755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31756$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31757if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31758 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031759fi
31760
cristy03f7cf92011-12-15 01:40:41 +000031761 if test "$have_libwmflite" = 'yes'; then
31762
31763$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31764
31765 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031766 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031767 have_wmf='yes'
31768 else
31769 WMF_LIBS_DEPS=''
31770 WMF_CONFIG_LIBS=`libwmf-config --libs`
31771 for lib in xml2 expat freetype jpeg png z; do
31772 testlib="-l${lib}"
31773 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31774 done
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31776$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31777if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31778 $as_echo_n "(cached) " >&6
31779else
31780 ac_check_lib_save_LIBS=$LIBS
31781LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31783/* end confdefs.h. */
31784
31785/* Override any GCC internal prototype to avoid an error.
31786 Use char because int might match the return type of a GCC
31787 builtin and then its argument prototype would still apply. */
31788#ifdef __cplusplus
31789extern "C"
31790#endif
31791char wmf_api_create ();
31792int
31793main ()
31794{
31795return wmf_api_create ();
31796 ;
31797 return 0;
31798}
31799_ACEOF
31800if ac_fn_c_try_link "$LINENO"; then :
31801 ac_cv_lib_wmf_wmf_api_create=yes
31802else
31803 ac_cv_lib_wmf_wmf_api_create=no
31804fi
31805rm -f core conftest.err conftest.$ac_objext \
31806 conftest$ac_exeext conftest.$ac_ext
31807LIBS=$ac_check_lib_save_LIBS
31808fi
31809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31810$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31811if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31812 have_libwmf='yes'
31813fi
31814
31815 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031816
cristy8b350f62009-11-15 23:12:43 +000031817$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031818
cristy03f7cf92011-12-15 01:40:41 +000031819 WMF_LIBS='-lwmf'
31820 LIBS="$WMF_LIBS $LIBS"
31821 have_wmf='yes'
31822 else
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31824$as_echo "no -- some components failed test" >&6; }
31825 have_wmf='no (failed tests)'
31826 have_wmflite='no (failed tests)'
31827 LIBS="$OLIBS"
31828 WMF_LIBS=''
31829 fi
glennrp33e524b2011-08-24 17:41:57 +000031830 fi
cristy03f7cf92011-12-15 01:40:41 +000031831 fi
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31833$as_echo_n "checking if WMF package is complete... " >&6; }
31834 if test "$have_wmf" = 'yes'; then
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31836$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031837 else
cristy03f7cf92011-12-15 01:40:41 +000031838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31839$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031840 fi
cristy3ed852e2009-09-05 21:47:34 +000031841fi
cristy73bd4a52010-10-05 11:24:23 +000031842 if test "$have_wmf" = 'yes'; then
31843 WMF_DELEGATE_TRUE=
31844 WMF_DELEGATE_FALSE='#'
31845else
31846 WMF_DELEGATE_TRUE='#'
31847 WMF_DELEGATE_FALSE=
31848fi
31849
cristy3ed852e2009-09-05 21:47:34 +000031850
31851
31852
cristy81beccd2011-10-03 18:17:24 +000031853
31854
cristy3ed852e2009-09-05 21:47:34 +000031855#
31856# Check for XML delegate library.
31857#
31858
31859# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031860if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031861 withval=$with_xml; with_xml=$withval
31862else
cristy81beccd2011-10-03 18:17:24 +000031863 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031864fi
31865
31866
cristy81beccd2011-10-03 18:17:24 +000031867if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031868 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31869fi
31870
cristy81beccd2011-10-03 18:17:24 +000031871have_xml='no'
31872XML_LIBS=''
31873if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31875$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31877$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031878 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31879$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031880 PERSIST_LDFLAGS=$LDFLAGS
31881 PERSIST_CPPFLAGS=$CPPFLAGS
31882 xml2_config=''
31883 # Extract the first word of "xml2-config", so it can be a program name with args.
31884set dummy xml2-config; ac_word=$2
31885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31886$as_echo_n "checking for $ac_word... " >&6; }
31887if ${ac_cv_path_xml2_config+:} false; then :
31888 $as_echo_n "(cached) " >&6
31889else
31890 case $xml2_config in
31891 [\\/]* | ?:[\\/]*)
31892 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31893 ;;
31894 *)
31895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31896for as_dir in $PATH
31897do
31898 IFS=$as_save_IFS
31899 test -z "$as_dir" && as_dir=.
31900 for ac_exec_ext in '' $ac_executable_extensions; do
31901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31902 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31904 break 2
31905 fi
31906done
31907 done
31908IFS=$as_save_IFS
31909
31910 ;;
31911esac
31912fi
31913xml2_config=$ac_cv_path_xml2_config
31914if test -n "$xml2_config"; then
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31916$as_echo "$xml2_config" >&6; }
31917else
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31919$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031920fi
31921
cristy81beccd2011-10-03 18:17:24 +000031922 if test -n "$xml2_config"; then
31923 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31924 # the shared library installed under /usr/lib, whereas the package
31925 # installs itself under $prefix/libxml and $prefix/lib.
31926 xml2_prefix=`xml2-config --prefix`
31927 if test -d "${xml2_prefix}/include/libxml2"; then
31928 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31929 fi
31930 if test "${xml2_prefix}" != '/usr'; then
31931 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31932 fi
31933 fi
31934 failed=0
31935 passed=0
31936 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31937if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31938 passed=`expr $passed + 1`
31939else
31940 failed=`expr $failed + 1`
31941fi
31942
31943
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31945$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31946if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31947 $as_echo_n "(cached) " >&6
31948else
31949 ac_check_lib_save_LIBS=$LIBS
31950LIBS="-lxml2 $LIBS"
31951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31952/* end confdefs.h. */
31953
31954/* Override any GCC internal prototype to avoid an error.
31955 Use char because int might match the return type of a GCC
31956 builtin and then its argument prototype would still apply. */
31957#ifdef __cplusplus
31958extern "C"
31959#endif
31960char xmlSAXVersion ();
31961int
31962main ()
31963{
31964return xmlSAXVersion ();
31965 ;
31966 return 0;
31967}
31968_ACEOF
31969if ac_fn_c_try_link "$LINENO"; then :
31970 ac_cv_lib_xml2_xmlSAXVersion=yes
31971else
31972 ac_cv_lib_xml2_xmlSAXVersion=no
31973fi
31974rm -f core conftest.err conftest.$ac_objext \
31975 conftest$ac_exeext conftest.$ac_ext
31976LIBS=$ac_check_lib_save_LIBS
31977fi
31978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31979$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31980if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31981 passed=`expr $passed + 1`
31982else
31983 failed=`expr $failed + 1`
31984fi
31985
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31987$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31988if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31989 $as_echo_n "(cached) " >&6
31990else
31991 ac_check_lib_save_LIBS=$LIBS
31992LIBS="-lxml2 $LIBS"
31993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31994/* end confdefs.h. */
31995
31996/* Override any GCC internal prototype to avoid an error.
31997 Use char because int might match the return type of a GCC
31998 builtin and then its argument prototype would still apply. */
31999#ifdef __cplusplus
32000extern "C"
32001#endif
32002char xmlParseChunk ();
32003int
32004main ()
32005{
32006return xmlParseChunk ();
32007 ;
32008 return 0;
32009}
32010_ACEOF
32011if ac_fn_c_try_link "$LINENO"; then :
32012 ac_cv_lib_xml2_xmlParseChunk=yes
32013else
32014 ac_cv_lib_xml2_xmlParseChunk=no
32015fi
32016rm -f core conftest.err conftest.$ac_objext \
32017 conftest$ac_exeext conftest.$ac_ext
32018LIBS=$ac_check_lib_save_LIBS
32019fi
32020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32021$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32022if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32023 passed=`expr $passed + 1`
32024else
32025 failed=`expr $failed + 1`
32026fi
32027
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32029$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32030if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32031 $as_echo_n "(cached) " >&6
32032else
32033 ac_check_lib_save_LIBS=$LIBS
32034LIBS="-lxml2 $LIBS"
32035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32036/* end confdefs.h. */
32037
32038/* Override any GCC internal prototype to avoid an error.
32039 Use char because int might match the return type of a GCC
32040 builtin and then its argument prototype would still apply. */
32041#ifdef __cplusplus
32042extern "C"
32043#endif
32044char xmlCreatePushParserCtxt ();
32045int
32046main ()
32047{
32048return xmlCreatePushParserCtxt ();
32049 ;
32050 return 0;
32051}
32052_ACEOF
32053if ac_fn_c_try_link "$LINENO"; then :
32054 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32055else
32056 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32057fi
32058rm -f core conftest.err conftest.$ac_objext \
32059 conftest$ac_exeext conftest.$ac_ext
32060LIBS=$ac_check_lib_save_LIBS
32061fi
32062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32063$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32064if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32065 passed=`expr $passed + 1`
32066else
32067 failed=`expr $failed + 1`
32068fi
32069
32070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32071$as_echo_n "checking if XML package is complete... " >&6; }
32072 if test $passed -gt 0; then
32073 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32075$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032076 have_xml='no (failed tests)'
32077 LDFLAGS="$PERSIST_LDFLAGS"
32078 CPPFLAGS="$PERSIST_CPPFLAGS"
32079 else
32080 XML_LIBS='-lxml2'
32081 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032082
cristy8b350f62009-11-15 23:12:43 +000032083$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032084
cristy09b53e12011-10-14 12:47:22 +000032085 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32086$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032087 have_xml='yes'
32088 fi
32089 else
cristy09b53e12011-10-14 12:47:22 +000032090 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32091$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032092 fi
32093fi
cristy73bd4a52010-10-05 11:24:23 +000032094 if test "$have_xml" = 'yes'; then
32095 XML_DELEGATE_TRUE=
32096 XML_DELEGATE_FALSE='#'
32097else
32098 XML_DELEGATE_TRUE='#'
32099 XML_DELEGATE_FALSE=
32100fi
32101
cristy3ed852e2009-09-05 21:47:34 +000032102
32103
32104
32105# Substitute compiler name to build/link PerlMagick
32106#
32107
32108
32109#
32110# Configure install Paths
32111#
cristy7def36a2011-10-28 19:04:41 +000032112
cristy2a11bef2011-10-28 18:33:11 +000032113# Path to ImageMagick header files
32114INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032115INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32116DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032117case "${build_os}" in
32118 mingw* )
32119 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32120 ;;
32121esac
32122
32123cat >>confdefs.h <<_ACEOF
32124#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32125_ACEOF
32126
32127
cristy3ed852e2009-09-05 21:47:34 +000032128
32129# Subdirectory under lib to place ImageMagick lib files
32130LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32131
32132cat >>confdefs.h <<_ACEOF
32133#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32134_ACEOF
32135
32136
32137# Path to ImageMagick bin directory
32138EXECUTABLE_PATH="${BIN_DIR}"
32139DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32140case "${build_os}" in
32141 mingw* )
32142 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32143 ;;
32144esac
32145
32146cat >>confdefs.h <<_ACEOF
32147#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32148_ACEOF
32149
32150
32151
32152# Path to ImageMagick lib
32153LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32154DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32155case "${build_os}" in
32156 mingw* )
32157 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32158 ;;
32159esac
32160
32161cat >>confdefs.h <<_ACEOF
32162#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32163_ACEOF
32164
32165
32166
cristy3ed852e2009-09-05 21:47:34 +000032167#
32168# Subdirectory under lib to place ImageMagick coder module files
32169CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32170
32171cat >>confdefs.h <<_ACEOF
32172#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32173_ACEOF
32174
32175CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32176DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32177case "${build_os}" in
32178 mingw* )
32179 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32180 ;;
32181esac
32182
32183cat >>confdefs.h <<_ACEOF
32184#define CODER_PATH "$DEFINE_CODER_PATH"
32185_ACEOF
32186
32187
32188
32189#
32190# Subdirectory under lib to place ImageMagick filter module files
32191FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32192
32193cat >>confdefs.h <<_ACEOF
32194#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32195_ACEOF
32196
32197FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32198DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32199case "${build_os}" in
32200 mingw* )
32201 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32202 ;;
32203esac
32204
32205cat >>confdefs.h <<_ACEOF
32206#define FILTER_PATH "$DEFINE_FILTER_PATH"
32207_ACEOF
32208
32209
32210
32211#
32212# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032213DOCUMENTATION_RELATIVE_PATH=""
32214DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32215DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032216case "${build_os}" in
32217 mingw* )
32218 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32219 ;;
32220esac
32221
32222cat >>confdefs.h <<_ACEOF
32223#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32224_ACEOF
32225
32226
32227
cristy2a11bef2011-10-28 18:33:11 +000032228# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032229CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032230
32231cat >>confdefs.h <<_ACEOF
32232#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32233_ACEOF
32234
cristy7def36a2011-10-28 19:04:41 +000032235CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032236DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32237case "${build_os}" in
32238 mingw* )
32239 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32240 ;;
32241esac
32242
32243cat >>confdefs.h <<_ACEOF
32244#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32245_ACEOF
32246
32247
32248
cristy2a11bef2011-10-28 18:33:11 +000032249# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032250SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032251
32252cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032253#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032254_ACEOF
32255
cristy670aa3c2011-11-03 00:54:00 +000032256SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032257DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032258case "${build_os}" in
32259 mingw* )
cristy4f820712011-04-01 12:35:43 +000032260 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032261 ;;
32262esac
32263
32264cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032265#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032266_ACEOF
32267
32268
32269
cristy408ebcd2011-11-14 01:36:57 +000032270# Subdirectory to place architecture-dependent configuration files
32271SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032272
32273cat >>confdefs.h <<_ACEOF
32274#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32275_ACEOF
32276
cristy408ebcd2011-11-14 01:36:57 +000032277SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32278DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032279case "${build_os}" in
32280 mingw* )
32281 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32282 ;;
32283esac
32284
32285cat >>confdefs.h <<_ACEOF
32286#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32287_ACEOF
32288
32289
32290
cristy3ed852e2009-09-05 21:47:34 +000032291#
32292# program_transform_name is formed for use in a Makefile, so create a
32293# modified version for use in a shell script.
32294configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32295
32296# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032297{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32298$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032300$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032301{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32302$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032303AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032304BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032305BZIPDelegateDefault='bzip2'
32306BrowseDelegateDefault='xdg-open'
32307CGMDecodeDelegateDefault='ralcgm'
32308CatDelegateDefault='cat'
32309DNGDecodeDelegateDefault='ufraw-batch'
32310GVCDecodeDelegateDefault='dot'
32311DVIDecodeDelegateDefault='dvips'
32312EchoDelegateDefault='echo'
32313EditorDelegateDefault='xterm'
32314FIGDecodeDelegateDefault='fig2dev'
32315ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32316DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32317MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32318GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032319HPGLDecodeDelegateDefault='hp2xx'
32320HTMLDecodeDelegateDefault='html2ps'
32321ILBMDecodeDelegateDefault='ilbmtoppm'
32322ILBMEncodeDelegateDefault='ppmtoilbm'
32323LPDelegateDefault='lp'
32324LPRDelegateDefault='lpr'
32325LZWDecodeDelegateDefault='uncompress'
32326LZWEncodeDelegateDefault='compress'
32327LaunchDelegateDefault='gimp'
32328MANDelegateDefault='groff'
32329MPEGDecodeDelegateDefault='ffmpeg'
32330MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032331MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032332MVDelegateDefault='mv'
32333PCLDelegateDefault='pcl6'
32334PGPDecodeDelegateDefault='pgpv'
32335POVDelegateDefault='povray'
32336if test "$native_win32_build" = 'yes'; then
32337 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032338elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032339 PSDelegateDefault='gsc'
32340else
32341 PSDelegateDefault='gs'
32342fi
32343RLEEncodeDelegateDefault='rawtorle'
32344RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032345RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032346SCANDecodeDelegateDefault='scanimage'
32347TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032348UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032349WMFDecodeDelegateDefault='wmf2eps'
32350WWWDecodeDelegateDefault='curl'
32351XPSDelegateDefault='gxps'
32352ZipDelegateDefault='gzip'
32353
32354# Search for delegates
32355# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32356set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032359if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032360 $as_echo_n "(cached) " >&6
32361else
32362 case $AutotraceDecodeDelegate in
32363 [\\/]* | ?:[\\/]*)
32364 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32365 ;;
32366 *)
32367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32368for as_dir in $PATH
32369do
32370 IFS=$as_save_IFS
32371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32374 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032376 break 2
32377 fi
32378done
cristy8b350f62009-11-15 23:12:43 +000032379 done
cristy3ed852e2009-09-05 21:47:34 +000032380IFS=$as_save_IFS
32381
32382 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32383 ;;
32384esac
32385fi
32386AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32387if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032389$as_echo "$AutotraceDecodeDelegate" >&6; }
32390else
cristy8b350f62009-11-15 23:12:43 +000032391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032392$as_echo "no" >&6; }
32393fi
32394
32395
cristy3ed852e2009-09-05 21:47:34 +000032396# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32397set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032400if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032401 $as_echo_n "(cached) " >&6
32402else
32403 case $BlenderDecodeDelegate in
32404 [\\/]* | ?:[\\/]*)
32405 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32406 ;;
32407 *)
32408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32409for as_dir in $PATH
32410do
32411 IFS=$as_save_IFS
32412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032413 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32415 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032417 break 2
32418 fi
32419done
cristy8b350f62009-11-15 23:12:43 +000032420 done
cristy3ed852e2009-09-05 21:47:34 +000032421IFS=$as_save_IFS
32422
32423 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32424 ;;
32425esac
32426fi
32427BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32428if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032430$as_echo "$BlenderDecodeDelegate" >&6; }
32431else
cristy8b350f62009-11-15 23:12:43 +000032432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032433$as_echo "no" >&6; }
32434fi
32435
32436
32437# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32438set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032440$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032441if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032442 $as_echo_n "(cached) " >&6
32443else
32444 case $BZIPDelegate in
32445 [\\/]* | ?:[\\/]*)
32446 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32447 ;;
32448 *)
32449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450for as_dir in $PATH
32451do
32452 IFS=$as_save_IFS
32453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32456 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458 break 2
32459 fi
32460done
cristy8b350f62009-11-15 23:12:43 +000032461 done
cristy3ed852e2009-09-05 21:47:34 +000032462IFS=$as_save_IFS
32463
32464 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32465 ;;
32466esac
32467fi
32468BZIPDelegate=$ac_cv_path_BZIPDelegate
32469if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032471$as_echo "$BZIPDelegate" >&6; }
32472else
cristy8b350f62009-11-15 23:12:43 +000032473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032474$as_echo "no" >&6; }
32475fi
32476
32477
32478# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32479set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032481$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032482if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032483 $as_echo_n "(cached) " >&6
32484else
32485 case $BrowseDelegate in
32486 [\\/]* | ?:[\\/]*)
32487 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32488 ;;
32489 *)
32490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32491for as_dir in $PATH
32492do
32493 IFS=$as_save_IFS
32494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32497 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032499 break 2
32500 fi
32501done
cristy8b350f62009-11-15 23:12:43 +000032502 done
cristy3ed852e2009-09-05 21:47:34 +000032503IFS=$as_save_IFS
32504
32505 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32506 ;;
32507esac
32508fi
32509BrowseDelegate=$ac_cv_path_BrowseDelegate
32510if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032512$as_echo "$BrowseDelegate" >&6; }
32513else
cristy8b350f62009-11-15 23:12:43 +000032514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032515$as_echo "no" >&6; }
32516fi
32517
32518
32519# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32520set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032523if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032524 $as_echo_n "(cached) " >&6
32525else
32526 case $CGMDecodeDelegate in
32527 [\\/]* | ?:[\\/]*)
32528 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32529 ;;
32530 *)
32531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32532for as_dir in $PATH
32533do
32534 IFS=$as_save_IFS
32535 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32538 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032540 break 2
32541 fi
32542done
cristy8b350f62009-11-15 23:12:43 +000032543 done
cristy3ed852e2009-09-05 21:47:34 +000032544IFS=$as_save_IFS
32545
32546 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32547 ;;
32548esac
32549fi
32550CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32551if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032553$as_echo "$CGMDecodeDelegate" >&6; }
32554else
cristy8b350f62009-11-15 23:12:43 +000032555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032556$as_echo "no" >&6; }
32557fi
32558
32559
32560# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32561set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032563$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032564if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032565 $as_echo_n "(cached) " >&6
32566else
32567 case $CatDelegate in
32568 [\\/]* | ?:[\\/]*)
32569 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32570 ;;
32571 *)
32572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32573for as_dir in $PATH
32574do
32575 IFS=$as_save_IFS
32576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32579 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032581 break 2
32582 fi
32583done
cristy8b350f62009-11-15 23:12:43 +000032584 done
cristy3ed852e2009-09-05 21:47:34 +000032585IFS=$as_save_IFS
32586
32587 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32588 ;;
32589esac
32590fi
32591CatDelegate=$ac_cv_path_CatDelegate
32592if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032594$as_echo "$CatDelegate" >&6; }
32595else
cristy8b350f62009-11-15 23:12:43 +000032596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032597$as_echo "no" >&6; }
32598fi
32599
32600
32601# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32602set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032605if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032606 $as_echo_n "(cached) " >&6
32607else
32608 case $DNGDecodeDelegate in
32609 [\\/]* | ?:[\\/]*)
32610 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32611 ;;
32612 *)
32613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32614for as_dir in $PATH
32615do
32616 IFS=$as_save_IFS
32617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32620 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032622 break 2
32623 fi
32624done
cristy8b350f62009-11-15 23:12:43 +000032625 done
cristy3ed852e2009-09-05 21:47:34 +000032626IFS=$as_save_IFS
32627
32628 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32629 ;;
32630esac
32631fi
32632DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32633if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032635$as_echo "$DNGDecodeDelegate" >&6; }
32636else
cristy8b350f62009-11-15 23:12:43 +000032637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032638$as_echo "no" >&6; }
32639fi
32640
32641
32642# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32643set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032646if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032647 $as_echo_n "(cached) " >&6
32648else
32649 case $GVCDecodeDelegate in
32650 [\\/]* | ?:[\\/]*)
32651 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32652 ;;
32653 *)
32654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32655for as_dir in $PATH
32656do
32657 IFS=$as_save_IFS
32658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32661 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032663 break 2
32664 fi
32665done
cristy8b350f62009-11-15 23:12:43 +000032666 done
cristy3ed852e2009-09-05 21:47:34 +000032667IFS=$as_save_IFS
32668
32669 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32670 ;;
32671esac
32672fi
32673GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32674if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032676$as_echo "$GVCDecodeDelegate" >&6; }
32677else
cristy8b350f62009-11-15 23:12:43 +000032678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032679$as_echo "no" >&6; }
32680fi
32681
32682
32683# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32684set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032687if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032688 $as_echo_n "(cached) " >&6
32689else
32690 case $DVIDecodeDelegate in
32691 [\\/]* | ?:[\\/]*)
32692 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32693 ;;
32694 *)
32695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32696for as_dir in $PATH
32697do
32698 IFS=$as_save_IFS
32699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32702 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032704 break 2
32705 fi
32706done
cristy8b350f62009-11-15 23:12:43 +000032707 done
cristy3ed852e2009-09-05 21:47:34 +000032708IFS=$as_save_IFS
32709
32710 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32711 ;;
32712esac
32713fi
32714DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32715if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032717$as_echo "$DVIDecodeDelegate" >&6; }
32718else
cristy8b350f62009-11-15 23:12:43 +000032719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032720$as_echo "no" >&6; }
32721fi
32722
32723
32724# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32725set dummy "$EchoDelegateDefault"; 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_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032729 $as_echo_n "(cached) " >&6
32730else
32731 case $EchoDelegate in
32732 [\\/]* | ?:[\\/]*)
32733 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32734 ;;
32735 *)
32736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32737for as_dir in $PATH
32738do
32739 IFS=$as_save_IFS
32740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32743 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032745 break 2
32746 fi
32747done
cristy8b350f62009-11-15 23:12:43 +000032748 done
cristy3ed852e2009-09-05 21:47:34 +000032749IFS=$as_save_IFS
32750
32751 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32752 ;;
32753esac
32754fi
32755EchoDelegate=$ac_cv_path_EchoDelegate
32756if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032758$as_echo "$EchoDelegate" >&6; }
32759else
cristy8b350f62009-11-15 23:12:43 +000032760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032761$as_echo "no" >&6; }
32762fi
32763
32764
32765# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32766set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032769if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032770 $as_echo_n "(cached) " >&6
32771else
32772 case $EditorDelegate in
32773 [\\/]* | ?:[\\/]*)
32774 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32775 ;;
32776 *)
32777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32778for as_dir in $PATH
32779do
32780 IFS=$as_save_IFS
32781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32784 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032786 break 2
32787 fi
32788done
cristy8b350f62009-11-15 23:12:43 +000032789 done
cristy3ed852e2009-09-05 21:47:34 +000032790IFS=$as_save_IFS
32791
32792 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32793 ;;
32794esac
32795fi
32796EditorDelegate=$ac_cv_path_EditorDelegate
32797if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032799$as_echo "$EditorDelegate" >&6; }
32800else
cristy8b350f62009-11-15 23:12:43 +000032801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032802$as_echo "no" >&6; }
32803fi
32804
32805
32806# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32807set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032810if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032811 $as_echo_n "(cached) " >&6
32812else
32813 case $FIGDecodeDelegate in
32814 [\\/]* | ?:[\\/]*)
32815 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32816 ;;
32817 *)
32818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32819for as_dir in $PATH
32820do
32821 IFS=$as_save_IFS
32822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32825 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827 break 2
32828 fi
32829done
cristy8b350f62009-11-15 23:12:43 +000032830 done
cristy3ed852e2009-09-05 21:47:34 +000032831IFS=$as_save_IFS
32832
32833 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32834 ;;
32835esac
32836fi
32837FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32838if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032840$as_echo "$FIGDecodeDelegate" >&6; }
32841else
cristy8b350f62009-11-15 23:12:43 +000032842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo "no" >&6; }
32844fi
32845
32846
32847# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32848set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032851if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032852 $as_echo_n "(cached) " >&6
32853else
32854 case $ConvertDelegate in
32855 [\\/]* | ?:[\\/]*)
32856 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32857 ;;
32858 *)
32859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32860for as_dir in $PATH
32861do
32862 IFS=$as_save_IFS
32863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32866 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868 break 2
32869 fi
32870done
cristy8b350f62009-11-15 23:12:43 +000032871 done
cristy3ed852e2009-09-05 21:47:34 +000032872IFS=$as_save_IFS
32873
32874 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32875 ;;
32876esac
32877fi
32878ConvertDelegate=$ac_cv_path_ConvertDelegate
32879if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032881$as_echo "$ConvertDelegate" >&6; }
32882else
cristy8b350f62009-11-15 23:12:43 +000032883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884$as_echo "no" >&6; }
32885fi
32886
32887
32888# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32889set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032892if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032893 $as_echo_n "(cached) " >&6
32894else
32895 case $DisplayDelegate in
32896 [\\/]* | ?:[\\/]*)
32897 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32898 ;;
32899 *)
32900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32901for as_dir in $PATH
32902do
32903 IFS=$as_save_IFS
32904 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32907 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909 break 2
32910 fi
32911done
cristy8b350f62009-11-15 23:12:43 +000032912 done
cristy3ed852e2009-09-05 21:47:34 +000032913IFS=$as_save_IFS
32914
32915 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32916 ;;
32917esac
32918fi
32919DisplayDelegate=$ac_cv_path_DisplayDelegate
32920if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032922$as_echo "$DisplayDelegate" >&6; }
32923else
cristy8b350f62009-11-15 23:12:43 +000032924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo "no" >&6; }
32926fi
32927
32928
32929# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32930set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032933if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032934 $as_echo_n "(cached) " >&6
32935else
32936 case $MogrifyDelegate in
32937 [\\/]* | ?:[\\/]*)
32938 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32939 ;;
32940 *)
32941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32942for as_dir in $PATH
32943do
32944 IFS=$as_save_IFS
32945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32948 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950 break 2
32951 fi
32952done
cristy8b350f62009-11-15 23:12:43 +000032953 done
cristy3ed852e2009-09-05 21:47:34 +000032954IFS=$as_save_IFS
32955
32956 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32957 ;;
32958esac
32959fi
32960MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32961if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032963$as_echo "$MogrifyDelegate" >&6; }
32964else
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo "no" >&6; }
32967fi
32968
32969
32970# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32971set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032974if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032975 $as_echo_n "(cached) " >&6
32976else
32977 case $GnuplotDecodeDelegate in
32978 [\\/]* | ?:[\\/]*)
32979 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32980 ;;
32981 *)
32982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32983for as_dir in $PATH
32984do
32985 IFS=$as_save_IFS
32986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32989 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991 break 2
32992 fi
32993done
cristy8b350f62009-11-15 23:12:43 +000032994 done
cristy3ed852e2009-09-05 21:47:34 +000032995IFS=$as_save_IFS
32996
32997 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32998 ;;
32999esac
33000fi
33001GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33002if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004$as_echo "$GnuplotDecodeDelegate" >&6; }
33005else
cristy8b350f62009-11-15 23:12:43 +000033006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo "no" >&6; }
33008fi
33009
33010
cristy3ed852e2009-09-05 21:47:34 +000033011# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33012set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033015if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033016 $as_echo_n "(cached) " >&6
33017else
33018 case $HPGLDecodeDelegate in
33019 [\\/]* | ?:[\\/]*)
33020 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33021 ;;
33022 *)
33023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33024for as_dir in $PATH
33025do
33026 IFS=$as_save_IFS
33027 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33030 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032 break 2
33033 fi
33034done
cristy8b350f62009-11-15 23:12:43 +000033035 done
cristy3ed852e2009-09-05 21:47:34 +000033036IFS=$as_save_IFS
33037
33038 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33039 ;;
33040esac
33041fi
33042HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33043if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033045$as_echo "$HPGLDecodeDelegate" >&6; }
33046else
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo "no" >&6; }
33049fi
33050
33051
33052# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33053set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033056if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033057 $as_echo_n "(cached) " >&6
33058else
33059 case $HTMLDecodeDelegate in
33060 [\\/]* | ?:[\\/]*)
33061 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33062 ;;
33063 *)
33064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33065for as_dir in $PATH
33066do
33067 IFS=$as_save_IFS
33068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33071 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073 break 2
33074 fi
33075done
cristy8b350f62009-11-15 23:12:43 +000033076 done
cristy3ed852e2009-09-05 21:47:34 +000033077IFS=$as_save_IFS
33078
33079 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33080 ;;
33081esac
33082fi
33083HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33084if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033086$as_echo "$HTMLDecodeDelegate" >&6; }
33087else
cristy8b350f62009-11-15 23:12:43 +000033088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo "no" >&6; }
33090fi
33091
33092
33093# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33094set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033097if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033098 $as_echo_n "(cached) " >&6
33099else
33100 case $ILBMDecodeDelegate in
33101 [\\/]* | ?:[\\/]*)
33102 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33103 ;;
33104 *)
33105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33106for as_dir in $PATH
33107do
33108 IFS=$as_save_IFS
33109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33112 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114 break 2
33115 fi
33116done
cristy8b350f62009-11-15 23:12:43 +000033117 done
cristy3ed852e2009-09-05 21:47:34 +000033118IFS=$as_save_IFS
33119
33120 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33121 ;;
33122esac
33123fi
33124ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33125if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033127$as_echo "$ILBMDecodeDelegate" >&6; }
33128else
cristy8b350f62009-11-15 23:12:43 +000033129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "no" >&6; }
33131fi
33132
33133
33134# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33135set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033138if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033139 $as_echo_n "(cached) " >&6
33140else
33141 case $ILBMEncodeDelegate in
33142 [\\/]* | ?:[\\/]*)
33143 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33144 ;;
33145 *)
33146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33147for as_dir in $PATH
33148do
33149 IFS=$as_save_IFS
33150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33153 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155 break 2
33156 fi
33157done
cristy8b350f62009-11-15 23:12:43 +000033158 done
cristy3ed852e2009-09-05 21:47:34 +000033159IFS=$as_save_IFS
33160
33161 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33162 ;;
33163esac
33164fi
33165ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33166if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033168$as_echo "$ILBMEncodeDelegate" >&6; }
33169else
cristy8b350f62009-11-15 23:12:43 +000033170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo "no" >&6; }
33172fi
33173
33174
33175# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33176set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033179if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033180 $as_echo_n "(cached) " >&6
33181else
33182 case $LPDelegate in
33183 [\\/]* | ?:[\\/]*)
33184 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33185 ;;
33186 *)
33187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33188for as_dir in $PATH
33189do
33190 IFS=$as_save_IFS
33191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33194 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196 break 2
33197 fi
33198done
cristy8b350f62009-11-15 23:12:43 +000033199 done
cristy3ed852e2009-09-05 21:47:34 +000033200IFS=$as_save_IFS
33201
33202 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33203 ;;
33204esac
33205fi
33206LPDelegate=$ac_cv_path_LPDelegate
33207if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033209$as_echo "$LPDelegate" >&6; }
33210else
cristy8b350f62009-11-15 23:12:43 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo "no" >&6; }
33213fi
33214
33215
33216# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33217set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033220if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033221 $as_echo_n "(cached) " >&6
33222else
33223 case $LPRDelegate in
33224 [\\/]* | ?:[\\/]*)
33225 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33226 ;;
33227 *)
33228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33229for as_dir in $PATH
33230do
33231 IFS=$as_save_IFS
33232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33235 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237 break 2
33238 fi
33239done
cristy8b350f62009-11-15 23:12:43 +000033240 done
cristy3ed852e2009-09-05 21:47:34 +000033241IFS=$as_save_IFS
33242
33243 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33244 ;;
33245esac
33246fi
33247LPRDelegate=$ac_cv_path_LPRDelegate
33248if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033250$as_echo "$LPRDelegate" >&6; }
33251else
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "no" >&6; }
33254fi
33255
33256
33257# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33258set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033261if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033262 $as_echo_n "(cached) " >&6
33263else
33264 case $LZWDecodeDelegate in
33265 [\\/]* | ?:[\\/]*)
33266 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33267 ;;
33268 *)
33269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33270for as_dir in $PATH
33271do
33272 IFS=$as_save_IFS
33273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33276 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278 break 2
33279 fi
33280done
cristy8b350f62009-11-15 23:12:43 +000033281 done
cristy3ed852e2009-09-05 21:47:34 +000033282IFS=$as_save_IFS
33283
33284 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33285 ;;
33286esac
33287fi
33288LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33289if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033291$as_echo "$LZWDecodeDelegate" >&6; }
33292else
cristy8b350f62009-11-15 23:12:43 +000033293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294$as_echo "no" >&6; }
33295fi
33296
33297
33298# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33299set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033302if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033303 $as_echo_n "(cached) " >&6
33304else
33305 case $LZWEncodeDelegate in
33306 [\\/]* | ?:[\\/]*)
33307 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33308 ;;
33309 *)
33310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33311for as_dir in $PATH
33312do
33313 IFS=$as_save_IFS
33314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33317 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319 break 2
33320 fi
33321done
cristy8b350f62009-11-15 23:12:43 +000033322 done
cristy3ed852e2009-09-05 21:47:34 +000033323IFS=$as_save_IFS
33324
33325 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33326 ;;
33327esac
33328fi
33329LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33330if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033332$as_echo "$LZWEncodeDelegate" >&6; }
33333else
cristy8b350f62009-11-15 23:12:43 +000033334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo "no" >&6; }
33336fi
33337
33338
33339# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33340set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033343if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033344 $as_echo_n "(cached) " >&6
33345else
33346 case $LaunchDelegate in
33347 [\\/]* | ?:[\\/]*)
33348 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33349 ;;
33350 *)
33351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33352for as_dir in $PATH
33353do
33354 IFS=$as_save_IFS
33355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33358 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360 break 2
33361 fi
33362done
cristy8b350f62009-11-15 23:12:43 +000033363 done
cristy3ed852e2009-09-05 21:47:34 +000033364IFS=$as_save_IFS
33365
33366 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33367 ;;
33368esac
33369fi
33370LaunchDelegate=$ac_cv_path_LaunchDelegate
33371if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo "$LaunchDelegate" >&6; }
33374else
cristy8b350f62009-11-15 23:12:43 +000033375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo "no" >&6; }
33377fi
33378
33379
33380# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33381set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033384if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033385 $as_echo_n "(cached) " >&6
33386else
33387 case $MANDelegate in
33388 [\\/]* | ?:[\\/]*)
33389 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33390 ;;
33391 *)
33392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33393for as_dir in $PATH
33394do
33395 IFS=$as_save_IFS
33396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33399 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401 break 2
33402 fi
33403done
cristy8b350f62009-11-15 23:12:43 +000033404 done
cristy3ed852e2009-09-05 21:47:34 +000033405IFS=$as_save_IFS
33406
33407 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33408 ;;
33409esac
33410fi
33411MANDelegate=$ac_cv_path_MANDelegate
33412if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033414$as_echo "$MANDelegate" >&6; }
33415else
cristy8b350f62009-11-15 23:12:43 +000033416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo "no" >&6; }
33418fi
33419
33420
33421# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33422set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033425if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033426 $as_echo_n "(cached) " >&6
33427else
33428 case $MPEGDecodeDelegate in
33429 [\\/]* | ?:[\\/]*)
33430 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33431 ;;
33432 *)
33433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33434for as_dir in $PATH
33435do
33436 IFS=$as_save_IFS
33437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33440 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442 break 2
33443 fi
33444done
cristy8b350f62009-11-15 23:12:43 +000033445 done
cristy3ed852e2009-09-05 21:47:34 +000033446IFS=$as_save_IFS
33447
33448 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33449 ;;
33450esac
33451fi
33452MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33453if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033455$as_echo "$MPEGDecodeDelegate" >&6; }
33456else
cristy8b350f62009-11-15 23:12:43 +000033457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo "no" >&6; }
33459fi
33460
33461
33462# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33463set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033466if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033467 $as_echo_n "(cached) " >&6
33468else
33469 case $MPEGEncodeDelegate in
33470 [\\/]* | ?:[\\/]*)
33471 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33472 ;;
33473 *)
33474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33475for as_dir in $PATH
33476do
33477 IFS=$as_save_IFS
33478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33481 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483 break 2
33484 fi
33485done
cristy8b350f62009-11-15 23:12:43 +000033486 done
cristy3ed852e2009-09-05 21:47:34 +000033487IFS=$as_save_IFS
33488
33489 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33490 ;;
33491esac
33492fi
33493MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33494if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033496$as_echo "$MPEGEncodeDelegate" >&6; }
33497else
cristy8b350f62009-11-15 23:12:43 +000033498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo "no" >&6; }
33500fi
33501
33502
cristy935c86e2010-06-05 23:50:07 +000033503# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33504set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033507if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033508 $as_echo_n "(cached) " >&6
33509else
33510 case $MrSIDDecodeDelegate in
33511 [\\/]* | ?:[\\/]*)
33512 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33513 ;;
33514 *)
33515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33516for as_dir in $PATH
33517do
33518 IFS=$as_save_IFS
33519 test -z "$as_dir" && as_dir=.
33520 for ac_exec_ext in '' $ac_executable_extensions; do
33521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33522 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33524 break 2
33525 fi
33526done
33527 done
33528IFS=$as_save_IFS
33529
33530 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33531 ;;
33532esac
33533fi
33534MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33535if test -n "$MrSIDDecodeDelegate"; then
33536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33537$as_echo "$MrSIDDecodeDelegate" >&6; }
33538else
33539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33540$as_echo "no" >&6; }
33541fi
33542
33543
cristy3ed852e2009-09-05 21:47:34 +000033544# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33545set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033548if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033549 $as_echo_n "(cached) " >&6
33550else
33551 case $MVDelegate in
33552 [\\/]* | ?:[\\/]*)
33553 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33554 ;;
33555 *)
33556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33557for as_dir in $PATH
33558do
33559 IFS=$as_save_IFS
33560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33563 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565 break 2
33566 fi
33567done
cristy8b350f62009-11-15 23:12:43 +000033568 done
cristy3ed852e2009-09-05 21:47:34 +000033569IFS=$as_save_IFS
33570
33571 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33572 ;;
33573esac
33574fi
33575MVDelegate=$ac_cv_path_MVDelegate
33576if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578$as_echo "$MVDelegate" >&6; }
33579else
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "no" >&6; }
33582fi
33583
33584
33585# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33586set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033589if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033590 $as_echo_n "(cached) " >&6
33591else
33592 case $PCLDelegate in
33593 [\\/]* | ?:[\\/]*)
33594 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33595 ;;
33596 *)
33597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33598for as_dir in $PATH
33599do
33600 IFS=$as_save_IFS
33601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33604 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606 break 2
33607 fi
33608done
cristy8b350f62009-11-15 23:12:43 +000033609 done
cristy3ed852e2009-09-05 21:47:34 +000033610IFS=$as_save_IFS
33611
33612 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33613 ;;
33614esac
33615fi
33616PCLDelegate=$ac_cv_path_PCLDelegate
33617if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033619$as_echo "$PCLDelegate" >&6; }
33620else
cristy8b350f62009-11-15 23:12:43 +000033621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo "no" >&6; }
33623fi
33624
33625
33626# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33627set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033630if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033631 $as_echo_n "(cached) " >&6
33632else
33633 case $PGPDecodeDelegate in
33634 [\\/]* | ?:[\\/]*)
33635 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33636 ;;
33637 *)
33638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33639for as_dir in $PATH
33640do
33641 IFS=$as_save_IFS
33642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33645 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647 break 2
33648 fi
33649done
cristy8b350f62009-11-15 23:12:43 +000033650 done
cristy3ed852e2009-09-05 21:47:34 +000033651IFS=$as_save_IFS
33652
33653 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33654 ;;
33655esac
33656fi
33657PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33658if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660$as_echo "$PGPDecodeDelegate" >&6; }
33661else
cristy8b350f62009-11-15 23:12:43 +000033662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo "no" >&6; }
33664fi
33665
33666
33667# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33668set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033671if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033672 $as_echo_n "(cached) " >&6
33673else
33674 case $POVDelegate in
33675 [\\/]* | ?:[\\/]*)
33676 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33677 ;;
33678 *)
33679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33680for as_dir in $PATH
33681do
33682 IFS=$as_save_IFS
33683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33686 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688 break 2
33689 fi
33690done
cristy8b350f62009-11-15 23:12:43 +000033691 done
cristy3ed852e2009-09-05 21:47:34 +000033692IFS=$as_save_IFS
33693
33694 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33695 ;;
33696esac
33697fi
33698POVDelegate=$ac_cv_path_POVDelegate
33699if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033701$as_echo "$POVDelegate" >&6; }
33702else
cristy8b350f62009-11-15 23:12:43 +000033703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033704$as_echo "no" >&6; }
33705fi
33706
33707
33708for ac_prog in gsx gsc "$PSDelegateDefault"
33709do
33710 # Extract the first word of "$ac_prog", so it can be a program name with args.
33711set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033714if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033715 $as_echo_n "(cached) " >&6
33716else
33717 case $PSDelegate in
33718 [\\/]* | ?:[\\/]*)
33719 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33720 ;;
33721 *)
33722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33723for as_dir in $PATH
33724do
33725 IFS=$as_save_IFS
33726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33729 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033731 break 2
33732 fi
33733done
cristy8b350f62009-11-15 23:12:43 +000033734 done
cristy3ed852e2009-09-05 21:47:34 +000033735IFS=$as_save_IFS
33736
33737 ;;
33738esac
33739fi
33740PSDelegate=$ac_cv_path_PSDelegate
33741if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033743$as_echo "$PSDelegate" >&6; }
33744else
cristy8b350f62009-11-15 23:12:43 +000033745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746$as_echo "no" >&6; }
33747fi
33748
33749
33750 test -n "$PSDelegate" && break
33751done
33752test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33753
33754# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33755set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033757$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033758if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033759 $as_echo_n "(cached) " >&6
33760else
33761 case $RLEEncodeDelegate in
33762 [\\/]* | ?:[\\/]*)
33763 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33764 ;;
33765 *)
33766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33767for as_dir in $PATH
33768do
33769 IFS=$as_save_IFS
33770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33773 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775 break 2
33776 fi
33777done
cristy8b350f62009-11-15 23:12:43 +000033778 done
cristy3ed852e2009-09-05 21:47:34 +000033779IFS=$as_save_IFS
33780
33781 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33782 ;;
33783esac
33784fi
33785RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33786if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033788$as_echo "$RLEEncodeDelegate" >&6; }
33789else
cristy8b350f62009-11-15 23:12:43 +000033790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791$as_echo "no" >&6; }
33792fi
33793
33794
33795# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33796set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033799if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033800 $as_echo_n "(cached) " >&6
33801else
33802 case $RMDelegate in
33803 [\\/]* | ?:[\\/]*)
33804 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33805 ;;
33806 *)
33807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33808for as_dir in $PATH
33809do
33810 IFS=$as_save_IFS
33811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33814 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033816 break 2
33817 fi
33818done
cristy8b350f62009-11-15 23:12:43 +000033819 done
cristy3ed852e2009-09-05 21:47:34 +000033820IFS=$as_save_IFS
33821
33822 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33823 ;;
33824esac
33825fi
33826RMDelegate=$ac_cv_path_RMDelegate
33827if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033829$as_echo "$RMDelegate" >&6; }
33830else
cristy8b350f62009-11-15 23:12:43 +000033831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033832$as_echo "no" >&6; }
33833fi
33834
33835
cristy4689cf02010-02-17 21:15:45 +000033836# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33837set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033840if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033841 $as_echo_n "(cached) " >&6
33842else
33843 case $RSVGDecodeDelegate in
33844 [\\/]* | ?:[\\/]*)
33845 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33846 ;;
33847 *)
33848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33849for as_dir in $PATH
33850do
33851 IFS=$as_save_IFS
33852 test -z "$as_dir" && as_dir=.
33853 for ac_exec_ext in '' $ac_executable_extensions; do
33854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33855 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33857 break 2
33858 fi
33859done
33860 done
33861IFS=$as_save_IFS
33862
33863 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33864 ;;
33865esac
33866fi
33867RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33868if test -n "$RSVGDecodeDelegate"; then
33869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33870$as_echo "$RSVGDecodeDelegate" >&6; }
33871else
33872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33873$as_echo "no" >&6; }
33874fi
33875
33876
cristy3ed852e2009-09-05 21:47:34 +000033877# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33878set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033881if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033882 $as_echo_n "(cached) " >&6
33883else
33884 case $SCANDecodeDelegate in
33885 [\\/]* | ?:[\\/]*)
33886 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33887 ;;
33888 *)
33889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33890for as_dir in $PATH
33891do
33892 IFS=$as_save_IFS
33893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33896 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898 break 2
33899 fi
33900done
cristy8b350f62009-11-15 23:12:43 +000033901 done
cristy3ed852e2009-09-05 21:47:34 +000033902IFS=$as_save_IFS
33903
33904 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33905 ;;
33906esac
33907fi
33908SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33909if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033911$as_echo "$SCANDecodeDelegate" >&6; }
33912else
cristy8b350f62009-11-15 23:12:43 +000033913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914$as_echo "no" >&6; }
33915fi
33916
33917
33918# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33919set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033922if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033923 $as_echo_n "(cached) " >&6
33924else
33925 case $TXTDelegate in
33926 [\\/]* | ?:[\\/]*)
33927 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33928 ;;
33929 *)
33930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33931for as_dir in $PATH
33932do
33933 IFS=$as_save_IFS
33934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33937 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033939 break 2
33940 fi
33941done
cristy8b350f62009-11-15 23:12:43 +000033942 done
cristy3ed852e2009-09-05 21:47:34 +000033943IFS=$as_save_IFS
33944
33945 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33946 ;;
33947esac
33948fi
33949TXTDelegate=$ac_cv_path_TXTDelegate
33950if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033952$as_echo "$TXTDelegate" >&6; }
33953else
cristy8b350f62009-11-15 23:12:43 +000033954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033955$as_echo "no" >&6; }
33956fi
33957
33958
cristy5ac9ac82010-07-29 13:24:24 +000033959# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33960set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033963if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033964 $as_echo_n "(cached) " >&6
33965else
33966 case $UniconvertorDelegate in
33967 [\\/]* | ?:[\\/]*)
33968 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33969 ;;
33970 *)
33971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33972for as_dir in $PATH
33973do
33974 IFS=$as_save_IFS
33975 test -z "$as_dir" && as_dir=.
33976 for ac_exec_ext in '' $ac_executable_extensions; do
33977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33978 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33980 break 2
33981 fi
33982done
33983 done
33984IFS=$as_save_IFS
33985
33986 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33987 ;;
33988esac
33989fi
33990UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33991if test -n "$UniconvertorDelegate"; then
33992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33993$as_echo "$UniconvertorDelegate" >&6; }
33994else
33995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33996$as_echo "no" >&6; }
33997fi
33998
33999
cristy3ed852e2009-09-05 21:47:34 +000034000# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34001set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034004if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034005 $as_echo_n "(cached) " >&6
34006else
34007 case $WMFDecodeDelegate in
34008 [\\/]* | ?:[\\/]*)
34009 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34010 ;;
34011 *)
34012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34013for as_dir in $PATH
34014do
34015 IFS=$as_save_IFS
34016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34019 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034021 break 2
34022 fi
34023done
cristy8b350f62009-11-15 23:12:43 +000034024 done
cristy3ed852e2009-09-05 21:47:34 +000034025IFS=$as_save_IFS
34026
34027 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34028 ;;
34029esac
34030fi
34031WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34032if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034034$as_echo "$WMFDecodeDelegate" >&6; }
34035else
cristy8b350f62009-11-15 23:12:43 +000034036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034037$as_echo "no" >&6; }
34038fi
34039
34040
34041# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34042set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034045if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034046 $as_echo_n "(cached) " >&6
34047else
34048 case $WWWDecodeDelegate in
34049 [\\/]* | ?:[\\/]*)
34050 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34051 ;;
34052 *)
34053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34054for as_dir in $PATH
34055do
34056 IFS=$as_save_IFS
34057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34060 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034062 break 2
34063 fi
34064done
cristy8b350f62009-11-15 23:12:43 +000034065 done
cristy3ed852e2009-09-05 21:47:34 +000034066IFS=$as_save_IFS
34067
34068 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34069 ;;
34070esac
34071fi
34072WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34073if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034075$as_echo "$WWWDecodeDelegate" >&6; }
34076else
cristy8b350f62009-11-15 23:12:43 +000034077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034078$as_echo "no" >&6; }
34079fi
34080
34081
34082# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34083set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034086if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034087 $as_echo_n "(cached) " >&6
34088else
34089 case $XPSDelegate in
34090 [\\/]* | ?:[\\/]*)
34091 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34092 ;;
34093 *)
34094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34095for as_dir in $PATH
34096do
34097 IFS=$as_save_IFS
34098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34101 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034103 break 2
34104 fi
34105done
cristy8b350f62009-11-15 23:12:43 +000034106 done
cristy3ed852e2009-09-05 21:47:34 +000034107IFS=$as_save_IFS
34108
34109 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34110 ;;
34111esac
34112fi
34113XPSDelegate=$ac_cv_path_XPSDelegate
34114if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034116$as_echo "$XPSDelegate" >&6; }
34117else
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo "no" >&6; }
34120fi
34121
34122
34123# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34124set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034127if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034128 $as_echo_n "(cached) " >&6
34129else
34130 case $ZipDelegate in
34131 [\\/]* | ?:[\\/]*)
34132 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34133 ;;
34134 *)
34135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34136for as_dir in $PATH
34137do
34138 IFS=$as_save_IFS
34139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34142 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034144 break 2
34145 fi
34146done
cristy8b350f62009-11-15 23:12:43 +000034147 done
cristy3ed852e2009-09-05 21:47:34 +000034148IFS=$as_save_IFS
34149
34150 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34151 ;;
34152esac
34153fi
34154ZipDelegate=$ac_cv_path_ZipDelegate
34155if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034157$as_echo "$ZipDelegate" >&6; }
34158else
cristy8b350f62009-11-15 23:12:43 +000034159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160$as_echo "no" >&6; }
34161fi
34162
34163
34164
34165# Prefer lpr to lp; lp needs options tacked on.
34166if test "$LPRDelegate" != no; then
34167 PrintDelegate="$LPRDelegate"
34168else
34169 PrintDelegate="$LPDelegate -c -s"
34170fi
34171
34172
34173# Installed ImageMagick utiltity paths
34174ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34175DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34176MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34177
34178# Set delegate booleans
34179have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34180have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34181have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34182have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34183have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034184have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034185have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34186have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034187have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34188have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34189
34190#
34191# Test for font directories
34192#
34193type_include_files=''
34194
cristy430a7312010-01-21 20:44:04 +000034195# Dejavu fonts.
34196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34197$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34198dejavu_font_dir=''
34199if test "${with_dejavu_font_dir}" != 'default'; then
34200 dejavu_font_dir="${with_dejavu_font_dir}/"
34201else
34202 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34203 if test -f "${font_dir}DejaVuSerif.ttf"; then
34204 dejavu_font_dir="${font_dir}"
34205 break 1
34206 fi
34207 done
34208fi
34209if test "${dejavu_font_dir}x" != 'x'; then
34210 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034211 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34212$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034213else
cristy09b53e12011-10-14 12:47:22 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34215$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034216fi
34217
34218
cristy3ed852e2009-09-05 21:47:34 +000034219# Windows
34220windows_font_dir=''
34221if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34222 windows_font_dir="${with_windows_font_dir}/"
34223fi
cristy430a7312010-01-21 20:44:04 +000034224if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034225 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34226 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34227 fi
34228 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34229 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34230 fi
34231 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34232 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34233 fi
34234fi
cristy430a7312010-01-21 20:44:04 +000034235if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034236 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34237fi
34238
34239
34240# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34243ghostscript_font_dir=''
34244if test "${with_gs_font_dir}" != 'default'; then
34245 ghostscript_font_dir="${with_gs_font_dir}/"
34246else
34247 if test "${native_win32_build}" = 'yes'; then
34248 # Native Windows Build
34249 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34250 if test -f "${font_dir}a010013l.pfb"; then
34251 ghostscript_font_dir="$font_dir"
34252 break 1
34253 fi
34254 done
34255 if test "${PSDelegate}" != 'gswin32c'; then
34256 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34257 fi
34258 else
34259 # Linux / Mac OS X / Unix Build
34260 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
34261 if test -f "${font_dir}a010013l.pfb"; then
34262 ghostscript_font_dir="${font_dir}"
34263 break 1
34264 fi
34265 done
34266 if test "${ghostscript_font_dir}x" = 'x'; then
34267 if test "$PSDelegate" != 'gs'; then
34268 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34269 fi
34270 fi
34271 fi
34272fi
34273if test "${ghostscript_font_dir}x" != 'x'; then
34274 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34276$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034277else
cristy09b53e12011-10-14 12:47:22 +000034278 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34279$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034280fi
34281
34282case "${build_os}" in
34283 mingw* )
34284 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34285 ;;
34286esac
34287
34288
34289
34290#
34291# Handle case where user doesn't want frozen paths
34292#
34293if test "$with_frozenpaths" != 'yes'; then
34294 # Re-set delegate definitions to default (no paths)
34295 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034296 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34297 BZIPDelegate="$BZIPDelegateDefault"
34298 BrowseDelegate="$BrowseDelegateDefault"
34299 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34300 CatDelegate="$CatDelegateDefault"
34301 ConvertDelegate="$ConvertDelegateDefault"
34302 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34303 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34304 EchoDelegate="$EchoDelegateDefault"
34305 EditorDelegate="$EditorDelegateDefault"
34306 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34307 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34308 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34309 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34310 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34311 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34312 LPDelegate="$LPDelegateDefault"
34313 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34314 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34315 LaunchDelegate="$LaunchDelegateDefault"
34316 MANDelegate="$MANDelegateDefault"
34317 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34318 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034319 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034320 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34321 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034322 PCLDelegate="$PCLDelegateDefault"
34323 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34324 POVDelegate="$POVDelegateDefault"
34325 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034326 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34327 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034328 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034329 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34330 ShowImageDelegate="$ShowImageDelegateDefault"
34331 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034332 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034333 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34334 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34335 XPSDelegate="$XPSDelegateDefault"
34336 ZipDelegate="$ZipDelegateDefault"
34337fi
34338
34339# Delegate substitutions
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382#
34383# RPM support.
34384#
34385RPM=''
34386for ac_prog in gnutar gtar tar
34387do
34388 # Extract the first word of "$ac_prog", so it can be a program name with args.
34389set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034392if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034393 $as_echo_n "(cached) " >&6
34394else
34395 if test -n "$TAR"; then
34396 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34397else
34398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34399for as_dir in $PATH
34400do
34401 IFS=$as_save_IFS
34402 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34405 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034407 break 2
34408 fi
34409done
cristy8b350f62009-11-15 23:12:43 +000034410 done
cristy3ed852e2009-09-05 21:47:34 +000034411IFS=$as_save_IFS
34412
34413fi
34414fi
34415TAR=$ac_cv_prog_TAR
34416if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034418$as_echo "$TAR" >&6; }
34419else
cristy8b350f62009-11-15 23:12:43 +000034420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034421$as_echo "no" >&6; }
34422fi
34423
34424
34425 test -n "$TAR" && break
34426done
34427
34428for ac_prog in perl
34429do
34430 # Extract the first word of "$ac_prog", so it can be a program name with args.
34431set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034434if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034435 $as_echo_n "(cached) " >&6
34436else
34437 if test -n "$PERL"; then
34438 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34439else
34440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34441for as_dir in $PATH
34442do
34443 IFS=$as_save_IFS
34444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34447 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034449 break 2
34450 fi
34451done
cristy8b350f62009-11-15 23:12:43 +000034452 done
cristy3ed852e2009-09-05 21:47:34 +000034453IFS=$as_save_IFS
34454
34455fi
34456fi
34457PERL=$ac_cv_prog_PERL
34458if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034460$as_echo "$PERL" >&6; }
34461else
cristy8b350f62009-11-15 23:12:43 +000034462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo "no" >&6; }
34464fi
34465
34466
34467 test -n "$PERL" && break
34468done
34469
34470for ac_prog in rpmbuild rpm
34471do
34472 # Extract the first word of "$ac_prog", so it can be a program name with args.
34473set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034476if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034477 $as_echo_n "(cached) " >&6
34478else
34479 if test -n "$RPM"; then
34480 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34481else
34482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34483for as_dir in $PATH
34484do
34485 IFS=$as_save_IFS
34486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34489 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034491 break 2
34492 fi
34493done
cristy8b350f62009-11-15 23:12:43 +000034494 done
cristy3ed852e2009-09-05 21:47:34 +000034495IFS=$as_save_IFS
34496
34497fi
34498fi
34499RPM=$ac_cv_prog_RPM
34500if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034502$as_echo "$RPM" >&6; }
34503else
cristy8b350f62009-11-15 23:12:43 +000034504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034505$as_echo "no" >&6; }
34506fi
34507
34508
34509 test -n "$RPM" && break
34510done
34511
34512
cristy73bd4a52010-10-05 11:24:23 +000034513ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34514
34515
34516AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34517
34518
34519AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34520
34521
34522AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34523
34524
34525 if test "x$RPM" != "x" ; then
34526 RPM_DELEGATE_TRUE=
34527 RPM_DELEGATE_FALSE='#'
34528else
34529 RPM_DELEGATE_TRUE='#'
34530 RPM_DELEGATE_FALSE=
34531fi
34532
cristy3ed852e2009-09-05 21:47:34 +000034533
34534#
34535# 7ZIP support (http://p7zip.sourceforge.net/)
34536#
34537P7ZIP=''
34538for ac_prog in 7za
34539do
34540 # Extract the first word of "$ac_prog", so it can be a program name with args.
34541set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034544if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034545 $as_echo_n "(cached) " >&6
34546else
34547 if test -n "$P7ZIP"; then
34548 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34549else
34550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34551for as_dir in $PATH
34552do
34553 IFS=$as_save_IFS
34554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34557 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559 break 2
34560 fi
34561done
cristy8b350f62009-11-15 23:12:43 +000034562 done
cristy3ed852e2009-09-05 21:47:34 +000034563IFS=$as_save_IFS
34564
34565fi
34566fi
34567P7ZIP=$ac_cv_prog_P7ZIP
34568if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo "$P7ZIP" >&6; }
34571else
cristy8b350f62009-11-15 23:12:43 +000034572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034573$as_echo "no" >&6; }
34574fi
34575
34576
34577 test -n "$P7ZIP" && break
34578done
34579
34580
cristy73bd4a52010-10-05 11:24:23 +000034581 if test "x$P7ZIP" != "x" ; then
34582 P7ZIP_DELEGATE_TRUE=
34583 P7ZIP_DELEGATE_FALSE='#'
34584else
34585 P7ZIP_DELEGATE_TRUE='#'
34586 P7ZIP_DELEGATE_FALSE=
34587fi
34588
cristy3ed852e2009-09-05 21:47:34 +000034589
34590#
34591# ZIP support (http://www.info-zip.org/Zip.html)
34592#
34593ZIP=''
34594for ac_prog in zip
34595do
34596 # Extract the first word of "$ac_prog", so it can be a program name with args.
34597set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034600if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034601 $as_echo_n "(cached) " >&6
34602else
34603 if test -n "$ZIP"; then
34604 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34605else
34606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34607for as_dir in $PATH
34608do
34609 IFS=$as_save_IFS
34610 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34613 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615 break 2
34616 fi
34617done
cristy8b350f62009-11-15 23:12:43 +000034618 done
cristy3ed852e2009-09-05 21:47:34 +000034619IFS=$as_save_IFS
34620
34621fi
34622fi
34623ZIP=$ac_cv_prog_ZIP
34624if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626$as_echo "$ZIP" >&6; }
34627else
cristy8b350f62009-11-15 23:12:43 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034629$as_echo "no" >&6; }
34630fi
34631
34632
34633 test -n "$ZIP" && break
34634done
34635
34636
cristy73bd4a52010-10-05 11:24:23 +000034637 if test "x$ZIP" != "x" ; then
34638 ZIP_DELEGATE_TRUE=
34639 ZIP_DELEGATE_FALSE='#'
34640else
34641 ZIP_DELEGATE_TRUE='#'
34642 ZIP_DELEGATE_FALSE=
34643fi
34644
cristy3ed852e2009-09-05 21:47:34 +000034645
34646#
34647# GhostPCL related configuration.
34648#
34649PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034650PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034651PCLMonoDevice=pbmraw
34652if test -z "$PCLVersion"; then
34653 PCLVersion='unknown'
34654fi
34655if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34657$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34661$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034662 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034664$as_echo_n "checking for pcl color device... " >&6; }
34665 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34666 :
34667 else
34668 PCLColorDevice=ppmraw
34669 fi
cristy09b53e12011-10-14 12:47:22 +000034670 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34671$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034672
34673 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034675$as_echo_n "checking for pcl CMYK device... " >&6; }
34676 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34677 :
34678 else
34679 PCLCMYKDevice=$PCLColorDevice
34680 fi
cristy09b53e12011-10-14 12:47:22 +000034681 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34682$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034683
34684 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034686$as_echo_n "checking for pcl mono device... " >&6; }
34687 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34688 :
34689 else
34690 PCLMonoDevice=$PCLColorDevice
34691 fi
cristy09b53e12011-10-14 12:47:22 +000034692 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34693$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034694fi
34695
34696
34697
34698
34699
34700
34701#
34702# GhostXPS related configuration.
34703#
34704XPSColorDevice=ppmraw
34705XPSCMYKDevice=bmpsep8
34706XPSMonoDevice=pbmraw
34707if test -z "$XPSVersion"; then
34708 XPSVersion='unknown'
34709fi
34710if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034711 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34712$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034715 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34716$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034717 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034719$as_echo_n "checking for xps color device... " >&6; }
34720 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34721 :
34722 else
34723 XPSColorDevice=ppmraw
34724 fi
cristy09b53e12011-10-14 12:47:22 +000034725 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34726$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034727
34728 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034730$as_echo_n "checking for xps CMYK device... " >&6; }
34731 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34732 :
34733 else
34734 XPSCMYKDevice=$XPSColorDevice
34735 fi
cristy09b53e12011-10-14 12:47:22 +000034736 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34737$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034738
34739 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034741$as_echo_n "checking for xps mono device... " >&6; }
34742 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34743 :
34744 else
34745 XPSMonoDevice=$XPSColorDevice
34746 fi
cristy09b53e12011-10-14 12:47:22 +000034747 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34748$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034749fi
34750
34751
34752
34753
34754
34755
34756#
34757# Ghostscript related configuration.
34758#
cristya97426c2011-02-04 01:41:27 +000034759GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034760GSColorDevice=pnmraw
34761GSCMYKDevice=pam
34762GSMonoDevice=pbmraw
34763GSPDFDevice=pdfwrite
34764GSPSDevice=pswrite
34765GSEPSDevice=epswrite
34766GSVersion='unknown'
34767if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34769$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034771$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034772 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34773$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034775$as_echo_n "checking for Ghostscript version... " >&6; }
34776 if GSVersion=`$PSDelegate --version`; then
34777 :
34778 else
34779 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34780 fi
cristy09b53e12011-10-14 12:47:22 +000034781 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34782$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034783
34784 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034786$as_echo_n "checking for gs alpha device... " >&6; }
34787 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34788 :
34789 else
34790 GSAlphaDevice=pnmraw
34791 fi
cristy09b53e12011-10-14 12:47:22 +000034792 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34793$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034794
34795 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034797$as_echo_n "checking for gs color device... " >&6; }
34798 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34799 :
34800 else
34801 GSColorDevice=pnmraw
34802 fi
cristy09b53e12011-10-14 12:47:22 +000034803 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34804$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034805
34806 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034808$as_echo_n "checking for gs CMYK device... " >&6; }
34809 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34810 :
34811 else
34812 GSCMYKDevice=bmpsep8
34813 fi
cristy09b53e12011-10-14 12:47:22 +000034814 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34815$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034816
34817 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034819$as_echo_n "checking for gs mono device... " >&6; }
34820 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34821 :
34822 else
34823 GSMonoDevice=$GSColorDevice
34824 fi
cristy09b53e12011-10-14 12:47:22 +000034825 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34826$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034827
34828 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034830$as_echo_n "checking for gs PDF writing device... " >&6; }
34831 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34832 :
34833 else
34834 GSPDFDevice=nodevice
34835 fi
cristy09b53e12011-10-14 12:47:22 +000034836 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34837$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034838
34839 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034841$as_echo_n "checking for gs PS writing device... " >&6; }
34842 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34843 :
34844 else
34845 GSPSDevice=nodevice
34846 fi
cristy09b53e12011-10-14 12:47:22 +000034847 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34848$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034849
34850 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034852$as_echo_n "checking for gs EPS writing device... " >&6; }
34853 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34854 :
34855 else
34856 GSEPSDevice=nodevice
34857 fi
cristy09b53e12011-10-14 12:47:22 +000034858 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34859$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034860fi
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871#
34872# PerlMagick-related configuration
34873#
34874
34875# Look for PERL if PerlMagick requested
34876# If name/path of desired PERL interpreter is specified, look for that one first
34877have_perl='no'
34878if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034879 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34880$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034883 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34884$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034885 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034888if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034889 $as_echo_n "(cached) " >&6
34890else
34891 ac_cv_path_PERL="$with_perl"
34892fi
cristy8b350f62009-11-15 23:12:43 +000034893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034894$as_echo "$ac_cv_path_PERL" >&6; };
34895 PERL=$ac_cv_path_PERL
34896 have_perl="$ac_cv_path_PERL"
34897 else
34898 for ac_prog in perl perl5
34899do
34900 # Extract the first word of "$ac_prog", so it can be a program name with args.
34901set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034904if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034905 $as_echo_n "(cached) " >&6
34906else
34907 case $PERL in
34908 [\\/]* | ?:[\\/]*)
34909 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34910 ;;
34911 *)
34912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34913for as_dir in $PATH
34914do
34915 IFS=$as_save_IFS
34916 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34919 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034921 break 2
34922 fi
34923done
cristy8b350f62009-11-15 23:12:43 +000034924 done
cristy3ed852e2009-09-05 21:47:34 +000034925IFS=$as_save_IFS
34926
34927 ;;
34928esac
34929fi
34930PERL=$ac_cv_path_PERL
34931if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo "$PERL" >&6; }
34934else
cristy8b350f62009-11-15 23:12:43 +000034935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034936$as_echo "no" >&6; }
34937fi
34938
34939
34940 test -n "$PERL" && break
34941done
34942 if test "$ac_cv_path_PERL"; then
34943 have_perl="$ac_cv_path_PERL"
34944 fi
34945 fi
34946fi
34947
cristy949301e2010-01-06 01:38:40 +000034948if test "$with_perl" != 'yes' ; then
34949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34950fi
34951
34952PERL_SUPPORTS_DESTDIR='no'
34953
cristy3ed852e2009-09-05 21:47:34 +000034954with_perl_static='no'
34955with_perl_dynamic='no'
34956if test "$have_perl" != 'no'; then
34957 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34958 with_perl_static='yes'
34959 fi
34960 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34961 with_perl_dynamic='yes'
34962 fi
34963 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034964
34965
34966
34967
34968 if test -n "$PERL"; then :
34969
34970 ax_perl_version="5.8.1"
34971
34972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34973$as_echo_n "checking for perl version... " >&6; }
34974
34975 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34976
34977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34978$as_echo "$perl_version" >&6; }
34979
34980 PERL_VERSION=$perl_version
34981
34982
34983
34984
34985
34986 # Used to indicate true or false condition
34987 ax_compare_version=false
34988
34989 # Convert the two version strings to be compared into a format that
34990 # allows a simple string comparison. The end result is that a version
34991 # string of the form 1.12.5-r617 will be converted to the form
34992 # 0001001200050617. In other words, each number is zero padded to four
34993 # digits, and non digits are removed.
34994
34995 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34996 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34997 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34998 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34999 -e 's/[^0-9]//g'`
35000
35001
35002 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35003 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35004 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35005 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35006 -e 's/[^0-9]//g'`
35007
35008
35009 ax_compare_version=`echo "x$ax_compare_version_A
35010x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35011
35012
35013
35014 if test "$ax_compare_version" = "true" ; then
35015
35016 :
35017 PERL_SUPPORTS_DESTDIR='yes'
35018
35019 else
35020 :
35021 PERL_SUPPORTS_DESTDIR='no'
35022
35023 fi
35024
35025
35026else
35027
35028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35029$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35030 PERL_SUPPORTS_DESTDIR='no'
35031
cristy3ed852e2009-09-05 21:47:34 +000035032fi
cristy73bd4a52010-10-05 11:24:23 +000035033
35034fi
35035 if test "$have_perl" != 'no'; then
35036 WITH_PERL_TRUE=
35037 WITH_PERL_FALSE='#'
35038else
35039 WITH_PERL_TRUE='#'
35040 WITH_PERL_FALSE=
35041fi
35042
35043 if test $with_perl_static = 'yes'; then
35044 WITH_PERL_STATIC_TRUE=
35045 WITH_PERL_STATIC_FALSE='#'
35046else
35047 WITH_PERL_STATIC_TRUE='#'
35048 WITH_PERL_STATIC_FALSE=
35049fi
35050
35051 if test $with_perl_dynamic = 'yes'; then
35052 WITH_PERL_DYNAMIC_TRUE=
35053 WITH_PERL_DYNAMIC_FALSE='#'
35054else
35055 WITH_PERL_DYNAMIC_TRUE='#'
35056 WITH_PERL_DYNAMIC_FALSE=
35057fi
35058
cristy3ed852e2009-09-05 21:47:34 +000035059
35060
35061# Determine path to pick up MagickCore library from for use with building PerlMagick
35062MAGICKCORE_PATH="${LIB_DIR}"
35063if test $with_perl_static = 'yes'; then
35064 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35065 libtool_objdir=$objdir
35066
35067 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035068 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035069fi
35070
35071
35072# Create a simple string containing format names for all delegate libraries
35073DELEGATES=''
35074if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35075if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35076if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35077if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35078if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35079if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35080if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35081if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35082if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35083if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35084if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35085if test "$have_jpeg" = 'yes'; then
35086 DELEGATES="$DELEGATES jpeg";
35087 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35088fi
35089if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035090if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035091if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35092if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035093if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035094if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35095if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35096if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35097if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35098if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35099if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35100if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35101if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35102if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35103
35104
35105
35106#
35107# Handle special compiler flags
35108#
35109
35110# Add '-p' if prof source profiling support enabled
35111if test "$enable_prof" = 'yes'; then
35112 CFLAGS="-p $CFLAGS"
35113 CXXFLAGS="-p $CXXFLAGS"
35114 LDFLAGS="-p $LDFLAGS"
35115fi
35116
35117# Add '-pg' if gprof source profiling support enabled
35118if test "$enable_gprof" = 'yes'; then
35119 CFLAGS="-pg $CFLAGS"
35120 CXXFLAGS="-pg $CXXFLAGS"
35121 LDFLAGS="-pg $LDFLAGS"
35122fi
35123
35124# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35125# This is a gcc-specific feature
35126if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035128$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035129if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035130 $as_echo_n "(cached) " >&6
35131else
35132 ac_check_lib_save_LIBS=$LIBS
35133LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035135/* end confdefs.h. */
35136
35137/* Override any GCC internal prototype to avoid an error.
35138 Use char because int might match the return type of a GCC
35139 builtin and then its argument prototype would still apply. */
35140#ifdef __cplusplus
35141extern "C"
35142#endif
35143char _gcov_init ();
35144int
35145main ()
35146{
35147return _gcov_init ();
35148 ;
35149 return 0;
35150}
35151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035153 ac_cv_lib_gcov__gcov_init=yes
35154else
cristy8b350f62009-11-15 23:12:43 +000035155 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035156fi
cristy8b350f62009-11-15 23:12:43 +000035157rm -f core conftest.err conftest.$ac_objext \
35158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035159LIBS=$ac_check_lib_save_LIBS
35160fi
cristy8b350f62009-11-15 23:12:43 +000035161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035162$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035163if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035164 cat >>confdefs.h <<_ACEOF
35165#define HAVE_LIBGCOV 1
35166_ACEOF
35167
35168 LIBS="-lgcov $LIBS"
35169
35170fi
35171
cristy8b350f62009-11-15 23:12:43 +000035172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035173$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035174if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035175 $as_echo_n "(cached) " >&6
35176else
35177 ac_check_lib_save_LIBS=$LIBS
35178LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035180/* end confdefs.h. */
35181
35182/* Override any GCC internal prototype to avoid an error.
35183 Use char because int might match the return type of a GCC
35184 builtin and then its argument prototype would still apply. */
35185#ifdef __cplusplus
35186extern "C"
35187#endif
35188char __gcov_init ();
35189int
35190main ()
35191{
35192return __gcov_init ();
35193 ;
35194 return 0;
35195}
35196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035198 ac_cv_lib_gcov___gcov_init=yes
35199else
cristy8b350f62009-11-15 23:12:43 +000035200 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035201fi
cristy8b350f62009-11-15 23:12:43 +000035202rm -f core conftest.err conftest.$ac_objext \
35203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035204LIBS=$ac_check_lib_save_LIBS
35205fi
cristy8b350f62009-11-15 23:12:43 +000035206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035207$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035208if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035209 cat >>confdefs.h <<_ACEOF
35210#define HAVE_LIBGCOV 1
35211_ACEOF
35212
35213 LIBS="-lgcov $LIBS"
35214
35215fi
35216
35217 case "$target_os" in
35218 darwin*)
35219 OSX_GCOV_LDFLAG="-Wl,-single_module"
35220 ;;
35221 *)
35222 OSX_GCOV_LDFLAG=""
35223 ;;
35224 esac
35225
35226 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35227 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35228 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35229fi
35230
35231#
35232# Build library dependency list for libMagickCore
35233#
35234
35235MAGICK_LIBLTDL='' # Libltdl for build
35236MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35237MAGICK_LTDLDEPS='' # extra libltdl dependencies
35238if test "$with_ltdl" != 'no'
35239then
35240 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35241 MAGICK_API_LIBLTDL='-lltdl'
35242 fi
35243 MAGICK_LIBLTDL=${LIBLTDL}
35244 MAGICK_LTDLDEPS=${LTDLDEPS}
35245fi
35246
35247
35248
35249if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035250 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 +000035251else
cristy41cbe8a2011-10-27 01:35:18 +000035252 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035253fi
35254
35255
35256#
35257# Remove extraneous spaces from output variables (asthetic)
35258#
35259X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35260X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35261X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35262X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35263
35264CC=`echo $CC | sed -e 's/ */ /g'`
35265CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35266CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35267CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35268DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35269DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35270LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35271TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35272MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35273#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35274
35275# Pass only user-provided LIBS as "global" libraries
35276LIBS=$USER_LIBS
35277
35278#AC_SUBST(CPPFLAGS)
35279
35280#AC_SUBST(LDFLAGS)
35281#AC_SUBST(X_PRE_LIBS)
35282#AC_SUBST(X_LIBS)
35283#AC_SUBST(X_EXTRA_LIBS)
35284
35285MAGICK_CFLAGS=$CFLAGS
35286MAGICK_CXXFLAGS="$CXXFLAGS"
35287MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35288MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35289MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35290MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35291
35292
35293
35294
35295
35296
35297
35298
cristyfd9dcd42010-08-08 18:07:02 +000035299
cristy3ed852e2009-09-05 21:47:34 +000035300# Set configured scripts to executable.
35301ac_config_commands="$ac_config_commands default"
35302
35303ac_config_commands="$ac_config_commands MagickCore-config.in"
35304
cristy3ed852e2009-09-05 21:47:34 +000035305ac_config_commands="$ac_config_commands MagickWand-config.in"
35306
cristy3ed852e2009-09-05 21:47:34 +000035307ac_config_commands="$ac_config_commands Magick++-config.in"
35308
35309ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35310
35311
cristy09b53e12011-10-14 12:47:22 +000035312{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35313$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35314{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35315$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035316cat >confcache <<\_ACEOF
35317# This file is a shell script that caches the results of configure
35318# tests run on this system so they can be shared between configure
35319# scripts and configure runs, see configure's option --config-cache.
35320# It is not useful on other systems. If it contains results you don't
35321# want to keep, you may remove or edit it.
35322#
35323# config.status only pays attention to the cache file if you give it
35324# the --recheck option to rerun configure.
35325#
35326# `ac_cv_env_foo' variables (set or unset) will be overridden when
35327# loading this file, other *unset* `ac_cv_foo' will be assigned the
35328# following values.
35329
35330_ACEOF
35331
35332# The following way of writing the cache mishandles newlines in values,
35333# but we know of no workaround that is simple, portable, and efficient.
35334# So, we kill variables containing newlines.
35335# Ultrix sh set writes to stderr and can't be redirected directly,
35336# and sets the high bit in the cache file unless we assign to the vars.
35337(
35338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35339 eval ac_val=\$$ac_var
35340 case $ac_val in #(
35341 *${as_nl}*)
35342 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035343 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035344$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35345 esac
35346 case $ac_var in #(
35347 _ | IFS | as_nl) ;; #(
35348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035349 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035350 esac ;;
35351 esac
35352 done
35353
35354 (set) 2>&1 |
35355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35356 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035357 # `set' does not quote correctly, so add quotes: double-quote
35358 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035359 sed -n \
35360 "s/'/'\\\\''/g;
35361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35362 ;; #(
35363 *)
35364 # `set' quotes correctly as required by POSIX, so do not add quotes.
35365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35366 ;;
35367 esac |
35368 sort
35369) |
35370 sed '
35371 /^ac_cv_env_/b end
35372 t clear
35373 :clear
35374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35375 t end
35376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35377 :end' >>confcache
35378if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35379 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035380 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035382$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035383 if test ! -f "$cache_file" || test -h "$cache_file"; then
35384 cat confcache >"$cache_file"
35385 else
35386 case $cache_file in #(
35387 */* | ?:*)
35388 mv -f confcache "$cache_file"$$ &&
35389 mv -f "$cache_file"$$ "$cache_file" ;; #(
35390 *)
35391 mv -f confcache "$cache_file" ;;
35392 esac
35393 fi
35394 fi
cristy3ed852e2009-09-05 21:47:34 +000035395 else
cristy8b350f62009-11-15 23:12:43 +000035396 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035397$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35398 fi
35399fi
35400rm -f confcache
35401
35402test "x$prefix" = xNONE && prefix=$ac_default_prefix
35403# Let make expand exec_prefix.
35404test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35405
35406DEFS=-DHAVE_CONFIG_H
35407
35408ac_libobjs=
35409ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035410U=
cristy3ed852e2009-09-05 21:47:34 +000035411for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35412 # 1. Remove the extension, and $U if already installed.
35413 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35414 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35415 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35416 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035417 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35418 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035419done
35420LIBOBJS=$ac_libobjs
35421
35422LTLIBOBJS=$ac_ltlibobjs
35423
35424
cristy73bd4a52010-10-05 11:24:23 +000035425 if test -n "$EXEEXT"; then
35426 am__EXEEXT_TRUE=
35427 am__EXEEXT_FALSE='#'
35428else
35429 am__EXEEXT_TRUE='#'
35430 am__EXEEXT_FALSE=
35431fi
cristy3ed852e2009-09-05 21:47:34 +000035432
cristy73bd4a52010-10-05 11:24:23 +000035433if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035434 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035435Usually this means the macro was only invoked conditionally." "$LINENO" 5
35436fi
35437if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035438 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035439Usually this means the macro was only invoked conditionally." "$LINENO" 5
35440fi
35441if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035442 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035443Usually this means the macro was only invoked conditionally." "$LINENO" 5
35444fi
35445if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035446 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035447Usually this means the macro was only invoked conditionally." "$LINENO" 5
35448fi
35449if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035450 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035451Usually this means the macro was only invoked conditionally." "$LINENO" 5
35452fi
35453if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035454 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035455Usually this means the macro was only invoked conditionally." "$LINENO" 5
35456fi
35457if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035458 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035459Usually this means the macro was only invoked conditionally." "$LINENO" 5
35460fi
35461if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035462 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035463Usually this means the macro was only invoked conditionally." "$LINENO" 5
35464fi
cristy73bd4a52010-10-05 11:24:23 +000035465if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035466 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035467Usually this means the macro was only invoked conditionally." "$LINENO" 5
35468fi
35469if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035470 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035471Usually this means the macro was only invoked conditionally." "$LINENO" 5
35472fi
35473LT_CONFIG_H=config/config.h
35474
35475 _ltdl_libobjs=
35476 _ltdl_ltlibobjs=
35477 if test -n "$_LT_LIBOBJS"; then
35478 # Remove the extension.
35479 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35480 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35481 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35482 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35483 done
35484 fi
35485 ltdl_LIBOBJS=$_ltdl_libobjs
35486
35487 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35488
35489
35490if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035491 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035492Usually this means the macro was only invoked conditionally." "$LINENO" 5
35493fi
35494if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035495 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035496Usually this means the macro was only invoked conditionally." "$LINENO" 5
35497fi
35498if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035499 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035500Usually this means the macro was only invoked conditionally." "$LINENO" 5
35501fi
35502if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035503 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035504Usually this means the macro was only invoked conditionally." "$LINENO" 5
35505fi
35506
35507if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035508 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035509Usually this means the macro was only invoked conditionally." "$LINENO" 5
35510fi
35511if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035512 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035513Usually this means the macro was only invoked conditionally." "$LINENO" 5
35514fi
35515if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035516 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035517Usually this means the macro was only invoked conditionally." "$LINENO" 5
35518fi
35519if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035520 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035521Usually this means the macro was only invoked conditionally." "$LINENO" 5
35522fi
35523if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035524 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035525Usually this means the macro was only invoked conditionally." "$LINENO" 5
35526fi
35527if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035528 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035529Usually this means the macro was only invoked conditionally." "$LINENO" 5
35530fi
35531if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035532 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035533Usually this means the macro was only invoked conditionally." "$LINENO" 5
35534fi
35535if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035536 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035537Usually this means the macro was only invoked conditionally." "$LINENO" 5
35538fi
35539if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035540 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035541Usually this means the macro was only invoked conditionally." "$LINENO" 5
35542fi
35543if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035544 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035545Usually this means the macro was only invoked conditionally." "$LINENO" 5
35546fi
35547if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035548 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035549Usually this means the macro was only invoked conditionally." "$LINENO" 5
35550fi
35551if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035552 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035553Usually this means the macro was only invoked conditionally." "$LINENO" 5
35554fi
35555if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035556 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035557Usually this means the macro was only invoked conditionally." "$LINENO" 5
35558fi
35559if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035560 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035561Usually this means the macro was only invoked conditionally." "$LINENO" 5
35562fi
35563if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035564 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035565Usually this means the macro was only invoked conditionally." "$LINENO" 5
35566fi
35567if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035568 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035569Usually this means the macro was only invoked conditionally." "$LINENO" 5
35570fi
35571if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035572 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035573Usually this means the macro was only invoked conditionally." "$LINENO" 5
35574fi
35575if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035576 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035577Usually this means the macro was only invoked conditionally." "$LINENO" 5
35578fi
35579if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035580 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035581Usually this means the macro was only invoked conditionally." "$LINENO" 5
35582fi
35583if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035584 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035585Usually this means the macro was only invoked conditionally." "$LINENO" 5
35586fi
cristyfbb0ef02010-12-19 02:32:11 +000035587if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35588 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35589Usually this means the macro was only invoked conditionally." "$LINENO" 5
35590fi
cristy73bd4a52010-10-05 11:24:23 +000035591if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035592 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035593Usually this means the macro was only invoked conditionally." "$LINENO" 5
35594fi
cristy41cbe8a2011-10-27 01:35:18 +000035595if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35596 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35597Usually this means the macro was only invoked conditionally." "$LINENO" 5
35598fi
35599if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35600 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35601Usually this means the macro was only invoked conditionally." "$LINENO" 5
35602fi
cristy73bd4a52010-10-05 11:24:23 +000035603if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035604 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035605Usually this means the macro was only invoked conditionally." "$LINENO" 5
35606fi
35607if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035608 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035609Usually this means the macro was only invoked conditionally." "$LINENO" 5
35610fi
35611if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035612 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035613Usually this means the macro was only invoked conditionally." "$LINENO" 5
35614fi
35615if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035616 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035617Usually this means the macro was only invoked conditionally." "$LINENO" 5
35618fi
cristyb1860752011-03-14 00:27:46 +000035619if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35620 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35621Usually this means the macro was only invoked conditionally." "$LINENO" 5
35622fi
cristy73bd4a52010-10-05 11:24:23 +000035623if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035624 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035625Usually this means the macro was only invoked conditionally." "$LINENO" 5
35626fi
35627if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035628 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035629Usually this means the macro was only invoked conditionally." "$LINENO" 5
35630fi
35631if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035632 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035633Usually this means the macro was only invoked conditionally." "$LINENO" 5
35634fi
35635if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035636 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035637Usually this means the macro was only invoked conditionally." "$LINENO" 5
35638fi
35639if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035640 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035641Usually this means the macro was only invoked conditionally." "$LINENO" 5
35642fi
35643if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035644 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035645Usually this means the macro was only invoked conditionally." "$LINENO" 5
35646fi
35647if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035648 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035649Usually this means the macro was only invoked conditionally." "$LINENO" 5
35650fi
35651if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035652 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035653Usually this means the macro was only invoked conditionally." "$LINENO" 5
35654fi
cristy3ed852e2009-09-05 21:47:34 +000035655
cristyda16f162011-02-19 23:52:17 +000035656: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035657ac_write_fail=0
35658ac_clean_files_save=$ac_clean_files
35659ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035660{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035661$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035662as_write_fail=0
35663cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035664#! $SHELL
35665# Generated by $as_me.
35666# Run this file to recreate the current configuration.
35667# Compiler output produced by configure, useful for debugging
35668# configure, is in config.log if it exists.
35669
35670debug=false
35671ac_cs_recheck=false
35672ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035673
cristy8b350f62009-11-15 23:12:43 +000035674SHELL=\${CONFIG_SHELL-$SHELL}
35675export SHELL
35676_ASEOF
35677cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35678## -------------------- ##
35679## M4sh Initialization. ##
35680## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035681
35682# Be more Bourne compatible
35683DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035684if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035685 emulate sh
35686 NULLCMD=:
35687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35688 # is contrary to our usage. Disable this feature.
35689 alias -g '${1+"$@"}'='"$@"'
35690 setopt NO_GLOB_SUBST
35691else
cristy8b350f62009-11-15 23:12:43 +000035692 case `(set -o) 2>/dev/null` in #(
35693 *posix*) :
35694 set -o posix ;; #(
35695 *) :
35696 ;;
cristy3ed852e2009-09-05 21:47:34 +000035697esac
cristy3ed852e2009-09-05 21:47:34 +000035698fi
35699
35700
cristy3ed852e2009-09-05 21:47:34 +000035701as_nl='
35702'
35703export as_nl
35704# Printing a long string crashes Solaris 7 /usr/bin/printf.
35705as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35706as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35707as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035708# Prefer a ksh shell builtin over an external printf program on Solaris,
35709# but without wasting forks for bash or zsh.
35710if test -z "$BASH_VERSION$ZSH_VERSION" \
35711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35712 as_echo='print -r --'
35713 as_echo_n='print -rn --'
35714elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035715 as_echo='printf %s\n'
35716 as_echo_n='printf %s'
35717else
35718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35719 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35720 as_echo_n='/usr/ucb/echo -n'
35721 else
35722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35723 as_echo_n_body='eval
35724 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035725 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035726 *"$as_nl"*)
35727 expr "X$arg" : "X\\(.*\\)$as_nl";
35728 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35729 esac;
35730 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35731 '
35732 export as_echo_n_body
35733 as_echo_n='sh -c $as_echo_n_body as_echo'
35734 fi
35735 export as_echo_body
35736 as_echo='sh -c $as_echo_body as_echo'
35737fi
35738
35739# The user is always right.
35740if test "${PATH_SEPARATOR+set}" != set; then
35741 PATH_SEPARATOR=:
35742 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35743 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35744 PATH_SEPARATOR=';'
35745 }
35746fi
35747
cristy3ed852e2009-09-05 21:47:34 +000035748
35749# IFS
35750# We need space, tab and new line, in precisely that order. Quoting is
35751# there to prevent editors from complaining about space-tab.
35752# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35753# splitting by setting IFS to empty value.)
35754IFS=" "" $as_nl"
35755
35756# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035757as_myself=
cristy8b350f62009-11-15 23:12:43 +000035758case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035759 *[\\/]* ) as_myself=$0 ;;
35760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35761for as_dir in $PATH
35762do
35763 IFS=$as_save_IFS
35764 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35766 done
cristy3ed852e2009-09-05 21:47:34 +000035767IFS=$as_save_IFS
35768
35769 ;;
35770esac
35771# We did not find ourselves, most probably we were run as `sh COMMAND'
35772# in which case we are not to be found in the path.
35773if test "x$as_myself" = x; then
35774 as_myself=$0
35775fi
35776if test ! -f "$as_myself"; then
35777 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035778 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035779fi
35780
cristy8b350f62009-11-15 23:12:43 +000035781# Unset variables that we do not need and which cause bugs (e.g. in
35782# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35783# suppresses any "Segmentation fault" message there. '((' could
35784# trigger a bug in pdksh 5.2.14.
35785for as_var in BASH_ENV ENV MAIL MAILPATH
35786do eval test x\${$as_var+set} = xset \
35787 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035788done
35789PS1='$ '
35790PS2='> '
35791PS4='+ '
35792
35793# NLS nuisances.
35794LC_ALL=C
35795export LC_ALL
35796LANGUAGE=C
35797export LANGUAGE
35798
cristy8b350f62009-11-15 23:12:43 +000035799# CDPATH.
35800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35801
35802
cristy98dddb52010-11-04 00:30:15 +000035803# as_fn_error STATUS ERROR [LINENO LOG_FD]
35804# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035805# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35806# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035807# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035808as_fn_error ()
35809{
cristy98dddb52010-11-04 00:30:15 +000035810 as_status=$1; test $as_status -eq 0 && as_status=1
35811 if test "$4"; then
35812 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35813 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035814 fi
cristy98dddb52010-11-04 00:30:15 +000035815 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035816 as_fn_exit $as_status
35817} # as_fn_error
35818
35819
35820# as_fn_set_status STATUS
35821# -----------------------
35822# Set $? to STATUS, without forking.
35823as_fn_set_status ()
35824{
35825 return $1
35826} # as_fn_set_status
35827
35828# as_fn_exit STATUS
35829# -----------------
35830# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35831as_fn_exit ()
35832{
35833 set +e
35834 as_fn_set_status $1
35835 exit $1
35836} # as_fn_exit
35837
35838# as_fn_unset VAR
35839# ---------------
35840# Portably unset VAR.
35841as_fn_unset ()
35842{
35843 { eval $1=; unset $1;}
35844}
35845as_unset=as_fn_unset
35846# as_fn_append VAR VALUE
35847# ----------------------
35848# Append the text in VALUE to the end of the definition contained in VAR. Take
35849# advantage of any shell optimizations that allow amortized linear growth over
35850# repeated appends, instead of the typical quadratic growth present in naive
35851# implementations.
35852if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35853 eval 'as_fn_append ()
35854 {
35855 eval $1+=\$2
35856 }'
35857else
35858 as_fn_append ()
35859 {
35860 eval $1=\$$1\$2
35861 }
35862fi # as_fn_append
35863
35864# as_fn_arith ARG...
35865# ------------------
35866# Perform arithmetic evaluation on the ARGs, and store the result in the
35867# global $as_val. Take advantage of shells that can avoid forks. The arguments
35868# must be portable across $(()) and expr.
35869if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35870 eval 'as_fn_arith ()
35871 {
35872 as_val=$(( $* ))
35873 }'
35874else
35875 as_fn_arith ()
35876 {
35877 as_val=`expr "$@" || test $? -eq 1`
35878 }
35879fi # as_fn_arith
35880
35881
cristy3ed852e2009-09-05 21:47:34 +000035882if expr a : '\(a\)' >/dev/null 2>&1 &&
35883 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35884 as_expr=expr
35885else
35886 as_expr=false
35887fi
35888
35889if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35890 as_basename=basename
35891else
35892 as_basename=false
35893fi
35894
cristy8b350f62009-11-15 23:12:43 +000035895if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35896 as_dirname=dirname
35897else
35898 as_dirname=false
35899fi
cristy3ed852e2009-09-05 21:47:34 +000035900
cristy3ed852e2009-09-05 21:47:34 +000035901as_me=`$as_basename -- "$0" ||
35902$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35903 X"$0" : 'X\(//\)$' \| \
35904 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35905$as_echo X/"$0" |
35906 sed '/^.*\/\([^/][^/]*\)\/*$/{
35907 s//\1/
35908 q
35909 }
35910 /^X\/\(\/\/\)$/{
35911 s//\1/
35912 q
35913 }
35914 /^X\/\(\/\).*/{
35915 s//\1/
35916 q
35917 }
35918 s/.*/./; q'`
35919
cristy8b350f62009-11-15 23:12:43 +000035920# Avoid depending upon Character Ranges.
35921as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35922as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35923as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35924as_cr_digits='0123456789'
35925as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035926
35927ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035928case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035929-n*)
cristy8b350f62009-11-15 23:12:43 +000035930 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035931 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035932 xy) ECHO_C='\c';;
35933 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35934 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035935 esac;;
35936*)
35937 ECHO_N='-n';;
35938esac
cristy3ed852e2009-09-05 21:47:34 +000035939
35940rm -f conf$$ conf$$.exe conf$$.file
35941if test -d conf$$.dir; then
35942 rm -f conf$$.dir/conf$$.file
35943else
35944 rm -f conf$$.dir
35945 mkdir conf$$.dir 2>/dev/null
35946fi
35947if (echo >conf$$.file) 2>/dev/null; then
35948 if ln -s conf$$.file conf$$ 2>/dev/null; then
35949 as_ln_s='ln -s'
35950 # ... but there are two gotchas:
35951 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35952 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35953 # In both cases, we have to default to `cp -p'.
35954 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35955 as_ln_s='cp -p'
35956 elif ln conf$$.file conf$$ 2>/dev/null; then
35957 as_ln_s=ln
35958 else
35959 as_ln_s='cp -p'
35960 fi
35961else
35962 as_ln_s='cp -p'
35963fi
35964rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35965rmdir conf$$.dir 2>/dev/null
35966
cristy8b350f62009-11-15 23:12:43 +000035967
35968# as_fn_mkdir_p
35969# -------------
35970# Create "$as_dir" as a directory, including parents if necessary.
35971as_fn_mkdir_p ()
35972{
35973
35974 case $as_dir in #(
35975 -*) as_dir=./$as_dir;;
35976 esac
35977 test -d "$as_dir" || eval $as_mkdir_p || {
35978 as_dirs=
35979 while :; do
35980 case $as_dir in #(
35981 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35982 *) as_qdir=$as_dir;;
35983 esac
35984 as_dirs="'$as_qdir' $as_dirs"
35985 as_dir=`$as_dirname -- "$as_dir" ||
35986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35987 X"$as_dir" : 'X\(//\)[^/]' \| \
35988 X"$as_dir" : 'X\(//\)$' \| \
35989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35990$as_echo X"$as_dir" |
35991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35992 s//\1/
35993 q
35994 }
35995 /^X\(\/\/\)[^/].*/{
35996 s//\1/
35997 q
35998 }
35999 /^X\(\/\/\)$/{
36000 s//\1/
36001 q
36002 }
36003 /^X\(\/\).*/{
36004 s//\1/
36005 q
36006 }
36007 s/.*/./; q'`
36008 test -d "$as_dir" && break
36009 done
36010 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036011 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036012
36013
36014} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036015if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036016 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036017else
36018 test -d ./-p && rmdir ./-p
36019 as_mkdir_p=false
36020fi
36021
36022if test -x / >/dev/null 2>&1; then
36023 as_test_x='test -x'
36024else
36025 if ls -dL / >/dev/null 2>&1; then
36026 as_ls_L_option=L
36027 else
36028 as_ls_L_option=
36029 fi
36030 as_test_x='
36031 eval sh -c '\''
36032 if test -d "$1"; then
36033 test -d "$1/.";
36034 else
cristy8b350f62009-11-15 23:12:43 +000036035 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000036036 -*)set "./$1";;
36037 esac;
cristy8b350f62009-11-15 23:12:43 +000036038 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000036039 ???[sx]*):;;*)false;;esac;fi
36040 '\'' sh
36041 '
36042fi
36043as_executable_p=$as_test_x
36044
36045# Sed expression to map a string onto a valid CPP name.
36046as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36047
36048# Sed expression to map a string onto a valid variable name.
36049as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36050
36051
36052exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036053## ----------------------------------- ##
36054## Main body of $CONFIG_STATUS script. ##
36055## ----------------------------------- ##
36056_ASEOF
36057test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036058
cristy8b350f62009-11-15 23:12:43 +000036059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36060# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036061# report actual input values of CONFIG_FILES etc. instead of their
36062# values after options handling.
36063ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036064This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000036065generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036066
36067 CONFIG_FILES = $CONFIG_FILES
36068 CONFIG_HEADERS = $CONFIG_HEADERS
36069 CONFIG_LINKS = $CONFIG_LINKS
36070 CONFIG_COMMANDS = $CONFIG_COMMANDS
36071 $ $0 $@
36072
36073on `(hostname || uname -n) 2>/dev/null | sed 1q`
36074"
36075
36076_ACEOF
36077
36078case $ac_config_files in *"
36079"*) set x $ac_config_files; shift; ac_config_files=$*;;
36080esac
36081
36082case $ac_config_headers in *"
36083"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36084esac
36085
36086
36087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36088# Files that config.status was made for.
36089config_files="$ac_config_files"
36090config_headers="$ac_config_headers"
36091config_commands="$ac_config_commands"
36092
36093_ACEOF
36094
36095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36096ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036097\`$as_me' instantiates files and other configuration actions
36098from templates according to the current configuration. Unless the files
36099and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036100
cristy8b350f62009-11-15 23:12:43 +000036101Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036102
36103 -h, --help print this help, then exit
36104 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036105 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036106 -q, --quiet, --silent
36107 do not print progress messages
36108 -d, --debug don't remove temporary files
36109 --recheck update $as_me by reconfiguring in the same conditions
36110 --file=FILE[:TEMPLATE]
36111 instantiate the configuration file FILE
36112 --header=FILE[:TEMPLATE]
36113 instantiate the configuration header FILE
36114
36115Configuration files:
36116$config_files
36117
36118Configuration headers:
36119$config_headers
36120
36121Configuration commands:
36122$config_commands
36123
cristy8b350f62009-11-15 23:12:43 +000036124Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036125
36126_ACEOF
36127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036128ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036129ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036130ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036131configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036132 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036133
cristy98dddb52010-11-04 00:30:15 +000036134Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036135This config.status script is free software; the Free Software Foundation
36136gives unlimited permission to copy, distribute and modify it."
36137
36138ac_pwd='$ac_pwd'
36139srcdir='$srcdir'
36140INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036141MKDIR_P='$MKDIR_P'
36142AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036143test -n "\$AWK" || AWK=awk
36144_ACEOF
36145
36146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36147# The default lists apply if the user does not specify any file.
36148ac_need_defaults=:
36149while test $# != 0
36150do
36151 case $1 in
cristyda16f162011-02-19 23:52:17 +000036152 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36155 ac_shift=:
36156 ;;
cristyda16f162011-02-19 23:52:17 +000036157 --*=)
36158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36159 ac_optarg=
36160 ac_shift=:
36161 ;;
cristy3ed852e2009-09-05 21:47:34 +000036162 *)
36163 ac_option=$1
36164 ac_optarg=$2
36165 ac_shift=shift
36166 ;;
36167 esac
36168
36169 case $ac_option in
36170 # Handling of the options.
36171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36172 ac_cs_recheck=: ;;
36173 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36174 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036175 --config | --confi | --conf | --con | --co | --c )
36176 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036177 --debug | --debu | --deb | --de | --d | -d )
36178 debug=: ;;
36179 --file | --fil | --fi | --f )
36180 $ac_shift
36181 case $ac_optarg in
36182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036183 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036184 esac
cristy8b350f62009-11-15 23:12:43 +000036185 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036186 ac_need_defaults=false;;
36187 --header | --heade | --head | --hea )
36188 $ac_shift
36189 case $ac_optarg in
36190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36191 esac
cristy8b350f62009-11-15 23:12:43 +000036192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036193 ac_need_defaults=false;;
36194 --he | --h)
36195 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036196 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036197Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036198 --help | --hel | -h )
36199 $as_echo "$ac_cs_usage"; exit ;;
36200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36202 ac_cs_silent=: ;;
36203
36204 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036205 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036206Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036207
cristy8b350f62009-11-15 23:12:43 +000036208 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036209 ac_need_defaults=false ;;
36210
36211 esac
36212 shift
36213done
36214
36215ac_configure_extra_args=
36216
36217if $ac_cs_silent; then
36218 exec 6>/dev/null
36219 ac_configure_extra_args="$ac_configure_extra_args --silent"
36220fi
36221
36222_ACEOF
36223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36224if \$ac_cs_recheck; then
36225 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36226 shift
36227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36228 CONFIG_SHELL='$SHELL'
36229 export CONFIG_SHELL
36230 exec "\$@"
36231fi
36232
36233_ACEOF
36234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36235exec 5>>config.log
36236{
36237 echo
36238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36239## Running $as_me. ##
36240_ASBOX
36241 $as_echo "$ac_log"
36242} >&5
36243
36244_ACEOF
36245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036246#
36247# INIT-COMMANDS
36248#
36249PACKAGE="$PACKAGE"
36250AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36251
36252
36253# The HP-UX ksh and POSIX shell print the target directory to stdout
36254# if CDPATH is set.
36255(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36256
36257sed_quote_subst='$sed_quote_subst'
36258double_quote_subst='$double_quote_subst'
36259delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036260SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36261Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36262GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36263EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36264FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36265SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36266ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36267LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36268macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36269macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36270AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36271DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36272OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36273enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36274enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36275pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36276enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036277PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036278host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36279host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36280host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36281build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36282build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36283build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36284NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36285LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36286max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36287ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36288exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36289lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36290lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36291lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036292lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36293lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036294reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36295reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36296deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36297file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036298file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36299want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36300sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036301AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36302AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036303archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036304STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36305RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36306old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36307old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36308old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36309lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36310CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36311CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36312compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36313GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36314lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36315lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36316lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36317lt_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 +000036318nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36319lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036320objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36321MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36322lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036323lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036324lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036325lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36326lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36327need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036328MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036329DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36330NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36331LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36332OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36333OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36334libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36335shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36336extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36337archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36338enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36339export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36340whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36341compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36342old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36343old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36344archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36345archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36346module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36347module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36348with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36349allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36350no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36351hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036352hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36353hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36354hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36355hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36356hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36357hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36358inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36359link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036360always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36361export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36362exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36363include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36364prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036365postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036366file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36367variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36368need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36369need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36370version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36371runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36372shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36373shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36374libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36375library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36376soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36377install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36378postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36379postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36380finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36381finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36382hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36383sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36384sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36385hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36386enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36387enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36388enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36389old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36390striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36391compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36392predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36393postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36394predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36395postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36396compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36397LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36398reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36399reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36400old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36401compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36402GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36403lt_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 +000036404lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036405lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036406lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36407lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36408archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36409enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36410export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36411whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36412compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36413old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36414old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36415archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36416archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36417module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36418module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36419with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36420allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36421no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36422hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036423hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36424hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36425hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36426hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36427hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36428hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36429inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36430link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036431always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36432export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36433exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36434include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36435prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036436postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036437file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36438hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36439compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36440predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36441postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36442predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36443postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36444compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036445
36446LTCC='$LTCC'
36447LTCFLAGS='$LTCFLAGS'
36448compiler='$compiler_DEFAULT'
36449
cristy0c60a692010-11-04 01:09:47 +000036450# A function that is used when there is no print builtin or printf.
36451func_fallback_echo ()
36452{
36453 eval 'cat <<_LTECHO_EOF
36454\$1
36455_LTECHO_EOF'
36456}
36457
cristy73bd4a52010-10-05 11:24:23 +000036458# Quote evaled strings.
36459for var in SED \
36460GREP \
36461EGREP \
36462FGREP \
cristy0c60a692010-11-04 01:09:47 +000036463SHELL \
36464ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036465LD \
cristy0c60a692010-11-04 01:09:47 +000036466AS \
36467DLLTOOL \
36468OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036469PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036470NM \
36471LN_S \
36472lt_SP2NL \
36473lt_NL2SP \
36474reload_flag \
36475deplibs_check_method \
36476file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036477file_magic_glob \
36478want_nocaseglob \
36479sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036480AR \
36481AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036482archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036483STRIP \
36484RANLIB \
36485CC \
36486CFLAGS \
36487compiler \
36488lt_cv_sys_global_symbol_pipe \
36489lt_cv_sys_global_symbol_to_cdecl \
36490lt_cv_sys_global_symbol_to_c_name_address \
36491lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036492nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036493lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036494lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036495lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036496lt_prog_compiler_static \
36497lt_cv_prog_compiler_c_o \
36498need_locks \
cristyda16f162011-02-19 23:52:17 +000036499MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036500DSYMUTIL \
36501NMEDIT \
36502LIPO \
36503OTOOL \
36504OTOOL64 \
36505shrext_cmds \
36506export_dynamic_flag_spec \
36507whole_archive_flag_spec \
36508compiler_needs_object \
36509with_gnu_ld \
36510allow_undefined_flag \
36511no_undefined_flag \
36512hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036513hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036514exclude_expsyms \
36515include_expsyms \
36516file_list_spec \
36517variables_saved_for_relink \
36518libname_spec \
36519library_names_spec \
36520soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036521install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036522finish_eval \
36523old_striplib \
36524striplib \
36525compiler_lib_search_dirs \
36526predep_objects \
36527postdep_objects \
36528predeps \
36529postdeps \
36530compiler_lib_search_path \
36531LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036532reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036533compiler_CXX \
36534lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036535lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036536lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036537lt_prog_compiler_static_CXX \
36538lt_cv_prog_compiler_c_o_CXX \
36539export_dynamic_flag_spec_CXX \
36540whole_archive_flag_spec_CXX \
36541compiler_needs_object_CXX \
36542with_gnu_ld_CXX \
36543allow_undefined_flag_CXX \
36544no_undefined_flag_CXX \
36545hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036546hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036547exclude_expsyms_CXX \
36548include_expsyms_CXX \
36549file_list_spec_CXX \
36550compiler_lib_search_dirs_CXX \
36551predep_objects_CXX \
36552postdep_objects_CXX \
36553predeps_CXX \
36554postdeps_CXX \
36555compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036557 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036559 ;;
36560 *)
36561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36562 ;;
36563 esac
36564done
36565
36566# Double-quote double-evaled strings.
36567for var in reload_cmds \
36568old_postinstall_cmds \
36569old_postuninstall_cmds \
36570old_archive_cmds \
36571extract_expsyms_cmds \
36572old_archive_from_new_cmds \
36573old_archive_from_expsyms_cmds \
36574archive_cmds \
36575archive_expsym_cmds \
36576module_cmds \
36577module_expsym_cmds \
36578export_symbols_cmds \
36579prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036580postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036581postinstall_cmds \
36582postuninstall_cmds \
36583finish_cmds \
36584sys_lib_search_path_spec \
36585sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036586reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036587old_archive_cmds_CXX \
36588old_archive_from_new_cmds_CXX \
36589old_archive_from_expsyms_cmds_CXX \
36590archive_cmds_CXX \
36591archive_expsym_cmds_CXX \
36592module_cmds_CXX \
36593module_expsym_cmds_CXX \
36594export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036595prelink_cmds_CXX \
36596postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036597 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036598 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036599 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036600 ;;
36601 *)
36602 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36603 ;;
36604 esac
36605done
36606
cristy73bd4a52010-10-05 11:24:23 +000036607ac_aux_dir='$ac_aux_dir'
36608xsi_shell='$xsi_shell'
36609lt_shell_append='$lt_shell_append'
36610
36611# See if we are running on zsh, and set the options which allow our
36612# commands through without removal of \ escapes INIT.
36613if test -n "\${ZSH_VERSION+set}" ; then
36614 setopt NO_GLOB_SUBST
36615fi
36616
36617
36618 PACKAGE='$PACKAGE'
36619 VERSION='$VERSION'
36620 TIMESTAMP='$TIMESTAMP'
36621 RM='$RM'
36622 ofile='$ofile'
36623
36624
36625
36626
36627
36628
cristy3ed852e2009-09-05 21:47:34 +000036629_ACEOF
36630
36631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36632
36633# Handling of arguments.
36634for ac_config_target in $ac_config_targets
36635do
36636 case $ac_config_target in
36637 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036638 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036639 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36640 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36641 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36642 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36643 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036644 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036645 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36646 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36647 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36648 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36649 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036650 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036651 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36652 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036653 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36654 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36655 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036656 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36657 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36658 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36659 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36660 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36661 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36662 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36663 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36664 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36665 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36666 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36667 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36668 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36669 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36670 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36671 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36672 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036673 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36674 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036675 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36676 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036677 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36678 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036679 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036680 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36681 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36682
cristy98dddb52010-11-04 00:30:15 +000036683 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036684 esac
36685done
36686
36687
36688# If the user did not use the arguments to specify the items to instantiate,
36689# then the envvar interface is used. Set only those that are not.
36690# We use the long form for the default assignment because of an extremely
36691# bizarre bug on SunOS 4.1.3.
36692if $ac_need_defaults; then
36693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36694 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36695 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36696fi
36697
36698# Have a temporary directory for convenience. Make it in the build tree
36699# simply because there is no reason against having it here, and in addition,
36700# creating and moving files from /tmp can sometimes cause problems.
36701# Hook for its removal unless debugging.
36702# Note that there is a small window in which the directory will not be cleaned:
36703# after its creation but before its name has been assigned to `$tmp'.
36704$debug ||
36705{
cristyda16f162011-02-19 23:52:17 +000036706 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036707 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036708 : "${ac_tmp:=$tmp}"
36709 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036710' 0
cristy8b350f62009-11-15 23:12:43 +000036711 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036712}
36713# Create a (secure) tmp directory for tmp files.
36714
36715{
36716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036717 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036718} ||
36719{
36720 tmp=./conf$$-$RANDOM
36721 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036722} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036723ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036724
36725# Set up the scripts for CONFIG_FILES section.
36726# No need to generate them if there are no CONFIG_FILES.
36727# This happens for instance with `./config.status config.h'.
36728if test -n "$CONFIG_FILES"; then
36729
36730
cristy8b350f62009-11-15 23:12:43 +000036731ac_cr=`echo X | tr X '\015'`
36732# On cygwin, bash can eat \r inside `` if the user requested igncr.
36733# But we know of no other shell where ac_cr would be empty at this
36734# point, so we can use a bashism as a fallback.
36735if test "x$ac_cr" = x; then
36736 eval ac_cr=\$\'\\r\'
36737fi
cristy3ed852e2009-09-05 21:47:34 +000036738ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36739if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036740 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036741else
36742 ac_cs_awk_cr=$ac_cr
36743fi
36744
cristyda16f162011-02-19 23:52:17 +000036745echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036746_ACEOF
36747
36748
36749{
36750 echo "cat >conf$$subs.awk <<_ACEOF" &&
36751 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36752 echo "_ACEOF"
36753} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36755ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036756ac_delim='%!_!# '
36757for ac_last_try in false false false false false :; do
36758 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036760
36761 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36762 if test $ac_delim_n = $ac_delim_num; then
36763 break
36764 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036766 else
36767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36768 fi
36769done
36770rm -f conf$$subs.sh
36771
36772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036773cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036774_ACEOF
36775sed -n '
36776h
36777s/^/S["/; s/!.*/"]=/
36778p
36779g
36780s/^[^!]*!//
36781:repl
36782t repl
36783s/'"$ac_delim"'$//
36784t delim
36785:nl
36786h
cristycd4c5312009-11-22 01:19:08 +000036787s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036788t more1
36789s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36790p
36791n
36792b repl
36793:more1
36794s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36795p
36796g
36797s/.\{148\}//
36798t nl
36799:delim
36800h
cristycd4c5312009-11-22 01:19:08 +000036801s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036802t more2
36803s/["\\]/\\&/g; s/^/"/; s/$/"/
36804p
36805b
36806:more2
36807s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36808p
36809g
36810s/.\{148\}//
36811t delim
36812' <conf$$subs.awk | sed '
36813/^[^""]/{
36814 N
36815 s/\n//
36816}
36817' >>$CONFIG_STATUS || ac_write_fail=1
36818rm -f conf$$subs.awk
36819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36820_ACAWK
cristyda16f162011-02-19 23:52:17 +000036821cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036822 for (key in S) S_is_set[key] = 1
36823 FS = ""
36824
36825}
36826{
36827 line = $ 0
36828 nfields = split(line, field, "@")
36829 substed = 0
36830 len = length(field[1])
36831 for (i = 2; i < nfields; i++) {
36832 key = field[i]
36833 keylen = length(key)
36834 if (S_is_set[key]) {
36835 value = S[key]
36836 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36837 len += length(value) + length(field[++i])
36838 substed = 1
36839 } else
36840 len += 1 + keylen
36841 }
36842
36843 print line
36844}
36845
36846_ACAWK
36847_ACEOF
36848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36849if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36850 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36851else
36852 cat
cristyda16f162011-02-19 23:52:17 +000036853fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036854 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036855_ACEOF
36856
cristy98dddb52010-11-04 00:30:15 +000036857# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36858# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036859# trailing colons and then remove the whole line if VPATH becomes empty
36860# (actually we leave an empty line to preserve line numbers).
36861if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036862 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36863h
36864s///
36865s/^/:/
36866s/[ ]*$/:/
36867s/:\$(srcdir):/:/g
36868s/:\${srcdir}:/:/g
36869s/:@srcdir@:/:/g
36870s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036871s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036872x
36873s/\(=[ ]*\).*/\1/
36874G
36875s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036876s/^[^=]*=[ ]*$//
36877}'
36878fi
36879
36880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36881fi # test -n "$CONFIG_FILES"
36882
36883# Set up the scripts for CONFIG_HEADERS section.
36884# No need to generate them if there are no CONFIG_HEADERS.
36885# This happens for instance with `./config.status Makefile'.
36886if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036887cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036888BEGIN {
36889_ACEOF
36890
36891# Transform confdefs.h into an awk script `defines.awk', embedded as
36892# here-document in config.status, that substitutes the proper values into
36893# config.h.in to produce config.h.
36894
36895# Create a delimiter string that does not exist in confdefs.h, to ease
36896# handling of long lines.
36897ac_delim='%!_!# '
36898for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036899 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36900 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036901 break
36902 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036903 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036904 else
36905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36906 fi
36907done
36908
36909# For the awk script, D is an array of macro values keyed by name,
36910# likewise P contains macro parameters if any. Preserve backslash
36911# newline sequences.
36912
36913ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36914sed -n '
36915s/.\{148\}/&'"$ac_delim"'/g
36916t rset
36917:rset
36918s/^[ ]*#[ ]*define[ ][ ]*/ /
36919t def
36920d
36921:def
36922s/\\$//
36923t bsnl
36924s/["\\]/\\&/g
36925s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36926D["\1"]=" \3"/p
36927s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36928d
36929:bsnl
36930s/["\\]/\\&/g
36931s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36932D["\1"]=" \3\\\\\\n"\\/p
36933t cont
36934s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36935t cont
36936d
36937:cont
36938n
36939s/.\{148\}/&'"$ac_delim"'/g
36940t clear
36941:clear
36942s/\\$//
36943t bsnlc
36944s/["\\]/\\&/g; s/^/"/; s/$/"/p
36945d
36946:bsnlc
36947s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36948b cont
36949' <confdefs.h | sed '
36950s/'"$ac_delim"'/"\\\
36951"/g' >>$CONFIG_STATUS || ac_write_fail=1
36952
36953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36954 for (key in D) D_is_set[key] = 1
36955 FS = ""
36956}
36957/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36958 line = \$ 0
36959 split(line, arg, " ")
36960 if (arg[1] == "#") {
36961 defundef = arg[2]
36962 mac1 = arg[3]
36963 } else {
36964 defundef = substr(arg[1], 2)
36965 mac1 = arg[2]
36966 }
36967 split(mac1, mac2, "(") #)
36968 macro = mac2[1]
36969 prefix = substr(line, 1, index(line, defundef) - 1)
36970 if (D_is_set[macro]) {
36971 # Preserve the white space surrounding the "#".
36972 print prefix "define", macro P[macro] D[macro]
36973 next
36974 } else {
36975 # Replace #undef with comments. This is necessary, for example,
36976 # in the case of _POSIX_SOURCE, which is predefined and required
36977 # on some systems where configure will not decide to define it.
36978 if (defundef == "undef") {
36979 print "/*", prefix defundef, macro, "*/"
36980 next
36981 }
36982 }
36983}
36984{ print }
36985_ACAWK
36986_ACEOF
36987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036988 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036989fi # test -n "$CONFIG_HEADERS"
36990
36991
36992eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36993shift
36994for ac_tag
36995do
36996 case $ac_tag in
36997 :[FHLC]) ac_mode=$ac_tag; continue;;
36998 esac
36999 case $ac_mode$ac_tag in
37000 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037001 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037002 :[FH]-) ac_tag=-:-;;
37003 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37004 esac
37005 ac_save_IFS=$IFS
37006 IFS=:
37007 set x $ac_tag
37008 IFS=$ac_save_IFS
37009 shift
37010 ac_file=$1
37011 shift
37012
37013 case $ac_mode in
37014 :L) ac_source=$1;;
37015 :[FH])
37016 ac_file_inputs=
37017 for ac_f
37018 do
37019 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037020 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037021 *) # Look for the file first in the build tree, then in the source tree
37022 # (if the path is not absolute). The absolute path cannot be DOS-style,
37023 # because $ac_f cannot contain `:'.
37024 test -f "$ac_f" ||
37025 case $ac_f in
37026 [\\/$]*) false;;
37027 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37028 esac ||
cristy98dddb52010-11-04 00:30:15 +000037029 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037030 esac
37031 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037032 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037033 done
37034
37035 # Let's still pretend it is `configure' which instantiates (i.e., don't
37036 # use $as_me), people would be surprised to read:
37037 # /* config.h. Generated by config.status. */
37038 configure_input='Generated from '`
37039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37040 `' by configure.'
37041 if test x"$ac_file" != x-; then
37042 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037044$as_echo "$as_me: creating $ac_file" >&6;}
37045 fi
37046 # Neutralize special characters interpreted by sed in replacement strings.
37047 case $configure_input in #(
37048 *\&* | *\|* | *\\* )
37049 ac_sed_conf_input=`$as_echo "$configure_input" |
37050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37051 *) ac_sed_conf_input=$configure_input;;
37052 esac
37053
37054 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037055 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037057 esac
37058 ;;
37059 esac
37060
37061 ac_dir=`$as_dirname -- "$ac_file" ||
37062$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37063 X"$ac_file" : 'X\(//\)[^/]' \| \
37064 X"$ac_file" : 'X\(//\)$' \| \
37065 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37066$as_echo X"$ac_file" |
37067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37068 s//\1/
37069 q
37070 }
37071 /^X\(\/\/\)[^/].*/{
37072 s//\1/
37073 q
37074 }
37075 /^X\(\/\/\)$/{
37076 s//\1/
37077 q
37078 }
37079 /^X\(\/\).*/{
37080 s//\1/
37081 q
37082 }
37083 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037084 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037085 ac_builddir=.
37086
37087case "$ac_dir" in
37088.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37089*)
37090 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37091 # A ".." for each directory in $ac_dir_suffix.
37092 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37093 case $ac_top_builddir_sub in
37094 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37095 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37096 esac ;;
37097esac
37098ac_abs_top_builddir=$ac_pwd
37099ac_abs_builddir=$ac_pwd$ac_dir_suffix
37100# for backward compatibility:
37101ac_top_builddir=$ac_top_build_prefix
37102
37103case $srcdir in
37104 .) # We are building in place.
37105 ac_srcdir=.
37106 ac_top_srcdir=$ac_top_builddir_sub
37107 ac_abs_top_srcdir=$ac_pwd ;;
37108 [\\/]* | ?:[\\/]* ) # Absolute name.
37109 ac_srcdir=$srcdir$ac_dir_suffix;
37110 ac_top_srcdir=$srcdir
37111 ac_abs_top_srcdir=$srcdir ;;
37112 *) # Relative name.
37113 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37114 ac_top_srcdir=$ac_top_build_prefix$srcdir
37115 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37116esac
37117ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37118
37119
37120 case $ac_mode in
37121 :F)
37122 #
37123 # CONFIG_FILE
37124 #
37125
37126 case $INSTALL in
37127 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37128 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37129 esac
cristy73bd4a52010-10-05 11:24:23 +000037130 ac_MKDIR_P=$MKDIR_P
37131 case $MKDIR_P in
37132 [\\/$]* | ?:[\\/]* ) ;;
37133 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37134 esac
cristy3ed852e2009-09-05 21:47:34 +000037135_ACEOF
37136
37137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37138# If the template does not know about datarootdir, expand it.
37139# FIXME: This hack should be removed a few years after 2.60.
37140ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037141ac_sed_dataroot='
37142/datarootdir/ {
37143 p
37144 q
37145}
37146/@datadir@/p
37147/@docdir@/p
37148/@infodir@/p
37149/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037150/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037151case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37152*datarootdir*) ac_datarootdir_seen=yes;;
37153*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037155$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37156_ACEOF
37157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37158 ac_datarootdir_hack='
37159 s&@datadir@&$datadir&g
37160 s&@docdir@&$docdir&g
37161 s&@infodir@&$infodir&g
37162 s&@localedir@&$localedir&g
37163 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037164 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037165esac
37166_ACEOF
37167
37168# Neutralize VPATH when `$srcdir' = `.'.
37169# Shell code in configure.ac might set extrasub.
37170# FIXME: do we really want to maintain this feature?
37171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37172ac_sed_extra="$ac_vpsub
37173$extrasub
37174_ACEOF
37175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37176:t
37177/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37178s|@configure_input@|$ac_sed_conf_input|;t t
37179s&@top_builddir@&$ac_top_builddir_sub&;t t
37180s&@top_build_prefix@&$ac_top_build_prefix&;t t
37181s&@srcdir@&$ac_srcdir&;t t
37182s&@abs_srcdir@&$ac_abs_srcdir&;t t
37183s&@top_srcdir@&$ac_top_srcdir&;t t
37184s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37185s&@builddir@&$ac_builddir&;t t
37186s&@abs_builddir@&$ac_abs_builddir&;t t
37187s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37188s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037189s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037190$ac_datarootdir_hack
37191"
cristyda16f162011-02-19 23:52:17 +000037192eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37193 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037194
37195test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037196 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37198 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037200which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037201$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037202which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037203
cristyda16f162011-02-19 23:52:17 +000037204 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037205 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037206 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37207 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037208 esac \
cristy98dddb52010-11-04 00:30:15 +000037209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037210 ;;
37211 :H)
37212 #
37213 # CONFIG_HEADER
37214 #
37215 if test x"$ac_file" != x-; then
37216 {
37217 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37219 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037221 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037223$as_echo "$as_me: $ac_file is unchanged" >&6;}
37224 else
37225 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037226 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037228 fi
37229 else
37230 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037232 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037233 fi
cristy73bd4a52010-10-05 11:24:23 +000037234# Compute "$ac_file"'s index in $config_headers.
37235_am_arg="$ac_file"
37236_am_stamp_count=1
37237for _am_header in $config_headers :; do
37238 case $_am_header in
37239 $_am_arg | $_am_arg:* )
37240 break ;;
37241 * )
37242 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37243 esac
37244done
37245echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37246$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37247 X"$_am_arg" : 'X\(//\)[^/]' \| \
37248 X"$_am_arg" : 'X\(//\)$' \| \
37249 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37250$as_echo X"$_am_arg" |
37251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37252 s//\1/
37253 q
37254 }
37255 /^X\(\/\/\)[^/].*/{
37256 s//\1/
37257 q
37258 }
37259 /^X\(\/\/\)$/{
37260 s//\1/
37261 q
37262 }
37263 /^X\(\/\).*/{
37264 s//\1/
37265 q
37266 }
37267 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037268 ;;
37269
cristy8b350f62009-11-15 23:12:43 +000037270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037271$as_echo "$as_me: executing $ac_file commands" >&6;}
37272 ;;
37273 esac
37274
37275
37276 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037277 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037278ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37279ac_prefix_conf_PKG=`echo MagickCore`
37280ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37281ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37282ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37283if test ".$ac_prefix_conf_INP" = "."; then
37284 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37285 case "$ac_file" in
37286 *.h) ac_prefix_conf_INP=$ac_file ;;
37287 *)
37288 esac
37289 test ".$ac_prefix_conf_INP" != "." && break
37290 done
37291fi
37292if test ".$ac_prefix_conf_INP" = "."; then
37293 case "$ac_prefix_conf_OUT" in
37294 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37295 ;;
37296 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37297 ;;
37298 *) ac_prefix_conf_INP=config.h
37299 ;;
37300 esac
37301fi
37302if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037303 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037304else
37305 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37306 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37307 fi fi
37308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37309$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37310 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037311 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37312 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37313 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37314 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37315 $as_echo "#endif/" >> conftest.prefix
37316 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37317 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37318 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037319 # now executing _script on _DEF input to create _OUT output file
37320 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37321 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37322 echo ' ' >>$tmp/pconfig.h
37323 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37324
37325 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37326 echo ' ' >>$tmp/pconfig.h
37327 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37328 echo "#endif" >>$tmp/pconfig.h
37329 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37330 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37331$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37332 else
37333 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37334$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37335 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37336 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37337 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37338$as_echo X"$ac_prefix_conf_OUT" |
37339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37340 s//\1/
37341 q
37342 }
37343 /^X\(\/\/\)[^/].*/{
37344 s//\1/
37345 q
37346 }
37347 /^X\(\/\/\)$/{
37348 s//\1/
37349 q
37350 }
37351 /^X\(\/\).*/{
37352 s//\1/
37353 q
37354 }
37355 s/.*/./; q'`
37356 as_dir="$ac_dir"; as_fn_mkdir_p
37357 rm -f "$ac_prefix_conf_OUT"
37358 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37359 fi
37360 cp conftest.prefix _configs.sed
37361 else
cristy98dddb52010-11-04 00:30:15 +000037362 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 +000037363 fi
37364 rm -f conftest.*
37365fi
37366 ;;
37367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37368 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37369 # are listed without --file. Let's play safe and only enable the eval
37370 # if we detect the quoting.
37371 case $CONFIG_FILES in
37372 *\'*) eval set x "$CONFIG_FILES" ;;
37373 *) set x $CONFIG_FILES ;;
37374 esac
37375 shift
37376 for mf
37377 do
37378 # Strip MF so we end up with the name of the file.
37379 mf=`echo "$mf" | sed -e 's/:.*$//'`
37380 # Check whether this is an Automake generated Makefile or not.
37381 # We used to match only the files named `Makefile.in', but
37382 # some people rename them; so instead we look at the file content.
37383 # Grep'ing the first line is not enough: some people post-process
37384 # each Makefile.in and add a new line on top of each file to say so.
37385 # Grep'ing the whole file is not good either: AIX grep has a line
37386 # limit of 2048, but all sed's we know have understand at least 4000.
37387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37388 dirpart=`$as_dirname -- "$mf" ||
37389$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37390 X"$mf" : 'X\(//\)[^/]' \| \
37391 X"$mf" : 'X\(//\)$' \| \
37392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37393$as_echo X"$mf" |
37394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37395 s//\1/
37396 q
37397 }
37398 /^X\(\/\/\)[^/].*/{
37399 s//\1/
37400 q
37401 }
37402 /^X\(\/\/\)$/{
37403 s//\1/
37404 q
37405 }
37406 /^X\(\/\).*/{
37407 s//\1/
37408 q
37409 }
37410 s/.*/./; q'`
37411 else
37412 continue
37413 fi
37414 # Extract the definition of DEPDIR, am__include, and am__quote
37415 # from the Makefile without running `make'.
37416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37417 test -z "$DEPDIR" && continue
37418 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37419 test -z "am__include" && continue
37420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37421 # When using ansi2knr, U may be empty or an underscore; expand it
37422 U=`sed -n 's/^U = //p' < "$mf"`
37423 # Find all dependency output files, they are included files with
37424 # $(DEPDIR) in their names. We invoke sed twice because it is the
37425 # simplest approach to changing $(DEPDIR) to its actual value in the
37426 # expansion.
37427 for file in `sed -n "
37428 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37430 # Make sure the directory exists.
37431 test -f "$dirpart/$file" && continue
37432 fdir=`$as_dirname -- "$file" ||
37433$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37434 X"$file" : 'X\(//\)[^/]' \| \
37435 X"$file" : 'X\(//\)$' \| \
37436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37437$as_echo X"$file" |
37438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37439 s//\1/
37440 q
37441 }
37442 /^X\(\/\/\)[^/].*/{
37443 s//\1/
37444 q
37445 }
37446 /^X\(\/\/\)$/{
37447 s//\1/
37448 q
37449 }
37450 /^X\(\/\).*/{
37451 s//\1/
37452 q
37453 }
37454 s/.*/./; q'`
37455 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37456 # echo "creating $dirpart/$file"
37457 echo '# dummy' > "$dirpart/$file"
37458 done
37459 done
37460}
37461 ;;
37462 "libtool":C)
37463
37464 # See if we are running on zsh, and set the options which allow our
37465 # commands through without removal of \ escapes.
37466 if test -n "${ZSH_VERSION+set}" ; then
37467 setopt NO_GLOB_SUBST
37468 fi
37469
37470 cfgfile="${ofile}T"
37471 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37472 $RM "$cfgfile"
37473
37474 cat <<_LT_EOF >> "$cfgfile"
37475#! $SHELL
37476
37477# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37478# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37479# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37480# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37481#
37482# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037483# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37484# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037485# Written by Gordon Matzigkeit, 1996
37486#
37487# This file is part of GNU Libtool.
37488#
37489# GNU Libtool is free software; you can redistribute it and/or
37490# modify it under the terms of the GNU General Public License as
37491# published by the Free Software Foundation; either version 2 of
37492# the License, or (at your option) any later version.
37493#
37494# As a special exception to the GNU General Public License,
37495# if you distribute this file as part of a program or library that
37496# is built using GNU Libtool, you may include this file under the
37497# same distribution terms that you use for the rest of that program.
37498#
37499# GNU Libtool is distributed in the hope that it will be useful,
37500# but WITHOUT ANY WARRANTY; without even the implied warranty of
37501# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37502# GNU General Public License for more details.
37503#
37504# You should have received a copy of the GNU General Public License
37505# along with GNU Libtool; see the file COPYING. If not, a copy
37506# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37507# obtained by writing to the Free Software Foundation, Inc.,
37508# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37509
37510
37511# The names of the tagged configurations supported by this script.
37512available_tags="CXX "
37513
37514# ### BEGIN LIBTOOL CONFIG
37515
37516# A sed program that does not truncate output.
37517SED=$lt_SED
37518
37519# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37520Xsed="\$SED -e 1s/^X//"
37521
37522# A grep program that handles long lines.
37523GREP=$lt_GREP
37524
37525# An ERE matcher.
37526EGREP=$lt_EGREP
37527
37528# A literal string matcher.
37529FGREP=$lt_FGREP
37530
cristy0c60a692010-11-04 01:09:47 +000037531# Shell to use when invoking shell scripts.
37532SHELL=$lt_SHELL
37533
37534# An echo program that protects backslashes.
37535ECHO=$lt_ECHO
37536
cristy73bd4a52010-10-05 11:24:23 +000037537# Which release of libtool.m4 was used?
37538macro_version=$macro_version
37539macro_revision=$macro_revision
37540
37541# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037542AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037543
37544# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037545DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037546
37547# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037548OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037549
37550# Whether or not to build shared libraries.
37551build_libtool_libs=$enable_shared
37552
37553# Whether or not to build static libraries.
37554build_old_libs=$enable_static
37555
37556# What type of objects to build.
37557pic_mode=$pic_mode
37558
37559# Whether or not to optimize for fast installation.
37560fast_install=$enable_fast_install
37561
cristy99bd5232011-12-07 14:38:20 +000037562# The PATH separator for the build system.
37563PATH_SEPARATOR=$lt_PATH_SEPARATOR
37564
cristy73bd4a52010-10-05 11:24:23 +000037565# The host system.
37566host_alias=$host_alias
37567host=$host
37568host_os=$host_os
37569
37570# The build system.
37571build_alias=$build_alias
37572build=$build
37573build_os=$build_os
37574
37575# A BSD- or MS-compatible name lister.
37576NM=$lt_NM
37577
37578# Whether we need soft or hard links.
37579LN_S=$lt_LN_S
37580
37581# What is the maximum length of a command?
37582max_cmd_len=$max_cmd_len
37583
37584# Object file suffix (normally "o").
37585objext=$ac_objext
37586
37587# Executable file suffix (normally "").
37588exeext=$exeext
37589
37590# whether the shell understands "unset".
37591lt_unset=$lt_unset
37592
37593# turn spaces into newlines.
37594SP2NL=$lt_lt_SP2NL
37595
37596# turn newlines into spaces.
37597NL2SP=$lt_lt_NL2SP
37598
cristyda16f162011-02-19 23:52:17 +000037599# convert \$build file names to \$host format.
37600to_host_file_cmd=$lt_cv_to_host_file_cmd
37601
37602# convert \$build files to toolchain format.
37603to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37604
cristy73bd4a52010-10-05 11:24:23 +000037605# Method to check whether dependent libraries are shared objects.
37606deplibs_check_method=$lt_deplibs_check_method
37607
cristyda16f162011-02-19 23:52:17 +000037608# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037609file_magic_cmd=$lt_file_magic_cmd
37610
cristyda16f162011-02-19 23:52:17 +000037611# How to find potential files when deplibs_check_method = "file_magic".
37612file_magic_glob=$lt_file_magic_glob
37613
37614# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37615want_nocaseglob=$lt_want_nocaseglob
37616
37617# Command to associate shared and link libraries.
37618sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37619
cristy73bd4a52010-10-05 11:24:23 +000037620# The archiver.
37621AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037622
37623# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037624AR_FLAGS=$lt_AR_FLAGS
37625
cristyda16f162011-02-19 23:52:17 +000037626# How to feed a file listing to the archiver.
37627archiver_list_spec=$lt_archiver_list_spec
37628
cristy73bd4a52010-10-05 11:24:23 +000037629# A symbol stripping program.
37630STRIP=$lt_STRIP
37631
37632# Commands used to install an old-style archive.
37633RANLIB=$lt_RANLIB
37634old_postinstall_cmds=$lt_old_postinstall_cmds
37635old_postuninstall_cmds=$lt_old_postuninstall_cmds
37636
cristy0c60a692010-11-04 01:09:47 +000037637# Whether to use a lock for old archive extraction.
37638lock_old_archive_extraction=$lock_old_archive_extraction
37639
cristy73bd4a52010-10-05 11:24:23 +000037640# A C compiler.
37641LTCC=$lt_CC
37642
37643# LTCC compiler flags.
37644LTCFLAGS=$lt_CFLAGS
37645
37646# Take the output of nm and produce a listing of raw symbols and C names.
37647global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37648
37649# Transform the output of nm in a proper C declaration.
37650global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37651
37652# Transform the output of nm in a C name address pair.
37653global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37654
37655# Transform the output of nm in a C name address pair when lib prefix is needed.
37656global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37657
cristyda16f162011-02-19 23:52:17 +000037658# Specify filename containing input files for \$NM.
37659nm_file_list_spec=$lt_nm_file_list_spec
37660
37661# The root where to search for dependent libraries,and in which our libraries should be installed.
37662lt_sysroot=$lt_sysroot
37663
cristy73bd4a52010-10-05 11:24:23 +000037664# The name of the directory that contains temporary libtool files.
37665objdir=$objdir
37666
cristy73bd4a52010-10-05 11:24:23 +000037667# Used to examine libraries when file_magic_cmd begins with "file".
37668MAGIC_CMD=$MAGIC_CMD
37669
37670# Must we lock files when doing compilation?
37671need_locks=$lt_need_locks
37672
cristyda16f162011-02-19 23:52:17 +000037673# Manifest tool.
37674MANIFEST_TOOL=$lt_MANIFEST_TOOL
37675
cristy73bd4a52010-10-05 11:24:23 +000037676# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37677DSYMUTIL=$lt_DSYMUTIL
37678
37679# Tool to change global to local symbols on Mac OS X.
37680NMEDIT=$lt_NMEDIT
37681
37682# Tool to manipulate fat objects and archives on Mac OS X.
37683LIPO=$lt_LIPO
37684
37685# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37686OTOOL=$lt_OTOOL
37687
37688# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37689OTOOL64=$lt_OTOOL64
37690
37691# Old archive suffix (normally "a").
37692libext=$libext
37693
37694# Shared library suffix (normally ".so").
37695shrext_cmds=$lt_shrext_cmds
37696
37697# The commands to extract the exported symbol list from a shared archive.
37698extract_expsyms_cmds=$lt_extract_expsyms_cmds
37699
37700# Variables whose values should be saved in libtool wrapper scripts and
37701# restored at link time.
37702variables_saved_for_relink=$lt_variables_saved_for_relink
37703
37704# Do we need the "lib" prefix for modules?
37705need_lib_prefix=$need_lib_prefix
37706
37707# Do we need a version for libraries?
37708need_version=$need_version
37709
37710# Library versioning type.
37711version_type=$version_type
37712
37713# Shared library runtime path variable.
37714runpath_var=$runpath_var
37715
37716# Shared library path variable.
37717shlibpath_var=$shlibpath_var
37718
37719# Is shlibpath searched before the hard-coded library search path?
37720shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37721
37722# Format of library name prefix.
37723libname_spec=$lt_libname_spec
37724
37725# List of archive names. First name is the real one, the rest are links.
37726# The last name is the one that the linker finds with -lNAME
37727library_names_spec=$lt_library_names_spec
37728
37729# The coded name of the library, if different from the real name.
37730soname_spec=$lt_soname_spec
37731
cristy0c60a692010-11-04 01:09:47 +000037732# Permission mode override for installation of shared libraries.
37733install_override_mode=$lt_install_override_mode
37734
cristy73bd4a52010-10-05 11:24:23 +000037735# Command to use after installation of a shared archive.
37736postinstall_cmds=$lt_postinstall_cmds
37737
37738# Command to use after uninstallation of a shared archive.
37739postuninstall_cmds=$lt_postuninstall_cmds
37740
37741# Commands used to finish a libtool library installation in a directory.
37742finish_cmds=$lt_finish_cmds
37743
37744# As "finish_cmds", except a single script fragment to be evaled but
37745# not shown.
37746finish_eval=$lt_finish_eval
37747
37748# Whether we should hardcode library paths into libraries.
37749hardcode_into_libs=$hardcode_into_libs
37750
37751# Compile-time system search path for libraries.
37752sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37753
37754# Run-time system search path for libraries.
37755sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37756
37757# Whether dlopen is supported.
37758dlopen_support=$enable_dlopen
37759
37760# Whether dlopen of programs is supported.
37761dlopen_self=$enable_dlopen_self
37762
37763# Whether dlopen of statically linked programs is supported.
37764dlopen_self_static=$enable_dlopen_self_static
37765
37766# Commands to strip libraries.
37767old_striplib=$lt_old_striplib
37768striplib=$lt_striplib
37769
37770
37771# The linker used to build libraries.
37772LD=$lt_LD
37773
cristy0c60a692010-11-04 01:09:47 +000037774# How to create reloadable object files.
37775reload_flag=$lt_reload_flag
37776reload_cmds=$lt_reload_cmds
37777
cristy73bd4a52010-10-05 11:24:23 +000037778# Commands used to build an old-style archive.
37779old_archive_cmds=$lt_old_archive_cmds
37780
37781# A language specific compiler.
37782CC=$lt_compiler
37783
37784# Is the compiler the GNU compiler?
37785with_gcc=$GCC
37786
37787# Compiler flag to turn off builtin functions.
37788no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37789
cristy73bd4a52010-10-05 11:24:23 +000037790# Additional compiler flags for building library objects.
37791pic_flag=$lt_lt_prog_compiler_pic
37792
cristyda16f162011-02-19 23:52:17 +000037793# How to pass a linker flag through the compiler.
37794wl=$lt_lt_prog_compiler_wl
37795
cristy73bd4a52010-10-05 11:24:23 +000037796# Compiler flag to prevent dynamic linking.
37797link_static_flag=$lt_lt_prog_compiler_static
37798
37799# Does compiler simultaneously support -c and -o options?
37800compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37801
37802# Whether or not to add -lc for building shared libraries.
37803build_libtool_need_lc=$archive_cmds_need_lc
37804
37805# Whether or not to disallow shared libs when runtime libs are static.
37806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37807
37808# Compiler flag to allow reflexive dlopens.
37809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37810
37811# Compiler flag to generate shared objects directly from archives.
37812whole_archive_flag_spec=$lt_whole_archive_flag_spec
37813
37814# Whether the compiler copes with passing no objects directly.
37815compiler_needs_object=$lt_compiler_needs_object
37816
37817# Create an old-style archive from a shared archive.
37818old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37819
37820# Create a temporary old-style archive to link instead of a shared archive.
37821old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37822
37823# Commands used to build a shared archive.
37824archive_cmds=$lt_archive_cmds
37825archive_expsym_cmds=$lt_archive_expsym_cmds
37826
37827# Commands used to build a loadable module if different from building
37828# a shared archive.
37829module_cmds=$lt_module_cmds
37830module_expsym_cmds=$lt_module_expsym_cmds
37831
37832# Whether we are building with GNU ld or not.
37833with_gnu_ld=$lt_with_gnu_ld
37834
37835# Flag that allows shared libraries with undefined symbols to be built.
37836allow_undefined_flag=$lt_allow_undefined_flag
37837
37838# Flag that enforces no undefined symbols.
37839no_undefined_flag=$lt_no_undefined_flag
37840
37841# Flag to hardcode \$libdir into a binary during linking.
37842# This must work even if \$libdir does not exist
37843hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37844
cristy73bd4a52010-10-05 11:24:23 +000037845# Whether we need a single "-rpath" flag with a separated argument.
37846hardcode_libdir_separator=$lt_hardcode_libdir_separator
37847
37848# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37849# DIR into the resulting binary.
37850hardcode_direct=$hardcode_direct
37851
37852# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37853# DIR into the resulting binary and the resulting library dependency is
37854# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37855# library is relocated.
37856hardcode_direct_absolute=$hardcode_direct_absolute
37857
37858# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37859# into the resulting binary.
37860hardcode_minus_L=$hardcode_minus_L
37861
37862# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37863# into the resulting binary.
37864hardcode_shlibpath_var=$hardcode_shlibpath_var
37865
37866# Set to "yes" if building a shared library automatically hardcodes DIR
37867# into the library and all subsequent libraries and executables linked
37868# against it.
37869hardcode_automatic=$hardcode_automatic
37870
37871# Set to yes if linker adds runtime paths of dependent libraries
37872# to runtime path list.
37873inherit_rpath=$inherit_rpath
37874
37875# Whether libtool must link a program against all its dependency libraries.
37876link_all_deplibs=$link_all_deplibs
37877
cristy73bd4a52010-10-05 11:24:23 +000037878# Set to "yes" if exported symbols are required.
37879always_export_symbols=$always_export_symbols
37880
37881# The commands to list exported symbols.
37882export_symbols_cmds=$lt_export_symbols_cmds
37883
37884# Symbols that should not be listed in the preloaded symbols.
37885exclude_expsyms=$lt_exclude_expsyms
37886
37887# Symbols that must always be exported.
37888include_expsyms=$lt_include_expsyms
37889
37890# Commands necessary for linking programs (against libraries) with templates.
37891prelink_cmds=$lt_prelink_cmds
37892
cristyda16f162011-02-19 23:52:17 +000037893# Commands necessary for finishing linking programs.
37894postlink_cmds=$lt_postlink_cmds
37895
cristy73bd4a52010-10-05 11:24:23 +000037896# Specify filename containing input files.
37897file_list_spec=$lt_file_list_spec
37898
37899# How to hardcode a shared library path into an executable.
37900hardcode_action=$hardcode_action
37901
37902# The directories searched by this compiler when creating a shared library.
37903compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37904
37905# Dependencies to place before and after the objects being linked to
37906# create a shared library.
37907predep_objects=$lt_predep_objects
37908postdep_objects=$lt_postdep_objects
37909predeps=$lt_predeps
37910postdeps=$lt_postdeps
37911
37912# The library search path used internally by the compiler when linking
37913# a shared library.
37914compiler_lib_search_path=$lt_compiler_lib_search_path
37915
37916# ### END LIBTOOL CONFIG
37917
37918_LT_EOF
37919
37920 case $host_os in
37921 aix3*)
37922 cat <<\_LT_EOF >> "$cfgfile"
37923# AIX sometimes has problems with the GCC collect2 program. For some
37924# reason, if we set the COLLECT_NAMES environment variable, the problems
37925# vanish in a puff of smoke.
37926if test "X${COLLECT_NAMES+set}" != Xset; then
37927 COLLECT_NAMES=
37928 export COLLECT_NAMES
37929fi
37930_LT_EOF
37931 ;;
37932 esac
37933
37934
37935ltmain="$ac_aux_dir/ltmain.sh"
37936
37937
37938 # We use sed instead of cat because bash on DJGPP gets confused if
37939 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37940 # text mode, it properly converts lines to CR/LF. This bash problem
37941 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037942 sed '$q' "$ltmain" >> "$cfgfile" \
37943 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037944
cristyda16f162011-02-19 23:52:17 +000037945 if test x"$xsi_shell" = xyes; then
37946 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37947func_dirname ()\
37948{\
37949\ case ${1} in\
37950\ */*) func_dirname_result="${1%/*}${2}" ;;\
37951\ * ) func_dirname_result="${3}" ;;\
37952\ esac\
37953} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37954 && mv -f "$cfgfile.tmp" "$cfgfile" \
37955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37956test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037957
37958
cristyda16f162011-02-19 23:52:17 +000037959 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37960func_basename ()\
37961{\
37962\ func_basename_result="${1##*/}"\
37963} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37964 && mv -f "$cfgfile.tmp" "$cfgfile" \
37965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37966test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037967
37968
cristyda16f162011-02-19 23:52:17 +000037969 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37970func_dirname_and_basename ()\
37971{\
37972\ case ${1} in\
37973\ */*) func_dirname_result="${1%/*}${2}" ;;\
37974\ * ) func_dirname_result="${3}" ;;\
37975\ esac\
37976\ func_basename_result="${1##*/}"\
37977} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37978 && mv -f "$cfgfile.tmp" "$cfgfile" \
37979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37980test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037981
cristyda16f162011-02-19 23:52:17 +000037982
37983 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37984func_stripname ()\
37985{\
37986\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37987\ # positional parameters, so assign one to ordinary parameter first.\
37988\ func_stripname_result=${3}\
37989\ func_stripname_result=${func_stripname_result#"${1}"}\
37990\ func_stripname_result=${func_stripname_result%"${2}"}\
37991} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37992 && mv -f "$cfgfile.tmp" "$cfgfile" \
37993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37994test 0 -eq $? || _lt_function_replace_fail=:
37995
37996
37997 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37998func_split_long_opt ()\
37999{\
38000\ func_split_long_opt_name=${1%%=*}\
38001\ func_split_long_opt_arg=${1#*=}\
38002} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38003 && mv -f "$cfgfile.tmp" "$cfgfile" \
38004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38005test 0 -eq $? || _lt_function_replace_fail=:
38006
38007
38008 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38009func_split_short_opt ()\
38010{\
38011\ func_split_short_opt_arg=${1#??}\
38012\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38013} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38014 && mv -f "$cfgfile.tmp" "$cfgfile" \
38015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38016test 0 -eq $? || _lt_function_replace_fail=:
38017
38018
38019 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38020func_lo2o ()\
38021{\
38022\ case ${1} in\
38023\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38024\ *) func_lo2o_result=${1} ;;\
38025\ esac\
38026} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38027 && mv -f "$cfgfile.tmp" "$cfgfile" \
38028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38029test 0 -eq $? || _lt_function_replace_fail=:
38030
38031
38032 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38033func_xform ()\
38034{\
38035 func_xform_result=${1%.*}.lo\
38036} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38037 && mv -f "$cfgfile.tmp" "$cfgfile" \
38038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38039test 0 -eq $? || _lt_function_replace_fail=:
38040
38041
38042 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38043func_arith ()\
38044{\
38045 func_arith_result=$(( $* ))\
38046} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38047 && mv -f "$cfgfile.tmp" "$cfgfile" \
38048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38049test 0 -eq $? || _lt_function_replace_fail=:
38050
38051
38052 sed -e '/^func_len ()$/,/^} # func_len /c\
38053func_len ()\
38054{\
38055 func_len_result=${#1}\
38056} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38057 && mv -f "$cfgfile.tmp" "$cfgfile" \
38058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38059test 0 -eq $? || _lt_function_replace_fail=:
38060
38061fi
38062
38063if test x"$lt_shell_append" = xyes; then
38064 sed -e '/^func_append ()$/,/^} # func_append /c\
38065func_append ()\
38066{\
38067 eval "${1}+=\\${2}"\
38068} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38069 && mv -f "$cfgfile.tmp" "$cfgfile" \
38070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38071test 0 -eq $? || _lt_function_replace_fail=:
38072
38073
38074 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38075func_append_quoted ()\
38076{\
38077\ func_quote_for_eval "${2}"\
38078\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38079} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38080 && mv -f "$cfgfile.tmp" "$cfgfile" \
38081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38082test 0 -eq $? || _lt_function_replace_fail=:
38083
38084
38085 # Save a `func_append' function call where possible by direct use of '+='
38086 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38087 && mv -f "$cfgfile.tmp" "$cfgfile" \
38088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38089 test 0 -eq $? || _lt_function_replace_fail=:
38090else
38091 # Save a `func_append' function call even when '+=' is not available
38092 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38093 && mv -f "$cfgfile.tmp" "$cfgfile" \
38094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38095 test 0 -eq $? || _lt_function_replace_fail=:
38096fi
38097
38098if test x"$_lt_function_replace_fail" = x":"; then
38099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38100$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38101fi
38102
38103
38104 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038105 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38106 chmod +x "$ofile"
38107
38108
38109 cat <<_LT_EOF >> "$ofile"
38110
38111# ### BEGIN LIBTOOL TAG CONFIG: CXX
38112
38113# The linker used to build libraries.
38114LD=$lt_LD_CXX
38115
cristy0c60a692010-11-04 01:09:47 +000038116# How to create reloadable object files.
38117reload_flag=$lt_reload_flag_CXX
38118reload_cmds=$lt_reload_cmds_CXX
38119
cristy73bd4a52010-10-05 11:24:23 +000038120# Commands used to build an old-style archive.
38121old_archive_cmds=$lt_old_archive_cmds_CXX
38122
38123# A language specific compiler.
38124CC=$lt_compiler_CXX
38125
38126# Is the compiler the GNU compiler?
38127with_gcc=$GCC_CXX
38128
38129# Compiler flag to turn off builtin functions.
38130no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38131
cristy73bd4a52010-10-05 11:24:23 +000038132# Additional compiler flags for building library objects.
38133pic_flag=$lt_lt_prog_compiler_pic_CXX
38134
cristyda16f162011-02-19 23:52:17 +000038135# How to pass a linker flag through the compiler.
38136wl=$lt_lt_prog_compiler_wl_CXX
38137
cristy73bd4a52010-10-05 11:24:23 +000038138# Compiler flag to prevent dynamic linking.
38139link_static_flag=$lt_lt_prog_compiler_static_CXX
38140
38141# Does compiler simultaneously support -c and -o options?
38142compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38143
38144# Whether or not to add -lc for building shared libraries.
38145build_libtool_need_lc=$archive_cmds_need_lc_CXX
38146
38147# Whether or not to disallow shared libs when runtime libs are static.
38148allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38149
38150# Compiler flag to allow reflexive dlopens.
38151export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38152
38153# Compiler flag to generate shared objects directly from archives.
38154whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38155
38156# Whether the compiler copes with passing no objects directly.
38157compiler_needs_object=$lt_compiler_needs_object_CXX
38158
38159# Create an old-style archive from a shared archive.
38160old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38161
38162# Create a temporary old-style archive to link instead of a shared archive.
38163old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38164
38165# Commands used to build a shared archive.
38166archive_cmds=$lt_archive_cmds_CXX
38167archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38168
38169# Commands used to build a loadable module if different from building
38170# a shared archive.
38171module_cmds=$lt_module_cmds_CXX
38172module_expsym_cmds=$lt_module_expsym_cmds_CXX
38173
38174# Whether we are building with GNU ld or not.
38175with_gnu_ld=$lt_with_gnu_ld_CXX
38176
38177# Flag that allows shared libraries with undefined symbols to be built.
38178allow_undefined_flag=$lt_allow_undefined_flag_CXX
38179
38180# Flag that enforces no undefined symbols.
38181no_undefined_flag=$lt_no_undefined_flag_CXX
38182
38183# Flag to hardcode \$libdir into a binary during linking.
38184# This must work even if \$libdir does not exist
38185hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38186
cristy73bd4a52010-10-05 11:24:23 +000038187# Whether we need a single "-rpath" flag with a separated argument.
38188hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38189
38190# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38191# DIR into the resulting binary.
38192hardcode_direct=$hardcode_direct_CXX
38193
38194# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38195# DIR into the resulting binary and the resulting library dependency is
38196# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38197# library is relocated.
38198hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38199
38200# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38201# into the resulting binary.
38202hardcode_minus_L=$hardcode_minus_L_CXX
38203
38204# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38205# into the resulting binary.
38206hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38207
38208# Set to "yes" if building a shared library automatically hardcodes DIR
38209# into the library and all subsequent libraries and executables linked
38210# against it.
38211hardcode_automatic=$hardcode_automatic_CXX
38212
38213# Set to yes if linker adds runtime paths of dependent libraries
38214# to runtime path list.
38215inherit_rpath=$inherit_rpath_CXX
38216
38217# Whether libtool must link a program against all its dependency libraries.
38218link_all_deplibs=$link_all_deplibs_CXX
38219
cristy73bd4a52010-10-05 11:24:23 +000038220# Set to "yes" if exported symbols are required.
38221always_export_symbols=$always_export_symbols_CXX
38222
38223# The commands to list exported symbols.
38224export_symbols_cmds=$lt_export_symbols_cmds_CXX
38225
38226# Symbols that should not be listed in the preloaded symbols.
38227exclude_expsyms=$lt_exclude_expsyms_CXX
38228
38229# Symbols that must always be exported.
38230include_expsyms=$lt_include_expsyms_CXX
38231
38232# Commands necessary for linking programs (against libraries) with templates.
38233prelink_cmds=$lt_prelink_cmds_CXX
38234
cristyda16f162011-02-19 23:52:17 +000038235# Commands necessary for finishing linking programs.
38236postlink_cmds=$lt_postlink_cmds_CXX
38237
cristy73bd4a52010-10-05 11:24:23 +000038238# Specify filename containing input files.
38239file_list_spec=$lt_file_list_spec_CXX
38240
38241# How to hardcode a shared library path into an executable.
38242hardcode_action=$hardcode_action_CXX
38243
38244# The directories searched by this compiler when creating a shared library.
38245compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38246
38247# Dependencies to place before and after the objects being linked to
38248# create a shared library.
38249predep_objects=$lt_predep_objects_CXX
38250postdep_objects=$lt_postdep_objects_CXX
38251predeps=$lt_predeps_CXX
38252postdeps=$lt_postdeps_CXX
38253
38254# The library search path used internally by the compiler when linking
38255# a shared library.
38256compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38257
38258# ### END LIBTOOL TAG CONFIG: CXX
38259_LT_EOF
38260
38261 ;;
cristy4c08aed2011-07-01 19:47:50 +000038262 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038263 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038264 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38265 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38266
38267 esac
38268done # for ac_tag
38269
38270
cristy8b350f62009-11-15 23:12:43 +000038271as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038272_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038273ac_clean_files=$ac_clean_files_save
38274
38275test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038276 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038277
38278
38279# configure is writing to config.log, and then calls config.status.
38280# config.status does its own redirection, appending to config.log.
38281# Unfortunately, on DOS this fails, as config.log is still kept open
38282# by configure, so config.status won't be able to write to it; its
38283# output is simply discarded. So we exec the FD to /dev/null,
38284# effectively closing config.log, so it can be properly (re)opened and
38285# appended to by config.status. When coming back to configure, we
38286# need to make the FD available again.
38287if test "$no_create" != yes; then
38288 ac_cs_success=:
38289 ac_config_status_args=
38290 test "$silent" = yes &&
38291 ac_config_status_args="$ac_config_status_args --quiet"
38292 exec 5>/dev/null
38293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38294 exec 5>>config.log
38295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38296 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038297 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038298fi
38299if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038301$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38302fi
38303
38304
38305rm -f magick-version
38306
cristy430a7312010-01-21 20:44:04 +000038307result_dejavu_font_dir='none'
38308if test "${dejavu_font_dir}x" != 'x'; then
38309 result_dejavu_font_dir=$dejavu_font_dir
38310fi
38311
cristy3ed852e2009-09-05 21:47:34 +000038312result_ghostscript_font_dir='none'
38313if test "${ghostscript_font_dir}x" != 'x'; then
38314 result_ghostscript_font_dir=$ghostscript_font_dir
38315fi
38316
38317result_windows_font_dir='none'
38318if test "${windows_font_dir}x" != 'x'; then
38319 result_windows_font_dir=${windows_font_dir}
38320fi
38321
cristy09b53e12011-10-14 12:47:22 +000038322{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038323ImageMagick is configured as follows. Please verify that this configuration
38324matches your expectations.
38325
38326Host system type: $host
38327Build system type: $build
38328
38329 Option Value
38330-------------------------------------------------------------------------------
38331Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38332Static libraries --enable-static=$enable_static $libtool_build_static_libs
38333Module support --with-modules=$with_modules $with_modules
38334GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38335Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38336High Dynamic Range Imagery
38337 --enable-hdri=$enable_hdri $enable_hdri
38338
38339Delegate Configuration:
38340BZLIB --with-bzlib=$with_bzlib $have_bzlib
38341Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038342Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038343DJVU --with-djvu=$with_djvu $have_djvu
38344DPS --with-dps=$with_dps $have_dps
38345FFTW --with-fftw=$with_fftw $have_fftw
38346FlashPIX --with-fpx=$with_fpx $have_fpx
38347FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38348FreeType --with-freetype=$with_freetype $have_freetype
38349GhostPCL None $PCLDelegate ($PCLVersion)
38350GhostXPS None $XPSDelegate ($XPSVersion)
38351Ghostscript None $PSDelegate ($GSVersion)
38352Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38353Ghostscript lib --with-gslib=$with_gslib $have_gslib
38354Graphviz --with-gvc=$with_gvc $have_gvc
38355JBIG --with-jbig=$with_jbig $have_jbig
38356JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38357JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038358LCMS v1 --with-lcms=$with_lcms $have_lcms
38359LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038360LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038361LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038362Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38363OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038364PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038365PERL --with-perl=$with_perl $have_perl
38366PNG --with-png=$with_png $have_png
38367RSVG --with-rsvg=$with_rsvg $have_rsvg
38368TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038369WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038370Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38371WMF --with-wmf=$with_wmf $have_wmf
38372X11 --with-x=$with_x $have_x
38373XML --with-xml=$with_xml $have_xml
38374ZLIB --with-zlib=$with_zlib $have_zlib
38375
38376X11 Configuration:
38377 X_CFLAGS = $X_CFLAGS
38378 X_PRE_LIBS = $X_PRE_LIBS
38379 X_LIBS = $X_LIBS
38380 X_EXTRA_LIBS = $X_EXTRA_LIBS
38381
38382Options used to compile and link:
38383 PREFIX = $PREFIX_DIR
38384 EXEC-PREFIX = $EXEC_PREFIX_DIR
38385 VERSION = $PACKAGE_VERSION
38386 CC = $CC
38387 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038388 CPPFLAGS = $MAGICK_CPPFLAGS
38389 PCFLAGS = $MAGICK_PCFLAGS
38390 DEFS = $DEFS
38391 LDFLAGS = $LDFLAGS
38392 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38393 LIBS = $MAGICK_LIBS
38394 CXX = $CXX
38395 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038396 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038397" >&5
cristy09b53e12011-10-14 12:47:22 +000038398$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038399ImageMagick is configured as follows. Please verify that this configuration
38400matches your expectations.
38401
38402Host system type: $host
38403Build system type: $build
38404
38405 Option Value
38406-------------------------------------------------------------------------------
38407Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38408Static libraries --enable-static=$enable_static $libtool_build_static_libs
38409Module support --with-modules=$with_modules $with_modules
38410GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38411Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38412High Dynamic Range Imagery
38413 --enable-hdri=$enable_hdri $enable_hdri
38414
38415Delegate Configuration:
38416BZLIB --with-bzlib=$with_bzlib $have_bzlib
38417Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038418Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038419DJVU --with-djvu=$with_djvu $have_djvu
38420DPS --with-dps=$with_dps $have_dps
38421FFTW --with-fftw=$with_fftw $have_fftw
38422FlashPIX --with-fpx=$with_fpx $have_fpx
38423FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38424FreeType --with-freetype=$with_freetype $have_freetype
38425GhostPCL None $PCLDelegate ($PCLVersion)
38426GhostXPS None $XPSDelegate ($XPSVersion)
38427Ghostscript None $PSDelegate ($GSVersion)
38428Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38429Ghostscript lib --with-gslib=$with_gslib $have_gslib
38430Graphviz --with-gvc=$with_gvc $have_gvc
38431JBIG --with-jbig=$with_jbig $have_jbig
38432JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38433JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038434LCMS v1 --with-lcms=$with_lcms $have_lcms
38435LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038436LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038437LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038438Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38439OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038440PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038441PERL --with-perl=$with_perl $have_perl
38442PNG --with-png=$with_png $have_png
38443RSVG --with-rsvg=$with_rsvg $have_rsvg
38444TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038445WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038446Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38447WMF --with-wmf=$with_wmf $have_wmf
38448X11 --with-x=$with_x $have_x
38449XML --with-xml=$with_xml $have_xml
38450ZLIB --with-zlib=$with_zlib $have_zlib
38451
38452X11 Configuration:
38453 X_CFLAGS = $X_CFLAGS
38454 X_PRE_LIBS = $X_PRE_LIBS
38455 X_LIBS = $X_LIBS
38456 X_EXTRA_LIBS = $X_EXTRA_LIBS
38457
38458Options used to compile and link:
38459 PREFIX = $PREFIX_DIR
38460 EXEC-PREFIX = $EXEC_PREFIX_DIR
38461 VERSION = $PACKAGE_VERSION
38462 CC = $CC
38463 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038464 CPPFLAGS = $MAGICK_CPPFLAGS
38465 PCFLAGS = $MAGICK_PCFLAGS
38466 DEFS = $DEFS
38467 LDFLAGS = $LDFLAGS
38468 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38469 LIBS = $MAGICK_LIBS
38470 CXX = $CXX
38471 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038472 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038473" >&6;}