blob: 78752d3ee016bf6e050ff8ff00ffad50ba547eb8 [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
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000756PANGOFT2_DELEGATE_FALSE
757PANGOFT2_DELEGATE_TRUE
758PANGO_DELEGATE_FALSE
759PANGO_DELEGATE_TRUE
760PANGO_LIBS
761PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000762OPENEXR_DELEGATE_FALSE
763OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764OPENEXR_LIBS
765OPENEXR_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000766LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000767LZMA_DELEGATE_FALSE
768LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000769LQR_DELEGATE_FALSE
770LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771LQR_LIBS
772LQR_CFLAGS
773LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774LCMS_DELEGATE_FALSE
775LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JP2_DELEGATE_FALSE
778JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000779JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000780JPEG_DELEGATE_FALSE
781JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783JBIG_DELEGATE_FALSE
784JBIG_DELEGATE_TRUE
785GVC_DELEGATE_FALSE
786GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787GVC_LIBS
788GVC_CFLAGS
789GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000790GS_DELEGATE_FALSE
791GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793FREETYPE_DELEGATE_FALSE
794FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000795freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000796FONTCONFIG_DELEGATE_FALSE
797FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FONTCONFIG_LIBS
799FONTCONFIG_CFLAGS
800FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801FPX_DELEGATE_FALSE
802FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804FFTW_DELEGATE_FALSE
805FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807DJVU_DELEGATE_FALSE
808DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810DPS_DELEGATE_FALSE
811DPS_DELEGATE_TRUE
812AUTOTRACE_DELEGATE_FALSE
813AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814AUTOTRACE_LIBS
815AUTOTRACE_CFLAGS
816LIB_DL
817ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818ZLIB_DELEGATE_FALSE
819ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820XEXT_LIBS
821X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822X11_DELEGATE_FALSE
823X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824X_EXTRA_LIBS
825X_LIBS
826X_PRE_LIBS
827X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000828XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000829BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830BZLIB_DELEGATE_FALSE
831BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832CCMALLOCDelegate
833UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834HasUMEM_FALSE
835HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836THREAD_LIBS
837GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838WITH_MAGICK_PLUS_PLUS_FALSE
839WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000841MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000842POW_LIB
843LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000844UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000845UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000848UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000850INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000851INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT32_T
856UINT16_T
857INT16_T
858UINT8_T
859INT8_T
860LIBRARY_EXTRA_CPPFLAGS
861MODULE_EXTRA_CPPFLAGS
862LIBSTDCLDFLAGS
863PERL_MAKE_OPTIONS
864QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000865MAINT
866MAINTAINER_MODE_FALSE
867MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868MAGICK_HDRI
869DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_LTDL_FALSE
871WITH_LTDL_TRUE
872WITH_MODULES_FALSE
873WITH_MODULES_TRUE
874WITH_SHARED_LIBS_FALSE
875WITH_SHARED_LIBS_TRUE
876LTDLOPEN
877LT_CONFIG_H
878CONVENIENCE_LTDL_FALSE
879CONVENIENCE_LTDL_TRUE
880INSTALL_LTDL_FALSE
881INSTALL_LTDL_TRUE
882ARGZ_H
883sys_symbol_underscore
884LIBADD_DL
885LT_DLPREOPEN
886LIBADD_DLD_LINK
887LIBADD_SHL_LOAD
888LIBADD_DLOPEN
889LT_DLLOADERS
890INCLTDL
891LTDLINCL
892LTDLDEPS
893LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000894LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000895CXXCPP
896OTOOL64
897OTOOL
898LIPO
899NMEDIT
900DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000901MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000902RANLIB
cristyda16f162011-02-19 23:52:17 +0000903ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000904AR
905NM
906ac_ct_DUMPBIN
907DUMPBIN
908LIBTOOL
909OBJDUMP
910DLLTOOL
911AS
cristy3ed852e2009-09-05 21:47:34 +0000912LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000913CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000914CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000915OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000916PTHREAD_CFLAGS
917PTHREAD_LIBS
918PTHREAD_CC
919ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000920WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000921USING_CL_FALSE
922USING_CL_TRUE
923CYGWIN_BUILD_FALSE
924CYGWIN_BUILD_TRUE
925WIN32_NATIVE_BUILD_FALSE
926WIN32_NATIVE_BUILD_TRUE
927WINGDI32_DELEGATE_FALSE
928WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000930PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000931LN_S
cristy3ed852e2009-09-05 21:47:34 +0000932LD
cristy73bd4a52010-10-05 11:24:23 +0000933FGREP
934SED
935am__fastdepCXX_FALSE
936am__fastdepCXX_TRUE
937CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000938ac_ct_CXX
939CXXFLAGS
940CXX
cristya0b81c32010-01-22 02:54:33 +0000941EGREP
942GREP
943CPP
cristy73bd4a52010-10-05 11:24:23 +0000944am__fastdepCC_FALSE
945am__fastdepCC_TRUE
946CCDEPMODE
947AMDEPBACKSLASH
948AMDEP_FALSE
949AMDEP_TRUE
950am__quote
951am__include
952DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000953OBJEXT
954EXEEXT
955ac_ct_CC
956CPPFLAGS
957LDFLAGS
958CFLAGS
959CC
960DIRSEP
961MAGICK_FILTER_MODULE_PATH
962MAGICK_CONFIGURE_BUILD_PATH
963MAGICK_CONFIGURE_SRC_PATH
964MAGICK_CODER_MODULE_PATH
965MAN_DIR
966INFO_DIR
967PERSISTINCLUDE_DIR
968INCLUDE_DIR
969LIB_DIR
970LOCALSTATE_DIR
971SHAREDSTATE_DIR
972SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000973DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000974DATA_DIR
975LIBEXEC_DIR
976SBIN_DIR
977BIN_DIR
978EXEC_PREFIX_DIR
979PREFIX_DIR
980CONFIG_STATUS_DEPENDENCIES
981MAGICK_LIB_VERSION_NUMBER
982MAGICK_LIB_VERSION_TEXT
983MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000984AM_BACKSLASH
985AM_DEFAULT_VERBOSITY
986am__untar
987am__tar
988AMTAR
989am__leading_dot
990SET_MAKE
991AWK
992mkdir_p
993MKDIR_P
994INSTALL_STRIP_PROGRAM
995STRIP
996install_sh
997MAKEINFO
998AUTOHEADER
999AUTOMAKE
1000AUTOCONF
1001ACLOCAL
1002VERSION
1003PACKAGE
1004CYGPATH_W
1005am__isrc
1006INSTALL_DATA
1007INSTALL_SCRIPT
1008INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001009PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001010PACKAGE_RELEASE_DATE
1011PACKAGE_LIB_VERSION_NUMBER
1012PACKAGE_LIB_VERSION
1013PACKAGE_CHANGE_DATE
1014PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001015PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001016MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001017MAGICK_LIBRARY_VERSION_INFO
1018MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001019MAGICK_LIBRARY_AGE
1020MAGICK_LIBRARY_REVISION
1021MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001022MAGICK_TARGET_OS
1023MAGICK_TARGET_VENDOR
1024MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001025target_os
1026target_vendor
1027target_cpu
1028target
1029host_os
1030host_vendor
1031host_cpu
1032host
1033build_os
1034build_vendor
1035build_cpu
1036build
1037CONFIGURE_ARGS
1038DISTCHECK_CONFIG_FLAGS
1039target_alias
1040host_alias
1041build_alias
1042LIBS
1043ECHO_T
1044ECHO_N
1045ECHO_C
1046DEFS
1047mandir
1048localedir
1049libdir
1050psdir
1051pdfdir
1052dvidir
1053htmldir
1054infodir
1055docdir
1056oldincludedir
1057includedir
1058localstatedir
1059sharedstatedir
1060sysconfdir
1061datadir
1062datarootdir
1063libexecdir
1064sbindir
1065bindir
1066program_transform_name
1067prefix
1068exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001069PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001070PACKAGE_BUGREPORT
1071PACKAGE_STRING
1072PACKAGE_VERSION
1073PACKAGE_TARNAME
1074PACKAGE_NAME
1075PATH_SEPARATOR
1076SHELL'
1077ac_subst_files=''
1078ac_user_opts='
1079enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001080enable_silent_rules
1081enable_dependency_tracking
1082with_gnu_ld
1083with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001084enable_bounds_checking
1085enable_osx_universal_binary
cristy0151ae12011-10-28 16:32:29 +00001086with_includedir_arch
1087with_configdir_arch
cristy3ed852e2009-09-05 21:47:34 +00001088with_threads
1089enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001090enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001091enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001092enable_shared
1093enable_static
1094with_pic
1095enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001096with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001097enable_libtool_lock
1098with_included_ltdl
1099with_ltdl_include
1100with_ltdl_lib
1101enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001102with_modules
1103enable_delegate_build
1104enable_deprecated
1105enable_installed
1106enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001107enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001108enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001109enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001110enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001111enable_ccmalloc
1112enable_efence
1113enable_prof
1114enable_gprof
1115enable_gcov
1116with_method_prefix
1117with_quantum_depth
1118with_cache
1119with_frozenpaths
1120with_magick_plus_plus
1121with_perl
1122with_perl_options
1123with_umem
1124with_libstdc
1125with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001126with_x
cristy3ed852e2009-09-05 21:47:34 +00001127with_zlib
1128with_autotrace
1129with_dps
1130with_djvu
cristy430a7312010-01-21 20:44:04 +00001131with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001132with_fftw
1133with_fpx
1134with_fontconfig
1135with_freetype
1136with_gslib
1137with_fontpath
1138with_gs_font_dir
1139with_gvc
1140with_jbig
1141with_jpeg
1142with_jp2
1143with_lcms
cristy71203402010-06-18 13:12:03 +00001144with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001145with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001146with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001147with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001148with_pango
cristy3ed852e2009-09-05 21:47:34 +00001149with_png
1150with_rsvg
1151with_tiff
cristyb1860752011-03-14 00:27:46 +00001152with_webp
cristy3ed852e2009-09-05 21:47:34 +00001153with_windows_font_dir
1154with_wmf
1155with_xml
1156'
1157 ac_precious_vars='build_alias
1158host_alias
1159target_alias
1160CC
1161CFLAGS
1162LDFLAGS
1163LIBS
1164CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001165CPP
cristy3ed852e2009-09-05 21:47:34 +00001166CXX
1167CXXFLAGS
1168CCC
cristy73bd4a52010-10-05 11:24:23 +00001169PKG_CONFIG
1170CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001171XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001172AUTOTRACE_CFLAGS
1173AUTOTRACE_LIBS
1174FONTCONFIG_CFLAGS
1175FONTCONFIG_LIBS
1176GVC_CFLAGS
1177GVC_LIBS
1178LQR_CFLAGS
1179LQR_LIBS
1180OPENEXR_CFLAGS
1181OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001182PANGO_CFLAGS
1183PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001184RSVG_CFLAGS
1185RSVG_LIBS
1186CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001187CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001188
1189
1190# Initialize some variables set by options.
1191ac_init_help=
1192ac_init_version=false
1193ac_unrecognized_opts=
1194ac_unrecognized_sep=
1195# The variables have the same names as the options, with
1196# dashes changed to underlines.
1197cache_file=/dev/null
1198exec_prefix=NONE
1199no_create=
1200no_recursion=
1201prefix=NONE
1202program_prefix=NONE
1203program_suffix=NONE
1204program_transform_name=s,x,x,
1205silent=
1206site=
1207srcdir=
1208verbose=
1209x_includes=NONE
1210x_libraries=NONE
1211
1212# Installation directory options.
1213# These are left unexpanded so users can "make install exec_prefix=/foo"
1214# and all the variables that are supposed to be based on exec_prefix
1215# by default will actually change.
1216# Use braces instead of parens because sh, perl, etc. also accept them.
1217# (The list follows the same order as the GNU Coding Standards.)
1218bindir='${exec_prefix}/bin'
1219sbindir='${exec_prefix}/sbin'
1220libexecdir='${exec_prefix}/libexec'
1221datarootdir='${prefix}/share'
1222datadir='${datarootdir}'
1223sysconfdir='${prefix}/etc'
1224sharedstatedir='${prefix}/com'
1225localstatedir='${prefix}/var'
1226includedir='${prefix}/include'
1227oldincludedir='/usr/include'
1228docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229infodir='${datarootdir}/info'
1230htmldir='${docdir}'
1231dvidir='${docdir}'
1232pdfdir='${docdir}'
1233psdir='${docdir}'
1234libdir='${exec_prefix}/lib'
1235localedir='${datarootdir}/locale'
1236mandir='${datarootdir}/man'
1237
1238ac_prev=
1239ac_dashdash=
1240for ac_option
1241do
1242 # If the previous option needs an argument, assign it.
1243 if test -n "$ac_prev"; then
1244 eval $ac_prev=\$ac_option
1245 ac_prev=
1246 continue
1247 fi
1248
1249 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001250 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1251 *=) ac_optarg= ;;
1252 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001253 esac
1254
1255 # Accept the important Cygnus configure options, so we can diagnose typos.
1256
1257 case $ac_dashdash$ac_option in
1258 --)
1259 ac_dashdash=yes ;;
1260
1261 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1262 ac_prev=bindir ;;
1263 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1264 bindir=$ac_optarg ;;
1265
1266 -build | --build | --buil | --bui | --bu)
1267 ac_prev=build_alias ;;
1268 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1269 build_alias=$ac_optarg ;;
1270
1271 -cache-file | --cache-file | --cache-fil | --cache-fi \
1272 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1273 ac_prev=cache_file ;;
1274 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1275 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1276 cache_file=$ac_optarg ;;
1277
1278 --config-cache | -C)
1279 cache_file=config.cache ;;
1280
1281 -datadir | --datadir | --datadi | --datad)
1282 ac_prev=datadir ;;
1283 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1284 datadir=$ac_optarg ;;
1285
1286 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1287 | --dataroo | --dataro | --datar)
1288 ac_prev=datarootdir ;;
1289 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1290 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1291 datarootdir=$ac_optarg ;;
1292
1293 -disable-* | --disable-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001297 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302"enable_$ac_useropt"
1303"*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval enable_$ac_useropt=no ;;
1308
1309 -docdir | --docdir | --docdi | --doc | --do)
1310 ac_prev=docdir ;;
1311 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312 docdir=$ac_optarg ;;
1313
1314 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1315 ac_prev=dvidir ;;
1316 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317 dvidir=$ac_optarg ;;
1318
1319 -enable-* | --enable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001323 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328"enable_$ac_useropt"
1329"*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval enable_$ac_useropt=\$ac_optarg ;;
1334
1335 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1336 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1337 | --exec | --exe | --ex)
1338 ac_prev=exec_prefix ;;
1339 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1340 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1341 | --exec=* | --exe=* | --ex=*)
1342 exec_prefix=$ac_optarg ;;
1343
1344 -gas | --gas | --ga | --g)
1345 # Obsolete; use --with-gas.
1346 with_gas=yes ;;
1347
1348 -help | --help | --hel | --he | -h)
1349 ac_init_help=long ;;
1350 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1351 ac_init_help=recursive ;;
1352 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1353 ac_init_help=short ;;
1354
1355 -host | --host | --hos | --ho)
1356 ac_prev=host_alias ;;
1357 -host=* | --host=* | --hos=* | --ho=*)
1358 host_alias=$ac_optarg ;;
1359
1360 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1361 ac_prev=htmldir ;;
1362 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1363 | --ht=*)
1364 htmldir=$ac_optarg ;;
1365
1366 -includedir | --includedir | --includedi | --included | --include \
1367 | --includ | --inclu | --incl | --inc)
1368 ac_prev=includedir ;;
1369 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1370 | --includ=* | --inclu=* | --incl=* | --inc=*)
1371 includedir=$ac_optarg ;;
1372
1373 -infodir | --infodir | --infodi | --infod | --info | --inf)
1374 ac_prev=infodir ;;
1375 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1376 infodir=$ac_optarg ;;
1377
1378 -libdir | --libdir | --libdi | --libd)
1379 ac_prev=libdir ;;
1380 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1381 libdir=$ac_optarg ;;
1382
1383 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1384 | --libexe | --libex | --libe)
1385 ac_prev=libexecdir ;;
1386 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1387 | --libexe=* | --libex=* | --libe=*)
1388 libexecdir=$ac_optarg ;;
1389
1390 -localedir | --localedir | --localedi | --localed | --locale)
1391 ac_prev=localedir ;;
1392 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1393 localedir=$ac_optarg ;;
1394
1395 -localstatedir | --localstatedir | --localstatedi | --localstated \
1396 | --localstate | --localstat | --localsta | --localst | --locals)
1397 ac_prev=localstatedir ;;
1398 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1399 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1400 localstatedir=$ac_optarg ;;
1401
1402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1403 ac_prev=mandir ;;
1404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1405 mandir=$ac_optarg ;;
1406
1407 -nfp | --nfp | --nf)
1408 # Obsolete; use --without-fp.
1409 with_fp=no ;;
1410
1411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1412 | --no-cr | --no-c | -n)
1413 no_create=yes ;;
1414
1415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1417 no_recursion=yes ;;
1418
1419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1421 | --oldin | --oldi | --old | --ol | --o)
1422 ac_prev=oldincludedir ;;
1423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1426 oldincludedir=$ac_optarg ;;
1427
1428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1429 ac_prev=prefix ;;
1430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1431 prefix=$ac_optarg ;;
1432
1433 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1434 | --program-pre | --program-pr | --program-p)
1435 ac_prev=program_prefix ;;
1436 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1438 program_prefix=$ac_optarg ;;
1439
1440 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1441 | --program-suf | --program-su | --program-s)
1442 ac_prev=program_suffix ;;
1443 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1445 program_suffix=$ac_optarg ;;
1446
1447 -program-transform-name | --program-transform-name \
1448 | --program-transform-nam | --program-transform-na \
1449 | --program-transform-n | --program-transform- \
1450 | --program-transform | --program-transfor \
1451 | --program-transfo | --program-transf \
1452 | --program-trans | --program-tran \
1453 | --progr-tra | --program-tr | --program-t)
1454 ac_prev=program_transform_name ;;
1455 -program-transform-name=* | --program-transform-name=* \
1456 | --program-transform-nam=* | --program-transform-na=* \
1457 | --program-transform-n=* | --program-transform-=* \
1458 | --program-transform=* | --program-transfor=* \
1459 | --program-transfo=* | --program-transf=* \
1460 | --program-trans=* | --program-tran=* \
1461 | --progr-tra=* | --program-tr=* | --program-t=*)
1462 program_transform_name=$ac_optarg ;;
1463
1464 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1465 ac_prev=pdfdir ;;
1466 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1467 pdfdir=$ac_optarg ;;
1468
1469 -psdir | --psdir | --psdi | --psd | --ps)
1470 ac_prev=psdir ;;
1471 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1472 psdir=$ac_optarg ;;
1473
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 silent=yes ;;
1477
1478 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1479 ac_prev=sbindir ;;
1480 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1481 | --sbi=* | --sb=*)
1482 sbindir=$ac_optarg ;;
1483
1484 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1485 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1486 | --sharedst | --shareds | --shared | --share | --shar \
1487 | --sha | --sh)
1488 ac_prev=sharedstatedir ;;
1489 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1490 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1491 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1492 | --sha=* | --sh=*)
1493 sharedstatedir=$ac_optarg ;;
1494
1495 -site | --site | --sit)
1496 ac_prev=site ;;
1497 -site=* | --site=* | --sit=*)
1498 site=$ac_optarg ;;
1499
1500 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1501 ac_prev=srcdir ;;
1502 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1503 srcdir=$ac_optarg ;;
1504
1505 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1506 | --syscon | --sysco | --sysc | --sys | --sy)
1507 ac_prev=sysconfdir ;;
1508 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1509 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1510 sysconfdir=$ac_optarg ;;
1511
1512 -target | --target | --targe | --targ | --tar | --ta | --t)
1513 ac_prev=target_alias ;;
1514 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1515 target_alias=$ac_optarg ;;
1516
1517 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1518 verbose=yes ;;
1519
1520 -version | --version | --versio | --versi | --vers | -V)
1521 ac_init_version=: ;;
1522
1523 -with-* | --with-*)
1524 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001527 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001528 ac_useropt_orig=$ac_useropt
1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1531 *"
1532"with_$ac_useropt"
1533"*) ;;
1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1535 ac_unrecognized_sep=', ';;
1536 esac
1537 eval with_$ac_useropt=\$ac_optarg ;;
1538
1539 -without-* | --without-*)
1540 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1541 # Reject names that are not valid shell variable names.
1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001543 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001544 ac_useropt_orig=$ac_useropt
1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546 case $ac_user_opts in
1547 *"
1548"with_$ac_useropt"
1549"*) ;;
1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1551 ac_unrecognized_sep=', ';;
1552 esac
1553 eval with_$ac_useropt=no ;;
1554
1555 --x)
1556 # Obsolete; use --with-x.
1557 with_x=yes ;;
1558
1559 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1560 | --x-incl | --x-inc | --x-in | --x-i)
1561 ac_prev=x_includes ;;
1562 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1563 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1564 x_includes=$ac_optarg ;;
1565
1566 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1567 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1568 ac_prev=x_libraries ;;
1569 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1570 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1571 x_libraries=$ac_optarg ;;
1572
cristy98dddb52010-11-04 00:30:15 +00001573 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1574Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001575 ;;
1576
1577 *=*)
1578 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001580 case $ac_envvar in #(
1581 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001582 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001583 esac
cristy3ed852e2009-09-05 21:47:34 +00001584 eval $ac_envvar=\$ac_optarg
1585 export $ac_envvar ;;
1586
1587 *)
1588 # FIXME: should be removed in autoconf 3.0.
1589 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1590 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1591 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001592 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001593 ;;
1594
1595 esac
1596done
1597
1598if test -n "$ac_prev"; then
1599 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001600 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001601fi
1602
1603if test -n "$ac_unrecognized_opts"; then
1604 case $enable_option_checking in
1605 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001606 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001607 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1608 esac
1609fi
1610
1611# Check all directory arguments for consistency.
1612for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613 datadir sysconfdir sharedstatedir localstatedir includedir \
1614 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615 libdir localedir mandir
1616do
1617 eval ac_val=\$$ac_var
1618 # Remove trailing slashes.
1619 case $ac_val in
1620 */ )
1621 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622 eval $ac_var=\$ac_val;;
1623 esac
1624 # Be sure to have absolute directory names.
1625 case $ac_val in
1626 [\\/$]* | ?:[\\/]* ) continue;;
1627 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1628 esac
cristy98dddb52010-11-04 00:30:15 +00001629 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001630done
1631
1632# There might be people who depend on the old broken behavior: `$host'
1633# used to hold the argument of --host etc.
1634# FIXME: To remove some day.
1635build=$build_alias
1636host=$host_alias
1637target=$target_alias
1638
1639# FIXME: To remove some day.
1640if test "x$host_alias" != x; then
1641 if test "x$build_alias" = x; then
1642 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001643 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1644 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001645 elif test "x$build_alias" != "x$host_alias"; then
1646 cross_compiling=yes
1647 fi
1648fi
1649
1650ac_tool_prefix=
1651test -n "$host_alias" && ac_tool_prefix=$host_alias-
1652
1653test "$silent" = yes && exec 6>/dev/null
1654
1655
1656ac_pwd=`pwd` && test -n "$ac_pwd" &&
1657ac_ls_di=`ls -di .` &&
1658ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001659 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001660test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001661 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001662
1663
1664# Find the source files, if location was not specified.
1665if test -z "$srcdir"; then
1666 ac_srcdir_defaulted=yes
1667 # Try the directory containing this script, then the parent directory.
1668 ac_confdir=`$as_dirname -- "$as_myself" ||
1669$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1670 X"$as_myself" : 'X\(//\)[^/]' \| \
1671 X"$as_myself" : 'X\(//\)$' \| \
1672 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1673$as_echo X"$as_myself" |
1674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1675 s//\1/
1676 q
1677 }
1678 /^X\(\/\/\)[^/].*/{
1679 s//\1/
1680 q
1681 }
1682 /^X\(\/\/\)$/{
1683 s//\1/
1684 q
1685 }
1686 /^X\(\/\).*/{
1687 s//\1/
1688 q
1689 }
1690 s/.*/./; q'`
1691 srcdir=$ac_confdir
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1693 srcdir=..
1694 fi
1695else
1696 ac_srcdir_defaulted=no
1697fi
1698if test ! -r "$srcdir/$ac_unique_file"; then
1699 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001700 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001701fi
1702ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1703ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001704 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001705 pwd)`
1706# When building in place, set srcdir=.
1707if test "$ac_abs_confdir" = "$ac_pwd"; then
1708 srcdir=.
1709fi
1710# Remove unnecessary trailing slashes from srcdir.
1711# Double slashes in file names in object file debugging info
1712# mess up M-x gdb in Emacs.
1713case $srcdir in
1714*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1715esac
1716for ac_var in $ac_precious_vars; do
1717 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1718 eval ac_env_${ac_var}_value=\$${ac_var}
1719 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1720 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1721done
1722
1723#
1724# Report the --help message.
1725#
1726if test "$ac_init_help" = "long"; then
1727 # Omit some internal or obsolete options to make the list less imposing.
1728 # This message is too long to be a string in the A/UX 3.1 sh.
1729 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001730\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001731
1732Usage: $0 [OPTION]... [VAR=VALUE]...
1733
1734To assign environment variables (e.g., CC, CFLAGS...), specify them as
1735VAR=VALUE. See below for descriptions of some of the useful variables.
1736
1737Defaults for the options are specified in brackets.
1738
1739Configuration:
1740 -h, --help display this help and exit
1741 --help=short display options specific to this package
1742 --help=recursive display the short help of all the included packages
1743 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001744 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001745 --cache-file=FILE cache test results in FILE [disabled]
1746 -C, --config-cache alias for \`--cache-file=config.cache'
1747 -n, --no-create do not create output files
1748 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1749
1750Installation directories:
1751 --prefix=PREFIX install architecture-independent files in PREFIX
1752 [$ac_default_prefix]
1753 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1754 [PREFIX]
1755
1756By default, \`make install' will install all the files in
1757\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1758an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1759for instance \`--prefix=\$HOME'.
1760
1761For better control, use the options below.
1762
1763Fine tuning of the installation directories:
1764 --bindir=DIR user executables [EPREFIX/bin]
1765 --sbindir=DIR system admin executables [EPREFIX/sbin]
1766 --libexecdir=DIR program executables [EPREFIX/libexec]
1767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1769 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1770 --libdir=DIR object code libraries [EPREFIX/lib]
1771 --includedir=DIR C header files [PREFIX/include]
1772 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1773 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1774 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1775 --infodir=DIR info documentation [DATAROOTDIR/info]
1776 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1777 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001778 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001779 --htmldir=DIR html documentation [DOCDIR]
1780 --dvidir=DIR dvi documentation [DOCDIR]
1781 --pdfdir=DIR pdf documentation [DOCDIR]
1782 --psdir=DIR ps documentation [DOCDIR]
1783_ACEOF
1784
1785 cat <<\_ACEOF
1786
cristy73bd4a52010-10-05 11:24:23 +00001787Program names:
1788 --program-prefix=PREFIX prepend PREFIX to installed program names
1789 --program-suffix=SUFFIX append SUFFIX to installed program names
1790 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1791
cristy3ed852e2009-09-05 21:47:34 +00001792X features:
1793 --x-includes=DIR X include files are in DIR
1794 --x-libraries=DIR X library files are in DIR
1795
1796System types:
1797 --build=BUILD configure for building on BUILD [guessed]
1798 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1799 --target=TARGET configure for building compilers for TARGET [HOST]
1800_ACEOF
1801fi
1802
1803if test -n "$ac_init_help"; then
1804 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001805 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001806 esac
1807 cat <<\_ACEOF
1808
1809Optional Features:
1810 --disable-option-checking ignore unrecognized --enable/--with options
1811 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1812 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001813 --enable-silent-rules less verbose build output (undo: `make V=1')
1814 --disable-silent-rules verbose build output (undo: `make V=0')
1815 --disable-dependency-tracking speeds up one-time build
1816 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001817 --bounds-checking enable run-time bounds-checking
1818 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001819 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001820 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001821 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001822 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001823 --enable-shared[=PKGS] build shared libraries [default=yes]
1824 --enable-static[=PKGS] build static libraries [default=yes]
1825 --enable-fast-install[=PKGS]
1826 optimize for fast installation [default=yes]
1827 --disable-libtool-lock avoid locking (might break parallel builds)
1828 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001829 --enable-delegate-build look for delegate libraries in build directory
1830 --disable-deprecated exclude deprecated methods in MagickCore and
1831 MagickWand API's
1832 --disable-installed Formally install ImageMagick under PREFIX
1833 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001834 --enable-zero-configuration
1835 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001836 zero-configuration ImageMagick
1837 --enable-hdri accurately represent the wide range of intensity
1838 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001839 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001840 --enable-maintainer-mode enable make rules and dependencies not useful
1841 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001842 --enable-ccmalloc enable 'ccmalloc' memory debug support
1843 --enable-efence enable 'efence' memory debug support
1844 --enable-prof enable 'prof' profiling support
1845 --enable-gprof enable 'gprof' profiling support
1846 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001847 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001848
1849Optional Packages:
1850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-dmalloc use dmalloc, as in
1854 http://www.dmalloc.com/dmalloc.tar.gz
cristy0151ae12011-10-28 16:32:29 +00001855 --includedir-arch=DIR ARCH specific include directory
1856 --configdir-arch=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001857 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001858 --with-pic try to use only PIC/non-PIC objects [default=use
1859 both]
cristyda16f162011-02-19 23:52:17 +00001860 --with-sysroot=DIR Search for dependent libraries within DIR
1861 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001862 --with-included-ltdl use the GNU ltdl sources included here
1863 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1864 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001865 --with-modules enable building dynamically loadable modules
1866 --with-method-prefix=PREFIX
1867 prefix MagickCore API methods
1868 --with-quantum-depth=DEPTH
1869 number of bits in a pixel quantum (default 16)
1870 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1871 memory)
1872 --with-frozenpaths freeze delegate paths
1873 --without-magick-plus-plus
1874 disable build/install of Magick++
1875 --with-perl enable build/install of PerlMagick
1876 --with-perl-options=OPTIONS
1877 options to pass on command-line when generating
1878 PerlMagick's build file
1879 --with-umem enable umem memory allocation library support
1880 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1881 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001882 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001883 --without-zlib disable ZLIB support
1884 --with-autotrace enable autotrace support
1885 --without-dps disable Display Postscript support
1886 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001887 --with-dejavu-font-dir=DIR
1888 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001889 --without-fftw disable FFTW support
1890 --without-fpx disable FlashPIX support
1891 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001892 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001893 --without-gslib enable Ghostscript library support
1894 --with-fontpath=DIR prepend to default font search path
1895 --with-gs-font-dir=DIR Ghostscript font directory
1896 --without-gvc disable GVC support
1897 --without-jbig disable JBIG support
1898 --without-jpeg disable JPEG support
1899 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001900 --without-lcms disable lcms (v1.1X) support
1901 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001902 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001903 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001904 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001905 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001906 --without-png disable PNG support
1907 --without-rsvg disable RSVG support
1908 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001909 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001910 --with-windows-font-dir=DIR
1911 directory containing MS-Windows fonts
1912 --without-wmf disable WMF support
1913 --without-xml disable XML support
1914
1915Some influential environment variables:
1916 CC C compiler command
1917 CFLAGS C compiler flags
1918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1919 nonstandard directory <lib dir>
1920 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001921 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001922 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001923 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001924 CXX C++ compiler command
1925 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001926 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001927 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001928 XMKMF Path to xmkmf, Makefile generator for X Window System
1929 AUTOTRACE_CFLAGS
1930 C compiler flags for AUTOTRACE, overriding pkg-config
1931 AUTOTRACE_LIBS
1932 linker flags for AUTOTRACE, overriding pkg-config
1933 FONTCONFIG_CFLAGS
1934 C compiler flags for FONTCONFIG, overriding pkg-config
1935 FONTCONFIG_LIBS
1936 linker flags for FONTCONFIG, overriding pkg-config
1937 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1938 GVC_LIBS linker flags for GVC, overriding pkg-config
1939 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1940 LQR_LIBS linker flags for LQR, overriding pkg-config
1941 OPENEXR_CFLAGS
1942 C compiler flags for OPENEXR, overriding pkg-config
1943 OPENEXR_LIBS
1944 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001945 PANGO_CFLAGS
1946 C compiler flags for PANGO, overriding pkg-config
1947 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001948 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1949 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1950 CAIRO_SVG_CFLAGS
1951 C compiler flags for CAIRO_SVG, overriding pkg-config
1952 CAIRO_SVG_LIBS
1953 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001954
1955Use these variables to override the choices made by `configure' or to help
1956it to find libraries and programs with nonstandard names/locations.
1957
1958Report bugs to <http://www.imagemagick.org>.
1959_ACEOF
1960ac_status=$?
1961fi
1962
1963if test "$ac_init_help" = "recursive"; then
1964 # If there are subdirs, report their specific --help.
1965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966 test -d "$ac_dir" ||
1967 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1968 continue
1969 ac_builddir=.
1970
1971case "$ac_dir" in
1972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1973*)
1974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1975 # A ".." for each directory in $ac_dir_suffix.
1976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1977 case $ac_top_builddir_sub in
1978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1980 esac ;;
1981esac
1982ac_abs_top_builddir=$ac_pwd
1983ac_abs_builddir=$ac_pwd$ac_dir_suffix
1984# for backward compatibility:
1985ac_top_builddir=$ac_top_build_prefix
1986
1987case $srcdir in
1988 .) # We are building in place.
1989 ac_srcdir=.
1990 ac_top_srcdir=$ac_top_builddir_sub
1991 ac_abs_top_srcdir=$ac_pwd ;;
1992 [\\/]* | ?:[\\/]* ) # Absolute name.
1993 ac_srcdir=$srcdir$ac_dir_suffix;
1994 ac_top_srcdir=$srcdir
1995 ac_abs_top_srcdir=$srcdir ;;
1996 *) # Relative name.
1997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1998 ac_top_srcdir=$ac_top_build_prefix$srcdir
1999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2000esac
2001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2002
2003 cd "$ac_dir" || { ac_status=$?; continue; }
2004 # Check for guested configure.
2005 if test -f "$ac_srcdir/configure.gnu"; then
2006 echo &&
2007 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2008 elif test -f "$ac_srcdir/configure"; then
2009 echo &&
2010 $SHELL "$ac_srcdir/configure" --help=recursive
2011 else
2012 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2013 fi || ac_status=$?
2014 cd "$ac_pwd" || { ac_status=$?; break; }
2015 done
2016fi
2017
2018test -n "$ac_init_help" && exit $ac_status
2019if $ac_init_version; then
2020 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002021ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002022generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002023
cristy98dddb52010-11-04 00:30:15 +00002024Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002025This configure script is free software; the Free Software Foundation
2026gives unlimited permission to copy, distribute and modify it.
2027_ACEOF
2028 exit
2029fi
cristy8b350f62009-11-15 23:12:43 +00002030
2031## ------------------------ ##
2032## Autoconf initialization. ##
2033## ------------------------ ##
2034
2035# ac_fn_c_try_compile LINENO
2036# --------------------------
2037# Try to compile conftest.$ac_ext, and return whether this succeeded.
2038ac_fn_c_try_compile ()
2039{
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 rm -f conftest.$ac_objext
2042 if { { ac_try="$ac_compile"
2043case "(($ac_try" in
2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045 *) ac_try_echo=$ac_try;;
2046esac
2047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048$as_echo "$ac_try_echo"; } >&5
2049 (eval "$ac_compile") 2>conftest.err
2050 ac_status=$?
2051 if test -s conftest.err; then
2052 grep -v '^ *+' conftest.err >conftest.er1
2053 cat conftest.er1 >&5
2054 mv -f conftest.er1 conftest.err
2055 fi
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && {
2058 test -z "$ac_c_werror_flag" ||
2059 test ! -s conftest.err
2060 } && test -s conftest.$ac_objext; then :
2061 ac_retval=0
2062else
2063 $as_echo "$as_me: failed program was:" >&5
2064sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 ac_retval=1
2067fi
cristyda16f162011-02-19 23:52:17 +00002068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002069 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002070
2071} # ac_fn_c_try_compile
2072
cristy95646052009-11-28 23:05:30 +00002073# ac_fn_c_try_cpp LINENO
2074# ----------------------
2075# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2076ac_fn_c_try_cpp ()
2077{
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if { { ac_try="$ac_cpp conftest.$ac_ext"
2080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
2084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085$as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2087 ac_status=$?
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2092 fi
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002094 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2096 test ! -s conftest.err
2097 }; then :
2098 ac_retval=0
2099else
2100 $as_echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_retval=1
2104fi
cristyda16f162011-02-19 23:52:17 +00002105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002106 as_fn_set_status $ac_retval
2107
2108} # ac_fn_c_try_cpp
2109
cristy8b350f62009-11-15 23:12:43 +00002110# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2111# -------------------------------------------------------
2112# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2113# the include files in INCLUDES and setting the cache variable VAR
2114# accordingly.
2115ac_fn_c_check_header_mongrel ()
2116{
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002118 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002121if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002122 $as_echo_n "(cached) " >&6
2123fi
2124eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127else
2128 # Is the header compilable?
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2130$as_echo_n "checking $2 usability... " >&6; }
2131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133$4
2134#include <$2>
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_header_compiler=yes
2138else
2139 ac_header_compiler=no
2140fi
2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2143$as_echo "$ac_header_compiler" >&6; }
2144
2145# Is the header present?
2146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2147$as_echo_n "checking $2 presence... " >&6; }
2148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h. */
2150#include <$2>
2151_ACEOF
2152if ac_fn_c_try_cpp "$LINENO"; then :
2153 ac_header_preproc=yes
2154else
2155 ac_header_preproc=no
2156fi
cristyda16f162011-02-19 23:52:17 +00002157rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2159$as_echo "$ac_header_preproc" >&6; }
2160
2161# So? What about this header?
2162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2163 yes:no: )
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2165$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168 ;;
2169 no:yes:* )
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2171$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2173$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2175$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2177$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
cristy98dddb52010-11-04 00:30:15 +00002180( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002181## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002182## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002183 ) | sed "s/^/$as_me: WARNING: /" >&2
2184 ;;
2185esac
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002188if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002189 $as_echo_n "(cached) " >&6
2190else
2191 eval "$3=\$ac_header_compiler"
2192fi
2193eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195$as_echo "$ac_res" >&6; }
2196fi
cristyda16f162011-02-19 23:52:17 +00002197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002198
2199} # ac_fn_c_check_header_mongrel
2200
2201# ac_fn_c_try_run LINENO
2202# ----------------------
2203# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2204# that executables *can* be run.
2205ac_fn_c_try_run ()
2206{
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { { ac_try="$ac_link"
2209case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212esac
2213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214$as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_link") 2>&5
2216 ac_status=$?
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2219 { { case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224$as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_try") 2>&5
2226 ac_status=$?
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; }; }; then :
2229 ac_retval=0
2230else
2231 $as_echo "$as_me: program exited with status $ac_status" >&5
2232 $as_echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 ac_retval=$ac_status
2236fi
2237 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002239 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002240
2241} # ac_fn_c_try_run
2242
2243# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2244# -------------------------------------------------------
2245# Tests whether HEADER exists and can be compiled using the include files in
2246# INCLUDES, setting the cache variable VAR accordingly.
2247ac_fn_c_check_header_compile ()
2248{
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002252if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002253 $as_echo_n "(cached) " >&6
2254else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h. */
2257$4
2258#include <$2>
2259_ACEOF
2260if ac_fn_c_try_compile "$LINENO"; then :
2261 eval "$3=yes"
2262else
2263 eval "$3=no"
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267eval ac_res=\$$3
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002271
2272} # ac_fn_c_check_header_compile
2273
cristya0b81c32010-01-22 02:54:33 +00002274# ac_fn_cxx_try_compile LINENO
2275# ----------------------------
2276# Try to compile conftest.$ac_ext, and return whether this succeeded.
2277ac_fn_cxx_try_compile ()
2278{
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 rm -f conftest.$ac_objext
2281 if { { ac_try="$ac_compile"
2282case "(($ac_try" in
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2285esac
2286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2287$as_echo "$ac_try_echo"; } >&5
2288 (eval "$ac_compile") 2>conftest.err
2289 ac_status=$?
2290 if test -s conftest.err; then
2291 grep -v '^ *+' conftest.err >conftest.er1
2292 cat conftest.er1 >&5
2293 mv -f conftest.er1 conftest.err
2294 fi
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && {
2297 test -z "$ac_cxx_werror_flag" ||
2298 test ! -s conftest.err
2299 } && test -s conftest.$ac_objext; then :
2300 ac_retval=0
2301else
2302 $as_echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305 ac_retval=1
2306fi
cristyda16f162011-02-19 23:52:17 +00002307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002308 as_fn_set_status $ac_retval
2309
2310} # ac_fn_cxx_try_compile
2311
cristy8b350f62009-11-15 23:12:43 +00002312# ac_fn_c_try_link LINENO
2313# -----------------------
2314# Try to link conftest.$ac_ext, and return whether this succeeded.
2315ac_fn_c_try_link ()
2316{
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 rm -f conftest.$ac_objext conftest$ac_exeext
2319 if { { ac_try="$ac_link"
2320case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323esac
2324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325$as_echo "$ac_try_echo"; } >&5
2326 (eval "$ac_link") 2>conftest.err
2327 ac_status=$?
2328 if test -s conftest.err; then
2329 grep -v '^ *+' conftest.err >conftest.er1
2330 cat conftest.er1 >&5
2331 mv -f conftest.er1 conftest.err
2332 fi
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && {
2335 test -z "$ac_c_werror_flag" ||
2336 test ! -s conftest.err
2337 } && test -s conftest$ac_exeext && {
2338 test "$cross_compiling" = yes ||
2339 $as_test_x conftest$ac_exeext
2340 }; then :
2341 ac_retval=0
2342else
2343 $as_echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 ac_retval=1
2347fi
2348 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2349 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2350 # interfere with the next link command; also delete a directory that is
2351 # left behind by Apple's compiler. We do this before executing the actions.
2352 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002354 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002355
2356} # ac_fn_c_try_link
2357
cristy73bd4a52010-10-05 11:24:23 +00002358# ac_fn_c_check_func LINENO FUNC VAR
2359# ----------------------------------
2360# Tests whether FUNC exists, setting the cache variable VAR accordingly
2361ac_fn_c_check_func ()
2362{
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002366if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002367 $as_echo_n "(cached) " >&6
2368else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370/* end confdefs.h. */
2371/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2373#define $2 innocuous_$2
2374
2375/* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char $2 (); below.
2377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 <limits.h> exists even on freestanding compilers. */
2379
2380#ifdef __STDC__
2381# include <limits.h>
2382#else
2383# include <assert.h>
2384#endif
2385
2386#undef $2
2387
2388/* Override any GCC internal prototype to avoid an error.
2389 Use char because int might match the return type of a GCC
2390 builtin and then its argument prototype would still apply. */
2391#ifdef __cplusplus
2392extern "C"
2393#endif
2394char $2 ();
2395/* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398#if defined __stub_$2 || defined __stub___$2
2399choke me
2400#endif
2401
2402int
2403main ()
2404{
2405return $2 ();
2406 ;
2407 return 0;
2408}
2409_ACEOF
2410if ac_fn_c_try_link "$LINENO"; then :
2411 eval "$3=yes"
2412else
2413 eval "$3=no"
2414fi
2415rm -f core conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
2417fi
2418eval ac_res=\$$3
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002422
2423} # ac_fn_c_check_func
2424
2425# ac_fn_cxx_try_cpp LINENO
2426# ------------------------
2427# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2428ac_fn_cxx_try_cpp ()
2429{
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 if { { ac_try="$ac_cpp conftest.$ac_ext"
2432case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435esac
2436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437$as_echo "$ac_try_echo"; } >&5
2438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2439 ac_status=$?
2440 if test -s conftest.err; then
2441 grep -v '^ *+' conftest.err >conftest.er1
2442 cat conftest.er1 >&5
2443 mv -f conftest.er1 conftest.err
2444 fi
2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002446 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002447 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2448 test ! -s conftest.err
2449 }; then :
2450 ac_retval=0
2451else
2452 $as_echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_retval=1
2456fi
cristyda16f162011-02-19 23:52:17 +00002457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002458 as_fn_set_status $ac_retval
2459
2460} # ac_fn_cxx_try_cpp
2461
2462# ac_fn_cxx_try_link LINENO
2463# -------------------------
2464# Try to link conftest.$ac_ext, and return whether this succeeded.
2465ac_fn_cxx_try_link ()
2466{
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { { ac_try="$ac_link"
2470case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473esac
2474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475$as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_link") 2>conftest.err
2477 ac_status=$?
2478 if test -s conftest.err; then
2479 grep -v '^ *+' conftest.err >conftest.er1
2480 cat conftest.er1 >&5
2481 mv -f conftest.er1 conftest.err
2482 fi
2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; } && {
2485 test -z "$ac_cxx_werror_flag" ||
2486 test ! -s conftest.err
2487 } && test -s conftest$ac_exeext && {
2488 test "$cross_compiling" = yes ||
2489 $as_test_x conftest$ac_exeext
2490 }; then :
2491 ac_retval=0
2492else
2493 $as_echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 ac_retval=1
2497fi
2498 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2499 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2500 # interfere with the next link command; also delete a directory that is
2501 # left behind by Apple's compiler. We do this before executing the actions.
2502 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002504 as_fn_set_status $ac_retval
2505
2506} # ac_fn_cxx_try_link
2507
cristy98dddb52010-11-04 00:30:15 +00002508# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2509# ---------------------------------------------
2510# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2511# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002512ac_fn_c_check_decl ()
2513{
2514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002515 as_decl_name=`echo $2|sed 's/ *(.*//'`
2516 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2518$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002519if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002520 $as_echo_n "(cached) " >&6
2521else
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523/* end confdefs.h. */
2524$4
2525int
2526main ()
2527{
cristy98dddb52010-11-04 00:30:15 +00002528#ifndef $as_decl_name
2529#ifdef __cplusplus
2530 (void) $as_decl_use;
2531#else
2532 (void) $as_decl_name;
2533#endif
cristy73bd4a52010-10-05 11:24:23 +00002534#endif
2535
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540if ac_fn_c_try_compile "$LINENO"; then :
2541 eval "$3=yes"
2542else
2543 eval "$3=no"
2544fi
2545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546fi
2547eval ac_res=\$$3
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002551
2552} # ac_fn_c_check_decl
2553
cristy8b350f62009-11-15 23:12:43 +00002554# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555# -------------------------------------------
2556# Tests whether TYPE exists after having included INCLUDES, setting cache
2557# variable VAR accordingly.
2558ac_fn_c_check_type ()
2559{
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002563if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002564 $as_echo_n "(cached) " >&6
2565else
2566 eval "$3=no"
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h. */
2569$4
2570int
2571main ()
2572{
2573if (sizeof ($2))
2574 return 0;
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_compile "$LINENO"; then :
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581/* end confdefs.h. */
2582$4
2583int
2584main ()
2585{
2586if (sizeof (($2)))
2587 return 0;
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592if ac_fn_c_try_compile "$LINENO"; then :
2593
2594else
2595 eval "$3=yes"
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601eval ac_res=\$$3
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002605
2606} # ac_fn_c_check_type
2607
cristy92703d82010-04-26 00:18:18 +00002608# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2609# ----------------------------------------------------
2610# Tries to find if the field MEMBER exists in type AGGR, after including
2611# INCLUDES, setting cache variable VAR accordingly.
2612ac_fn_c_check_member ()
2613{
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2616$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002617if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002618 $as_echo_n "(cached) " >&6
2619else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621/* end confdefs.h. */
2622$5
2623int
2624main ()
2625{
2626static $2 ac_aggr;
2627if (ac_aggr.$3)
2628return 0;
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634 eval "$4=yes"
2635else
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$5
2639int
2640main ()
2641{
2642static $2 ac_aggr;
2643if (sizeof ac_aggr.$3)
2644return 0;
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 eval "$4=yes"
2651else
2652 eval "$4=no"
2653fi
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658eval ac_res=\$$4
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002662
2663} # ac_fn_c_check_member
2664
cristy501c8042011-05-26 17:46:28 +00002665# ac_fn_c_find_intX_t LINENO BITS VAR
2666# -----------------------------------
2667# Finds a signed integer type with width BITS, setting cache variable VAR
2668# accordingly.
2669ac_fn_c_find_intX_t ()
2670{
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2673$as_echo_n "checking for int$2_t... " >&6; }
2674if eval \${$3+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 eval "$3=no"
2678 # Order is important - never check a type that is potentially smaller
2679 # than half of the expected target width.
2680 for ac_type in int$2_t 'int' 'long int' \
2681 'long long int' 'short int' 'signed char'; do
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683/* end confdefs.h. */
2684$ac_includes_default
2685 enum { N = $2 / 2 - 1 };
2686int
2687main ()
2688{
2689static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2690test_array [0] = 0
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696if ac_fn_c_try_compile "$LINENO"; then :
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698/* end confdefs.h. */
2699$ac_includes_default
2700 enum { N = $2 / 2 - 1 };
2701int
2702main ()
2703{
2704static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2705 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2706test_array [0] = 0
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713
2714else
2715 case $ac_type in #(
2716 int$2_t) :
2717 eval "$3=yes" ;; #(
2718 *) :
2719 eval "$3=\$ac_type" ;;
2720esac
2721fi
2722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723fi
2724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 if eval test \"x\$"$3"\" = x"no"; then :
2726
2727else
2728 break
2729fi
2730 done
2731fi
2732eval ac_res=\$$3
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734$as_echo "$ac_res" >&6; }
2735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736
2737} # ac_fn_c_find_intX_t
2738
2739# ac_fn_c_find_uintX_t LINENO BITS VAR
2740# ------------------------------------
2741# Finds an unsigned integer type with width BITS, setting cache variable VAR
2742# accordingly.
2743ac_fn_c_find_uintX_t ()
2744{
2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2747$as_echo_n "checking for uint$2_t... " >&6; }
2748if eval \${$3+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750else
2751 eval "$3=no"
2752 # Order is important - never check a type that is potentially smaller
2753 # than half of the expected target width.
2754 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2755 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757/* end confdefs.h. */
2758$ac_includes_default
2759int
2760main ()
2761{
2762static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2763test_array [0] = 0
2764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769if ac_fn_c_try_compile "$LINENO"; then :
2770 case $ac_type in #(
2771 uint$2_t) :
2772 eval "$3=yes" ;; #(
2773 *) :
2774 eval "$3=\$ac_type" ;;
2775esac
2776fi
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 if eval test \"x\$"$3"\" = x"no"; then :
2779
2780else
2781 break
2782fi
2783 done
2784fi
2785eval ac_res=\$$3
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787$as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789
2790} # ac_fn_c_find_uintX_t
2791
cristy8b350f62009-11-15 23:12:43 +00002792# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2793# --------------------------------------------
2794# Tries to find the compile-time value of EXPR in a program that includes
2795# INCLUDES, setting VAR accordingly. Returns whether the value could be
2796# computed
2797ac_fn_c_compute_int ()
2798{
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 if test "$cross_compiling" = yes; then
2801 # Depending upon the size, compute the lo and hi bounds.
2802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$4
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !(($2) >= 0)];
2809test_array [0] = 0
2810
2811 ;
2812 return 0;
2813}
2814_ACEOF
2815if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_lo=0 ac_mid=0
2817 while :; do
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819/* end confdefs.h. */
2820$4
2821int
2822main ()
2823{
2824static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2825test_array [0] = 0
2826
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831if ac_fn_c_try_compile "$LINENO"; then :
2832 ac_hi=$ac_mid; break
2833else
2834 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2835 if test $ac_lo -le $ac_mid; then
2836 ac_lo= ac_hi=
2837 break
2838 fi
2839 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2840fi
2841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 done
2843else
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) < 0)];
2851test_array [0] = 0
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857if ac_fn_c_try_compile "$LINENO"; then :
2858 ac_hi=-1 ac_mid=-1
2859 while :; do
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2867test_array [0] = 0
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_lo=$ac_mid; break
2875else
2876 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2877 if test $ac_mid -le $ac_hi; then
2878 ac_lo= ac_hi=
2879 break
2880 fi
2881 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2882fi
2883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 done
2885else
2886 ac_lo= ac_hi=
2887fi
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889fi
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891# Binary search between lo and hi bounds.
2892while test "x$ac_lo" != "x$ac_hi"; do
2893 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896$4
2897int
2898main ()
2899{
2900static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2901test_array [0] = 0
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_hi=$ac_mid
2909else
2910 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913done
2914case $ac_lo in #((
2915?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2916'') ac_retval=1 ;;
2917esac
2918 else
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920/* end confdefs.h. */
2921$4
2922static long int longval () { return $2; }
2923static unsigned long int ulongval () { return $2; }
2924#include <stdio.h>
2925#include <stdlib.h>
2926int
2927main ()
2928{
2929
2930 FILE *f = fopen ("conftest.val", "w");
2931 if (! f)
2932 return 1;
2933 if (($2) < 0)
2934 {
2935 long int i = longval ();
2936 if (i != ($2))
2937 return 1;
2938 fprintf (f, "%ld", i);
2939 }
2940 else
2941 {
2942 unsigned long int i = ulongval ();
2943 if (i != ($2))
2944 return 1;
2945 fprintf (f, "%lu", i);
2946 }
2947 /* Do not output a trailing newline, as this causes \r\n confusion
2948 on some platforms. */
2949 return ferror (f) || fclose (f) != 0;
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955if ac_fn_c_try_run "$LINENO"; then :
2956 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2957else
2958 ac_retval=1
2959fi
2960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2961 conftest.$ac_objext conftest.beam conftest.$ac_ext
2962rm -f conftest.val
2963
2964 fi
cristyda16f162011-02-19 23:52:17 +00002965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002966 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002967
2968} # ac_fn_c_compute_int
2969
2970# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2971# ---------------------------------------------------------
2972# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2973# the include files in INCLUDES and setting the cache variable VAR
2974# accordingly.
2975ac_fn_cxx_check_header_mongrel ()
2976{
2977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002978 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2980$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002981if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002982 $as_echo_n "(cached) " >&6
2983fi
2984eval ac_res=\$$3
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986$as_echo "$ac_res" >&6; }
2987else
2988 # Is the header compilable?
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2990$as_echo_n "checking $2 usability... " >&6; }
2991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993$4
2994#include <$2>
2995_ACEOF
2996if ac_fn_cxx_try_compile "$LINENO"; then :
2997 ac_header_compiler=yes
2998else
2999 ac_header_compiler=no
3000fi
3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3003$as_echo "$ac_header_compiler" >&6; }
3004
3005# Is the header present?
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3007$as_echo_n "checking $2 presence... " >&6; }
3008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010#include <$2>
3011_ACEOF
3012if ac_fn_cxx_try_cpp "$LINENO"; then :
3013 ac_header_preproc=yes
3014else
3015 ac_header_preproc=no
3016fi
cristyda16f162011-02-19 23:52:17 +00003017rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3019$as_echo "$ac_header_preproc" >&6; }
3020
3021# So? What about this header?
3022case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3023 yes:no: )
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3025$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3028 ;;
3029 no:yes:* )
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3031$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3033$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3035$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3037$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
cristy98dddb52010-11-04 00:30:15 +00003040( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003041## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003042## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003043 ) | sed "s/^/$as_me: WARNING: /" >&2
3044 ;;
3045esac
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3047$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003048if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003049 $as_echo_n "(cached) " >&6
3050else
3051 eval "$3=\$ac_header_compiler"
3052fi
3053eval ac_res=\$$3
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3055$as_echo "$ac_res" >&6; }
3056fi
cristyda16f162011-02-19 23:52:17 +00003057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003058
3059} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003060cat >config.log <<_ACEOF
3061This file contains any messages produced by compilers while
3062running configure, to aid debugging if configure makes a mistake.
3063
cristy29eb34e2011-10-16 00:46:08 +00003064It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003065generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003066
3067 $ $0 $@
3068
3069_ACEOF
3070exec 5>>config.log
3071{
3072cat <<_ASUNAME
3073## --------- ##
3074## Platform. ##
3075## --------- ##
3076
3077hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3078uname -m = `(uname -m) 2>/dev/null || echo unknown`
3079uname -r = `(uname -r) 2>/dev/null || echo unknown`
3080uname -s = `(uname -s) 2>/dev/null || echo unknown`
3081uname -v = `(uname -v) 2>/dev/null || echo unknown`
3082
3083/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3084/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3085
3086/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3087/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3088/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3089/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3090/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3091/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3092/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3093
3094_ASUNAME
3095
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003101 $as_echo "PATH: $as_dir"
3102 done
cristy3ed852e2009-09-05 21:47:34 +00003103IFS=$as_save_IFS
3104
3105} >&5
3106
3107cat >&5 <<_ACEOF
3108
3109
3110## ----------- ##
3111## Core tests. ##
3112## ----------- ##
3113
3114_ACEOF
3115
3116
3117# Keep a trace of the command line.
3118# Strip out --no-create and --no-recursion so they do not pile up.
3119# Strip out --silent because we don't want to record it for future runs.
3120# Also quote any args containing shell meta-characters.
3121# Make two passes to allow for proper duplicate-argument suppression.
3122ac_configure_args=
3123ac_configure_args0=
3124ac_configure_args1=
3125ac_must_keep_next=false
3126for ac_pass in 1 2
3127do
3128 for ac_arg
3129 do
3130 case $ac_arg in
3131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3133 | -silent | --silent | --silen | --sile | --sil)
3134 continue ;;
3135 *\'*)
3136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3137 esac
3138 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003140 2)
cristy8b350f62009-11-15 23:12:43 +00003141 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003142 if test $ac_must_keep_next = true; then
3143 ac_must_keep_next=false # Got value, back to normal.
3144 else
3145 case $ac_arg in
3146 *=* | --config-cache | -C | -disable-* | --disable-* \
3147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3149 | -with-* | --with-* | -without-* | --without-* | --x)
3150 case "$ac_configure_args0 " in
3151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3152 esac
3153 ;;
3154 -* ) ac_must_keep_next=true ;;
3155 esac
3156 fi
cristy8b350f62009-11-15 23:12:43 +00003157 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003158 ;;
3159 esac
3160 done
3161done
cristy8b350f62009-11-15 23:12:43 +00003162{ ac_configure_args0=; unset ac_configure_args0;}
3163{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003164
3165# When interrupted or exit'd, cleanup temporary files, and complete
3166# config.log. We remove comments because anyway the quotes in there
3167# would cause problems or look ugly.
3168# WARNING: Use '\'' to represent an apostrophe within the trap.
3169# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3170trap 'exit_status=$?
3171 # Save into config.log some information that might help in debugging.
3172 {
3173 echo
3174
cristy98dddb52010-11-04 00:30:15 +00003175 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003176## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003177## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003178 echo
3179 # The following way of writing the cache mishandles newlines in values,
3180(
3181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3182 eval ac_val=\$$ac_var
3183 case $ac_val in #(
3184 *${as_nl}*)
3185 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3188 esac
3189 case $ac_var in #(
3190 _ | IFS | as_nl) ;; #(
3191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003192 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003193 esac ;;
3194 esac
3195 done
3196 (set) 2>&1 |
3197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3198 *${as_nl}ac_space=\ *)
3199 sed -n \
3200 "s/'\''/'\''\\\\'\'''\''/g;
3201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3202 ;; #(
3203 *)
3204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3205 ;;
3206 esac |
3207 sort
3208)
3209 echo
3210
cristy98dddb52010-11-04 00:30:15 +00003211 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003212## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003213## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003214 echo
3215 for ac_var in $ac_subst_vars
3216 do
3217 eval ac_val=\$$ac_var
3218 case $ac_val in
3219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3220 esac
3221 $as_echo "$ac_var='\''$ac_val'\''"
3222 done | sort
3223 echo
3224
3225 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003226 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003227## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003228## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003229 echo
3230 for ac_var in $ac_subst_files
3231 do
3232 eval ac_val=\$$ac_var
3233 case $ac_val in
3234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3235 esac
3236 $as_echo "$ac_var='\''$ac_val'\''"
3237 done | sort
3238 echo
3239 fi
3240
3241 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003242 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003243## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003244## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003245 echo
3246 cat confdefs.h
3247 echo
3248 fi
3249 test "$ac_signal" != 0 &&
3250 $as_echo "$as_me: caught signal $ac_signal"
3251 $as_echo "$as_me: exit $exit_status"
3252 } >&5
3253 rm -f core *.core core.conftest.* &&
3254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3255 exit $exit_status
3256' 0
3257for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003259done
3260ac_signal=0
3261
3262# confdefs.h avoids OS command line length limits that DEFS can exceed.
3263rm -f -r conftest* confdefs.h
3264
cristy8b350f62009-11-15 23:12:43 +00003265$as_echo "/* confdefs.h */" > confdefs.h
3266
cristy3ed852e2009-09-05 21:47:34 +00003267# Predefined preprocessor variables.
3268
3269cat >>confdefs.h <<_ACEOF
3270#define PACKAGE_NAME "$PACKAGE_NAME"
3271_ACEOF
3272
cristy3ed852e2009-09-05 21:47:34 +00003273cat >>confdefs.h <<_ACEOF
3274#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3275_ACEOF
3276
cristy3ed852e2009-09-05 21:47:34 +00003277cat >>confdefs.h <<_ACEOF
3278#define PACKAGE_VERSION "$PACKAGE_VERSION"
3279_ACEOF
3280
cristy3ed852e2009-09-05 21:47:34 +00003281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE_STRING "$PACKAGE_STRING"
3283_ACEOF
3284
cristy3ed852e2009-09-05 21:47:34 +00003285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3287_ACEOF
3288
cristy8b350f62009-11-15 23:12:43 +00003289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_URL "$PACKAGE_URL"
3291_ACEOF
3292
cristy3ed852e2009-09-05 21:47:34 +00003293
3294# Let the site file select an alternate cache file if it wants to.
3295# Prefer an explicitly selected file to automatically selected ones.
3296ac_site_file1=NONE
3297ac_site_file2=NONE
3298if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003299 # We do not want a PATH search for config.site.
3300 case $CONFIG_SITE in #((
3301 -*) ac_site_file1=./$CONFIG_SITE;;
3302 */*) ac_site_file1=$CONFIG_SITE;;
3303 *) ac_site_file1=./$CONFIG_SITE;;
3304 esac
cristy3ed852e2009-09-05 21:47:34 +00003305elif test "x$prefix" != xNONE; then
3306 ac_site_file1=$prefix/share/config.site
3307 ac_site_file2=$prefix/etc/config.site
3308else
3309 ac_site_file1=$ac_default_prefix/share/config.site
3310 ac_site_file2=$ac_default_prefix/etc/config.site
3311fi
3312for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3313do
3314 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003317$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3318 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003319 . "$ac_site_file" \
3320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322as_fn_error $? "failed to load site script $ac_site_file
3323See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003324 fi
3325done
3326
3327if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003328 # Some versions of bash will fail to source /dev/null (special files
3329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003332$as_echo "$as_me: loading cache $cache_file" >&6;}
3333 case $cache_file in
3334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3335 *) . "./$cache_file";;
3336 esac
3337 fi
3338else
cristy8b350f62009-11-15 23:12:43 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003340$as_echo "$as_me: creating cache $cache_file" >&6;}
3341 >$cache_file
3342fi
3343
cristycd4c5312009-11-22 01:19:08 +00003344as_fn_append ac_header_list " stdlib.h"
3345as_fn_append ac_header_list " unistd.h"
3346as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003347# Check that the precious variables saved in the cache have kept the same
3348# value.
3349ac_cache_corrupted=false
3350for ac_var in $ac_precious_vars; do
3351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3352 eval ac_new_set=\$ac_env_${ac_var}_set
3353 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3354 eval ac_new_val=\$ac_env_${ac_var}_value
3355 case $ac_old_set,$ac_new_set in
3356 set,)
cristy8b350f62009-11-15 23:12:43 +00003357 { $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 +00003358$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3359 ac_cache_corrupted=: ;;
3360 ,set)
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3363 ac_cache_corrupted=: ;;
3364 ,);;
3365 *)
3366 if test "x$ac_old_val" != "x$ac_new_val"; then
3367 # differences in whitespace do not lead to failure.
3368 ac_old_val_w=`echo x $ac_old_val`
3369 ac_new_val_w=`echo x $ac_new_val`
3370 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3373 ac_cache_corrupted=:
3374 else
cristy8b350f62009-11-15 23:12:43 +00003375 { $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 +00003376$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3377 eval $ac_var=\$ac_old_val
3378 fi
cristy8b350f62009-11-15 23:12:43 +00003379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003380$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3383 fi;;
3384 esac
3385 # Pass precious variables to config.status.
3386 if test "$ac_new_set" = set; then
3387 case $ac_new_val in
3388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3389 *) ac_arg=$ac_var=$ac_new_val ;;
3390 esac
3391 case " $ac_configure_args " in
3392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003393 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003394 esac
3395 fi
3396done
3397if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003401$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003402 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003403fi
cristy8b350f62009-11-15 23:12:43 +00003404## -------------------- ##
3405## Main body of script. ##
3406## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003407
3408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413
3414
3415
3416ac_aux_dir=
3417for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003418 if test -f "$ac_dir/install-sh"; then
3419 ac_aux_dir=$ac_dir
3420 ac_install_sh="$ac_aux_dir/install-sh -c"
3421 break
3422 elif test -f "$ac_dir/install.sh"; then
3423 ac_aux_dir=$ac_dir
3424 ac_install_sh="$ac_aux_dir/install.sh -c"
3425 break
3426 elif test -f "$ac_dir/shtool"; then
3427 ac_aux_dir=$ac_dir
3428 ac_install_sh="$ac_aux_dir/shtool install -c"
3429 break
3430 fi
cristy3ed852e2009-09-05 21:47:34 +00003431done
3432if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003433 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003434fi
3435
3436# These three variables are undocumented and unsupported,
3437# and are intended to be withdrawn in a future Autoconf release.
3438# They can cause serious problems if a builder's source tree is in a directory
3439# whose full name contains unusual characters.
3440ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3441ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3442ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3443
3444
3445
3446
3447ac_config_headers="$ac_config_headers config/config.h"
3448
cristy24fc1fe2010-10-23 21:13:01 +00003449
cristy4c08aed2011-07-01 19:47:50 +00003450ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003451
cristy4c08aed2011-07-01 19:47:50 +00003452ac_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 +00003453
3454
3455#
3456# Save initial user-tunable values
3457#
3458USER_LIBS=$LIBS
3459for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3460 eval isset=\${$var+set}
3461 if test "$isset" = 'set'; then
3462 eval val=$`echo $var`
3463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3464 fi
3465done
3466
3467
3468CONFIGURE_ARGS="$0 ${ac_configure_args}"
3469
3470
3471# Source file containing package/library versioning information.
3472. ${srcdir}/version.sh
3473
cristy15a88782010-01-31 23:24:49 +00003474echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003475# Make sure we can run config.sub.
3476$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003477 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003478
cristy8b350f62009-11-15 23:12:43 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003481if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003482 $as_echo_n "(cached) " >&6
3483else
3484 ac_build_alias=$build_alias
3485test "x$ac_build_alias" = x &&
3486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3487test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003488 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003489ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003491
3492fi
cristy8b350f62009-11-15 23:12:43 +00003493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003494$as_echo "$ac_cv_build" >&6; }
3495case $ac_cv_build in
3496*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003497*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003498esac
3499build=$ac_cv_build
3500ac_save_IFS=$IFS; IFS='-'
3501set x $ac_cv_build
3502shift
3503build_cpu=$1
3504build_vendor=$2
3505shift; shift
3506# Remember, the first character of IFS is used to create $*,
3507# except with old shells:
3508build_os=$*
3509IFS=$ac_save_IFS
3510case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3511
3512
cristy8b350f62009-11-15 23:12:43 +00003513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003515if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003516 $as_echo_n "(cached) " >&6
3517else
3518 if test "x$host_alias" = x; then
3519 ac_cv_host=$ac_cv_build
3520else
3521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523fi
3524
3525fi
cristy8b350f62009-11-15 23:12:43 +00003526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003527$as_echo "$ac_cv_host" >&6; }
3528case $ac_cv_host in
3529*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003530*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003531esac
3532host=$ac_cv_host
3533ac_save_IFS=$IFS; IFS='-'
3534set x $ac_cv_host
3535shift
3536host_cpu=$1
3537host_vendor=$2
3538shift; shift
3539# Remember, the first character of IFS is used to create $*,
3540# except with old shells:
3541host_os=$*
3542IFS=$ac_save_IFS
3543case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3544
3545
cristy8b350f62009-11-15 23:12:43 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003548if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003549 $as_echo_n "(cached) " >&6
3550else
3551 if test "x$target_alias" = x; then
3552 ac_cv_target=$ac_cv_host
3553else
3554 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003556fi
3557
3558fi
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo "$ac_cv_target" >&6; }
3561case $ac_cv_target in
3562*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003563*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003564esac
3565target=$ac_cv_target
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_target
3568shift
3569target_cpu=$1
3570target_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574target_os=$*
3575IFS=$ac_save_IFS
3576case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3577
3578
3579# The aliases save the names the user supplied, while $host etc.
3580# will get canonicalized.
3581test -n "$target_alias" &&
3582 test "$program_prefix$program_suffix$program_transform_name" = \
3583 NONENONEs,x,x, &&
3584 program_prefix=${target_alias}-
3585
cristy837d6dc2010-02-27 01:16:57 +00003586
3587
3588
cristy19615b82011-04-13 20:02:01 +00003589MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003590
3591
cristy19615b82011-04-13 20:02:01 +00003592MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003593
3594
cristy19615b82011-04-13 20:02:01 +00003595MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003596
3597
cristy3ed852e2009-09-05 21:47:34 +00003598# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003599MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3600
3601MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3602
cristy0151ae12011-10-28 16:32:29 +00003603MAGICK_SVN_REVISION=5778
cristyd694ca32011-03-27 21:42:54 +00003604
3605
cristy3ed852e2009-09-05 21:47:34 +00003606
3607
3608# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3610$as_echo_n "checking whether build environment is sane... " >&6; }
3611# Just in case
3612sleep 1
3613echo timestamp > conftest.file
3614# Reject unsafe characters in $srcdir or the absolute working directory
3615# name. Accept space and tab only in the latter.
3616am_lf='
3617'
3618case `pwd` in
3619 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003620 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003621esac
3622case $srcdir in
3623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003624 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003625esac
cristy3ed852e2009-09-05 21:47:34 +00003626
cristy73bd4a52010-10-05 11:24:23 +00003627# Do `set' in a subshell so we don't clobber the current shell's
3628# arguments. Must try -L first in case configure is actually a
3629# symlink; some systems play weird games with the mod time of symlinks
3630# (eg FreeBSD returns the mod time of the symlink's containing
3631# directory).
3632if (
3633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3634 if test "$*" = "X"; then
3635 # -L didn't work.
3636 set X `ls -t "$srcdir/configure" conftest.file`
3637 fi
3638 rm -f conftest.file
3639 if test "$*" != "X $srcdir/configure conftest.file" \
3640 && test "$*" != "X conftest.file $srcdir/configure"; then
3641
3642 # If neither matched, then we have a broken ls. This can happen
3643 # if, for instance, CONFIG_SHELL is bash and it inherits a
3644 # broken ls alias from the environment. This has actually
3645 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003646 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003647alias in your environment" "$LINENO" 5
3648 fi
3649
3650 test "$2" = conftest.file
3651 )
3652then
3653 # Ok.
3654 :
3655else
cristy98dddb52010-11-04 00:30:15 +00003656 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003657Check your system clock" "$LINENO" 5
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660$as_echo "yes" >&6; }
3661
3662am__api_version='1.11'
3663
3664# Find a good install program. We prefer a C program (faster),
3665# so one script is as good as another. But avoid the broken or
3666# incompatible versions:
3667# SysV /etc/install, /usr/sbin/install
3668# SunOS /usr/etc/install
3669# IRIX /sbin/install
3670# AIX /bin/install
3671# AmigaOS /C/install, which installs bootblocks on floppy discs
3672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3675# OS/2's system install, which has a completely different semantic
3676# ./install, which can be erroneously created by make from ./install.sh.
3677# Reject install programs that cannot install multiple files.
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3679$as_echo_n "checking for a BSD-compatible install... " >&6; }
3680if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003681if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003682 $as_echo_n "(cached) " >&6
3683else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 # Account for people who put trailing slashes in PATH elements.
3690case $as_dir/ in #((
3691 ./ | .// | /[cC]/* | \
3692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3694 /usr/ucb/* ) ;;
3695 *)
3696 # OSF1 and SCO ODT 3.0 have their own names for install.
3697 # Don't use installbsd from OSF since it installs stuff as root
3698 # by default.
3699 for ac_prog in ginstall scoinst install; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3702 if test $ac_prog = install &&
3703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # AIX install. It has an incompatible calling convention.
3705 :
3706 elif test $ac_prog = install &&
3707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3708 # program-specific install script used by HP pwplus--don't use.
3709 :
3710 else
3711 rm -rf conftest.one conftest.two conftest.dir
3712 echo one > conftest.one
3713 echo two > conftest.two
3714 mkdir conftest.dir
3715 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3716 test -s conftest.one && test -s conftest.two &&
3717 test -s conftest.dir/conftest.one &&
3718 test -s conftest.dir/conftest.two
3719 then
3720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3721 break 3
3722 fi
3723 fi
3724 fi
3725 done
3726 done
3727 ;;
3728esac
3729
3730 done
3731IFS=$as_save_IFS
3732
3733rm -rf conftest.one conftest.two conftest.dir
3734
3735fi
3736 if test "${ac_cv_path_install+set}" = set; then
3737 INSTALL=$ac_cv_path_install
3738 else
3739 # As a last resort, use the slow shell script. Don't cache a
3740 # value for INSTALL within a source directory, because that will
3741 # break other packages using the cache if that directory is
3742 # removed, or if the value is a relative name.
3743 INSTALL=$ac_install_sh
3744 fi
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3747$as_echo "$INSTALL" >&6; }
3748
3749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3750# It thinks the first close brace ends the variable substitution.
3751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3752
3753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3754
3755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3756
3757test "$program_prefix" != NONE &&
3758 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3759# Use a double $ so make ignores it.
3760test "$program_suffix" != NONE &&
3761 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3762# Double any \ or $.
3763# By default was `s,x,x', remove it if useless.
3764ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3765program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3766
3767# expand $ac_aux_dir to an absolute path
3768am_aux_dir=`cd $ac_aux_dir && pwd`
3769
3770if test x"${MISSING+set}" != xset; then
3771 case $am_aux_dir in
3772 *\ * | *\ *)
3773 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3774 *)
3775 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3776 esac
3777fi
3778# Use eval to expand $SHELL
3779if eval "$MISSING --run true"; then
3780 am_missing_run="$MISSING --run "
3781else
3782 am_missing_run=
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3784$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3785fi
3786
3787if test x"${install_sh}" != xset; then
3788 case $am_aux_dir in
3789 *\ * | *\ *)
3790 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3791 *)
3792 install_sh="\${SHELL} $am_aux_dir/install-sh"
3793 esac
3794fi
3795
3796# Installed binaries are usually stripped using `strip' when the user
3797# run `make install-strip'. However `strip' might not be the right
3798# tool to use in cross-compilation environments, therefore Automake
3799# will honor the `STRIP' environment variable to overrule this program.
3800if test "$cross_compiling" != no; then
3801 if test -n "$ac_tool_prefix"; then
3802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3803set dummy ${ac_tool_prefix}strip; ac_word=$2
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003806if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003807 $as_echo_n "(cached) " >&6
3808else
3809 if test -n "$STRIP"; then
3810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824 done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829STRIP=$ac_cv_prog_STRIP
3830if test -n "$STRIP"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3832$as_echo "$STRIP" >&6; }
3833else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835$as_echo "no" >&6; }
3836fi
3837
3838
3839fi
3840if test -z "$ac_cv_prog_STRIP"; then
3841 ac_ct_STRIP=$STRIP
3842 # Extract the first word of "strip", so it can be a program name with args.
3843set dummy strip; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003846if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003847 $as_echo_n "(cached) " >&6
3848else
3849 if test -n "$ac_ct_STRIP"; then
3850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 ac_cv_prog_ac_ct_STRIP="strip"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864 done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3870if test -n "$ac_ct_STRIP"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3872$as_echo "$ac_ct_STRIP" >&6; }
3873else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878 if test "x$ac_ct_STRIP" = x; then
3879 STRIP=":"
3880 else
3881 case $cross_compiling:$ac_tool_warned in
3882yes:)
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885ac_tool_warned=yes ;;
3886esac
3887 STRIP=$ac_ct_STRIP
3888 fi
3889else
3890 STRIP="$ac_cv_prog_STRIP"
3891fi
3892
3893fi
3894INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3897$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3898if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003899 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003900 $as_echo_n "(cached) " >&6
3901else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in mkdir gmkdir; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3910 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3911 'mkdir (GNU coreutils) '* | \
3912 'mkdir (coreutils) '* | \
3913 'mkdir (fileutils) '4.1*)
3914 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3915 break 3;;
3916 esac
3917 done
3918 done
3919 done
3920IFS=$as_save_IFS
3921
3922fi
3923
3924 test -d ./--version && rmdir ./--version
3925 if test "${ac_cv_path_mkdir+set}" = set; then
3926 MKDIR_P="$ac_cv_path_mkdir -p"
3927 else
3928 # As a last resort, use the slow shell script. Don't cache a
3929 # value for MKDIR_P within a source directory, because that will
3930 # break other packages using the cache if that directory is
3931 # removed, or if the value is a relative name.
3932 MKDIR_P="$ac_install_sh -d"
3933 fi
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3936$as_echo "$MKDIR_P" >&6; }
3937
3938mkdir_p="$MKDIR_P"
3939case $mkdir_p in
3940 [\\/$]* | ?:[\\/]*) ;;
3941 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3942esac
3943
3944for ac_prog in gawk mawk nawk awk
3945do
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947set dummy $ac_prog; ac_word=$2
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003950if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003951 $as_echo_n "(cached) " >&6
3952else
3953 if test -n "$AWK"; then
3954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_AWK="$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967done
3968 done
3969IFS=$as_save_IFS
3970
3971fi
3972fi
3973AWK=$ac_cv_prog_AWK
3974if test -n "$AWK"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3976$as_echo "$AWK" >&6; }
3977else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
3980fi
3981
3982
3983 test -n "$AWK" && break
3984done
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3987$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3988set x ${MAKE-make}
3989ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003990if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003991 $as_echo_n "(cached) " >&6
3992else
3993 cat >conftest.make <<\_ACEOF
3994SHELL = /bin/sh
3995all:
3996 @echo '@@@%%%=$(MAKE)=@@@%%%'
3997_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003998# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003999case `${MAKE-make} -f conftest.make 2>/dev/null` in
4000 *@@@%%%=?*=@@@%%%*)
4001 eval ac_cv_prog_make_${ac_make}_set=yes;;
4002 *)
4003 eval ac_cv_prog_make_${ac_make}_set=no;;
4004esac
4005rm -f conftest.make
4006fi
4007if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009$as_echo "yes" >&6; }
4010 SET_MAKE=
4011else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014 SET_MAKE="MAKE=${MAKE-make}"
4015fi
4016
4017rm -rf .tst 2>/dev/null
4018mkdir .tst 2>/dev/null
4019if test -d .tst; then
4020 am__leading_dot=.
4021else
4022 am__leading_dot=_
4023fi
4024rmdir .tst 2>/dev/null
4025
cristya448bd22011-10-14 12:38:13 +00004026# Check whether --enable-silent-rules was given.
4027if test "${enable_silent_rules+set}" = set; then :
4028 enableval=$enable_silent_rules;
4029fi
4030
4031case $enable_silent_rules in
4032yes) AM_DEFAULT_VERBOSITY=0;;
4033no) AM_DEFAULT_VERBOSITY=1;;
4034*) AM_DEFAULT_VERBOSITY=1;;
4035esac
4036AM_BACKSLASH='\'
4037
cristy73bd4a52010-10-05 11:24:23 +00004038if test "`cd $srcdir && pwd`" != "`pwd`"; then
4039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4040 # is not polluted with repeated "-I."
4041 am__isrc=' -I$(srcdir)'
4042 # test to see if srcdir already configured
4043 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004045 fi
4046fi
4047
4048# test whether we have cygpath
4049if test -z "$CYGPATH_W"; then
4050 if (cygpath --version) >/dev/null 2>/dev/null; then
4051 CYGPATH_W='cygpath -w'
4052 else
4053 CYGPATH_W=echo
4054 fi
4055fi
4056
4057
4058# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004059 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004060 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004061
4062
cristya448bd22011-10-14 12:38:13 +00004063cat >>confdefs.h <<_ACEOF
4064#define PACKAGE "$PACKAGE"
4065_ACEOF
4066
4067
4068cat >>confdefs.h <<_ACEOF
4069#define VERSION "$VERSION"
4070_ACEOF
4071
cristy73bd4a52010-10-05 11:24:23 +00004072# Some tools Automake needs.
4073
4074ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4075
4076
4077AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4078
4079
4080AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4081
4082
4083AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4084
4085
4086MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4087
4088# We need awk for the "check" target. The system "awk" is bad on
4089# some platforms.
4090# Always define AMTAR for backward compatibility.
4091
4092AMTAR=${AMTAR-"${am_missing_run}tar"}
4093
4094am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4095
4096
4097
4098
4099
cristy3ed852e2009-09-05 21:47:34 +00004100
4101# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004102# Check whether --enable-silent-rules was given.
4103if test "${enable_silent_rules+set}" = set; then :
4104 enableval=$enable_silent_rules;
4105fi
4106
4107case $enable_silent_rules in
4108yes) AM_DEFAULT_VERBOSITY=0;;
4109no) AM_DEFAULT_VERBOSITY=1;;
4110*) AM_DEFAULT_VERBOSITY=0;;
4111esac
4112AM_BACKSLASH='\'
4113
cristy3ed852e2009-09-05 21:47:34 +00004114
4115MAGICK_LIB_VERSION="0x"
4116if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4117 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4118fi
4119MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4120if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4121 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4122fi
4123MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4124if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4125 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4126fi
4127MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4128
4129
4130# Definition used to define MagickLibVersionText in version.h
4131MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4132
4133
4134# Definition used to define MagickLibVersionNumber in version.h
4135MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4136
4137
4138# Regenerate config.status if ChangeLog or version.sh is updated.
4139CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4140
4141
4142PERLMAINCC=$CC
4143
4144MAGICK_CFLAGS=''
4145MAGICK_CPPFLAGS=$CPPFLAGS_USER
4146MAGICK_PCFLAGS=$CPPFLAGS_USER
4147MAGICK_LDFLAGS=''
4148MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004149MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004150
4151#
4152# Evaluate shell variable equivalents to Makefile directory variables
4153#
4154if test "x$prefix" = xNONE; then
4155 prefix=$ac_default_prefix
4156fi
4157# Let make expand exec_prefix.
4158if test "x$exec_prefix" = xNONE; then
4159 exec_prefix='${prefix}'
4160fi
4161
4162#
4163eval "eval PREFIX_DIR=${prefix}"
4164
4165eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4166
4167eval "eval BIN_DIR=$bindir"
4168
4169eval "eval SBIN_DIR=$sbindir"
4170
4171eval "eval LIBEXEC_DIR=$libexecdir"
4172
4173eval "eval DATA_DIR=$datadir"
4174
cristyd55889c2011-03-27 00:50:24 +00004175eval "eval DOC_DIR=$docdir"
4176
cristy3ed852e2009-09-05 21:47:34 +00004177eval "eval SYSCONF_DIR=$sysconfdir"
4178
4179eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4180
4181eval "eval LOCALSTATE_DIR=$localstatedir"
4182
4183eval "eval LIB_DIR=$libdir"
4184
4185eval "eval INCLUDE_DIR=$includedir"
4186
4187eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4188
4189eval "eval INFO_DIR=$infodir"
4190
4191eval "eval MAN_DIR=$mandir"
4192
4193
4194# Get full paths to source and build directories
4195srcdirfull="`cd $srcdir && pwd`"
4196builddir="`pwd`"
4197
4198#
4199# Compute variables useful for running uninstalled software.
4200#
4201MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4202MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4203MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4204MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4205DIRSEP=':'
4206case "${build_os}" in
4207 mingw* )
4208 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4209 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4210 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4211 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4212 DIRSEP=';'
4213 ;;
4214esac
4215case "${host_os}" in
4216 mingw* )
4217 DIRSEP=';'
4218 ;;
4219esac
4220
4221
4222
4223
4224
4225
cristya0b81c32010-01-22 02:54:33 +00004226
4227#
4228# Enable OS features.
4229#
cristy73bd4a52010-10-05 11:24:23 +00004230DEPDIR="${am__leading_dot}deps"
4231
4232ac_config_commands="$ac_config_commands depfiles"
4233
4234
4235am_make=${MAKE-make}
4236cat > confinc << 'END'
4237am__doit:
4238 @echo this is the am__doit target
4239.PHONY: am__doit
4240END
4241# If we don't find an include directive, just comment out the code.
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4243$as_echo_n "checking for style of include used by $am_make... " >&6; }
4244am__include="#"
4245am__quote=
4246_am_result=none
4247# First try GNU make style include.
4248echo "include confinc" > confmf
4249# Ignore all kinds of additional output from `make'.
4250case `$am_make -s -f confmf 2> /dev/null` in #(
4251*the\ am__doit\ target*)
4252 am__include=include
4253 am__quote=
4254 _am_result=GNU
4255 ;;
4256esac
4257# Now try BSD make style include.
4258if test "$am__include" = "#"; then
4259 echo '.include "confinc"' > confmf
4260 case `$am_make -s -f confmf 2> /dev/null` in #(
4261 *the\ am__doit\ target*)
4262 am__include=.include
4263 am__quote="\""
4264 _am_result=BSD
4265 ;;
4266 esac
4267fi
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4271$as_echo "$_am_result" >&6; }
4272rm -f confinc confmf
4273
4274# Check whether --enable-dependency-tracking was given.
4275if test "${enable_dependency_tracking+set}" = set; then :
4276 enableval=$enable_dependency_tracking;
4277fi
4278
4279if test "x$enable_dependency_tracking" != xno; then
4280 am_depcomp="$ac_aux_dir/depcomp"
4281 AMDEPBACKSLASH='\'
4282fi
4283 if test "x$enable_dependency_tracking" != xno; then
4284 AMDEP_TRUE=
4285 AMDEP_FALSE='#'
4286else
4287 AMDEP_TRUE='#'
4288 AMDEP_FALSE=
4289fi
4290
4291
cristy3ed852e2009-09-05 21:47:34 +00004292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4299set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004302if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004303 $as_echo_n "(cached) " >&6
4304else
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC="$CC" # Let the user override the test.
4307else
4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH
4310do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004313 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004317 break 2
4318 fi
4319done
cristy8b350f62009-11-15 23:12:43 +00004320 done
cristy3ed852e2009-09-05 21:47:34 +00004321IFS=$as_save_IFS
4322
4323fi
4324fi
4325CC=$ac_cv_prog_CC
4326if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004328$as_echo "$CC" >&6; }
4329else
cristy8b350f62009-11-15 23:12:43 +00004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004331$as_echo "no" >&6; }
4332fi
4333
4334
4335fi
4336if test -z "$ac_cv_prog_CC"; then
4337 ac_ct_CC=$CC
4338 # Extract the first word of "gcc", so it can be a program name with args.
4339set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004342if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004343 $as_echo_n "(cached) " >&6
4344else
4345 if test -n "$ac_ct_CC"; then
4346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004357 break 2
4358 fi
4359done
cristy8b350f62009-11-15 23:12:43 +00004360 done
cristy3ed852e2009-09-05 21:47:34 +00004361IFS=$as_save_IFS
4362
4363fi
4364fi
4365ac_ct_CC=$ac_cv_prog_ac_ct_CC
4366if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004368$as_echo "$ac_ct_CC" >&6; }
4369else
cristy8b350f62009-11-15 23:12:43 +00004370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371$as_echo "no" >&6; }
4372fi
4373
4374 if test "x$ac_ct_CC" = x; then
4375 CC=""
4376 else
4377 case $cross_compiling:$ac_tool_warned in
4378yes:)
cristy8b350f62009-11-15 23:12:43 +00004379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381ac_tool_warned=yes ;;
4382esac
4383 CC=$ac_ct_CC
4384 fi
4385else
4386 CC="$ac_cv_prog_CC"
4387fi
4388
4389if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4392set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004395if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004396 $as_echo_n "(cached) " >&6
4397else
4398 if test -n "$CC"; then
4399 ac_cv_prog_CC="$CC" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410 break 2
4411 fi
4412done
cristy8b350f62009-11-15 23:12:43 +00004413 done
cristy3ed852e2009-09-05 21:47:34 +00004414IFS=$as_save_IFS
4415
4416fi
4417fi
4418CC=$ac_cv_prog_CC
4419if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004421$as_echo "$CC" >&6; }
4422else
cristy8b350f62009-11-15 23:12:43 +00004423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004424$as_echo "no" >&6; }
4425fi
4426
4427
4428 fi
4429fi
4430if test -z "$CC"; then
4431 # Extract the first word of "cc", so it can be a program name with args.
4432set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004435if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004436 $as_echo_n "(cached) " >&6
4437else
4438 if test -n "$CC"; then
4439 ac_cv_prog_CC="$CC" # Let the user override the test.
4440else
4441 ac_prog_rejected=no
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450 ac_prog_rejected=yes
4451 continue
4452 fi
4453 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004455 break 2
4456 fi
4457done
cristy8b350f62009-11-15 23:12:43 +00004458 done
cristy3ed852e2009-09-05 21:47:34 +00004459IFS=$as_save_IFS
4460
4461if test $ac_prog_rejected = yes; then
4462 # We found a bogon in the path, so make sure we never use it.
4463 set dummy $ac_cv_prog_CC
4464 shift
4465 if test $# != 0; then
4466 # We chose a different compiler from the bogus one.
4467 # However, it has the same basename, so the bogon will be chosen
4468 # first if we set CC to just the basename; use the full file name.
4469 shift
4470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4471 fi
4472fi
4473fi
4474fi
4475CC=$ac_cv_prog_CC
4476if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004478$as_echo "$CC" >&6; }
4479else
cristy8b350f62009-11-15 23:12:43 +00004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if test -z "$CC"; then
4487 if test -n "$ac_tool_prefix"; then
4488 for ac_prog in cl.exe
4489 do
4490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004494if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004495 $as_echo_n "(cached) " >&6
4496else
4497 if test -n "$CC"; then
4498 ac_cv_prog_CC="$CC" # Let the user override the test.
4499else
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509 break 2
4510 fi
4511done
cristy8b350f62009-11-15 23:12:43 +00004512 done
cristy3ed852e2009-09-05 21:47:34 +00004513IFS=$as_save_IFS
4514
4515fi
4516fi
4517CC=$ac_cv_prog_CC
4518if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520$as_echo "$CC" >&6; }
4521else
cristy8b350f62009-11-15 23:12:43 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "no" >&6; }
4524fi
4525
4526
4527 test -n "$CC" && break
4528 done
4529fi
4530if test -z "$CC"; then
4531 ac_ct_CC=$CC
4532 for ac_prog in cl.exe
4533do
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004538if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004539 $as_echo_n "(cached) " >&6
4540else
4541 if test -n "$ac_ct_CC"; then
4542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004553 break 2
4554 fi
4555done
cristy8b350f62009-11-15 23:12:43 +00004556 done
cristy3ed852e2009-09-05 21:47:34 +00004557IFS=$as_save_IFS
4558
4559fi
4560fi
4561ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004564$as_echo "$ac_ct_CC" >&6; }
4565else
cristy8b350f62009-11-15 23:12:43 +00004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567$as_echo "no" >&6; }
4568fi
4569
4570
4571 test -n "$ac_ct_CC" && break
4572done
4573
4574 if test "x$ac_ct_CC" = x; then
4575 CC=""
4576 else
4577 case $cross_compiling:$ac_tool_warned in
4578yes:)
cristy8b350f62009-11-15 23:12:43 +00004579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581ac_tool_warned=yes ;;
4582esac
4583 CC=$ac_ct_CC
4584 fi
4585fi
4586
4587fi
4588
4589
cristy8b350f62009-11-15 23:12:43 +00004590test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004592as_fn_error $? "no acceptable C compiler found in \$PATH
4593See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004594
4595# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004596$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004597set X $ac_compile
4598ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004599for ac_option in --version -v -V -qversion; do
4600 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004601case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
cristy8b350f62009-11-15 23:12:43 +00004605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606$as_echo "$ac_try_echo"; } >&5
4607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004608 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004609 if test -s conftest.err; then
4610 sed '10a\
4611... rest of stderr output deleted ...
4612 10q' conftest.err >conftest.er1
4613 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004614 fi
cristycd4c5312009-11-22 01:19:08 +00004615 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4618done
cristy3ed852e2009-09-05 21:47:34 +00004619
cristy8b350f62009-11-15 23:12:43 +00004620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004621/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004622
cristy3ed852e2009-09-05 21:47:34 +00004623int
4624main ()
4625{
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004632ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004633# Try to create an executable without -o first, disregard a.out.
4634# It will help us diagnose broken compilers, and finding out an intuition
4635# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4637$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004638ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4639
4640# The possible output files:
4641ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4642
4643ac_rmfiles=
4644for ac_file in $ac_files
4645do
4646 case $ac_file in
4647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4649 esac
4650done
4651rm -f $ac_rmfiles
4652
cristy8b350f62009-11-15 23:12:43 +00004653if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
cristy8b350f62009-11-15 23:12:43 +00004658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004660 (eval "$ac_link_default") 2>&5
4661 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4665# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4666# in a Makefile. We should not override ac_cv_exeext if it was cached,
4667# so that the user can short-circuit this test for compilers unknown to
4668# Autoconf.
4669for ac_file in $ac_files ''
4670do
4671 test -f "$ac_file" || continue
4672 case $ac_file in
4673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4674 ;;
4675 [ab].out )
4676 # We found the default executable, but exeext='' is most
4677 # certainly right.
4678 break;;
4679 *.* )
cristy8b350f62009-11-15 23:12:43 +00004680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004681 then :; else
4682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4683 fi
4684 # We set ac_cv_exeext here because the later test for it is not
4685 # safe: cross compilers may not add the suffix if given an `-o'
4686 # argument, so we may need to know it at that point already.
4687 # Even if this section looks crufty: it has the advantage of
4688 # actually working.
4689 break;;
4690 * )
4691 break;;
4692 esac
4693done
4694test "$ac_cv_exeext" = no && ac_cv_exeext=
4695
4696else
4697 ac_file=''
4698fi
cristy8b350f62009-11-15 23:12:43 +00004699if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
4702$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703sed 's/^/| /' conftest.$ac_ext >&5
4704
cristy8b350f62009-11-15 23:12:43 +00004705{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004707as_fn_error 77 "C compiler cannot create executables
4708See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004709else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004712fi
cristycd4c5312009-11-22 01:19:08 +00004713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4714$as_echo_n "checking for C compiler default output file name... " >&6; }
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4716$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004717ac_exeext=$ac_cv_exeext
4718
cristycd4c5312009-11-22 01:19:08 +00004719rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004720ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004722$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004723if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004724case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727esac
cristy8b350f62009-11-15 23:12:43 +00004728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4729$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004730 (eval "$ac_link") 2>&5
4731 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4733 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4735# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4736# work properly (i.e., refer to `conftest.exe'), while it won't with
4737# `rm'.
4738for ac_file in conftest.exe conftest conftest.*; do
4739 test -f "$ac_file" || continue
4740 case $ac_file in
4741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4743 break;;
4744 * ) break;;
4745 esac
4746done
4747else
cristy8b350f62009-11-15 23:12:43 +00004748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004750as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4751See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004752fi
cristycd4c5312009-11-22 01:19:08 +00004753rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755$as_echo "$ac_cv_exeext" >&6; }
4756
4757rm -f conftest.$ac_ext
4758EXEEXT=$ac_cv_exeext
4759ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#include <stdio.h>
4763int
4764main ()
4765{
4766FILE *f = fopen ("conftest.out", "w");
4767 return ferror (f) || fclose (f) != 0;
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
4773ac_clean_files="$ac_clean_files conftest.out"
4774# Check that the compiler produces executables we can run. If not, either
4775# the compiler is broken, or we cross compile.
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4777$as_echo_n "checking whether we are cross compiling... " >&6; }
4778if test "$cross_compiling" != yes; then
4779 { { ac_try="$ac_link"
4780case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783esac
4784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785$as_echo "$ac_try_echo"; } >&5
4786 (eval "$ac_link") 2>&5
4787 ac_status=$?
4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }
4790 if { ac_try='./conftest$ac_cv_exeext'
4791 { { case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_try") 2>&5
4798 ac_status=$?
4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; }; then
4801 cross_compiling=no
4802 else
4803 if test "$cross_compiling" = maybe; then
4804 cross_compiling=yes
4805 else
4806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004808as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004809If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004810See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004811 fi
4812 fi
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4815$as_echo "$cross_compiling" >&6; }
4816
4817rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4818ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004820$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004821if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004822 $as_echo_n "(cached) " >&6
4823else
cristy8b350f62009-11-15 23:12:43 +00004824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004825/* end confdefs.h. */
4826
4827int
4828main ()
4829{
4830
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004836if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
cristy8b350f62009-11-15 23:12:43 +00004841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004843 (eval "$ac_compile") 2>&5
4844 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004847 for ac_file in conftest.o conftest.obj conftest.*; do
4848 test -f "$ac_file" || continue;
4849 case $ac_file in
4850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4852 break;;
4853 esac
4854done
4855else
4856 $as_echo "$as_me: failed program was:" >&5
4857sed 's/^/| /' conftest.$ac_ext >&5
4858
cristy8b350f62009-11-15 23:12:43 +00004859{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004861as_fn_error $? "cannot compute suffix of object files: cannot compile
4862See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004863fi
cristy3ed852e2009-09-05 21:47:34 +00004864rm -f conftest.$ac_cv_objext conftest.$ac_ext
4865fi
cristy8b350f62009-11-15 23:12:43 +00004866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo "$ac_cv_objext" >&6; }
4868OBJEXT=$ac_cv_objext
4869ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004872if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004873 $as_echo_n "(cached) " >&6
4874else
cristy8b350f62009-11-15 23:12:43 +00004875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004876/* end confdefs.h. */
4877
4878int
4879main ()
4880{
4881#ifndef __GNUC__
4882 choke me
4883#endif
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004890 ac_compiler_gnu=yes
4891else
cristy8b350f62009-11-15 23:12:43 +00004892 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004893fi
cristy3ed852e2009-09-05 21:47:34 +00004894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895ac_cv_c_compiler_gnu=$ac_compiler_gnu
4896
4897fi
cristy8b350f62009-11-15 23:12:43 +00004898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4900if test $ac_compiler_gnu = yes; then
4901 GCC=yes
4902else
4903 GCC=
4904fi
4905ac_test_CFLAGS=${CFLAGS+set}
4906ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004909if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004910 $as_echo_n "(cached) " >&6
4911else
4912 ac_save_c_werror_flag=$ac_c_werror_flag
4913 ac_c_werror_flag=yes
4914 ac_cv_prog_cc_g=no
4915 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004917/* end confdefs.h. */
4918
4919int
4920main ()
4921{
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004927if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004928 ac_cv_prog_cc_g=yes
4929else
cristy8b350f62009-11-15 23:12:43 +00004930 CFLAGS=""
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004932/* end confdefs.h. */
4933
4934int
4935main ()
4936{
4937
4938 ;
4939 return 0;
4940}
4941_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004942if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004943
cristy8b350f62009-11-15 23:12:43 +00004944else
4945 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004946 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004948/* end confdefs.h. */
4949
4950int
4951main ()
4952{
4953
4954 ;
4955 return 0;
4956}
4957_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004958if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004959 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004960fi
cristy3ed852e2009-09-05 21:47:34 +00004961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962fi
cristy3ed852e2009-09-05 21:47:34 +00004963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964fi
cristy3ed852e2009-09-05 21:47:34 +00004965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4967fi
cristy8b350f62009-11-15 23:12:43 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004969$as_echo "$ac_cv_prog_cc_g" >&6; }
4970if test "$ac_test_CFLAGS" = set; then
4971 CFLAGS=$ac_save_CFLAGS
4972elif test $ac_cv_prog_cc_g = yes; then
4973 if test "$GCC" = yes; then
4974 CFLAGS="-g -O2"
4975 else
4976 CFLAGS="-g"
4977 fi
4978else
4979 if test "$GCC" = yes; then
4980 CFLAGS="-O2"
4981 else
4982 CFLAGS=
4983 fi
4984fi
cristy8b350f62009-11-15 23:12:43 +00004985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004986$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004987if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004988 $as_echo_n "(cached) " >&6
4989else
4990 ac_cv_prog_cc_c89=no
4991ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004993/* end confdefs.h. */
4994#include <stdarg.h>
4995#include <stdio.h>
4996#include <sys/types.h>
4997#include <sys/stat.h>
4998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4999struct buf { int x; };
5000FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001static char *e (p, i)
5002 char **p;
5003 int i;
5004{
5005 return p[i];
5006}
5007static char *f (char * (*g) (char **, int), char **p, ...)
5008{
5009 char *s;
5010 va_list v;
5011 va_start (v,p);
5012 s = g (p, va_arg (v,int));
5013 va_end (v);
5014 return s;
5015}
5016
5017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5018 function prototypes and stuff, but not '\xHH' hex character constants.
5019 These don't provoke an error unfortunately, instead are silently treated
5020 as 'x'. The following induces an error, until -std is added to get
5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5022 array size at least. It's necessary to write '\x00'==0 to get something
5023 that's true only with -std. */
5024int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5025
5026/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027 inside strings and character constants. */
5028#define FOO(x) 'x'
5029int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5030
5031int test (int i, double x);
5032struct s1 {int (*f) (int a);};
5033struct s2 {int (*f) (double a);};
5034int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035int argc;
5036char **argv;
5037int
5038main ()
5039{
5040return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5041 ;
5042 return 0;
5043}
5044_ACEOF
5045for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5047do
5048 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005049 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005050 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005051fi
cristy3ed852e2009-09-05 21:47:34 +00005052rm -f core conftest.err conftest.$ac_objext
5053 test "x$ac_cv_prog_cc_c89" != "xno" && break
5054done
5055rm -f conftest.$ac_ext
5056CC=$ac_save_CC
5057
5058fi
5059# AC_CACHE_VAL
5060case "x$ac_cv_prog_cc_c89" in
5061 x)
cristy8b350f62009-11-15 23:12:43 +00005062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005063$as_echo "none needed" >&6; } ;;
5064 xno)
cristy8b350f62009-11-15 23:12:43 +00005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005066$as_echo "unsupported" >&6; } ;;
5067 *)
5068 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5071esac
cristy8b350f62009-11-15 23:12:43 +00005072if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005073
cristy8b350f62009-11-15 23:12:43 +00005074fi
cristy3ed852e2009-09-05 21:47:34 +00005075
5076ac_ext=c
5077ac_cpp='$CPP $CPPFLAGS'
5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005081
cristy73bd4a52010-10-05 11:24:23 +00005082depcc="$CC" am_compiler_list=
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5085$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005086if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005087 $as_echo_n "(cached) " >&6
5088else
5089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5090 # We make a subdir and do the tests there. Otherwise we can end up
5091 # making bogus files that we don't know about and never remove. For
5092 # instance it was reported that on HP-UX the gcc test will end up
5093 # making a dummy file named `D' -- because `-MD' means `put the output
5094 # in D'.
5095 mkdir conftest.dir
5096 # Copy depcomp to subdir because otherwise we won't find it if we're
5097 # using a relative directory.
5098 cp "$am_depcomp" conftest.dir
5099 cd conftest.dir
5100 # We will build objects and dependencies in a subdirectory because
5101 # it helps to detect inapplicable dependency modes. For instance
5102 # both Tru64's cc and ICC support -MD to output dependencies as a
5103 # side effect of compilation, but ICC will put the dependencies in
5104 # the current directory while Tru64 will put them in the object
5105 # directory.
5106 mkdir sub
5107
5108 am_cv_CC_dependencies_compiler_type=none
5109 if test "$am_compiler_list" = ""; then
5110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5111 fi
5112 am__universal=false
5113 case " $depcc " in #(
5114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5115 esac
5116
5117 for depmode in $am_compiler_list; do
5118 # Setup a source with many dependencies, because some compilers
5119 # like to wrap large dependency lists on column 80 (with \), and
5120 # we should not choose a depcomp mode which is confused by this.
5121 #
5122 # We need to recreate these files for each test, as the compiler may
5123 # overwrite some of them when testing with obscure command lines.
5124 # This happens at least with the AIX C compiler.
5125 : > sub/conftest.c
5126 for i in 1 2 3 4 5 6; do
5127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5129 # Solaris 8's {/usr,}/bin/sh.
5130 touch sub/conftst$i.h
5131 done
5132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5133
5134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5135 # mode. It turns out that the SunPro C++ compiler does not properly
5136 # handle `-M -o', and we need to detect this. Also, some Intel
5137 # versions had trouble with output in subdirs
5138 am__obj=sub/conftest.${OBJEXT-o}
5139 am__minus_obj="-o $am__obj"
5140 case $depmode in
5141 gcc)
5142 # This depmode causes a compiler race in universal mode.
5143 test "$am__universal" = false || continue
5144 ;;
5145 nosideeffect)
5146 # after this tag, mechanisms are not by side-effect, so they'll
5147 # only be used when explicitly requested
5148 if test "x$enable_dependency_tracking" = xyes; then
5149 continue
5150 else
5151 break
5152 fi
5153 ;;
5154 msvisualcpp | msvcmsys)
5155 # This compiler won't grok `-c -o', but also, the minuso test has
5156 # not run yet. These depmodes are late enough in the game, and
5157 # so weak that their functioning should not be impacted.
5158 am__obj=conftest.${OBJEXT-o}
5159 am__minus_obj=
5160 ;;
5161 none) break ;;
5162 esac
5163 if depmode=$depmode \
5164 source=sub/conftest.c object=$am__obj \
5165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5167 >/dev/null 2>conftest.err &&
5168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172 # icc doesn't choke on unknown options, it will just issue warnings
5173 # or remarks (even with -Werror). So we grep stderr for any message
5174 # that says an option was ignored or not supported.
5175 # When given -MP, icc 7.0 and 7.1 complain thusly:
5176 # icc: Command line warning: ignoring option '-M'; no argument required
5177 # The diagnosis changed in icc 8.0:
5178 # icc: Command line remark: option '-MP' not supported
5179 if (grep 'ignoring option' conftest.err ||
5180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181 am_cv_CC_dependencies_compiler_type=$depmode
5182 break
5183 fi
5184 fi
5185 done
5186
5187 cd ..
5188 rm -rf conftest.dir
5189else
5190 am_cv_CC_dependencies_compiler_type=none
5191fi
5192
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5195$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5196CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5197
5198 if
5199 test "x$enable_dependency_tracking" != xno \
5200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201 am__fastdepCC_TRUE=
5202 am__fastdepCC_FALSE='#'
5203else
5204 am__fastdepCC_TRUE='#'
5205 am__fastdepCC_FALSE=
5206fi
5207
5208
cristy3ed852e2009-09-05 21:47:34 +00005209
cristya0b81c32010-01-22 02:54:33 +00005210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5216$as_echo_n "checking how to run the C preprocessor... " >&6; }
5217# On Suns, sometimes $CPP names a directory.
5218if test -n "$CPP" && test -d "$CPP"; then
5219 CPP=
5220fi
5221if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005222 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005223 $as_echo_n "(cached) " >&6
5224else
5225 # Double quotes because CPP needs to be expanded
5226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5227 do
5228 ac_preproc_ok=false
5229for ac_c_preproc_warn_flag in '' yes
5230do
5231 # Use a header file that comes with gcc, so configuring glibc
5232 # with a fresh cross-compiler works.
5233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 # <limits.h> exists even on freestanding compilers.
5235 # On the NeXT, cc -E runs the code through the compiler's parser,
5236 # not just through cpp. "Syntax error" is here to catch this case.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h. */
5239#ifdef __STDC__
5240# include <limits.h>
5241#else
5242# include <assert.h>
5243#endif
5244 Syntax error
5245_ACEOF
5246if ac_fn_c_try_cpp "$LINENO"; then :
5247
5248else
5249 # Broken: fails on valid input.
5250continue
5251fi
cristyda16f162011-02-19 23:52:17 +00005252rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005253
5254 # OK, works on sane cases. Now check whether nonexistent headers
5255 # can be detected and how.
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h. */
5258#include <ac_nonexistent.h>
5259_ACEOF
5260if ac_fn_c_try_cpp "$LINENO"; then :
5261 # Broken: success on invalid input.
5262continue
5263else
5264 # Passes both tests.
5265ac_preproc_ok=:
5266break
5267fi
cristyda16f162011-02-19 23:52:17 +00005268rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005269
5270done
5271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005272rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005273if $ac_preproc_ok; then :
5274 break
5275fi
5276
5277 done
5278 ac_cv_prog_CPP=$CPP
5279
5280fi
5281 CPP=$ac_cv_prog_CPP
5282else
5283 ac_cv_prog_CPP=$CPP
5284fi
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5286$as_echo "$CPP" >&6; }
5287ac_preproc_ok=false
5288for ac_c_preproc_warn_flag in '' yes
5289do
5290 # Use a header file that comes with gcc, so configuring glibc
5291 # with a fresh cross-compiler works.
5292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5293 # <limits.h> exists even on freestanding compilers.
5294 # On the NeXT, cc -E runs the code through the compiler's parser,
5295 # not just through cpp. "Syntax error" is here to catch this case.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h. */
5298#ifdef __STDC__
5299# include <limits.h>
5300#else
5301# include <assert.h>
5302#endif
5303 Syntax error
5304_ACEOF
5305if ac_fn_c_try_cpp "$LINENO"; then :
5306
5307else
5308 # Broken: fails on valid input.
5309continue
5310fi
cristyda16f162011-02-19 23:52:17 +00005311rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005312
5313 # OK, works on sane cases. Now check whether nonexistent headers
5314 # can be detected and how.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317#include <ac_nonexistent.h>
5318_ACEOF
5319if ac_fn_c_try_cpp "$LINENO"; then :
5320 # Broken: success on invalid input.
5321continue
5322else
5323 # Passes both tests.
5324ac_preproc_ok=:
5325break
5326fi
cristyda16f162011-02-19 23:52:17 +00005327rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005328
5329done
5330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005331rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005332if $ac_preproc_ok; then :
5333
5334else
5335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005337as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5338See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005339fi
5340
5341ac_ext=c
5342ac_cpp='$CPP $CPPFLAGS'
5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5349$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005350if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005351 $as_echo_n "(cached) " >&6
5352else
5353 if test -z "$GREP"; then
5354 ac_path_GREP_found=false
5355 # Loop through the user's path and test for each of PROGNAME-LIST
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_prog in grep ggrep; do
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5364 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5365# Check for GNU ac_path_GREP and select it if it is found.
5366 # Check for GNU $ac_path_GREP
5367case `"$ac_path_GREP" --version 2>&1` in
5368*GNU*)
5369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5370*)
5371 ac_count=0
5372 $as_echo_n 0123456789 >"conftest.in"
5373 while :
5374 do
5375 cat "conftest.in" "conftest.in" >"conftest.tmp"
5376 mv "conftest.tmp" "conftest.in"
5377 cp "conftest.in" "conftest.nl"
5378 $as_echo 'GREP' >> "conftest.nl"
5379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381 as_fn_arith $ac_count + 1 && ac_count=$as_val
5382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5383 # Best one so far, save it but keep looking for a better one
5384 ac_cv_path_GREP="$ac_path_GREP"
5385 ac_path_GREP_max=$ac_count
5386 fi
5387 # 10*(2^10) chars as input seems more than enough
5388 test $ac_count -gt 10 && break
5389 done
5390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391esac
5392
5393 $ac_path_GREP_found && break 3
5394 done
5395 done
5396 done
5397IFS=$as_save_IFS
5398 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005399 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005400 fi
5401else
5402 ac_cv_path_GREP=$GREP
5403fi
5404
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5407$as_echo "$ac_cv_path_GREP" >&6; }
5408 GREP="$ac_cv_path_GREP"
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5412$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005413if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005414 $as_echo_n "(cached) " >&6
5415else
5416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5417 then ac_cv_path_EGREP="$GREP -E"
5418 else
5419 if test -z "$EGREP"; then
5420 ac_path_EGREP_found=false
5421 # Loop through the user's path and test for each of PROGNAME-LIST
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_prog in egrep; do
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5431# Check for GNU ac_path_EGREP and select it if it is found.
5432 # Check for GNU $ac_path_EGREP
5433case `"$ac_path_EGREP" --version 2>&1` in
5434*GNU*)
5435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5436*)
5437 ac_count=0
5438 $as_echo_n 0123456789 >"conftest.in"
5439 while :
5440 do
5441 cat "conftest.in" "conftest.in" >"conftest.tmp"
5442 mv "conftest.tmp" "conftest.in"
5443 cp "conftest.in" "conftest.nl"
5444 $as_echo 'EGREP' >> "conftest.nl"
5445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447 as_fn_arith $ac_count + 1 && ac_count=$as_val
5448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5449 # Best one so far, save it but keep looking for a better one
5450 ac_cv_path_EGREP="$ac_path_EGREP"
5451 ac_path_EGREP_max=$ac_count
5452 fi
5453 # 10*(2^10) chars as input seems more than enough
5454 test $ac_count -gt 10 && break
5455 done
5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5457esac
5458
5459 $ac_path_EGREP_found && break 3
5460 done
5461 done
5462 done
5463IFS=$as_save_IFS
5464 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005465 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005466 fi
5467else
5468 ac_cv_path_EGREP=$EGREP
5469fi
5470
5471 fi
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5474$as_echo "$ac_cv_path_EGREP" >&6; }
5475 EGREP="$ac_cv_path_EGREP"
5476
5477
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5479$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005480if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005481 $as_echo_n "(cached) " >&6
5482else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485#include <stdlib.h>
5486#include <stdarg.h>
5487#include <string.h>
5488#include <float.h>
5489
5490int
5491main ()
5492{
5493
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_compile "$LINENO"; then :
5499 ac_cv_header_stdc=yes
5500else
5501 ac_cv_header_stdc=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
5505if test $ac_cv_header_stdc = yes; then
5506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h. */
5509#include <string.h>
5510
5511_ACEOF
5512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "memchr" >/dev/null 2>&1; then :
5514
5515else
5516 ac_cv_header_stdc=no
5517fi
5518rm -f conftest*
5519
5520fi
5521
5522if test $ac_cv_header_stdc = yes; then
5523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h. */
5526#include <stdlib.h>
5527
5528_ACEOF
5529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5530 $EGREP "free" >/dev/null 2>&1; then :
5531
5532else
5533 ac_cv_header_stdc=no
5534fi
5535rm -f conftest*
5536
5537fi
5538
5539if test $ac_cv_header_stdc = yes; then
5540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5541 if test "$cross_compiling" = yes; then :
5542 :
5543else
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h. */
5546#include <ctype.h>
5547#include <stdlib.h>
5548#if ((' ' & 0x0FF) == 0x020)
5549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5551#else
5552# define ISLOWER(c) \
5553 (('a' <= (c) && (c) <= 'i') \
5554 || ('j' <= (c) && (c) <= 'r') \
5555 || ('s' <= (c) && (c) <= 'z'))
5556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5557#endif
5558
5559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5560int
5561main ()
5562{
5563 int i;
5564 for (i = 0; i < 256; i++)
5565 if (XOR (islower (i), ISLOWER (i))
5566 || toupper (i) != TOUPPER (i))
5567 return 2;
5568 return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_run "$LINENO"; then :
5572
5573else
5574 ac_cv_header_stdc=no
5575fi
5576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5577 conftest.$ac_objext conftest.beam conftest.$ac_ext
5578fi
5579
5580fi
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5583$as_echo "$ac_cv_header_stdc" >&6; }
5584if test $ac_cv_header_stdc = yes; then
5585
5586$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5587
5588fi
5589
5590# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5592 inttypes.h stdint.h unistd.h
5593do :
5594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5596"
cristy98dddb52010-11-04 00:30:15 +00005597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005598 cat >>confdefs.h <<_ACEOF
5599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600_ACEOF
5601
5602fi
5603
5604done
5605
5606
5607
5608 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 +00005609if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005610 MINIX=yes
5611else
5612 MINIX=
5613fi
5614
5615
5616 if test "$MINIX" = yes; then
5617
5618$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5619
5620
5621$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5622
5623
5624$as_echo "#define _MINIX 1" >>confdefs.h
5625
5626 fi
5627
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5630$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005631if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005632 $as_echo_n "(cached) " >&6
5633else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636
5637# define __EXTENSIONS__ 1
5638 $ac_includes_default
5639int
5640main ()
5641{
5642
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_safe_to_define___extensions__=yes
5649else
5650 ac_cv_safe_to_define___extensions__=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5655$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5656 test $ac_cv_safe_to_define___extensions__ = yes &&
5657 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5658
5659 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5660
5661 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5662
5663 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5664
5665 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5666
5667
5668
5669# Check for programs
5670ac_ext=c
5671ac_cpp='$CPP $CPPFLAGS'
5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5677set dummy ${ac_tool_prefix}gcc; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005680if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005681 $as_echo_n "(cached) " >&6
5682else
5683 if test -n "$CC"; then
5684 ac_cv_prog_CC="$CC" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5696 fi
5697done
5698 done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703CC=$ac_cv_prog_CC
5704if test -n "$CC"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706$as_echo "$CC" >&6; }
5707else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713fi
5714if test -z "$ac_cv_prog_CC"; then
5715 ac_ct_CC=$CC
5716 # Extract the first word of "gcc", so it can be a program name with args.
5717set dummy gcc; ac_word=$2
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005720if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005721 $as_echo_n "(cached) " >&6
5722else
5723 if test -n "$ac_ct_CC"; then
5724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_ac_ct_CC="gcc"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737done
5738 done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743ac_ct_CC=$ac_cv_prog_ac_ct_CC
5744if test -n "$ac_ct_CC"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5746$as_echo "$ac_ct_CC" >&6; }
5747else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752 if test "x$ac_ct_CC" = x; then
5753 CC=""
5754 else
5755 case $cross_compiling:$ac_tool_warned in
5756yes:)
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759ac_tool_warned=yes ;;
5760esac
5761 CC=$ac_ct_CC
5762 fi
5763else
5764 CC="$ac_cv_prog_CC"
5765fi
5766
5767if test -z "$CC"; then
5768 if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5770set dummy ${ac_tool_prefix}cc; ac_word=$2
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005773if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005774 $as_echo_n "(cached) " >&6
5775else
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC="$CC" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_CC="${ac_tool_prefix}cc"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790done
5791 done
5792IFS=$as_save_IFS
5793
5794fi
5795fi
5796CC=$ac_cv_prog_CC
5797if test -n "$CC"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5799$as_echo "$CC" >&6; }
5800else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }
5803fi
5804
5805
5806 fi
5807fi
5808if test -z "$CC"; then
5809 # Extract the first word of "cc", so it can be a program name with args.
5810set dummy cc; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005813if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005814 $as_echo_n "(cached) " >&6
5815else
5816 if test -n "$CC"; then
5817 ac_cv_prog_CC="$CC" # Let the user override the test.
5818else
5819 ac_prog_rejected=no
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5828 ac_prog_rejected=yes
5829 continue
5830 fi
5831 ac_cv_prog_CC="cc"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835done
5836 done
5837IFS=$as_save_IFS
5838
5839if test $ac_prog_rejected = yes; then
5840 # We found a bogon in the path, so make sure we never use it.
5841 set dummy $ac_cv_prog_CC
5842 shift
5843 if test $# != 0; then
5844 # We chose a different compiler from the bogus one.
5845 # However, it has the same basename, so the bogon will be chosen
5846 # first if we set CC to just the basename; use the full file name.
5847 shift
5848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5849 fi
5850fi
5851fi
5852fi
5853CC=$ac_cv_prog_CC
5854if test -n "$CC"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856$as_echo "$CC" >&6; }
5857else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862
5863fi
5864if test -z "$CC"; then
5865 if test -n "$ac_tool_prefix"; then
5866 for ac_prog in cl.exe
5867 do
5868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005872if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005873 $as_echo_n "(cached) " >&6
5874else
5875 if test -n "$CC"; then
5876 ac_cv_prog_CC="$CC" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890 done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895CC=$ac_cv_prog_CC
5896if test -n "$CC"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5898$as_echo "$CC" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904
5905 test -n "$CC" && break
5906 done
5907fi
5908if test -z "$CC"; then
5909 ac_ct_CC=$CC
5910 for ac_prog in cl.exe
5911do
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913set dummy $ac_prog; ac_word=$2
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005916if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005917 $as_echo_n "(cached) " >&6
5918else
5919 if test -n "$ac_ct_CC"; then
5920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_prog_ac_ct_CC="$ac_prog"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933done
5934 done
5935IFS=$as_save_IFS
5936
5937fi
5938fi
5939ac_ct_CC=$ac_cv_prog_ac_ct_CC
5940if test -n "$ac_ct_CC"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5942$as_echo "$ac_ct_CC" >&6; }
5943else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946fi
5947
5948
5949 test -n "$ac_ct_CC" && break
5950done
5951
5952 if test "x$ac_ct_CC" = x; then
5953 CC=""
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956yes:)
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959ac_tool_warned=yes ;;
5960esac
5961 CC=$ac_ct_CC
5962 fi
5963fi
5964
5965fi
5966
5967
5968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005970as_fn_error $? "no acceptable C compiler found in \$PATH
5971See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005972
5973# Provide some information about the compiler.
5974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5975set X $ac_compile
5976ac_compiler=$2
5977for ac_option in --version -v -V -qversion; do
5978 { { ac_try="$ac_compiler $ac_option >&5"
5979case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5984$as_echo "$ac_try_echo"; } >&5
5985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5986 ac_status=$?
5987 if test -s conftest.err; then
5988 sed '10a\
5989... rest of stderr output deleted ...
5990 10q' conftest.err >conftest.er1
5991 cat conftest.er1 >&5
5992 fi
5993 rm -f conftest.er1 conftest.err
5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995 test $ac_status = 0; }
5996done
5997
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5999$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006000if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006001 $as_echo_n "(cached) " >&6
6002else
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004/* end confdefs.h. */
6005
6006int
6007main ()
6008{
6009#ifndef __GNUC__
6010 choke me
6011#endif
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"; then :
6018 ac_compiler_gnu=yes
6019else
6020 ac_compiler_gnu=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023ac_cv_c_compiler_gnu=$ac_compiler_gnu
6024
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6027$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6028if test $ac_compiler_gnu = yes; then
6029 GCC=yes
6030else
6031 GCC=
6032fi
6033ac_test_CFLAGS=${CFLAGS+set}
6034ac_save_CFLAGS=$CFLAGS
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6036$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006037if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006038 $as_echo_n "(cached) " >&6
6039else
6040 ac_save_c_werror_flag=$ac_c_werror_flag
6041 ac_c_werror_flag=yes
6042 ac_cv_prog_cc_g=no
6043 CFLAGS="-g"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h. */
6046
6047int
6048main ()
6049{
6050
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_compile "$LINENO"; then :
6056 ac_cv_prog_cc_g=yes
6057else
6058 CFLAGS=""
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h. */
6061
6062int
6063main ()
6064{
6065
6066 ;
6067 return 0;
6068}
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071
6072else
6073 ac_c_werror_flag=$ac_save_c_werror_flag
6074 CFLAGS="-g"
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h. */
6077
6078int
6079main ()
6080{
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_compile "$LINENO"; then :
6087 ac_cv_prog_cc_g=yes
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_c_werror_flag=$ac_save_c_werror_flag
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6097$as_echo "$ac_cv_prog_cc_g" >&6; }
6098if test "$ac_test_CFLAGS" = set; then
6099 CFLAGS=$ac_save_CFLAGS
6100elif test $ac_cv_prog_cc_g = yes; then
6101 if test "$GCC" = yes; then
6102 CFLAGS="-g -O2"
6103 else
6104 CFLAGS="-g"
6105 fi
6106else
6107 if test "$GCC" = yes; then
6108 CFLAGS="-O2"
6109 else
6110 CFLAGS=
6111 fi
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6114$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006115if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006116 $as_echo_n "(cached) " >&6
6117else
6118 ac_cv_prog_cc_c89=no
6119ac_save_CC=$CC
6120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h. */
6122#include <stdarg.h>
6123#include <stdio.h>
6124#include <sys/types.h>
6125#include <sys/stat.h>
6126/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6127struct buf { int x; };
6128FILE * (*rcsopen) (struct buf *, struct stat *, int);
6129static char *e (p, i)
6130 char **p;
6131 int i;
6132{
6133 return p[i];
6134}
6135static char *f (char * (*g) (char **, int), char **p, ...)
6136{
6137 char *s;
6138 va_list v;
6139 va_start (v,p);
6140 s = g (p, va_arg (v,int));
6141 va_end (v);
6142 return s;
6143}
6144
6145/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6146 function prototypes and stuff, but not '\xHH' hex character constants.
6147 These don't provoke an error unfortunately, instead are silently treated
6148 as 'x'. The following induces an error, until -std is added to get
6149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6150 array size at least. It's necessary to write '\x00'==0 to get something
6151 that's true only with -std. */
6152int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6153
6154/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6155 inside strings and character constants. */
6156#define FOO(x) 'x'
6157int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6158
6159int test (int i, double x);
6160struct s1 {int (*f) (int a);};
6161struct s2 {int (*f) (double a);};
6162int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6163int argc;
6164char **argv;
6165int
6166main ()
6167{
6168return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6175do
6176 CC="$ac_save_CC $ac_arg"
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 ac_cv_prog_cc_c89=$ac_arg
6179fi
6180rm -f core conftest.err conftest.$ac_objext
6181 test "x$ac_cv_prog_cc_c89" != "xno" && break
6182done
6183rm -f conftest.$ac_ext
6184CC=$ac_save_CC
6185
6186fi
6187# AC_CACHE_VAL
6188case "x$ac_cv_prog_cc_c89" in
6189 x)
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6191$as_echo "none needed" >&6; } ;;
6192 xno)
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6194$as_echo "unsupported" >&6; } ;;
6195 *)
6196 CC="$CC $ac_cv_prog_cc_c89"
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6198$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6199esac
6200if test "x$ac_cv_prog_cc_c89" != xno; then :
6201
6202fi
6203
6204ac_ext=c
6205ac_cpp='$CPP $CPPFLAGS'
6206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
cristy73bd4a52010-10-05 11:24:23 +00006210depcc="$CC" am_compiler_list=
6211
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6213$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006214if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006215 $as_echo_n "(cached) " >&6
6216else
6217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6218 # We make a subdir and do the tests there. Otherwise we can end up
6219 # making bogus files that we don't know about and never remove. For
6220 # instance it was reported that on HP-UX the gcc test will end up
6221 # making a dummy file named `D' -- because `-MD' means `put the output
6222 # in D'.
6223 mkdir conftest.dir
6224 # Copy depcomp to subdir because otherwise we won't find it if we're
6225 # using a relative directory.
6226 cp "$am_depcomp" conftest.dir
6227 cd conftest.dir
6228 # We will build objects and dependencies in a subdirectory because
6229 # it helps to detect inapplicable dependency modes. For instance
6230 # both Tru64's cc and ICC support -MD to output dependencies as a
6231 # side effect of compilation, but ICC will put the dependencies in
6232 # the current directory while Tru64 will put them in the object
6233 # directory.
6234 mkdir sub
6235
6236 am_cv_CC_dependencies_compiler_type=none
6237 if test "$am_compiler_list" = ""; then
6238 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6239 fi
6240 am__universal=false
6241 case " $depcc " in #(
6242 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6243 esac
6244
6245 for depmode in $am_compiler_list; do
6246 # Setup a source with many dependencies, because some compilers
6247 # like to wrap large dependency lists on column 80 (with \), and
6248 # we should not choose a depcomp mode which is confused by this.
6249 #
6250 # We need to recreate these files for each test, as the compiler may
6251 # overwrite some of them when testing with obscure command lines.
6252 # This happens at least with the AIX C compiler.
6253 : > sub/conftest.c
6254 for i in 1 2 3 4 5 6; do
6255 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6256 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6257 # Solaris 8's {/usr,}/bin/sh.
6258 touch sub/conftst$i.h
6259 done
6260 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6261
6262 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6263 # mode. It turns out that the SunPro C++ compiler does not properly
6264 # handle `-M -o', and we need to detect this. Also, some Intel
6265 # versions had trouble with output in subdirs
6266 am__obj=sub/conftest.${OBJEXT-o}
6267 am__minus_obj="-o $am__obj"
6268 case $depmode in
6269 gcc)
6270 # This depmode causes a compiler race in universal mode.
6271 test "$am__universal" = false || continue
6272 ;;
6273 nosideeffect)
6274 # after this tag, mechanisms are not by side-effect, so they'll
6275 # only be used when explicitly requested
6276 if test "x$enable_dependency_tracking" = xyes; then
6277 continue
6278 else
6279 break
6280 fi
6281 ;;
6282 msvisualcpp | msvcmsys)
6283 # This compiler won't grok `-c -o', but also, the minuso test has
6284 # not run yet. These depmodes are late enough in the game, and
6285 # so weak that their functioning should not be impacted.
6286 am__obj=conftest.${OBJEXT-o}
6287 am__minus_obj=
6288 ;;
6289 none) break ;;
6290 esac
6291 if depmode=$depmode \
6292 source=sub/conftest.c object=$am__obj \
6293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6294 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6295 >/dev/null 2>conftest.err &&
6296 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6298 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6300 # icc doesn't choke on unknown options, it will just issue warnings
6301 # or remarks (even with -Werror). So we grep stderr for any message
6302 # that says an option was ignored or not supported.
6303 # When given -MP, icc 7.0 and 7.1 complain thusly:
6304 # icc: Command line warning: ignoring option '-M'; no argument required
6305 # The diagnosis changed in icc 8.0:
6306 # icc: Command line remark: option '-MP' not supported
6307 if (grep 'ignoring option' conftest.err ||
6308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6309 am_cv_CC_dependencies_compiler_type=$depmode
6310 break
6311 fi
6312 fi
6313 done
6314
6315 cd ..
6316 rm -rf conftest.dir
6317else
6318 am_cv_CC_dependencies_compiler_type=none
6319fi
6320
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6323$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6324CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6325
6326 if
6327 test "x$enable_dependency_tracking" != xno \
6328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6329 am__fastdepCC_TRUE=
6330 am__fastdepCC_FALSE='#'
6331else
6332 am__fastdepCC_TRUE='#'
6333 am__fastdepCC_FALSE=
6334fi
6335
6336
cristy95646052009-11-28 23:05:30 +00006337ac_ext=cpp
6338ac_cpp='$CXXCPP $CPPFLAGS'
6339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6342if test -z "$CXX"; then
6343 if test -n "$CCC"; then
6344 CXX=$CCC
6345 else
6346 if test -n "$ac_tool_prefix"; then
6347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6348 do
6349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006353if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006354 $as_echo_n "(cached) " >&6
6355else
6356 if test -n "$CXX"; then
6357 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371 done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376CXX=$ac_cv_prog_CXX
6377if test -n "$CXX"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6379$as_echo "$CXX" >&6; }
6380else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385
6386 test -n "$CXX" && break
6387 done
6388fi
6389if test -z "$CXX"; then
6390 ac_ct_CXX=$CXX
6391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6392do
6393 # Extract the first word of "$ac_prog", so it can be a program name with args.
6394set dummy $ac_prog; ac_word=$2
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006397if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006398 $as_echo_n "(cached) " >&6
6399else
6400 if test -n "$ac_ct_CXX"; then
6401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_CXX="$ac_prog"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415 done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
6420ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6421if test -n "$ac_ct_CXX"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6423$as_echo "$ac_ct_CXX" >&6; }
6424else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
6430 test -n "$ac_ct_CXX" && break
6431done
6432
6433 if test "x$ac_ct_CXX" = x; then
6434 CXX="g++"
6435 else
6436 case $cross_compiling:$ac_tool_warned in
6437yes:)
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440ac_tool_warned=yes ;;
6441esac
6442 CXX=$ac_ct_CXX
6443 fi
6444fi
6445
6446 fi
6447fi
6448# Provide some information about the compiler.
6449$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6450set X $ac_compile
6451ac_compiler=$2
6452for ac_option in --version -v -V -qversion; do
6453 { { ac_try="$ac_compiler $ac_option >&5"
6454case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457esac
6458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6459$as_echo "$ac_try_echo"; } >&5
6460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6461 ac_status=$?
6462 if test -s conftest.err; then
6463 sed '10a\
6464... rest of stderr output deleted ...
6465 10q' conftest.err >conftest.er1
6466 cat conftest.er1 >&5
6467 fi
6468 rm -f conftest.er1 conftest.err
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }
6471done
6472
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6474$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006475if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006476 $as_echo_n "(cached) " >&6
6477else
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h. */
6480
6481int
6482main ()
6483{
6484#ifndef __GNUC__
6485 choke me
6486#endif
6487
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492if ac_fn_cxx_try_compile "$LINENO"; then :
6493 ac_compiler_gnu=yes
6494else
6495 ac_compiler_gnu=no
6496fi
6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6499
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6502$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6503if test $ac_compiler_gnu = yes; then
6504 GXX=yes
6505else
6506 GXX=
6507fi
6508ac_test_CXXFLAGS=${CXXFLAGS+set}
6509ac_save_CXXFLAGS=$CXXFLAGS
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6511$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006512if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006513 $as_echo_n "(cached) " >&6
6514else
6515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6516 ac_cxx_werror_flag=yes
6517 ac_cv_prog_cxx_g=no
6518 CXXFLAGS="-g"
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h. */
6521
6522int
6523main ()
6524{
6525
6526 ;
6527 return 0;
6528}
6529_ACEOF
6530if ac_fn_cxx_try_compile "$LINENO"; then :
6531 ac_cv_prog_cxx_g=yes
6532else
6533 CXXFLAGS=""
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537int
6538main ()
6539{
6540
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545if ac_fn_cxx_try_compile "$LINENO"; then :
6546
6547else
6548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6549 CXXFLAGS="-g"
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h. */
6552
6553int
6554main ()
6555{
6556
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561if ac_fn_cxx_try_compile "$LINENO"; then :
6562 ac_cv_prog_cxx_g=yes
6563fi
6564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567fi
6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6572$as_echo "$ac_cv_prog_cxx_g" >&6; }
6573if test "$ac_test_CXXFLAGS" = set; then
6574 CXXFLAGS=$ac_save_CXXFLAGS
6575elif test $ac_cv_prog_cxx_g = yes; then
6576 if test "$GXX" = yes; then
6577 CXXFLAGS="-g -O2"
6578 else
6579 CXXFLAGS="-g"
6580 fi
6581else
6582 if test "$GXX" = yes; then
6583 CXXFLAGS="-O2"
6584 else
6585 CXXFLAGS=
6586 fi
6587fi
6588ac_ext=c
6589ac_cpp='$CPP $CPPFLAGS'
6590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593
cristy73bd4a52010-10-05 11:24:23 +00006594depcc="$CXX" am_compiler_list=
6595
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6597$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006598if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006599 $as_echo_n "(cached) " >&6
6600else
6601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6602 # We make a subdir and do the tests there. Otherwise we can end up
6603 # making bogus files that we don't know about and never remove. For
6604 # instance it was reported that on HP-UX the gcc test will end up
6605 # making a dummy file named `D' -- because `-MD' means `put the output
6606 # in D'.
6607 mkdir conftest.dir
6608 # Copy depcomp to subdir because otherwise we won't find it if we're
6609 # using a relative directory.
6610 cp "$am_depcomp" conftest.dir
6611 cd conftest.dir
6612 # We will build objects and dependencies in a subdirectory because
6613 # it helps to detect inapplicable dependency modes. For instance
6614 # both Tru64's cc and ICC support -MD to output dependencies as a
6615 # side effect of compilation, but ICC will put the dependencies in
6616 # the current directory while Tru64 will put them in the object
6617 # directory.
6618 mkdir sub
6619
6620 am_cv_CXX_dependencies_compiler_type=none
6621 if test "$am_compiler_list" = ""; then
6622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6623 fi
6624 am__universal=false
6625 case " $depcc " in #(
6626 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6627 esac
6628
6629 for depmode in $am_compiler_list; do
6630 # Setup a source with many dependencies, because some compilers
6631 # like to wrap large dependency lists on column 80 (with \), and
6632 # we should not choose a depcomp mode which is confused by this.
6633 #
6634 # We need to recreate these files for each test, as the compiler may
6635 # overwrite some of them when testing with obscure command lines.
6636 # This happens at least with the AIX C compiler.
6637 : > sub/conftest.c
6638 for i in 1 2 3 4 5 6; do
6639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6641 # Solaris 8's {/usr,}/bin/sh.
6642 touch sub/conftst$i.h
6643 done
6644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6645
6646 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6647 # mode. It turns out that the SunPro C++ compiler does not properly
6648 # handle `-M -o', and we need to detect this. Also, some Intel
6649 # versions had trouble with output in subdirs
6650 am__obj=sub/conftest.${OBJEXT-o}
6651 am__minus_obj="-o $am__obj"
6652 case $depmode in
6653 gcc)
6654 # This depmode causes a compiler race in universal mode.
6655 test "$am__universal" = false || continue
6656 ;;
6657 nosideeffect)
6658 # after this tag, mechanisms are not by side-effect, so they'll
6659 # only be used when explicitly requested
6660 if test "x$enable_dependency_tracking" = xyes; then
6661 continue
6662 else
6663 break
6664 fi
6665 ;;
6666 msvisualcpp | msvcmsys)
6667 # This compiler won't grok `-c -o', but also, the minuso test has
6668 # not run yet. These depmodes are late enough in the game, and
6669 # so weak that their functioning should not be impacted.
6670 am__obj=conftest.${OBJEXT-o}
6671 am__minus_obj=
6672 ;;
6673 none) break ;;
6674 esac
6675 if depmode=$depmode \
6676 source=sub/conftest.c object=$am__obj \
6677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6679 >/dev/null 2>conftest.err &&
6680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6684 # icc doesn't choke on unknown options, it will just issue warnings
6685 # or remarks (even with -Werror). So we grep stderr for any message
6686 # that says an option was ignored or not supported.
6687 # When given -MP, icc 7.0 and 7.1 complain thusly:
6688 # icc: Command line warning: ignoring option '-M'; no argument required
6689 # The diagnosis changed in icc 8.0:
6690 # icc: Command line remark: option '-MP' not supported
6691 if (grep 'ignoring option' conftest.err ||
6692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6693 am_cv_CXX_dependencies_compiler_type=$depmode
6694 break
6695 fi
6696 fi
6697 done
6698
6699 cd ..
6700 rm -rf conftest.dir
6701else
6702 am_cv_CXX_dependencies_compiler_type=none
6703fi
6704
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6707$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6708CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6709
6710 if
6711 test "x$enable_dependency_tracking" != xno \
6712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6713 am__fastdepCXX_TRUE=
6714 am__fastdepCXX_FALSE='#'
6715else
6716 am__fastdepCXX_TRUE='#'
6717 am__fastdepCXX_FALSE=
6718fi
6719
6720
cristy8b350f62009-11-15 23:12:43 +00006721 case $ac_cv_prog_cc_stdc in #(
6722 no) :
6723 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6724 *) :
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006726$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006727if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006728 $as_echo_n "(cached) " >&6
6729else
6730 ac_cv_prog_cc_c99=no
6731ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006733/* end confdefs.h. */
6734#include <stdarg.h>
6735#include <stdbool.h>
6736#include <stdlib.h>
6737#include <wchar.h>
6738#include <stdio.h>
6739
6740// Check varargs macros. These examples are taken from C99 6.10.3.5.
6741#define debug(...) fprintf (stderr, __VA_ARGS__)
6742#define showlist(...) puts (#__VA_ARGS__)
6743#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6744static void
6745test_varargs_macros (void)
6746{
6747 int x = 1234;
6748 int y = 5678;
6749 debug ("Flag");
6750 debug ("X = %d\n", x);
6751 showlist (The first, second, and third items.);
6752 report (x>y, "x is %d but y is %d", x, y);
6753}
6754
6755// Check long long types.
6756#define BIG64 18446744073709551615ull
6757#define BIG32 4294967295ul
6758#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6759#if !BIG_OK
6760 your preprocessor is broken;
6761#endif
6762#if BIG_OK
6763#else
6764 your preprocessor is broken;
6765#endif
6766static long long int bignum = -9223372036854775807LL;
6767static unsigned long long int ubignum = BIG64;
6768
6769struct incomplete_array
6770{
6771 int datasize;
6772 double data[];
6773};
6774
6775struct named_init {
6776 int number;
6777 const wchar_t *name;
6778 double average;
6779};
6780
6781typedef const char *ccp;
6782
6783static inline int
6784test_restrict (ccp restrict text)
6785{
6786 // See if C++-style comments work.
6787 // Iterate through items via the restricted pointer.
6788 // Also check for declarations in for loops.
6789 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6790 continue;
6791 return 0;
6792}
6793
6794// Check varargs and va_copy.
6795static void
6796test_varargs (const char *format, ...)
6797{
6798 va_list args;
6799 va_start (args, format);
6800 va_list args_copy;
6801 va_copy (args_copy, args);
6802
6803 const char *str;
6804 int number;
6805 float fnumber;
6806
6807 while (*format)
6808 {
6809 switch (*format++)
6810 {
6811 case 's': // string
6812 str = va_arg (args_copy, const char *);
6813 break;
6814 case 'd': // int
6815 number = va_arg (args_copy, int);
6816 break;
6817 case 'f': // float
6818 fnumber = va_arg (args_copy, double);
6819 break;
6820 default:
6821 break;
6822 }
6823 }
6824 va_end (args_copy);
6825 va_end (args);
6826}
6827
6828int
6829main ()
6830{
6831
6832 // Check bool.
6833 _Bool success = false;
6834
6835 // Check restrict.
6836 if (test_restrict ("String literal") == 0)
6837 success = true;
6838 char *restrict newvar = "Another string";
6839
6840 // Check varargs.
6841 test_varargs ("s, d' f .", "string", 65, 34.234);
6842 test_varargs_macros ();
6843
6844 // Check flexible array members.
6845 struct incomplete_array *ia =
6846 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6847 ia->datasize = 10;
6848 for (int i = 0; i < ia->datasize; ++i)
6849 ia->data[i] = i * 1.234;
6850
6851 // Check named initializers.
6852 struct named_init ni = {
6853 .number = 34,
6854 .name = L"Test wide string",
6855 .average = 543.34343,
6856 };
6857
6858 ni.number = 58;
6859
6860 int dynamic_array[ni.number];
6861 dynamic_array[ni.number - 1] = 543;
6862
6863 // work around unused variable warnings
6864 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6865 || dynamic_array[ni.number - 1] != 543);
6866
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6872do
6873 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006874 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006876fi
cristy3ed852e2009-09-05 21:47:34 +00006877rm -f core conftest.err conftest.$ac_objext
6878 test "x$ac_cv_prog_cc_c99" != "xno" && break
6879done
6880rm -f conftest.$ac_ext
6881CC=$ac_save_CC
6882
6883fi
6884# AC_CACHE_VAL
6885case "x$ac_cv_prog_cc_c99" in
6886 x)
cristy8b350f62009-11-15 23:12:43 +00006887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006888$as_echo "none needed" >&6; } ;;
6889 xno)
cristy8b350f62009-11-15 23:12:43 +00006890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006891$as_echo "unsupported" >&6; } ;;
6892 *)
6893 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006895$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6896esac
cristy8b350f62009-11-15 23:12:43 +00006897if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006898 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6899else
cristy8b350f62009-11-15 23:12:43 +00006900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006901$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006902if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006903 $as_echo_n "(cached) " >&6
6904else
6905 ac_cv_prog_cc_c89=no
6906ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006908/* end confdefs.h. */
6909#include <stdarg.h>
6910#include <stdio.h>
6911#include <sys/types.h>
6912#include <sys/stat.h>
6913/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6914struct buf { int x; };
6915FILE * (*rcsopen) (struct buf *, struct stat *, int);
6916static char *e (p, i)
6917 char **p;
6918 int i;
6919{
6920 return p[i];
6921}
6922static char *f (char * (*g) (char **, int), char **p, ...)
6923{
6924 char *s;
6925 va_list v;
6926 va_start (v,p);
6927 s = g (p, va_arg (v,int));
6928 va_end (v);
6929 return s;
6930}
6931
6932/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6933 function prototypes and stuff, but not '\xHH' hex character constants.
6934 These don't provoke an error unfortunately, instead are silently treated
6935 as 'x'. The following induces an error, until -std is added to get
6936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6937 array size at least. It's necessary to write '\x00'==0 to get something
6938 that's true only with -std. */
6939int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6940
6941/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6942 inside strings and character constants. */
6943#define FOO(x) 'x'
6944int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6945
6946int test (int i, double x);
6947struct s1 {int (*f) (int a);};
6948struct s2 {int (*f) (double a);};
6949int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6950int argc;
6951char **argv;
6952int
6953main ()
6954{
6955return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6956 ;
6957 return 0;
6958}
6959_ACEOF
6960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6962do
6963 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006964 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006965 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006966fi
cristy3ed852e2009-09-05 21:47:34 +00006967rm -f core conftest.err conftest.$ac_objext
6968 test "x$ac_cv_prog_cc_c89" != "xno" && break
6969done
6970rm -f conftest.$ac_ext
6971CC=$ac_save_CC
6972
6973fi
6974# AC_CACHE_VAL
6975case "x$ac_cv_prog_cc_c89" in
6976 x)
cristy8b350f62009-11-15 23:12:43 +00006977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006978$as_echo "none needed" >&6; } ;;
6979 xno)
cristy8b350f62009-11-15 23:12:43 +00006980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo "unsupported" >&6; } ;;
6982 *)
6983 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006985$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6986esac
cristy8b350f62009-11-15 23:12:43 +00006987if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006988 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6989else
6990 ac_cv_prog_cc_stdc=no
6991fi
6992
cristy3ed852e2009-09-05 21:47:34 +00006993fi
cristy3ed852e2009-09-05 21:47:34 +00006994 ;;
6995esac
cristy8b350f62009-11-15 23:12:43 +00006996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006997$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006998 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006999 $as_echo_n "(cached) " >&6
7000fi
7001
cristy8b350f62009-11-15 23:12:43 +00007002 case $ac_cv_prog_cc_stdc in #(
7003 no) :
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7005$as_echo "unsupported" >&6; } ;; #(
7006 '') :
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7008$as_echo "none needed" >&6; } ;; #(
7009 *) :
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7012esac
7013
cristy3ed852e2009-09-05 21:47:34 +00007014ac_ext=c
7015ac_cpp='$CPP $CPPFLAGS'
7016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007020$as_echo_n "checking how to run the C preprocessor... " >&6; }
7021# On Suns, sometimes $CPP names a directory.
7022if test -n "$CPP" && test -d "$CPP"; then
7023 CPP=
7024fi
7025if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007026 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007027 $as_echo_n "(cached) " >&6
7028else
7029 # Double quotes because CPP needs to be expanded
7030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7031 do
7032 ac_preproc_ok=false
7033for ac_c_preproc_warn_flag in '' yes
7034do
7035 # Use a header file that comes with gcc, so configuring glibc
7036 # with a fresh cross-compiler works.
7037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038 # <limits.h> exists even on freestanding compilers.
7039 # On the NeXT, cc -E runs the code through the compiler's parser,
7040 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007042/* end confdefs.h. */
7043#ifdef __STDC__
7044# include <limits.h>
7045#else
7046# include <assert.h>
7047#endif
7048 Syntax error
7049_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007050if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007051
cristy8b350f62009-11-15 23:12:43 +00007052else
cristy3ed852e2009-09-05 21:47:34 +00007053 # Broken: fails on valid input.
7054continue
7055fi
cristyda16f162011-02-19 23:52:17 +00007056rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007057
7058 # OK, works on sane cases. Now check whether nonexistent headers
7059 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007061/* end confdefs.h. */
7062#include <ac_nonexistent.h>
7063_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007064if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007065 # Broken: success on invalid input.
7066continue
7067else
cristy3ed852e2009-09-05 21:47:34 +00007068 # Passes both tests.
7069ac_preproc_ok=:
7070break
7071fi
cristyda16f162011-02-19 23:52:17 +00007072rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007073
7074done
7075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007076rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007077if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007078 break
7079fi
7080
7081 done
7082 ac_cv_prog_CPP=$CPP
7083
7084fi
7085 CPP=$ac_cv_prog_CPP
7086else
7087 ac_cv_prog_CPP=$CPP
7088fi
cristy8b350f62009-11-15 23:12:43 +00007089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007090$as_echo "$CPP" >&6; }
7091ac_preproc_ok=false
7092for ac_c_preproc_warn_flag in '' yes
7093do
7094 # Use a header file that comes with gcc, so configuring glibc
7095 # with a fresh cross-compiler works.
7096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097 # <limits.h> exists even on freestanding compilers.
7098 # On the NeXT, cc -E runs the code through the compiler's parser,
7099 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007101/* end confdefs.h. */
7102#ifdef __STDC__
7103# include <limits.h>
7104#else
7105# include <assert.h>
7106#endif
7107 Syntax error
7108_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007109if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007110
cristy8b350f62009-11-15 23:12:43 +00007111else
cristy3ed852e2009-09-05 21:47:34 +00007112 # Broken: fails on valid input.
7113continue
7114fi
cristyda16f162011-02-19 23:52:17 +00007115rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007116
7117 # OK, works on sane cases. Now check whether nonexistent headers
7118 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007120/* end confdefs.h. */
7121#include <ac_nonexistent.h>
7122_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007123if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007124 # Broken: success on invalid input.
7125continue
7126else
cristy3ed852e2009-09-05 21:47:34 +00007127 # Passes both tests.
7128ac_preproc_ok=:
7129break
7130fi
cristyda16f162011-02-19 23:52:17 +00007131rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007132
7133done
7134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007135rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007136if $ac_preproc_ok; then :
7137
cristy3ed852e2009-09-05 21:47:34 +00007138else
cristy8b350f62009-11-15 23:12:43 +00007139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007141as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7142See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007143fi
7144
7145ac_ext=c
7146ac_cpp='$CPP $CPPFLAGS'
7147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
cristy73bd4a52010-10-05 11:24:23 +00007151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7152$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007153if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007154 $as_echo_n "(cached) " >&6
7155else
7156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7157 for ac_i in 1 2 3 4 5 6 7; do
7158 ac_script="$ac_script$as_nl$ac_script"
7159 done
7160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7161 { ac_script=; unset ac_script;}
7162 if test -z "$SED"; then
7163 ac_path_SED_found=false
7164 # Loop through the user's path and test for each of PROGNAME-LIST
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_prog in sed gsed; do
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7174# Check for GNU ac_path_SED and select it if it is found.
7175 # Check for GNU $ac_path_SED
7176case `"$ac_path_SED" --version 2>&1` in
7177*GNU*)
7178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7179*)
7180 ac_count=0
7181 $as_echo_n 0123456789 >"conftest.in"
7182 while :
7183 do
7184 cat "conftest.in" "conftest.in" >"conftest.tmp"
7185 mv "conftest.tmp" "conftest.in"
7186 cp "conftest.in" "conftest.nl"
7187 $as_echo '' >> "conftest.nl"
7188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7190 as_fn_arith $ac_count + 1 && ac_count=$as_val
7191 if test $ac_count -gt ${ac_path_SED_max-0}; then
7192 # Best one so far, save it but keep looking for a better one
7193 ac_cv_path_SED="$ac_path_SED"
7194 ac_path_SED_max=$ac_count
7195 fi
7196 # 10*(2^10) chars as input seems more than enough
7197 test $ac_count -gt 10 && break
7198 done
7199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7200esac
7201
7202 $ac_path_SED_found && break 3
7203 done
7204 done
7205 done
7206IFS=$as_save_IFS
7207 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007208 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007209 fi
7210else
7211 ac_cv_path_SED=$SED
7212fi
7213
7214fi
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7216$as_echo "$ac_cv_path_SED" >&6; }
7217 SED="$ac_cv_path_SED"
7218 rm -f conftest.sed
7219
7220test -z "$SED" && SED=sed
7221Xsed="$SED -e 1s/^X//"
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7234$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007235if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007236 $as_echo_n "(cached) " >&6
7237else
7238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7239 then ac_cv_path_FGREP="$GREP -F"
7240 else
7241 if test -z "$FGREP"; then
7242 ac_path_FGREP_found=false
7243 # Loop through the user's path and test for each of PROGNAME-LIST
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_prog in fgrep; do
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7253# Check for GNU ac_path_FGREP and select it if it is found.
7254 # Check for GNU $ac_path_FGREP
7255case `"$ac_path_FGREP" --version 2>&1` in
7256*GNU*)
7257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7258*)
7259 ac_count=0
7260 $as_echo_n 0123456789 >"conftest.in"
7261 while :
7262 do
7263 cat "conftest.in" "conftest.in" >"conftest.tmp"
7264 mv "conftest.tmp" "conftest.in"
7265 cp "conftest.in" "conftest.nl"
7266 $as_echo 'FGREP' >> "conftest.nl"
7267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7269 as_fn_arith $ac_count + 1 && ac_count=$as_val
7270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7271 # Best one so far, save it but keep looking for a better one
7272 ac_cv_path_FGREP="$ac_path_FGREP"
7273 ac_path_FGREP_max=$ac_count
7274 fi
7275 # 10*(2^10) chars as input seems more than enough
7276 test $ac_count -gt 10 && break
7277 done
7278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7279esac
7280
7281 $ac_path_FGREP_found && break 3
7282 done
7283 done
7284 done
7285IFS=$as_save_IFS
7286 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007287 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007288 fi
7289else
7290 ac_cv_path_FGREP=$FGREP
7291fi
7292
7293 fi
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7296$as_echo "$ac_cv_path_FGREP" >&6; }
7297 FGREP="$ac_cv_path_FGREP"
7298
7299
7300test -z "$GREP" && GREP=grep
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
cristy0c60a692010-11-04 01:09:47 +00007318ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7319ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7320ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7321
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7323$as_echo_n "checking how to print strings... " >&6; }
7324# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007325if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007326 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7327 ECHO='print -r --'
7328elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7329 ECHO='printf %s\n'
7330else
7331 # Use this function as a fallback that always works.
7332 func_fallback_echo ()
7333 {
7334 eval 'cat <<_LTECHO_EOF
7335$1
7336_LTECHO_EOF'
7337 }
7338 ECHO='func_fallback_echo'
7339fi
7340
7341# func_echo_all arg...
7342# Invoke $ECHO with all args, space-separated.
7343func_echo_all ()
7344{
7345 $ECHO ""
7346}
7347
7348case "$ECHO" in
7349 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7350$as_echo "printf" >&6; } ;;
7351 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7352$as_echo "print -r" >&6; } ;;
7353 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7354$as_echo "cat" >&6; } ;;
7355esac
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
cristy73bd4a52010-10-05 11:24:23 +00007370
7371
7372# Check whether --with-gnu-ld was given.
7373if test "${with_gnu_ld+set}" = set; then :
7374 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7375else
7376 with_gnu_ld=no
7377fi
7378
7379ac_prog=ld
7380if test "$GCC" = yes; then
7381 # Check if gcc -print-prog-name=ld gives a path.
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7383$as_echo_n "checking for ld used by $CC... " >&6; }
7384 case $host in
7385 *-*-mingw*)
7386 # gcc leaves a trailing carriage return which upsets mingw
7387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7388 *)
7389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7390 esac
7391 case $ac_prog in
7392 # Accept absolute paths.
7393 [\\/]* | ?:[\\/]*)
7394 re_direlt='/[^/][^/]*/\.\./'
7395 # Canonicalize the pathname of ld
7396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7399 done
7400 test -z "$LD" && LD="$ac_prog"
7401 ;;
7402 "")
7403 # If it fails, then pretend we aren't using GCC.
7404 ac_prog=ld
7405 ;;
7406 *)
7407 # If it is relative, then search for the first ld in PATH.
7408 with_gnu_ld=unknown
7409 ;;
7410 esac
7411elif test "$with_gnu_ld" = yes; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7413$as_echo_n "checking for GNU ld... " >&6; }
7414else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7416$as_echo_n "checking for non-GNU ld... " >&6; }
7417fi
cristyda16f162011-02-19 23:52:17 +00007418if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007419 $as_echo_n "(cached) " >&6
7420else
7421 if test -z "$LD"; then
7422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423 for ac_dir in $PATH; do
7424 IFS="$lt_save_ifs"
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7427 lt_cv_path_LD="$ac_dir/$ac_prog"
7428 # Check to see if the program is GNU ld. I'd rather use --version,
7429 # but apparently some variants of GNU ld only accept -v.
7430 # Break only if it was the GNU/non-GNU ld that we prefer.
7431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7432 *GNU* | *'with BFD'*)
7433 test "$with_gnu_ld" != no && break
7434 ;;
7435 *)
7436 test "$with_gnu_ld" != yes && break
7437 ;;
7438 esac
7439 fi
7440 done
7441 IFS="$lt_save_ifs"
7442else
7443 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7444fi
7445fi
7446
7447LD="$lt_cv_path_LD"
7448if test -n "$LD"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7450$as_echo "$LD" >&6; }
7451else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
cristy98dddb52010-11-04 00:30:15 +00007455test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7457$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007458if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007459 $as_echo_n "(cached) " >&6
7460else
7461 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7462case `$LD -v 2>&1 </dev/null` in
7463*GNU* | *'with BFD'*)
7464 lt_cv_prog_gnu_ld=yes
7465 ;;
7466*)
7467 lt_cv_prog_gnu_ld=no
7468 ;;
7469esac
7470fi
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7472$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7473with_gnu_ld=$lt_cv_prog_gnu_ld
7474
7475
7476
7477
7478
7479
7480
7481
7482
cristy3ed852e2009-09-05 21:47:34 +00007483
cristy837d6dc2010-02-27 01:16:57 +00007484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7485$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007486if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007487 $as_echo_n "(cached) " >&6
7488else
7489 ac_cv_prog_cc_c99=no
7490ac_save_CC=$CC
7491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h. */
7493#include <stdarg.h>
7494#include <stdbool.h>
7495#include <stdlib.h>
7496#include <wchar.h>
7497#include <stdio.h>
7498
7499// Check varargs macros. These examples are taken from C99 6.10.3.5.
7500#define debug(...) fprintf (stderr, __VA_ARGS__)
7501#define showlist(...) puts (#__VA_ARGS__)
7502#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7503static void
7504test_varargs_macros (void)
7505{
7506 int x = 1234;
7507 int y = 5678;
7508 debug ("Flag");
7509 debug ("X = %d\n", x);
7510 showlist (The first, second, and third items.);
7511 report (x>y, "x is %d but y is %d", x, y);
7512}
7513
7514// Check long long types.
7515#define BIG64 18446744073709551615ull
7516#define BIG32 4294967295ul
7517#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7518#if !BIG_OK
7519 your preprocessor is broken;
7520#endif
7521#if BIG_OK
7522#else
7523 your preprocessor is broken;
7524#endif
7525static long long int bignum = -9223372036854775807LL;
7526static unsigned long long int ubignum = BIG64;
7527
7528struct incomplete_array
7529{
7530 int datasize;
7531 double data[];
7532};
7533
7534struct named_init {
7535 int number;
7536 const wchar_t *name;
7537 double average;
7538};
7539
7540typedef const char *ccp;
7541
7542static inline int
7543test_restrict (ccp restrict text)
7544{
7545 // See if C++-style comments work.
7546 // Iterate through items via the restricted pointer.
7547 // Also check for declarations in for loops.
7548 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7549 continue;
7550 return 0;
7551}
7552
7553// Check varargs and va_copy.
7554static void
7555test_varargs (const char *format, ...)
7556{
7557 va_list args;
7558 va_start (args, format);
7559 va_list args_copy;
7560 va_copy (args_copy, args);
7561
7562 const char *str;
7563 int number;
7564 float fnumber;
7565
7566 while (*format)
7567 {
7568 switch (*format++)
7569 {
7570 case 's': // string
7571 str = va_arg (args_copy, const char *);
7572 break;
7573 case 'd': // int
7574 number = va_arg (args_copy, int);
7575 break;
7576 case 'f': // float
7577 fnumber = va_arg (args_copy, double);
7578 break;
7579 default:
7580 break;
7581 }
7582 }
7583 va_end (args_copy);
7584 va_end (args);
7585}
7586
7587int
7588main ()
7589{
7590
7591 // Check bool.
7592 _Bool success = false;
7593
7594 // Check restrict.
7595 if (test_restrict ("String literal") == 0)
7596 success = true;
7597 char *restrict newvar = "Another string";
7598
7599 // Check varargs.
7600 test_varargs ("s, d' f .", "string", 65, 34.234);
7601 test_varargs_macros ();
7602
7603 // Check flexible array members.
7604 struct incomplete_array *ia =
7605 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7606 ia->datasize = 10;
7607 for (int i = 0; i < ia->datasize; ++i)
7608 ia->data[i] = i * 1.234;
7609
7610 // Check named initializers.
7611 struct named_init ni = {
7612 .number = 34,
7613 .name = L"Test wide string",
7614 .average = 543.34343,
7615 };
7616
7617 ni.number = 58;
7618
7619 int dynamic_array[ni.number];
7620 dynamic_array[ni.number - 1] = 543;
7621
7622 // work around unused variable warnings
7623 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7624 || dynamic_array[ni.number - 1] != 543);
7625
7626 ;
7627 return 0;
7628}
7629_ACEOF
7630for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7631do
7632 CC="$ac_save_CC $ac_arg"
7633 if ac_fn_c_try_compile "$LINENO"; then :
7634 ac_cv_prog_cc_c99=$ac_arg
7635fi
7636rm -f core conftest.err conftest.$ac_objext
7637 test "x$ac_cv_prog_cc_c99" != "xno" && break
7638done
7639rm -f conftest.$ac_ext
7640CC=$ac_save_CC
7641
7642fi
7643# AC_CACHE_VAL
7644case "x$ac_cv_prog_cc_c99" in
7645 x)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7647$as_echo "none needed" >&6; } ;;
7648 xno)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7650$as_echo "unsupported" >&6; } ;;
7651 *)
7652 CC="$CC $ac_cv_prog_cc_c99"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7654$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7655esac
7656if test "x$ac_cv_prog_cc_c99" != xno; then :
7657
7658fi
7659
7660
cristy73bd4a52010-10-05 11:24:23 +00007661if test "x$CC" != xcc; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7663$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7664else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7666$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7667fi
7668set dummy $CC; ac_cc=`$as_echo "$2" |
7669 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007670if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007671 $as_echo_n "(cached) " >&6
7672else
cristy73bd4a52010-10-05 11:24:23 +00007673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h. */
7675
7676int
7677main ()
7678{
7679
7680 ;
7681 return 0;
7682}
7683_ACEOF
7684# Make sure it works both with $CC and with simple cc.
7685# We do the test twice because some compilers refuse to overwrite an
7686# existing .o file with -o, though they will create one.
7687ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7688rm -f conftest2.*
7689if { { case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692esac
7693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7694$as_echo "$ac_try_echo"; } >&5
7695 (eval "$ac_try") 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; } &&
7699 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702esac
7703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704$as_echo "$ac_try_echo"; } >&5
7705 (eval "$ac_try") 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; };
7709then
7710 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7711 if test "x$CC" != xcc; then
7712 # Test first that cc exists at all.
7713 if { ac_try='cc -c conftest.$ac_ext >&5'
7714 { { case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717esac
7718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7719$as_echo "$ac_try_echo"; } >&5
7720 (eval "$ac_try") 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; }; then
7724 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7725 rm -f conftest2.*
7726 if { { case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729esac
7730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7731$as_echo "$ac_try_echo"; } >&5
7732 (eval "$ac_try") 2>&5
7733 ac_status=$?
7734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; } &&
7736 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739esac
7740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741$as_echo "$ac_try_echo"; } >&5
7742 (eval "$ac_try") 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; };
7746 then
7747 # cc works too.
7748 :
7749 else
7750 # cc exists but doesn't like -o.
7751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7752 fi
7753 fi
7754 fi
7755else
7756 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7757fi
7758rm -f core conftest*
7759
7760fi
7761if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7763$as_echo "yes" >&6; }
7764else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767
7768$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7769
7770fi
7771
7772# FIXME: we rely on the cache variable name because
7773# there is no other way.
7774set dummy $CC
7775am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7776eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7777if test "$am_t" != yes; then
7778 # Losing compiler, so override with the script.
7779 # FIXME: It is wrong to rewrite CC.
7780 # But if we don't then we get into trouble of one sort or another.
7781 # A longer-term fix would be to have automake use am__CC in this case,
7782 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7783 CC="$am_aux_dir/compile $CC"
7784fi
7785
7786
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7788$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007789if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007790 $as_echo_n "(cached) " >&6
7791else
7792 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007793 ac_ext=c
7794ac_cpp='$CPP $CPPFLAGS'
7795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799 ac_save_CFLAGS="$CFLAGS"
7800for 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" #
7801do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h. */
7804
7805int
7806main ()
7807{
cristy24fc1fe2010-10-23 21:13:01 +00007808
cristy73bd4a52010-10-05 11:24:23 +00007809 ;
7810 return 0;
7811}
7812_ACEOF
7813if ac_fn_c_try_compile "$LINENO"; then :
7814 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7815fi
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817done
7818 CFLAGS="$ac_save_CFLAGS"
7819 ac_ext=c
7820ac_cpp='$CPP $CPPFLAGS'
7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7828$as_echo "$ac_cv_cflags_warn_all" >&6; }
7829case ".$ac_cv_cflags_warn_all" in
7830 .ok|.ok,*) ;;
7831 .|.no|.no,*)
7832 ;;
7833 *)
7834 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7835 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7836 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7837 ac_status=$?
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }
7840 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7841 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }
7845 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7846 fi
7847 ;;
nicolas6237c462010-10-05 06:11:49 +00007848esac
cristy3ed852e2009-09-05 21:47:34 +00007849
cristya0b81c32010-01-22 02:54:33 +00007850
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7852$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7853set x ${MAKE-make}
7854ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007855if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007856 $as_echo_n "(cached) " >&6
7857else
7858 cat >conftest.make <<\_ACEOF
7859SHELL = /bin/sh
7860all:
7861 @echo '@@@%%%=$(MAKE)=@@@%%%'
7862_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007863# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007864case `${MAKE-make} -f conftest.make 2>/dev/null` in
7865 *@@@%%%=?*=@@@%%%*)
7866 eval ac_cv_prog_make_${ac_make}_set=yes;;
7867 *)
7868 eval ac_cv_prog_make_${ac_make}_set=no;;
7869esac
7870rm -f conftest.make
7871fi
7872if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7874$as_echo "yes" >&6; }
7875 SET_MAKE=
7876else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879 SET_MAKE="MAKE=${MAKE-make}"
7880fi
7881
cristy8b350f62009-11-15 23:12:43 +00007882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007883$as_echo_n "checking whether ln -s works... " >&6; }
7884LN_S=$as_ln_s
7885if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007887$as_echo "yes" >&6; }
7888else
cristy8b350f62009-11-15 23:12:43 +00007889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007890$as_echo "no, using $LN_S" >&6; }
7891fi
7892
cristy73bd4a52010-10-05 11:24:23 +00007893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7894$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7895
7896# Check whether --with-dmalloc was given.
7897if test "${with_dmalloc+set}" = set; then :
7898 withval=$with_dmalloc; if test "$withval" = yes; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900$as_echo "yes" >&6; }
7901
7902$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7903
7904 LIBS="$LIBS -ldmalloc"
7905 LDFLAGS="$LDFLAGS -g"
7906else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912$as_echo "no" >&6; }
7913fi
7914
7915
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7918$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007919if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007920 $as_echo_n "(cached) " >&6
7921else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h. */
7924#include <stdlib.h>
7925 static void foo(void) __attribute__ ((unused));
7926 static void
7927 foo(void) {
7928 exit(1);
7929 }
7930
7931int
7932main ()
7933{
7934
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"; then :
7940 ax_cv___attribute__=yes
7941else
7942 ax_cv___attribute__=no
7943
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7949$as_echo "$ax_cv___attribute__" >&6; }
7950 if test "$ax_cv___attribute__" = "yes"; then
7951
7952$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7953
7954 fi
7955
7956
7957
7958if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7961set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007964if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007965 $as_echo_n "(cached) " >&6
7966else
7967 case $PKG_CONFIG in
7968 [\\/]* | ?:[\\/]*)
7969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7970 ;;
7971 *)
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983done
7984 done
7985IFS=$as_save_IFS
7986
7987 ;;
7988esac
7989fi
7990PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7991if test -n "$PKG_CONFIG"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7993$as_echo "$PKG_CONFIG" >&6; }
7994else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999
8000fi
8001if test -z "$ac_cv_path_PKG_CONFIG"; then
8002 ac_pt_PKG_CONFIG=$PKG_CONFIG
8003 # Extract the first word of "pkg-config", so it can be a program name with args.
8004set dummy pkg-config; ac_word=$2
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008007if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008008 $as_echo_n "(cached) " >&6
8009else
8010 case $ac_pt_PKG_CONFIG in
8011 [\\/]* | ?:[\\/]*)
8012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8013 ;;
8014 *)
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016for as_dir in $PATH
8017do
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026done
8027 done
8028IFS=$as_save_IFS
8029
8030 ;;
8031esac
8032fi
8033ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8034if test -n "$ac_pt_PKG_CONFIG"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8036$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8037else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040fi
8041
8042 if test "x$ac_pt_PKG_CONFIG" = x; then
8043 PKG_CONFIG=""
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046yes:)
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049ac_tool_warned=yes ;;
8050esac
8051 PKG_CONFIG=$ac_pt_PKG_CONFIG
8052 fi
8053else
8054 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8055fi
8056
8057fi
8058if test -n "$PKG_CONFIG"; then
8059 _pkg_min_version=0.9.0
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8061$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8062 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064$as_echo "yes" >&6; }
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067$as_echo "no" >&6; }
8068 PKG_CONFIG=""
8069 fi
8070
8071fi
cristy3ed852e2009-09-05 21:47:34 +00008072
8073#
cristy3ed852e2009-09-05 21:47:34 +00008074# Enable run-time checking.
8075#
8076# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008077if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008078 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8079else
8080 enable_bounds_checking='no'
8081fi
8082
8083
8084if test "$enable_bounds_checking" = yes; then
8085
cristy8b350f62009-11-15 23:12:43 +00008086$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008087
8088fi
8089
8090#
8091# Tests for Windows
8092#
8093
8094
cristy73bd4a52010-10-05 11:24:23 +00008095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8096$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008097if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008098 $as_echo_n "(cached) " >&6
8099else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h. */
8102
8103int
8104main ()
8105{
8106#ifndef _MSC_VER
8107 choke me
8108#endif
8109
8110 ;
8111 return 0;
8112}
8113_ACEOF
8114if ac_fn_c_try_compile "$LINENO"; then :
8115 ax_compiler_ms=yes
8116else
8117 ax_compiler_ms=no
8118fi
8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120ax_cv_c_compiler_ms=$ax_compiler_ms
8121
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8124$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008125
8126GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008127native_win32_build='no'
8128cygwin_build='no'
8129case "${host_os}" in
8130 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008131 cygwin_build='yes'
8132 GDI32_LIBS='-lgdi32'
8133 ;;
8134 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008135 native_win32_build='yes'
8136 GDI32_LIBS='-lgdi32'
8137 ;;
8138esac
8139if test "${GDI32_LIBS}x" != 'x'; then
8140
cristy8b350f62009-11-15 23:12:43 +00008141$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008142
8143fi
8144
cristy73bd4a52010-10-05 11:24:23 +00008145 if test "${GDI32_LIBS}x" != 'x' ; then
8146 WINGDI32_DELEGATE_TRUE=
8147 WINGDI32_DELEGATE_FALSE='#'
8148else
8149 WINGDI32_DELEGATE_TRUE='#'
8150 WINGDI32_DELEGATE_FALSE=
8151fi
8152
8153 if test "${native_win32_build}" = 'yes' ; then
8154 WIN32_NATIVE_BUILD_TRUE=
8155 WIN32_NATIVE_BUILD_FALSE='#'
8156else
8157 WIN32_NATIVE_BUILD_TRUE='#'
8158 WIN32_NATIVE_BUILD_FALSE=
8159fi
8160
8161 if test "${cygwin_build}" = 'yes' ; then
8162 CYGWIN_BUILD_TRUE=
8163 CYGWIN_BUILD_FALSE='#'
8164else
8165 CYGWIN_BUILD_TRUE='#'
8166 CYGWIN_BUILD_FALSE=
8167fi
8168
8169 if test "x${CC}" = 'xcl.exe' ; then
8170 USING_CL_TRUE=
8171 USING_CL_FALSE='#'
8172else
8173 USING_CL_TRUE='#'
8174 USING_CL_FALSE=
8175fi
8176
cristy3ed852e2009-09-05 21:47:34 +00008177
8178WinPathScript="${srcdirfull}/winpath.sh"
8179
8180
8181#
8182# Compiler flags tweaks
8183#
8184if test "${GCC}" != "yes"; then
8185 case "${host}" in
8186 *-*-hpux* )
8187 # aCC: HP ANSI C++ B3910B A.03.34
8188 CFLAGS="${CFLAGS} -Wp,-H30000"
8189 if test -n "${CXXFLAGS}"; then
8190 CXXFLAGS='-AA'
8191 else
8192 CXXFLAGS="${CXXFLAGS} -AA"
8193 fi
8194 ;;
8195 *-dec-osf5.* )
8196 # Compaq alphaev68-dec-osf5.1 compiler
8197 if test -n "${CXXFLAGS}"; then
8198 CXXFLAGS='-std strict_ansi -noimplicit_include'
8199 else
8200 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8201 fi
8202 esac
8203fi
8204
8205# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008207$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008208if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008209 $as_echo_n "(cached) " >&6
8210else
8211
8212im_cv_ld_lazyload='none'
8213case "${host}" in
8214 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8215 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8216 im_cv_ld_lazyload='-Wl,-zlazyload'
8217 fi
8218 ;;
8219esac
8220
8221fi
cristy8b350f62009-11-15 23:12:43 +00008222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008223$as_echo "$im_cv_ld_lazyload" >&6; }
8224if test "${im_cv_ld_lazyload}" != 'none' ; then
8225 if test -z "${LDFLAGS}" ; then
8226 LDFLAGS="${im_cv_ld_lazyload}"
8227 else
8228 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8229 fi
8230fi
8231
8232case "$host" in
8233*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008234 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008235if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008236 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8237else
8238 build_osxuniversal=no
8239fi
8240
8241
8242 if test "${build_osxuniversal}" != no ; then
8243 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008244 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008245Please re-run configure with these options:
8246 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008247 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008248 fi
8249 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8250 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8251 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8252 fi
8253 ;;
8254esac
8255
cristy0151ae12011-10-28 16:32:29 +00008256#
8257# ARCH specific include directory
8258#
8259
8260# Check whether --with-includedir-arch was given.
8261if test "${with_includedir_arch+set}" = set; then :
8262 withval=$with_includedir_arch; includedir_arch=$withval
8263else
8264 includedir_arch=$INCLUDE_DIR
8265fi
8266
8267
8268
8269cat >>confdefs.h <<_ACEOF
8270#define INCLUDEDIR_ARCH "$includedir_arch"
8271_ACEOF
8272
8273
8274#
8275# ARCH specific configuration directory
8276#
8277
8278# Check whether --with-configdir-arch was given.
8279if test "${with_configdir_arch+set}" = set; then :
8280 withval=$with_configdir_arch; configdir_arch=$withval
8281else
8282 configdir_arch="${LIB_DIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}"
8283fi
8284
8285
8286
8287cat >>confdefs.h <<_ACEOF
8288#define CONFIGDIR_ARCH "$configdir_arch"
8289_ACEOF
8290
8291
8292#
cristy3ed852e2009-09-05 21:47:34 +00008293# Enable support for threads
8294
8295# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008296if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008297 withval=$with_threads; with_threads=$withval
8298else
8299 with_threads='yes'
8300fi
8301
8302
8303have_threads=no
8304if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008305
8306
cristy73bd4a52010-10-05 11:24:23 +00008307ac_ext=c
8308ac_cpp='$CPP $CPPFLAGS'
8309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312
8313ax_pthread_ok=no
8314
8315# We used to check for pthread.h first, but this fails if pthread.h
8316# requires special compiler flags (e.g. on True64 or Sequent).
8317# It gets checked for in the link test anyway.
8318
8319# First of all, check if the user has set any of the PTHREAD_LIBS,
8320# etcetera environment variables, and if threads linking works using
8321# them:
8322if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8323 save_CFLAGS="$CFLAGS"
8324 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8325 save_LIBS="$LIBS"
8326 LIBS="$PTHREAD_LIBS $LIBS"
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8328$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h. */
8331
8332/* Override any GCC internal prototype to avoid an error.
8333 Use char because int might match the return type of a GCC
8334 builtin and then its argument prototype would still apply. */
8335#ifdef __cplusplus
8336extern "C"
8337#endif
8338char pthread_join ();
8339int
8340main ()
8341{
8342return pthread_join ();
8343 ;
8344 return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348 ax_pthread_ok=yes
8349fi
8350rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8353$as_echo "$ax_pthread_ok" >&6; }
8354 if test x"$ax_pthread_ok" = xno; then
8355 PTHREAD_LIBS=""
8356 PTHREAD_CFLAGS=""
8357 fi
8358 LIBS="$save_LIBS"
8359 CFLAGS="$save_CFLAGS"
8360fi
8361
8362# We must check for the threads library under a number of different
8363# names; the ordering is very important because some systems
8364# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8365# libraries is broken (non-POSIX).
8366
8367# Create a list of thread flags to try. Items starting with a "-" are
8368# C compiler flags, and other items are library names, except for "none"
8369# which indicates that we try without any flags at all, and "pthread-config"
8370# which is a program returning the flags for the Pth emulation library.
8371
8372ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8373
8374# The ordering *is* (sometimes) important. Some notes on the
8375# individual items follow:
8376
8377# pthreads: AIX (must check this before -lpthread)
8378# none: in case threads are in libc; should be tried before -Kthread and
8379# other compiler flags to prevent continual compiler warnings
8380# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8381# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8382# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8383# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8384# -pthreads: Solaris/gcc
8385# -mthreads: Mingw32/gcc, Lynx/gcc
8386# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8387# doesn't hurt to check since this sometimes defines pthreads too;
8388# also defines -D_REENTRANT)
8389# ... -mt is also the pthreads flag for HP/aCC
8390# pthread: Linux, etcetera
8391# --thread-safe: KAI C++
8392# pthread-config: use pthread-config program (for GNU Pth library)
8393
8394case "${host_cpu}-${host_os}" in
8395 *solaris*)
8396
8397 # On Solaris (at least, for some versions), libc contains stubbed
8398 # (non-functional) versions of the pthreads routines, so link-based
8399 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8400 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8401 # a function called by this macro, so we could check for that, but
8402 # who knows whether they'll stub that too in a future libc.) So,
8403 # we'll just look for -pthreads and -lpthread first:
8404
8405 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8406 ;;
8407
cristya316db12011-10-24 00:49:45 +00008408 *-darwin*)
8409 ax_pthread_flags="-pthread $ax_pthread_flags"
8410 ;;
cristy73bd4a52010-10-05 11:24:23 +00008411esac
8412
8413if test x"$ax_pthread_ok" = xno; then
8414for flag in $ax_pthread_flags; do
8415
8416 case $flag in
8417 none)
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8419$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8420 ;;
8421
8422 -*)
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8424$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8425 PTHREAD_CFLAGS="$flag"
8426 ;;
8427
cristya316db12011-10-24 00:49:45 +00008428 pthread-config)
8429 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008430set dummy pthread-config; ac_word=$2
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008433if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008434 $as_echo_n "(cached) " >&6
8435else
8436 if test -n "$ax_pthread_config"; then
8437 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8438else
8439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_prog_ax_pthread_config="yes"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450done
8451 done
8452IFS=$as_save_IFS
8453
8454 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8455fi
8456fi
8457ax_pthread_config=$ac_cv_prog_ax_pthread_config
8458if test -n "$ax_pthread_config"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8460$as_echo "$ax_pthread_config" >&6; }
8461else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463$as_echo "no" >&6; }
8464fi
8465
8466
cristya316db12011-10-24 00:49:45 +00008467 if test x"$ax_pthread_config" = xno; then continue; fi
8468 PTHREAD_CFLAGS="`pthread-config --cflags`"
8469 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8470 ;;
cristy73bd4a52010-10-05 11:24:23 +00008471
8472 *)
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8474$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8475 PTHREAD_LIBS="-l$flag"
8476 ;;
8477 esac
8478
8479 save_LIBS="$LIBS"
8480 save_CFLAGS="$CFLAGS"
8481 LIBS="$PTHREAD_LIBS $LIBS"
8482 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8483
8484 # Check for various functions. We must include pthread.h,
8485 # since some functions may be macros. (On the Sequent, we
8486 # need a special flag -Kthread to make this header compile.)
8487 # We check for pthread_join because it is in -lpthread on IRIX
8488 # while pthread_create is in libc. We check for pthread_attr_init
8489 # due to DEC craziness with -lpthreads. We check for
8490 # pthread_cleanup_push because it is one of the few pthread
8491 # functions on Solaris that doesn't have a non-functional libc stub.
8492 # We try pthread_create on general principles.
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h. */
8495#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008496 static void routine(void *a) { a = 0; }
8497 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008498int
8499main ()
8500{
8501pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008502 pthread_create(&th, 0, start_routine, 0);
8503 pthread_join(th, 0);
8504 pthread_attr_init(&attr);
8505 pthread_cleanup_push(routine, 0);
8506 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008507 ;
8508 return 0;
8509}
8510_ACEOF
8511if ac_fn_c_try_link "$LINENO"; then :
8512 ax_pthread_ok=yes
8513fi
8514rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8516
8517 LIBS="$save_LIBS"
8518 CFLAGS="$save_CFLAGS"
8519
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8521$as_echo "$ax_pthread_ok" >&6; }
8522 if test "x$ax_pthread_ok" = xyes; then
8523 break;
8524 fi
8525
8526 PTHREAD_LIBS=""
8527 PTHREAD_CFLAGS=""
8528done
8529fi
8530
8531# Various other checks:
8532if test "x$ax_pthread_ok" = xyes; then
8533 save_LIBS="$LIBS"
8534 LIBS="$PTHREAD_LIBS $LIBS"
8535 save_CFLAGS="$CFLAGS"
8536 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8537
8538 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008540$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008541 attr_name=unknown
8542 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008544/* end confdefs.h. */
8545#include <pthread.h>
8546int
8547main ()
8548{
cristya316db12011-10-24 00:49:45 +00008549int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008550 ;
8551 return 0;
8552}
8553_ACEOF
8554if ac_fn_c_try_link "$LINENO"; then :
8555 attr_name=$attr; break
8556fi
8557rm -f core conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008559 done
cristy73bd4a52010-10-05 11:24:23 +00008560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8561$as_echo "$attr_name" >&6; }
8562 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8563
8564cat >>confdefs.h <<_ACEOF
8565#define PTHREAD_CREATE_JOINABLE $attr_name
8566_ACEOF
8567
8568 fi
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8571$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8572 flag=no
8573 case "${host_cpu}-${host_os}" in
8574 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8575 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8576 esac
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8578$as_echo "${flag}" >&6; }
8579 if test "x$flag" != xno; then
8580 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8581 fi
8582
cristya316db12011-10-24 00:49:45 +00008583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8584$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8585if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587else
8588
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590/* end confdefs.h. */
8591
8592 #include <pthread.h>
8593int
8594main ()
8595{
8596int i = PTHREAD_PRIO_INHERIT;
8597 ;
8598 return 0;
8599}
8600_ACEOF
8601if ac_fn_c_try_link "$LINENO"; then :
8602 ax_cv_PTHREAD_PRIO_INHERIT=yes
8603else
8604 ax_cv_PTHREAD_PRIO_INHERIT=no
8605fi
8606rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608
8609fi
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8611$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8612 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8613
8614$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8615
8616fi
8617
cristy73bd4a52010-10-05 11:24:23 +00008618 LIBS="$save_LIBS"
8619 CFLAGS="$save_CFLAGS"
8620
8621 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008622 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008623 for ac_prog in xlc_r cc_r
8624do
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626set dummy $ac_prog; ac_word=$2
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008629if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008630 $as_echo_n "(cached) " >&6
8631else
8632 if test -n "$PTHREAD_CC"; then
8633 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_prog_PTHREAD_CC="$ac_prog"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646done
8647 done
8648IFS=$as_save_IFS
8649
8650fi
8651fi
8652PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8653if test -n "$PTHREAD_CC"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8655$as_echo "$PTHREAD_CC" >&6; }
8656else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
8659fi
8660
8661
8662 test -n "$PTHREAD_CC" && break
8663done
8664test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8665
8666 else
8667 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008668 fi
cristy73bd4a52010-10-05 11:24:23 +00008669else
8670 PTHREAD_CC="$CC"
8671fi
8672
8673
8674
8675
8676
8677# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8678if test x"$ax_pthread_ok" = xyes; then
8679
8680$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8681
8682 :
8683else
8684 ax_pthread_ok=no
8685
8686fi
8687ac_ext=c
8688ac_cpp='$CPP $CPPFLAGS'
8689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692
8693
cristy7acf8fb2010-09-23 19:58:53 +00008694 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008695 have_threads=yes
8696 DEF_THREAD="$PTHREAD_CFLAGS"
8697 CFLAGS="$CFLAGS $DEF_THREAD"
8698 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8699 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008700 { $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 +00008701$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8702 CC="$PTHREAD_CC"
8703 fi
cristy55bf91c2010-09-24 00:29:41 +00008704
8705$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8706
cristy3ed852e2009-09-05 21:47:34 +00008707 fi
8708fi
8709
8710# Enable support for OpenMP
8711if test "$have_threads" != 'yes'; then
8712 ac_cv_prog_c_openmp=unsupported
8713fi
8714
8715 OPENMP_CFLAGS=
8716 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008717if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008718 enableval=$enable_openmp;
8719fi
8720
8721 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008723$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008724if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008725 $as_echo_n "(cached) " >&6
8726else
cristy8b350f62009-11-15 23:12:43 +00008727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008729
8730#ifndef _OPENMP
8731 choke me
8732#endif
8733#include <omp.h>
8734int main () { return omp_get_num_threads (); }
8735
8736_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008737if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008738 ac_cv_prog_c_openmp='none needed'
8739else
cristy8b350f62009-11-15 23:12:43 +00008740 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008741 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8742 ac_save_CFLAGS=$CFLAGS
8743 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008746
8747#ifndef _OPENMP
8748 choke me
8749#endif
8750#include <omp.h>
8751int main () { return omp_get_num_threads (); }
8752
8753_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008754if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008755 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008756fi
cristy8b350f62009-11-15 23:12:43 +00008757rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008759 CFLAGS=$ac_save_CFLAGS
8760 if test "$ac_cv_prog_c_openmp" != unsupported; then
8761 break
8762 fi
8763 done
8764fi
cristy8b350f62009-11-15 23:12:43 +00008765rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008767fi
cristy8b350f62009-11-15 23:12:43 +00008768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008769$as_echo "$ac_cv_prog_c_openmp" >&6; }
8770 case $ac_cv_prog_c_openmp in #(
8771 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008772 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008773 *)
cristy8b350f62009-11-15 23:12:43 +00008774 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008775 esac
8776 fi
8777
8778
8779CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8780MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8781
cristy391f1ce2010-09-09 17:23:28 +00008782if test "$enable_openmp" != no; then
8783 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8784 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8785 fi
8786fi
cristy3ed852e2009-09-05 21:47:34 +00008787
cristy736173a2009-09-20 21:18:22 +00008788# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008789
8790
cristy73bd4a52010-10-05 11:24:23 +00008791ac_ext=c
8792ac_cpp='$CPP $CPPFLAGS'
8793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8795ac_compiler_gnu=$ac_cv_c_compiler_gnu
8796
8797ax_pthread_ok=no
8798
8799# We used to check for pthread.h first, but this fails if pthread.h
8800# requires special compiler flags (e.g. on True64 or Sequent).
8801# It gets checked for in the link test anyway.
8802
8803# First of all, check if the user has set any of the PTHREAD_LIBS,
8804# etcetera environment variables, and if threads linking works using
8805# them:
8806if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8807 save_CFLAGS="$CFLAGS"
8808 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8809 save_LIBS="$LIBS"
8810 LIBS="$PTHREAD_LIBS $LIBS"
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8812$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h. */
8815
8816/* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
8819#ifdef __cplusplus
8820extern "C"
8821#endif
8822char pthread_join ();
8823int
8824main ()
8825{
8826return pthread_join ();
8827 ;
8828 return 0;
8829}
8830_ACEOF
8831if ac_fn_c_try_link "$LINENO"; then :
8832 ax_pthread_ok=yes
8833fi
8834rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8837$as_echo "$ax_pthread_ok" >&6; }
8838 if test x"$ax_pthread_ok" = xno; then
8839 PTHREAD_LIBS=""
8840 PTHREAD_CFLAGS=""
8841 fi
8842 LIBS="$save_LIBS"
8843 CFLAGS="$save_CFLAGS"
8844fi
8845
8846# We must check for the threads library under a number of different
8847# names; the ordering is very important because some systems
8848# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8849# libraries is broken (non-POSIX).
8850
8851# Create a list of thread flags to try. Items starting with a "-" are
8852# C compiler flags, and other items are library names, except for "none"
8853# which indicates that we try without any flags at all, and "pthread-config"
8854# which is a program returning the flags for the Pth emulation library.
8855
8856ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8857
8858# The ordering *is* (sometimes) important. Some notes on the
8859# individual items follow:
8860
8861# pthreads: AIX (must check this before -lpthread)
8862# none: in case threads are in libc; should be tried before -Kthread and
8863# other compiler flags to prevent continual compiler warnings
8864# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8865# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8866# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8867# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8868# -pthreads: Solaris/gcc
8869# -mthreads: Mingw32/gcc, Lynx/gcc
8870# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8871# doesn't hurt to check since this sometimes defines pthreads too;
8872# also defines -D_REENTRANT)
8873# ... -mt is also the pthreads flag for HP/aCC
8874# pthread: Linux, etcetera
8875# --thread-safe: KAI C++
8876# pthread-config: use pthread-config program (for GNU Pth library)
8877
8878case "${host_cpu}-${host_os}" in
8879 *solaris*)
8880
8881 # On Solaris (at least, for some versions), libc contains stubbed
8882 # (non-functional) versions of the pthreads routines, so link-based
8883 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8884 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8885 # a function called by this macro, so we could check for that, but
8886 # who knows whether they'll stub that too in a future libc.) So,
8887 # we'll just look for -pthreads and -lpthread first:
8888
8889 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8890 ;;
8891
cristya316db12011-10-24 00:49:45 +00008892 *-darwin*)
8893 ax_pthread_flags="-pthread $ax_pthread_flags"
8894 ;;
cristy73bd4a52010-10-05 11:24:23 +00008895esac
8896
8897if test x"$ax_pthread_ok" = xno; then
8898for flag in $ax_pthread_flags; do
8899
8900 case $flag in
8901 none)
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8903$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8904 ;;
8905
8906 -*)
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8908$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8909 PTHREAD_CFLAGS="$flag"
8910 ;;
8911
cristya316db12011-10-24 00:49:45 +00008912 pthread-config)
8913 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008914set dummy pthread-config; ac_word=$2
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008917if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008918 $as_echo_n "(cached) " >&6
8919else
8920 if test -n "$ax_pthread_config"; then
8921 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8922else
8923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $PATH
8925do
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_prog_ax_pthread_config="yes"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8933 fi
8934done
8935 done
8936IFS=$as_save_IFS
8937
8938 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8939fi
8940fi
8941ax_pthread_config=$ac_cv_prog_ax_pthread_config
8942if test -n "$ax_pthread_config"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8944$as_echo "$ax_pthread_config" >&6; }
8945else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947$as_echo "no" >&6; }
8948fi
8949
8950
cristya316db12011-10-24 00:49:45 +00008951 if test x"$ax_pthread_config" = xno; then continue; fi
8952 PTHREAD_CFLAGS="`pthread-config --cflags`"
8953 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8954 ;;
cristy73bd4a52010-10-05 11:24:23 +00008955
8956 *)
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8958$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8959 PTHREAD_LIBS="-l$flag"
8960 ;;
8961 esac
8962
8963 save_LIBS="$LIBS"
8964 save_CFLAGS="$CFLAGS"
8965 LIBS="$PTHREAD_LIBS $LIBS"
8966 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8967
8968 # Check for various functions. We must include pthread.h,
8969 # since some functions may be macros. (On the Sequent, we
8970 # need a special flag -Kthread to make this header compile.)
8971 # We check for pthread_join because it is in -lpthread on IRIX
8972 # while pthread_create is in libc. We check for pthread_attr_init
8973 # due to DEC craziness with -lpthreads. We check for
8974 # pthread_cleanup_push because it is one of the few pthread
8975 # functions on Solaris that doesn't have a non-functional libc stub.
8976 # We try pthread_create on general principles.
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h. */
8979#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008980 static void routine(void *a) { a = 0; }
8981 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008982int
8983main ()
8984{
8985pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008986 pthread_create(&th, 0, start_routine, 0);
8987 pthread_join(th, 0);
8988 pthread_attr_init(&attr);
8989 pthread_cleanup_push(routine, 0);
8990 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008991 ;
8992 return 0;
8993}
8994_ACEOF
8995if ac_fn_c_try_link "$LINENO"; then :
8996 ax_pthread_ok=yes
8997fi
8998rm -f core conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000
9001 LIBS="$save_LIBS"
9002 CFLAGS="$save_CFLAGS"
9003
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9005$as_echo "$ax_pthread_ok" >&6; }
9006 if test "x$ax_pthread_ok" = xyes; then
9007 break;
9008 fi
9009
9010 PTHREAD_LIBS=""
9011 PTHREAD_CFLAGS=""
9012done
9013fi
9014
9015# Various other checks:
9016if test "x$ax_pthread_ok" = xyes; then
9017 save_LIBS="$LIBS"
9018 LIBS="$PTHREAD_LIBS $LIBS"
9019 save_CFLAGS="$CFLAGS"
9020 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9021
9022 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009024$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009025 attr_name=unknown
9026 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009028/* end confdefs.h. */
9029#include <pthread.h>
9030int
9031main ()
9032{
cristya316db12011-10-24 00:49:45 +00009033int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009034 ;
9035 return 0;
9036}
9037_ACEOF
9038if ac_fn_c_try_link "$LINENO"; then :
9039 attr_name=$attr; break
9040fi
9041rm -f core conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009043 done
cristy73bd4a52010-10-05 11:24:23 +00009044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9045$as_echo "$attr_name" >&6; }
9046 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9047
9048cat >>confdefs.h <<_ACEOF
9049#define PTHREAD_CREATE_JOINABLE $attr_name
9050_ACEOF
9051
9052 fi
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9055$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9056 flag=no
9057 case "${host_cpu}-${host_os}" in
9058 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9059 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9060 esac
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9062$as_echo "${flag}" >&6; }
9063 if test "x$flag" != xno; then
9064 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9065 fi
9066
cristya316db12011-10-24 00:49:45 +00009067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9068$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9069if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071else
9072
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h. */
9075
9076 #include <pthread.h>
9077int
9078main ()
9079{
9080int i = PTHREAD_PRIO_INHERIT;
9081 ;
9082 return 0;
9083}
9084_ACEOF
9085if ac_fn_c_try_link "$LINENO"; then :
9086 ax_cv_PTHREAD_PRIO_INHERIT=yes
9087else
9088 ax_cv_PTHREAD_PRIO_INHERIT=no
9089fi
9090rm -f core conftest.err conftest.$ac_objext \
9091 conftest$ac_exeext conftest.$ac_ext
9092
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9095$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9096 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9097
9098$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9099
9100fi
9101
cristy73bd4a52010-10-05 11:24:23 +00009102 LIBS="$save_LIBS"
9103 CFLAGS="$save_CFLAGS"
9104
9105 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009106 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009107 for ac_prog in xlc_r cc_r
9108do
9109 # Extract the first word of "$ac_prog", so it can be a program name with args.
9110set dummy $ac_prog; ac_word=$2
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009113if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009114 $as_echo_n "(cached) " >&6
9115else
9116 if test -n "$PTHREAD_CC"; then
9117 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9118else
9119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120for as_dir in $PATH
9121do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_prog_PTHREAD_CC="$ac_prog"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130done
9131 done
9132IFS=$as_save_IFS
9133
9134fi
9135fi
9136PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9137if test -n "$PTHREAD_CC"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9139$as_echo "$PTHREAD_CC" >&6; }
9140else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
9143fi
9144
9145
9146 test -n "$PTHREAD_CC" && break
9147done
9148test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9149
9150 else
9151 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009152 fi
cristy73bd4a52010-10-05 11:24:23 +00009153else
9154 PTHREAD_CC="$CC"
9155fi
9156
9157
9158
9159
9160
9161# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9162if test x"$ax_pthread_ok" = xyes; then
9163
9164$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9165
9166 :
9167else
9168 ax_pthread_ok=no
9169
9170fi
9171ac_ext=c
9172ac_cpp='$CPP $CPPFLAGS'
9173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9175ac_compiler_gnu=$ac_cv_c_compiler_gnu
9176
9177
9178
9179# Check whether --enable-opencl was given.
9180if test "${enable_opencl+set}" = set; then :
9181 enableval=$enable_opencl; disable_opencl=$enableval
9182else
9183 disable_opencl='yes'
9184fi
9185
9186
9187if test "$disable_opencl" = 'yes'; then
9188 ac_ext=c
9189ac_cpp='$CPP $CPPFLAGS'
9190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9192ac_compiler_gnu=$ac_cv_c_compiler_gnu
9193
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9195$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009196if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009197 $as_echo_n "(cached) " >&6
9198else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h. */
9201
9202int
9203main ()
9204{
9205#ifndef _MSC_VER
9206 choke me
9207#endif
9208
9209 ;
9210 return 0;
9211}
9212_ACEOF
9213if ac_fn_c_try_compile "$LINENO"; then :
9214 ax_compiler_ms=yes
9215else
9216 ax_compiler_ms=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219ax_cv_c_compiler_ms=$ax_compiler_ms
9220
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9223$as_echo "$ax_cv_c_compiler_ms" >&6; }
9224 if test X$ax_compiler_ms = Xno; then :
9225 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9226fi
9227
9228 ax_save_CPPFLAGS=$CPPFLAGS
9229 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9230 for ac_header in CL/cl.h OpenCL/cl.h
9231do :
9232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9233ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009234if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009235 cat >>confdefs.h <<_ACEOF
9236#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9237_ACEOF
9238
9239fi
9240
9241done
9242
9243 CPPFLAGS=$ax_save_CPPFLAGS
9244
9245 for ac_header in windows.h
9246do :
9247 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009248if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009249 cat >>confdefs.h <<_ACEOF
9250#define HAVE_WINDOWS_H 1
9251_ACEOF
9252
9253fi
9254
9255done
9256
9257
9258
9259
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9261$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009262if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009263 $as_echo_n "(cached) " >&6
9264else
9265 ax_cv_check_cl_libcl=no
9266 case $host_cpu in
9267 x86_64) ax_check_cl_libdir=lib64 ;;
9268 *) ax_check_cl_libdir=lib ;;
9269 esac
9270 ax_save_CPPFLAGS=$CPPFLAGS
9271 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9272 ax_save_LIBS=$LIBS
9273 LIBS=""
9274 ax_check_libs="-lOpenCL -lCL -lclparser"
9275 for ax_lib in $ax_check_libs; do
9276 if test X$ax_compiler_ms = Xyes; then :
9277 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9278else
9279 ax_try_lib=$ax_lib
9280fi
9281 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283/* end confdefs.h. */
9284
9285 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9286 # include <windows.h>
9287 # endif
9288 # ifdef HAVE_CL_CL_H
9289 # include <CL/cl.h>
9290 # elif defined(HAVE_OPENCL_CL_H)
9291 # include <OpenCL/cl.h>
9292 # else
9293 # error no CL.h
9294 # endif
9295int
9296main ()
9297{
9298clCreateContextFromType(0,0,0,0,0)
9299 ;
9300 return 0;
9301}
9302_ACEOF
9303if ac_fn_c_try_link "$LINENO"; then :
9304 ax_cv_check_cl_libcl=$ax_try_lib; break
9305else
9306 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"
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h. */
9309
9310 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9311 # include <windows.h>
9312 # endif
9313 # ifdef HAVE_CL_CL_H
9314 # include <CL/cl.h>
9315 # elif defined(HAVE_OPENCL_CL_H)
9316 # include <OpenCL/cl.h>
9317 # else
9318 # error no CL.h
9319 # endif
9320int
9321main ()
9322{
9323clCreateContextFromType(0,0,0,0,0)
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328if ac_fn_c_try_link "$LINENO"; then :
9329 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9330else
cristy78c5a0c2010-12-04 20:00:59 +00009331 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 +00009332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h. */
9334
9335 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9336 # include <windows.h>
9337 # endif
9338 # ifdef HAVE_CL_CL_H
9339 # include <CL/cl.h>
9340 # elif defined(HAVE_OPENCL_CL_H)
9341 # include <OpenCL/cl.h>
9342 # else
9343 # error no CL.h
9344 # endif
9345int
9346main ()
9347{
9348clCreateContextFromType(0,0,0,0,0)
9349 ;
9350 return 0;
9351}
9352_ACEOF
9353if ac_fn_c_try_link "$LINENO"; then :
9354 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9355fi
9356rm -f core conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358fi
9359rm -f core conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361fi
9362rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 done
9365
9366 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009367 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h. */
9370
9371 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9372 # include <windows.h>
9373 # endif
9374 # ifdef HAVE_CL_CL_H
9375 # include <CL/cl.h>
9376 # elif defined(HAVE_OPENCL_CL_H)
9377 # include <OpenCL/cl.h>
9378 # else
9379 # error no CL.h
9380 # endif
9381int
9382main ()
9383{
9384clCreateContextFromType(0,0,0,0,0)
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389if ac_fn_c_try_link "$LINENO"; then :
9390 ax_cv_check_cl_libcl=$LIBS
9391fi
9392rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394fi
9395
9396 LIBS=$ax_save_LIBS
9397 CPPFLAGS=$ax_save_CPPFLAGS
9398fi
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9400$as_echo "$ax_cv_check_cl_libcl" >&6; }
9401
9402 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9403 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9404else
9405 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9406$as_echo "#define _OPENCL 1" >>confdefs.h
9407
9408fi
9409 ac_ext=c
9410ac_cpp='$CPP $CPPFLAGS'
9411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9413ac_compiler_gnu=$ac_cv_c_compiler_gnu
9414
9415fi
9416
9417
9418
9419
cristyc7083c12009-10-14 03:16:55 +00009420CFLAGS="$CL_CFLAGS $CFLAGS"
9421LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009422
cristy391f1ce2010-09-09 17:23:28 +00009423if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009424 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009425 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9426 fi
cristyfd9dcd42010-08-08 18:07:02 +00009427fi
cristy2e8b51d2009-10-17 18:26:15 +00009428
cristy3ed852e2009-09-05 21:47:34 +00009429########
9430#
9431# Check for large file support
9432#
9433########
9434# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009435if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009436 enableval=$enable_largefile;
9437fi
9438
9439if test "$enable_largefile" != no; then
9440
cristy8b350f62009-11-15 23:12:43 +00009441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009442$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009443if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009444 $as_echo_n "(cached) " >&6
9445else
9446 ac_cv_sys_largefile_CC=no
9447 if test "$GCC" != yes; then
9448 ac_save_CC=$CC
9449 while :; do
9450 # IRIX 6.2 and later do not support large files by default,
9451 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009453/* end confdefs.h. */
9454#include <sys/types.h>
9455 /* Check that off_t can represent 2**63 - 1 correctly.
9456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9457 since some C++ compilers masquerading as C compilers
9458 incorrectly reject 9223372036854775807. */
9459#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9461 && LARGE_OFF_T % 2147483647 == 1)
9462 ? 1 : -1];
9463int
9464main ()
9465{
9466
9467 ;
9468 return 0;
9469}
9470_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009471 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009472 break
cristy3ed852e2009-09-05 21:47:34 +00009473fi
cristy3ed852e2009-09-05 21:47:34 +00009474rm -f core conftest.err conftest.$ac_objext
9475 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009476 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009477 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009478fi
cristy3ed852e2009-09-05 21:47:34 +00009479rm -f core conftest.err conftest.$ac_objext
9480 break
9481 done
9482 CC=$ac_save_CC
9483 rm -f conftest.$ac_ext
9484 fi
9485fi
cristy8b350f62009-11-15 23:12:43 +00009486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009487$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9488 if test "$ac_cv_sys_largefile_CC" != no; then
9489 CC=$CC$ac_cv_sys_largefile_CC
9490 fi
9491
cristy8b350f62009-11-15 23:12:43 +00009492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009493$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009494if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009495 $as_echo_n "(cached) " >&6
9496else
9497 while :; do
cristy8b350f62009-11-15 23:12:43 +00009498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009499/* end confdefs.h. */
9500#include <sys/types.h>
9501 /* Check that off_t can represent 2**63 - 1 correctly.
9502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9503 since some C++ compilers masquerading as C compilers
9504 incorrectly reject 9223372036854775807. */
9505#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9507 && LARGE_OFF_T % 2147483647 == 1)
9508 ? 1 : -1];
9509int
9510main ()
9511{
9512
9513 ;
9514 return 0;
9515}
9516_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009517if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009518 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009519fi
cristy3ed852e2009-09-05 21:47:34 +00009520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009522/* end confdefs.h. */
9523#define _FILE_OFFSET_BITS 64
9524#include <sys/types.h>
9525 /* Check that off_t can represent 2**63 - 1 correctly.
9526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9527 since some C++ compilers masquerading as C compilers
9528 incorrectly reject 9223372036854775807. */
9529#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9531 && LARGE_OFF_T % 2147483647 == 1)
9532 ? 1 : -1];
9533int
9534main ()
9535{
9536
9537 ;
9538 return 0;
9539}
9540_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009541if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009542 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009543fi
cristy3ed852e2009-09-05 21:47:34 +00009544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545 ac_cv_sys_file_offset_bits=unknown
9546 break
9547done
9548fi
cristy8b350f62009-11-15 23:12:43 +00009549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009550$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9551case $ac_cv_sys_file_offset_bits in #(
9552 no | unknown) ;;
9553 *)
9554cat >>confdefs.h <<_ACEOF
9555#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9556_ACEOF
9557;;
9558esac
9559rm -rf conftest*
9560 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009562$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009563if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009564 $as_echo_n "(cached) " >&6
9565else
9566 while :; do
cristy8b350f62009-11-15 23:12:43 +00009567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009568/* end confdefs.h. */
9569#include <sys/types.h>
9570 /* Check that off_t can represent 2**63 - 1 correctly.
9571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9572 since some C++ compilers masquerading as C compilers
9573 incorrectly reject 9223372036854775807. */
9574#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9576 && LARGE_OFF_T % 2147483647 == 1)
9577 ? 1 : -1];
9578int
9579main ()
9580{
9581
9582 ;
9583 return 0;
9584}
9585_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009586if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009587 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009588fi
cristy3ed852e2009-09-05 21:47:34 +00009589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009591/* end confdefs.h. */
9592#define _LARGE_FILES 1
9593#include <sys/types.h>
9594 /* Check that off_t can represent 2**63 - 1 correctly.
9595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9596 since some C++ compilers masquerading as C compilers
9597 incorrectly reject 9223372036854775807. */
9598#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9600 && LARGE_OFF_T % 2147483647 == 1)
9601 ? 1 : -1];
9602int
9603main ()
9604{
9605
9606 ;
9607 return 0;
9608}
9609_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009610if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009611 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009612fi
cristy3ed852e2009-09-05 21:47:34 +00009613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 ac_cv_sys_large_files=unknown
9615 break
9616done
9617fi
cristy8b350f62009-11-15 23:12:43 +00009618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009619$as_echo "$ac_cv_sys_large_files" >&6; }
9620case $ac_cv_sys_large_files in #(
9621 no | unknown) ;;
9622 *)
9623cat >>confdefs.h <<_ACEOF
9624#define _LARGE_FILES $ac_cv_sys_large_files
9625_ACEOF
9626;;
9627esac
9628rm -rf conftest*
9629 fi
9630fi
9631
cristy8b350f62009-11-15 23:12:43 +00009632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009633$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009634if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009635 $as_echo_n "(cached) " >&6
9636else
9637 while :; do
cristy8b350f62009-11-15 23:12:43 +00009638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009639/* end confdefs.h. */
9640#include <sys/types.h> /* for off_t */
9641 #include <stdio.h>
9642int
9643main ()
9644{
9645int (*fp) (FILE *, off_t, int) = fseeko;
9646 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9647 ;
9648 return 0;
9649}
9650_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009651if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009652 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009653fi
cristy8b350f62009-11-15 23:12:43 +00009654rm -f core conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009657/* end confdefs.h. */
9658#define _LARGEFILE_SOURCE 1
9659#include <sys/types.h> /* for off_t */
9660 #include <stdio.h>
9661int
9662main ()
9663{
9664int (*fp) (FILE *, off_t, int) = fseeko;
9665 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9666 ;
9667 return 0;
9668}
9669_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009671 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009672fi
cristy8b350f62009-11-15 23:12:43 +00009673rm -f core conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009675 ac_cv_sys_largefile_source=unknown
9676 break
9677done
9678fi
cristy8b350f62009-11-15 23:12:43 +00009679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009680$as_echo "$ac_cv_sys_largefile_source" >&6; }
9681case $ac_cv_sys_largefile_source in #(
9682 no | unknown) ;;
9683 *)
9684cat >>confdefs.h <<_ACEOF
9685#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9686_ACEOF
9687;;
9688esac
9689rm -rf conftest*
9690
9691# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9692# in glibc 2.1.3, but that breaks too many other things.
9693# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9694if test $ac_cv_sys_largefile_source != unknown; then
9695
cristy8b350f62009-11-15 23:12:43 +00009696$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009697
9698fi
9699
9700LFS_CPPFLAGS=''
9701if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009702 case $ac_cv_sys_file_offset_bits in
9703 no)
9704 # nothing to do here as the host supports LFS fine
9705 ;;
9706 unknown)
cristy8b350f62009-11-15 23:12:43 +00009707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009708$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009709 if test "$cross_compiling" = yes; then :
9710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009712as_fn_error $? "cannot run test program while cross compiling
9713See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009714else
cristy8b350f62009-11-15 23:12:43 +00009715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009717#include <unistd.h>
9718 main () {
9719 exit(!(sizeof(off_t) == 8));
9720 }
cristyda16f162011-02-19 23:52:17 +00009721int
9722main ()
9723{
9724
9725 ;
9726 return 0;
9727}
cristy3ed852e2009-09-05 21:47:34 +00009728_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009729if ac_fn_c_try_run "$LINENO"; then :
9730 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009731
cristy09b53e12011-10-14 12:47:22 +00009732 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9733$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009734else
cristy09b53e12011-10-14 12:47:22 +00009735 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9736$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009737fi
cristy8b350f62009-11-15 23:12:43 +00009738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9739 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009740fi
9741
cristyc1e0cc12011-09-21 16:41:16 +00009742 ;;
9743 *)
9744 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9745 ;;
9746 esac
cristy3ed852e2009-09-05 21:47:34 +00009747 if test "$ac_cv_sys_large_files" != 'no'; then
9748 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9749 fi
9750 if test "$ac_cv_sys_largefile_source" != 'no'; then
9751 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9752 fi
9753fi
9754
9755
cristy3ed852e2009-09-05 21:47:34 +00009756# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009757enable_dlopen=yes
9758
9759
9760
9761case `pwd` in
9762 *\ * | *\ *)
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9764$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9765esac
9766
9767
9768
cristyda16f162011-02-19 23:52:17 +00009769macro_version='2.4'
9770macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784ltmain="$ac_aux_dir/ltmain.sh"
9785
cristy0c60a692010-11-04 01:09:47 +00009786# Backslashify metacharacters that are still active within
9787# double-quoted strings.
9788sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9789
9790# Same as above, but do not quote variable references.
9791double_quote_subst='s/\(["`\\]\)/\\\1/g'
9792
9793# Sed substitution to delay expansion of an escaped shell variable in a
9794# double_quote_subst'ed string.
9795delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9796
9797# Sed substitution to delay expansion of an escaped single quote.
9798delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9799
9800# Sed substitution to avoid accidental globbing in evaled expressions
9801no_glob_subst='s/\*/\\\*/g'
9802
cristy73bd4a52010-10-05 11:24:23 +00009803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9804$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009805if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009806 $as_echo_n "(cached) " >&6
9807else
9808 if test -n "$NM"; then
9809 # Let the user override the test.
9810 lt_cv_path_NM="$NM"
9811else
9812 lt_nm_to_check="${ac_tool_prefix}nm"
9813 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9814 lt_nm_to_check="$lt_nm_to_check nm"
9815 fi
9816 for lt_tmp_nm in $lt_nm_to_check; do
9817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9818 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9819 IFS="$lt_save_ifs"
9820 test -z "$ac_dir" && ac_dir=.
9821 tmp_nm="$ac_dir/$lt_tmp_nm"
9822 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9823 # Check to see if the nm accepts a BSD-compat flag.
9824 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9825 # nm: unknown option "B" ignored
9826 # Tru64's nm complains that /dev/null is an invalid object file
9827 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9828 */dev/null* | *'Invalid file or object type'*)
9829 lt_cv_path_NM="$tmp_nm -B"
9830 break
9831 ;;
9832 *)
9833 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9834 */dev/null*)
9835 lt_cv_path_NM="$tmp_nm -p"
9836 break
9837 ;;
9838 *)
9839 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9840 continue # so that we can try to find one that supports BSD flags
9841 ;;
9842 esac
9843 ;;
9844 esac
9845 fi
9846 done
9847 IFS="$lt_save_ifs"
9848 done
9849 : ${lt_cv_path_NM=no}
9850fi
9851fi
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9853$as_echo "$lt_cv_path_NM" >&6; }
9854if test "$lt_cv_path_NM" != "no"; then
9855 NM="$lt_cv_path_NM"
9856else
9857 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009858 if test -n "$DUMPBIN"; then :
9859 # Let the user override the test.
9860 else
9861 if test -n "$ac_tool_prefix"; then
9862 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009863 do
9864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009868if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009869 $as_echo_n "(cached) " >&6
9870else
9871 if test -n "$DUMPBIN"; then
9872 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9884 fi
9885done
9886 done
9887IFS=$as_save_IFS
9888
9889fi
9890fi
9891DUMPBIN=$ac_cv_prog_DUMPBIN
9892if test -n "$DUMPBIN"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9894$as_echo "$DUMPBIN" >&6; }
9895else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900
9901 test -n "$DUMPBIN" && break
9902 done
9903fi
9904if test -z "$DUMPBIN"; then
9905 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009906 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009907do
9908 # Extract the first word of "$ac_prog", so it can be a program name with args.
9909set dummy $ac_prog; ac_word=$2
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009912if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009913 $as_echo_n "(cached) " >&6
9914else
9915 if test -n "$ac_ct_DUMPBIN"; then
9916 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9917else
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9928 fi
9929done
9930 done
9931IFS=$as_save_IFS
9932
9933fi
9934fi
9935ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9936if test -n "$ac_ct_DUMPBIN"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9938$as_echo "$ac_ct_DUMPBIN" >&6; }
9939else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941$as_echo "no" >&6; }
9942fi
9943
9944
9945 test -n "$ac_ct_DUMPBIN" && break
9946done
9947
9948 if test "x$ac_ct_DUMPBIN" = x; then
9949 DUMPBIN=":"
9950 else
9951 case $cross_compiling:$ac_tool_warned in
9952yes:)
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9955ac_tool_warned=yes ;;
9956esac
9957 DUMPBIN=$ac_ct_DUMPBIN
9958 fi
9959fi
9960
cristy0c60a692010-11-04 01:09:47 +00009961 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9962 *COFF*)
9963 DUMPBIN="$DUMPBIN -symbols"
9964 ;;
9965 *)
9966 DUMPBIN=:
9967 ;;
9968 esac
9969 fi
cristy73bd4a52010-10-05 11:24:23 +00009970
9971 if test "$DUMPBIN" != ":"; then
9972 NM="$DUMPBIN"
9973 fi
9974fi
9975test -z "$NM" && NM=nm
9976
9977
9978
9979
9980
9981
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9983$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009984if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009985 $as_echo_n "(cached) " >&6
9986else
9987 lt_cv_nm_interface="BSD nm"
9988 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009989 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009990 (eval "$ac_compile" 2>conftest.err)
9991 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009992 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009993 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9994 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009995 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009996 cat conftest.out >&5
9997 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9998 lt_cv_nm_interface="MS dumpbin"
9999 fi
10000 rm -f conftest*
10001fi
10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10003$as_echo "$lt_cv_nm_interface" >&6; }
10004
10005# find the maximum length of command line arguments
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10007$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010008if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010009 $as_echo_n "(cached) " >&6
10010else
10011 i=0
10012 teststring="ABCD"
10013
10014 case $build_os in
10015 msdosdjgpp*)
10016 # On DJGPP, this test can blow up pretty badly due to problems in libc
10017 # (any single argument exceeding 2000 bytes causes a buffer overrun
10018 # during glob expansion). Even if it were fixed, the result of this
10019 # check would be larger than it should be.
10020 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10021 ;;
10022
10023 gnu*)
10024 # Under GNU Hurd, this test is not required because there is
10025 # no limit to the length of command line arguments.
10026 # Libtool will interpret -1 as no limit whatsoever
10027 lt_cv_sys_max_cmd_len=-1;
10028 ;;
10029
10030 cygwin* | mingw* | cegcc*)
10031 # On Win9x/ME, this test blows up -- it succeeds, but takes
10032 # about 5 minutes as the teststring grows exponentially.
10033 # Worse, since 9x/ME are not pre-emptively multitasking,
10034 # you end up with a "frozen" computer, even though with patience
10035 # the test eventually succeeds (with a max line length of 256k).
10036 # Instead, let's just punt: use the minimum linelength reported by
10037 # all of the supported platforms: 8192 (on NT/2K/XP).
10038 lt_cv_sys_max_cmd_len=8192;
10039 ;;
10040
cristy0c60a692010-11-04 01:09:47 +000010041 mint*)
10042 # On MiNT this can take a long time and run out of memory.
10043 lt_cv_sys_max_cmd_len=8192;
10044 ;;
10045
cristy73bd4a52010-10-05 11:24:23 +000010046 amigaos*)
10047 # On AmigaOS with pdksh, this test takes hours, literally.
10048 # So we just punt and use a minimum line length of 8192.
10049 lt_cv_sys_max_cmd_len=8192;
10050 ;;
10051
10052 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10053 # This has been around since 386BSD, at least. Likely further.
10054 if test -x /sbin/sysctl; then
10055 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10056 elif test -x /usr/sbin/sysctl; then
10057 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10058 else
10059 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10060 fi
10061 # And add a safety zone
10062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10064 ;;
10065
10066 interix*)
10067 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10068 lt_cv_sys_max_cmd_len=196608
10069 ;;
10070
10071 osf*)
10072 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10073 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10074 # nice to cause kernel panics so lets avoid the loop below.
10075 # First set a reasonable default.
10076 lt_cv_sys_max_cmd_len=16384
10077 #
10078 if test -x /sbin/sysconfig; then
10079 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10080 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10081 esac
10082 fi
10083 ;;
10084 sco3.2v5*)
10085 lt_cv_sys_max_cmd_len=102400
10086 ;;
10087 sysv5* | sco5v6* | sysv4.2uw2*)
10088 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10089 if test -n "$kargmax"; then
10090 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10091 else
10092 lt_cv_sys_max_cmd_len=32768
10093 fi
10094 ;;
10095 *)
10096 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10097 if test -n "$lt_cv_sys_max_cmd_len"; then
10098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10100 else
10101 # Make teststring a little bigger before we do anything with it.
10102 # a 1K string should be a reasonable start.
10103 for i in 1 2 3 4 5 6 7 8 ; do
10104 teststring=$teststring$teststring
10105 done
10106 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10107 # If test is not a shell built-in, we'll probably end up computing a
10108 # maximum length that is only half of the actual maximum length, but
10109 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010110 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10111 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010112 test $i != 17 # 1/2 MB should be enough
10113 do
10114 i=`expr $i + 1`
10115 teststring=$teststring$teststring
10116 done
10117 # Only check the string length outside the loop.
10118 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10119 teststring=
10120 # Add a significant safety factor because C++ compilers can tack on
10121 # massive amounts of additional arguments before passing them to the
10122 # linker. It appears as though 1/2 is a usable value.
10123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10124 fi
10125 ;;
10126 esac
10127
10128fi
10129
10130if test -n $lt_cv_sys_max_cmd_len ; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10132$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10133else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10135$as_echo "none" >&6; }
10136fi
10137max_cmd_len=$lt_cv_sys_max_cmd_len
10138
10139
10140
10141
10142
10143
10144: ${CP="cp -f"}
10145: ${MV="mv -f"}
10146: ${RM="rm -f"}
10147
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10149$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10150# Try some XSI features
10151xsi_shell=no
10152( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010153 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10154 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010155 && eval 'test $(( 1 + 1 )) -eq 2 \
10156 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10157 && xsi_shell=yes
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10159$as_echo "$xsi_shell" >&6; }
10160
10161
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10163$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10164lt_shell_append=no
10165( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10166 >/dev/null 2>&1 \
10167 && lt_shell_append=yes
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10169$as_echo "$lt_shell_append" >&6; }
10170
10171
10172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10173 lt_unset=unset
10174else
10175 lt_unset=false
10176fi
10177
10178
10179
10180
10181
10182# test EBCDIC or ASCII
10183case `echo X|tr X '\101'` in
10184 A) # ASCII based system
10185 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10186 lt_SP2NL='tr \040 \012'
10187 lt_NL2SP='tr \015\012 \040\040'
10188 ;;
10189 *) # EBCDIC based system
10190 lt_SP2NL='tr \100 \n'
10191 lt_NL2SP='tr \r\n \100\100'
10192 ;;
10193esac
10194
10195
10196
10197
10198
10199
10200
10201
10202
cristyda16f162011-02-19 23:52:17 +000010203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10204$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10205if ${lt_cv_to_host_file_cmd+:} false; then :
10206 $as_echo_n "(cached) " >&6
10207else
10208 case $host in
10209 *-*-mingw* )
10210 case $build in
10211 *-*-mingw* ) # actually msys
10212 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10213 ;;
10214 *-*-cygwin* )
10215 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10216 ;;
10217 * ) # otherwise, assume *nix
10218 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10219 ;;
10220 esac
10221 ;;
10222 *-*-cygwin* )
10223 case $build in
10224 *-*-mingw* ) # actually msys
10225 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10226 ;;
10227 *-*-cygwin* )
10228 lt_cv_to_host_file_cmd=func_convert_file_noop
10229 ;;
10230 * ) # otherwise, assume *nix
10231 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10232 ;;
10233 esac
10234 ;;
10235 * ) # unhandled hosts (and "normal" native builds)
10236 lt_cv_to_host_file_cmd=func_convert_file_noop
10237 ;;
10238esac
10239
10240fi
10241
10242to_host_file_cmd=$lt_cv_to_host_file_cmd
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10244$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10245
10246
10247
10248
10249
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10251$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10252if ${lt_cv_to_tool_file_cmd+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254else
10255 #assume ordinary cross tools, or native build.
10256lt_cv_to_tool_file_cmd=func_convert_file_noop
10257case $host in
10258 *-*-mingw* )
10259 case $build in
10260 *-*-mingw* ) # actually msys
10261 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10262 ;;
10263 esac
10264 ;;
10265esac
10266
10267fi
10268
10269to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10271$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10272
10273
10274
10275
10276
cristy73bd4a52010-10-05 11:24:23 +000010277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10278$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010279if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010280 $as_echo_n "(cached) " >&6
10281else
10282 lt_cv_ld_reload_flag='-r'
10283fi
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10285$as_echo "$lt_cv_ld_reload_flag" >&6; }
10286reload_flag=$lt_cv_ld_reload_flag
10287case $reload_flag in
10288"" | " "*) ;;
10289*) reload_flag=" $reload_flag" ;;
10290esac
10291reload_cmds='$LD$reload_flag -o $output$reload_objs'
10292case $host_os in
cristyda16f162011-02-19 23:52:17 +000010293 cygwin* | mingw* | pw32* | cegcc*)
10294 if test "$GCC" != yes; then
10295 reload_cmds=false
10296 fi
10297 ;;
cristy73bd4a52010-10-05 11:24:23 +000010298 darwin*)
10299 if test "$GCC" = yes; then
10300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10301 else
10302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10303 fi
10304 ;;
10305esac
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315if test -n "$ac_tool_prefix"; then
10316 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10317set dummy ${ac_tool_prefix}objdump; ac_word=$2
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010320if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010321 $as_echo_n "(cached) " >&6
10322else
10323 if test -n "$OBJDUMP"; then
10324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10325else
10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10336 fi
10337done
10338 done
10339IFS=$as_save_IFS
10340
10341fi
10342fi
10343OBJDUMP=$ac_cv_prog_OBJDUMP
10344if test -n "$OBJDUMP"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10346$as_echo "$OBJDUMP" >&6; }
10347else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
10350fi
10351
10352
10353fi
10354if test -z "$ac_cv_prog_OBJDUMP"; then
10355 ac_ct_OBJDUMP=$OBJDUMP
10356 # Extract the first word of "objdump", so it can be a program name with args.
10357set dummy objdump; ac_word=$2
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010360if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010361 $as_echo_n "(cached) " >&6
10362else
10363 if test -n "$ac_ct_OBJDUMP"; then
10364 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10365else
10366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367for as_dir in $PATH
10368do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10373 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10376 fi
10377done
10378 done
10379IFS=$as_save_IFS
10380
10381fi
10382fi
10383ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10384if test -n "$ac_ct_OBJDUMP"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10386$as_echo "$ac_ct_OBJDUMP" >&6; }
10387else
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
10390fi
10391
10392 if test "x$ac_ct_OBJDUMP" = x; then
10393 OBJDUMP="false"
10394 else
10395 case $cross_compiling:$ac_tool_warned in
10396yes:)
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10399ac_tool_warned=yes ;;
10400esac
10401 OBJDUMP=$ac_ct_OBJDUMP
10402 fi
10403else
10404 OBJDUMP="$ac_cv_prog_OBJDUMP"
10405fi
10406
10407test -z "$OBJDUMP" && OBJDUMP=objdump
10408
10409
10410
10411
10412
10413
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10415$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010416if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010417 $as_echo_n "(cached) " >&6
10418else
10419 lt_cv_file_magic_cmd='$MAGIC_CMD'
10420lt_cv_file_magic_test_file=
10421lt_cv_deplibs_check_method='unknown'
10422# Need to set the preceding variable on all platforms that support
10423# interlibrary dependencies.
10424# 'none' -- dependencies not supported.
10425# `unknown' -- same as none, but documents that we really don't know.
10426# 'pass_all' -- all dependencies passed with no checks.
10427# 'test_compile' -- check by making test program.
10428# 'file_magic [[regex]]' -- check by looking for files in library path
10429# which responds to the $file_magic_cmd with a given extended regex.
10430# If you have `file' or equivalent on your system and you're not sure
10431# whether `pass_all' will *always* work, you probably want this one.
10432
10433case $host_os in
10434aix[4-9]*)
10435 lt_cv_deplibs_check_method=pass_all
10436 ;;
10437
10438beos*)
10439 lt_cv_deplibs_check_method=pass_all
10440 ;;
10441
10442bsdi[45]*)
10443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10444 lt_cv_file_magic_cmd='/usr/bin/file -L'
10445 lt_cv_file_magic_test_file=/shlib/libc.so
10446 ;;
10447
10448cygwin*)
10449 # func_win32_libid is a shell function defined in ltmain.sh
10450 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10451 lt_cv_file_magic_cmd='func_win32_libid'
10452 ;;
10453
10454mingw* | pw32*)
10455 # Base MSYS/MinGW do not provide the 'file' command needed by
10456 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10457 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010458 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10459 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10461 lt_cv_file_magic_cmd='func_win32_libid'
10462 else
cristy0c60a692010-11-04 01:09:47 +000010463 # Keep this pattern in sync with the one in func_win32_libid.
10464 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 +000010465 lt_cv_file_magic_cmd='$OBJDUMP -f'
10466 fi
10467 ;;
10468
cristy0c60a692010-11-04 01:09:47 +000010469cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010470 # use the weaker test based on 'objdump'. See mingw*.
10471 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10472 lt_cv_file_magic_cmd='$OBJDUMP -f'
10473 ;;
10474
10475darwin* | rhapsody*)
10476 lt_cv_deplibs_check_method=pass_all
10477 ;;
10478
10479freebsd* | dragonfly*)
10480 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10481 case $host_cpu in
10482 i*86 )
10483 # Not sure whether the presence of OpenBSD here was a mistake.
10484 # Let's accept both of them until this is cleared up.
10485 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10486 lt_cv_file_magic_cmd=/usr/bin/file
10487 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10488 ;;
10489 esac
10490 else
10491 lt_cv_deplibs_check_method=pass_all
10492 fi
10493 ;;
10494
10495gnu*)
10496 lt_cv_deplibs_check_method=pass_all
10497 ;;
10498
cristy0c60a692010-11-04 01:09:47 +000010499haiku*)
10500 lt_cv_deplibs_check_method=pass_all
10501 ;;
10502
cristy73bd4a52010-10-05 11:24:23 +000010503hpux10.20* | hpux11*)
10504 lt_cv_file_magic_cmd=/usr/bin/file
10505 case $host_cpu in
10506 ia64*)
10507 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10508 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10509 ;;
10510 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010511 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 +000010512 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10513 ;;
10514 *)
cristy0c60a692010-11-04 01:09:47 +000010515 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 +000010516 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10517 ;;
10518 esac
10519 ;;
10520
10521interix[3-9]*)
10522 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10524 ;;
10525
10526irix5* | irix6* | nonstopux*)
10527 case $LD in
10528 *-32|*"-32 ") libmagic=32-bit;;
10529 *-n32|*"-n32 ") libmagic=N32;;
10530 *-64|*"-64 ") libmagic=64-bit;;
10531 *) libmagic=never-match;;
10532 esac
10533 lt_cv_deplibs_check_method=pass_all
10534 ;;
10535
10536# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010537linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010538 lt_cv_deplibs_check_method=pass_all
10539 ;;
10540
10541netbsd*)
10542 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10544 else
10545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10546 fi
10547 ;;
10548
10549newos6*)
10550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10551 lt_cv_file_magic_cmd=/usr/bin/file
10552 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10553 ;;
10554
10555*nto* | *qnx*)
10556 lt_cv_deplibs_check_method=pass_all
10557 ;;
10558
10559openbsd*)
10560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10562 else
10563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10564 fi
10565 ;;
10566
10567osf3* | osf4* | osf5*)
10568 lt_cv_deplibs_check_method=pass_all
10569 ;;
10570
10571rdos*)
10572 lt_cv_deplibs_check_method=pass_all
10573 ;;
10574
10575solaris*)
10576 lt_cv_deplibs_check_method=pass_all
10577 ;;
10578
10579sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10580 lt_cv_deplibs_check_method=pass_all
10581 ;;
10582
10583sysv4 | sysv4.3*)
10584 case $host_vendor in
10585 motorola)
10586 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]'
10587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10588 ;;
10589 ncr)
10590 lt_cv_deplibs_check_method=pass_all
10591 ;;
10592 sequent)
10593 lt_cv_file_magic_cmd='/bin/file'
10594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10595 ;;
10596 sni)
10597 lt_cv_file_magic_cmd='/bin/file'
10598 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10599 lt_cv_file_magic_test_file=/lib/libc.so
10600 ;;
10601 siemens)
10602 lt_cv_deplibs_check_method=pass_all
10603 ;;
10604 pc)
10605 lt_cv_deplibs_check_method=pass_all
10606 ;;
10607 esac
10608 ;;
10609
10610tpf*)
10611 lt_cv_deplibs_check_method=pass_all
10612 ;;
10613esac
10614
10615fi
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10617$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010618
10619file_magic_glob=
10620want_nocaseglob=no
10621if test "$build" = "$host"; then
10622 case $host_os in
10623 mingw* | pw32*)
10624 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10625 want_nocaseglob=yes
10626 else
10627 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10628 fi
10629 ;;
10630 esac
10631fi
10632
cristy73bd4a52010-10-05 11:24:23 +000010633file_magic_cmd=$lt_cv_file_magic_cmd
10634deplibs_check_method=$lt_cv_deplibs_check_method
10635test -z "$deplibs_check_method" && deplibs_check_method=unknown
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
cristyda16f162011-02-19 23:52:17 +000010648
10649
10650
10651
10652
10653
10654
10655
10656
10657
cristy73bd4a52010-10-05 11:24:23 +000010658if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010659 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10660set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010663if ${ac_cv_prog_DLLTOOL+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665else
10666 if test -n "$DLLTOOL"; then
10667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10668else
10669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670for as_dir in $PATH
10671do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10679 fi
10680done
10681 done
10682IFS=$as_save_IFS
10683
10684fi
10685fi
10686DLLTOOL=$ac_cv_prog_DLLTOOL
10687if test -n "$DLLTOOL"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10689$as_echo "$DLLTOOL" >&6; }
10690else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692$as_echo "no" >&6; }
10693fi
10694
10695
10696fi
10697if test -z "$ac_cv_prog_DLLTOOL"; then
10698 ac_ct_DLLTOOL=$DLLTOOL
10699 # Extract the first word of "dlltool", so it can be a program name with args.
10700set dummy dlltool; ac_word=$2
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702$as_echo_n "checking for $ac_word... " >&6; }
10703if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705else
10706 if test -n "$ac_ct_DLLTOOL"; then
10707 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10708else
10709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10716 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10719 fi
10720done
10721 done
10722IFS=$as_save_IFS
10723
10724fi
10725fi
10726ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10727if test -n "$ac_ct_DLLTOOL"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10729$as_echo "$ac_ct_DLLTOOL" >&6; }
10730else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732$as_echo "no" >&6; }
10733fi
10734
10735 if test "x$ac_ct_DLLTOOL" = x; then
10736 DLLTOOL="false"
10737 else
10738 case $cross_compiling:$ac_tool_warned in
10739yes:)
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10742ac_tool_warned=yes ;;
10743esac
10744 DLLTOOL=$ac_ct_DLLTOOL
10745 fi
10746else
10747 DLLTOOL="$ac_cv_prog_DLLTOOL"
10748fi
10749
10750test -z "$DLLTOOL" && DLLTOOL=dlltool
10751
10752
10753
10754
10755
10756
10757
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10759$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10760if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762else
10763 lt_cv_sharedlib_from_linklib_cmd='unknown'
10764
10765case $host_os in
10766cygwin* | mingw* | pw32* | cegcc*)
10767 # two different shell functions defined in ltmain.sh
10768 # decide which to use based on capabilities of $DLLTOOL
10769 case `$DLLTOOL --help 2>&1` in
10770 *--identify-strict*)
10771 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10772 ;;
10773 *)
10774 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10775 ;;
10776 esac
10777 ;;
10778*)
10779 # fallback: assume linklib IS sharedlib
10780 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10781 ;;
10782esac
10783
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10786$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10787sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10788test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10789
10790
10791
10792
10793
10794
10795
10796if test -n "$ac_tool_prefix"; then
10797 for ac_prog in ar
10798 do
10799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802$as_echo_n "checking for $ac_word... " >&6; }
10803if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010804 $as_echo_n "(cached) " >&6
10805else
10806 if test -n "$AR"; then
10807 ac_cv_prog_AR="$AR" # Let the user override the test.
10808else
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 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 +000010816 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821 done
10822IFS=$as_save_IFS
10823
10824fi
10825fi
10826AR=$ac_cv_prog_AR
10827if test -n "$AR"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10829$as_echo "$AR" >&6; }
10830else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832$as_echo "no" >&6; }
10833fi
10834
10835
cristyda16f162011-02-19 23:52:17 +000010836 test -n "$AR" && break
10837 done
cristy73bd4a52010-10-05 11:24:23 +000010838fi
cristyda16f162011-02-19 23:52:17 +000010839if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010840 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010841 for ac_prog in ar
10842do
10843 # Extract the first word of "$ac_prog", so it can be a program name with args.
10844set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010847if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010848 $as_echo_n "(cached) " >&6
10849else
10850 if test -n "$ac_ct_AR"; then
10851 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10852else
10853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $PATH
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010860 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864done
10865 done
10866IFS=$as_save_IFS
10867
10868fi
10869fi
10870ac_ct_AR=$ac_cv_prog_ac_ct_AR
10871if test -n "$ac_ct_AR"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10873$as_echo "$ac_ct_AR" >&6; }
10874else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876$as_echo "no" >&6; }
10877fi
10878
cristyda16f162011-02-19 23:52:17 +000010879
10880 test -n "$ac_ct_AR" && break
10881done
10882
cristy73bd4a52010-10-05 11:24:23 +000010883 if test "x$ac_ct_AR" = x; then
10884 AR="false"
10885 else
10886 case $cross_compiling:$ac_tool_warned in
10887yes:)
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10890ac_tool_warned=yes ;;
10891esac
10892 AR=$ac_ct_AR
10893 fi
cristy73bd4a52010-10-05 11:24:23 +000010894fi
10895
cristyda16f162011-02-19 23:52:17 +000010896: ${AR=ar}
10897: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
cristyda16f162011-02-19 23:52:17 +000010909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10910$as_echo_n "checking for archiver @FILE support... " >&6; }
10911if ${lt_cv_ar_at_file+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913else
10914 lt_cv_ar_at_file=no
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916/* end confdefs.h. */
10917
10918int
10919main ()
10920{
10921
10922 ;
10923 return 0;
10924}
10925_ACEOF
10926if ac_fn_c_try_compile "$LINENO"; then :
10927 echo conftest.$ac_objext > conftest.lst
10928 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10930 (eval $lt_ar_try) 2>&5
10931 ac_status=$?
10932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10933 test $ac_status = 0; }
10934 if test "$ac_status" -eq 0; then
10935 # Ensure the archiver fails upon bogus file names.
10936 rm -f conftest.$ac_objext libconftest.a
10937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10938 (eval $lt_ar_try) 2>&5
10939 ac_status=$?
10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10941 test $ac_status = 0; }
10942 if test "$ac_status" -ne 0; then
10943 lt_cv_ar_at_file=@
10944 fi
10945 fi
10946 rm -f conftest.* libconftest.a
10947
10948fi
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950
10951fi
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10953$as_echo "$lt_cv_ar_at_file" >&6; }
10954
10955if test "x$lt_cv_ar_at_file" = xno; then
10956 archiver_list_spec=
10957else
10958 archiver_list_spec=$lt_cv_ar_at_file
10959fi
10960
10961
10962
10963
10964
10965
10966
cristy73bd4a52010-10-05 11:24:23 +000010967if test -n "$ac_tool_prefix"; then
10968 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10969set dummy ${ac_tool_prefix}strip; ac_word=$2
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010972if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010973 $as_echo_n "(cached) " >&6
10974else
10975 if test -n "$STRIP"; then
10976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989done
10990 done
10991IFS=$as_save_IFS
10992
10993fi
10994fi
10995STRIP=$ac_cv_prog_STRIP
10996if test -n "$STRIP"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10998$as_echo "$STRIP" >&6; }
10999else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
11003
11004
11005fi
11006if test -z "$ac_cv_prog_STRIP"; then
11007 ac_ct_STRIP=$STRIP
11008 # Extract the first word of "strip", so it can be a program name with args.
11009set dummy strip; ac_word=$2
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011012if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011013 $as_echo_n "(cached) " >&6
11014else
11015 if test -n "$ac_ct_STRIP"; then
11016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11025 ac_cv_prog_ac_ct_STRIP="strip"
11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030 done
11031IFS=$as_save_IFS
11032
11033fi
11034fi
11035ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11036if test -n "$ac_ct_STRIP"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11038$as_echo "$ac_ct_STRIP" >&6; }
11039else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
11042fi
11043
11044 if test "x$ac_ct_STRIP" = x; then
11045 STRIP=":"
11046 else
11047 case $cross_compiling:$ac_tool_warned in
11048yes:)
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11051ac_tool_warned=yes ;;
11052esac
11053 STRIP=$ac_ct_STRIP
11054 fi
11055else
11056 STRIP="$ac_cv_prog_STRIP"
11057fi
11058
11059test -z "$STRIP" && STRIP=:
11060
11061
11062
11063
11064
11065
11066if test -n "$ac_tool_prefix"; then
11067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11068set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011071if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011072 $as_echo_n "(cached) " >&6
11073else
11074 if test -n "$RANLIB"; then
11075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11076else
11077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078for as_dir in $PATH
11079do
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11087 fi
11088done
11089 done
11090IFS=$as_save_IFS
11091
11092fi
11093fi
11094RANLIB=$ac_cv_prog_RANLIB
11095if test -n "$RANLIB"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11097$as_echo "$RANLIB" >&6; }
11098else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
11101fi
11102
11103
11104fi
11105if test -z "$ac_cv_prog_RANLIB"; then
11106 ac_ct_RANLIB=$RANLIB
11107 # Extract the first word of "ranlib", so it can be a program name with args.
11108set dummy ranlib; ac_word=$2
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011111if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011112 $as_echo_n "(cached) " >&6
11113else
11114 if test -n "$ac_ct_RANLIB"; then
11115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11116else
11117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $PATH
11119do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11124 ac_cv_prog_ac_ct_RANLIB="ranlib"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11127 fi
11128done
11129 done
11130IFS=$as_save_IFS
11131
11132fi
11133fi
11134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11135if test -n "$ac_ct_RANLIB"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11137$as_echo "$ac_ct_RANLIB" >&6; }
11138else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
11141fi
11142
11143 if test "x$ac_ct_RANLIB" = x; then
11144 RANLIB=":"
11145 else
11146 case $cross_compiling:$ac_tool_warned in
11147yes:)
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11150ac_tool_warned=yes ;;
11151esac
11152 RANLIB=$ac_ct_RANLIB
11153 fi
11154else
11155 RANLIB="$ac_cv_prog_RANLIB"
11156fi
11157
11158test -z "$RANLIB" && RANLIB=:
11159
11160
11161
11162
11163
11164
11165# Determine commands to create old-style static archives.
11166old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11167old_postinstall_cmds='chmod 644 $oldlib'
11168old_postuninstall_cmds=
11169
11170if test -n "$RANLIB"; then
11171 case $host_os in
11172 openbsd*)
11173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11174 ;;
11175 *)
11176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11177 ;;
11178 esac
11179 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11180fi
11181
cristy0c60a692010-11-04 01:09:47 +000011182case $host_os in
11183 darwin*)
11184 lock_old_archive_extraction=yes ;;
11185 *)
11186 lock_old_archive_extraction=no ;;
11187esac
11188
11189
11190
11191
11192
11193
cristy73bd4a52010-10-05 11:24:23 +000011194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227# If no C compiler was specified, use CC.
11228LTCC=${LTCC-"$CC"}
11229
11230# If no C compiler flags were specified, use CFLAGS.
11231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11232
11233# Allow CC to be a program name with arguments.
11234compiler=$CC
11235
11236
11237# Check for command to grab the raw symbol name followed by C symbol from nm.
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11239$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011240if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011241 $as_echo_n "(cached) " >&6
11242else
11243
11244# These are sane defaults that work on at least a few old systems.
11245# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11246
11247# Character class describing NM global symbol codes.
11248symcode='[BCDEGRST]'
11249
11250# Regexp to match symbols that can be accessed directly from C.
11251sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11252
11253# Define system-specific variables.
11254case $host_os in
11255aix*)
11256 symcode='[BCDT]'
11257 ;;
11258cygwin* | mingw* | pw32* | cegcc*)
11259 symcode='[ABCDGISTW]'
11260 ;;
11261hpux*)
11262 if test "$host_cpu" = ia64; then
11263 symcode='[ABCDEGRST]'
11264 fi
11265 ;;
11266irix* | nonstopux*)
11267 symcode='[BCDEGRST]'
11268 ;;
11269osf*)
11270 symcode='[BCDEGQRST]'
11271 ;;
11272solaris*)
11273 symcode='[BDRT]'
11274 ;;
11275sco3.2v5*)
11276 symcode='[DT]'
11277 ;;
11278sysv4.2uw2*)
11279 symcode='[DT]'
11280 ;;
11281sysv5* | sco5v6* | unixware* | OpenUNIX*)
11282 symcode='[ABDT]'
11283 ;;
11284sysv4)
11285 symcode='[DFNSTU]'
11286 ;;
11287esac
11288
11289# If we're using GNU nm, then use its standard symbol codes.
11290case `$NM -V 2>&1` in
11291*GNU* | *'with BFD'*)
11292 symcode='[ABCDGIRSTW]' ;;
11293esac
11294
11295# Transform an extracted symbol line into a proper C declaration.
11296# Some systems (esp. on ia64) link data and code symbols differently,
11297# so use this general approach.
11298lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11299
11300# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011301lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11302lt_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 +000011303
11304# Handle CRLF in mingw tool chain
11305opt_cr=
11306case $build_os in
11307mingw*)
11308 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11309 ;;
11310esac
11311
11312# Try without a prefix underscore, then with it.
11313for ac_symprfx in "" "_"; do
11314
11315 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11316 symxfrm="\\1 $ac_symprfx\\2 \\2"
11317
11318 # Write the raw and C identifiers.
11319 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11320 # Fake it for dumpbin and say T for any non-static function
11321 # and D for any global variable.
11322 # Also find C++ and __fastcall symbols from MSVC++,
11323 # which start with @ or ?.
11324 lt_cv_sys_global_symbol_pipe="$AWK '"\
11325" {last_section=section; section=\$ 3};"\
11326" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11327" \$ 0!~/External *\|/{next};"\
11328" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11329" {if(hide[section]) next};"\
11330" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11331" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11332" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11333" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11334" ' prfx=^$ac_symprfx"
11335 else
11336 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11337 fi
cristyda16f162011-02-19 23:52:17 +000011338 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011339
11340 # Check to see that the pipe works correctly.
11341 pipe_works=no
11342
11343 rm -f conftest*
11344 cat > conftest.$ac_ext <<_LT_EOF
11345#ifdef __cplusplus
11346extern "C" {
11347#endif
11348char nm_test_var;
11349void nm_test_func(void);
11350void nm_test_func(void){}
11351#ifdef __cplusplus
11352}
11353#endif
11354int main(){nm_test_var='a';nm_test_func();return(0);}
11355_LT_EOF
11356
11357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11358 (eval $ac_compile) 2>&5
11359 ac_status=$?
11360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361 test $ac_status = 0; }; then
11362 # Now try to grab the symbols.
11363 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11365 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011366 ac_status=$?
11367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11368 test $ac_status = 0; } && test -s "$nlist"; then
11369 # Try sorting and uniquifying the output.
11370 if sort "$nlist" | uniq > "$nlist"T; then
11371 mv -f "$nlist"T "$nlist"
11372 else
11373 rm -f "$nlist"T
11374 fi
11375
11376 # Make sure that we snagged all the symbols we need.
11377 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11378 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11379 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011380/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11381#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11382/* DATA imports from DLLs on WIN32 con't be const, because runtime
11383 relocations are performed -- see ld's documentation on pseudo-relocs. */
11384# define LT_DLSYM_CONST
11385#elif defined(__osf__)
11386/* This system does not cope well with relocations in const data. */
11387# define LT_DLSYM_CONST
11388#else
11389# define LT_DLSYM_CONST const
11390#endif
11391
cristy73bd4a52010-10-05 11:24:23 +000011392#ifdef __cplusplus
11393extern "C" {
11394#endif
11395
11396_LT_EOF
11397 # Now generate the symbol file.
11398 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11399
11400 cat <<_LT_EOF >> conftest.$ac_ext
11401
11402/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011403LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011404 const char *name;
11405 void *address;
11406}
11407lt__PROGRAM__LTX_preloaded_symbols[] =
11408{
11409 { "@PROGRAM@", (void *) 0 },
11410_LT_EOF
11411 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11412 cat <<\_LT_EOF >> conftest.$ac_ext
11413 {0, (void *) 0}
11414};
11415
11416/* This works around a problem in FreeBSD linker */
11417#ifdef FREEBSD_WORKAROUND
11418static const void *lt_preloaded_setup() {
11419 return lt__PROGRAM__LTX_preloaded_symbols;
11420}
11421#endif
11422
11423#ifdef __cplusplus
11424}
11425#endif
11426_LT_EOF
11427 # Now try linking the two files.
11428 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011429 lt_globsym_save_LIBS=$LIBS
11430 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011431 LIBS="conftstm.$ac_objext"
11432 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11434 (eval $ac_link) 2>&5
11435 ac_status=$?
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11438 pipe_works=yes
11439 fi
cristyda16f162011-02-19 23:52:17 +000011440 LIBS=$lt_globsym_save_LIBS
11441 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011442 else
11443 echo "cannot find nm_test_func in $nlist" >&5
11444 fi
11445 else
11446 echo "cannot find nm_test_var in $nlist" >&5
11447 fi
11448 else
11449 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11450 fi
11451 else
11452 echo "$progname: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11454 fi
11455 rm -rf conftest* conftst*
11456
11457 # Do not use the global_symbol_pipe unless it works.
11458 if test "$pipe_works" = yes; then
11459 break
11460 else
11461 lt_cv_sys_global_symbol_pipe=
11462 fi
11463done
11464
11465fi
11466
11467if test -z "$lt_cv_sys_global_symbol_pipe"; then
11468 lt_cv_sys_global_symbol_to_cdecl=
11469fi
11470if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11472$as_echo "failed" >&6; }
11473else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11475$as_echo "ok" >&6; }
11476fi
11477
cristyda16f162011-02-19 23:52:17 +000011478# Response file support.
11479if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11480 nm_file_list_spec='@'
11481elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11482 nm_file_list_spec='@'
11483fi
cristy73bd4a52010-10-05 11:24:23 +000011484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
cristyda16f162011-02-19 23:52:17 +000011505
11506
11507
11508
11509
11510
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11512$as_echo_n "checking for sysroot... " >&6; }
11513
11514# Check whether --with-sysroot was given.
11515if test "${with_sysroot+set}" = set; then :
11516 withval=$with_sysroot;
11517else
11518 with_sysroot=no
11519fi
11520
11521
11522lt_sysroot=
11523case ${with_sysroot} in #(
11524 yes)
11525 if test "$GCC" = yes; then
11526 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11527 fi
11528 ;; #(
11529 /*)
11530 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11531 ;; #(
11532 no|'')
11533 ;; #(
11534 *)
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11536$as_echo "${with_sysroot}" >&6; }
11537 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11538 ;;
11539esac
11540
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11542$as_echo "${lt_sysroot:-no}" >&6; }
11543
11544
11545
11546
11547
cristy73bd4a52010-10-05 11:24:23 +000011548# Check whether --enable-libtool-lock was given.
11549if test "${enable_libtool_lock+set}" = set; then :
11550 enableval=$enable_libtool_lock;
11551fi
11552
11553test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11554
11555# Some flags need to be propagated to the compiler or linker for good
11556# libtool support.
11557case $host in
11558ia64-*-hpux*)
11559 # Find out which ABI we are using.
11560 echo 'int i;' > conftest.$ac_ext
11561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11562 (eval $ac_compile) 2>&5
11563 ac_status=$?
11564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11565 test $ac_status = 0; }; then
11566 case `/usr/bin/file conftest.$ac_objext` in
11567 *ELF-32*)
11568 HPUX_IA64_MODE="32"
11569 ;;
11570 *ELF-64*)
11571 HPUX_IA64_MODE="64"
11572 ;;
11573 esac
11574 fi
11575 rm -rf conftest*
11576 ;;
11577*-*-irix6*)
11578 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011579 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11581 (eval $ac_compile) 2>&5
11582 ac_status=$?
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; }; then
11585 if test "$lt_cv_prog_gnu_ld" = yes; then
11586 case `/usr/bin/file conftest.$ac_objext` in
11587 *32-bit*)
11588 LD="${LD-ld} -melf32bsmip"
11589 ;;
11590 *N32*)
11591 LD="${LD-ld} -melf32bmipn32"
11592 ;;
11593 *64-bit*)
11594 LD="${LD-ld} -melf64bmip"
11595 ;;
11596 esac
11597 else
11598 case `/usr/bin/file conftest.$ac_objext` in
11599 *32-bit*)
11600 LD="${LD-ld} -32"
11601 ;;
11602 *N32*)
11603 LD="${LD-ld} -n32"
11604 ;;
11605 *64-bit*)
11606 LD="${LD-ld} -64"
11607 ;;
11608 esac
11609 fi
11610 fi
11611 rm -rf conftest*
11612 ;;
11613
11614x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11615s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11616 # Find out which ABI we are using.
11617 echo 'int i;' > conftest.$ac_ext
11618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11619 (eval $ac_compile) 2>&5
11620 ac_status=$?
11621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622 test $ac_status = 0; }; then
11623 case `/usr/bin/file conftest.o` in
11624 *32-bit*)
11625 case $host in
11626 x86_64-*kfreebsd*-gnu)
11627 LD="${LD-ld} -m elf_i386_fbsd"
11628 ;;
11629 x86_64-*linux*)
11630 LD="${LD-ld} -m elf_i386"
11631 ;;
11632 ppc64-*linux*|powerpc64-*linux*)
11633 LD="${LD-ld} -m elf32ppclinux"
11634 ;;
11635 s390x-*linux*)
11636 LD="${LD-ld} -m elf_s390"
11637 ;;
11638 sparc64-*linux*)
11639 LD="${LD-ld} -m elf32_sparc"
11640 ;;
11641 esac
11642 ;;
11643 *64-bit*)
11644 case $host in
11645 x86_64-*kfreebsd*-gnu)
11646 LD="${LD-ld} -m elf_x86_64_fbsd"
11647 ;;
11648 x86_64-*linux*)
11649 LD="${LD-ld} -m elf_x86_64"
11650 ;;
11651 ppc*-*linux*|powerpc*-*linux*)
11652 LD="${LD-ld} -m elf64ppc"
11653 ;;
11654 s390*-*linux*|s390*-*tpf*)
11655 LD="${LD-ld} -m elf64_s390"
11656 ;;
11657 sparc*-*linux*)
11658 LD="${LD-ld} -m elf64_sparc"
11659 ;;
11660 esac
11661 ;;
11662 esac
11663 fi
11664 rm -rf conftest*
11665 ;;
11666
11667*-*-sco3.2v5*)
11668 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11669 SAVE_CFLAGS="$CFLAGS"
11670 CFLAGS="$CFLAGS -belf"
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11672$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011673if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011674 $as_echo_n "(cached) " >&6
11675else
11676 ac_ext=c
11677ac_cpp='$CPP $CPPFLAGS'
11678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680ac_compiler_gnu=$ac_cv_c_compiler_gnu
11681
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h. */
11684
11685int
11686main ()
11687{
11688
11689 ;
11690 return 0;
11691}
11692_ACEOF
11693if ac_fn_c_try_link "$LINENO"; then :
11694 lt_cv_cc_needs_belf=yes
11695else
11696 lt_cv_cc_needs_belf=no
11697fi
11698rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 ac_ext=c
11701ac_cpp='$CPP $CPPFLAGS'
11702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11704ac_compiler_gnu=$ac_cv_c_compiler_gnu
11705
11706fi
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11708$as_echo "$lt_cv_cc_needs_belf" >&6; }
11709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11711 CFLAGS="$SAVE_CFLAGS"
11712 fi
11713 ;;
11714sparc*-*solaris*)
11715 # Find out which ABI we are using.
11716 echo 'int i;' > conftest.$ac_ext
11717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11718 (eval $ac_compile) 2>&5
11719 ac_status=$?
11720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721 test $ac_status = 0; }; then
11722 case `/usr/bin/file conftest.o` in
11723 *64-bit*)
11724 case $lt_cv_prog_gnu_ld in
11725 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11726 *)
11727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11728 LD="${LD-ld} -64"
11729 fi
11730 ;;
11731 esac
11732 ;;
11733 esac
11734 fi
11735 rm -rf conftest*
11736 ;;
11737esac
11738
11739need_locks="$enable_libtool_lock"
11740
cristyda16f162011-02-19 23:52:17 +000011741if test -n "$ac_tool_prefix"; then
11742 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11743set dummy ${ac_tool_prefix}mt; ac_word=$2
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745$as_echo_n "checking for $ac_word... " >&6; }
11746if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748else
11749 if test -n "$MANIFEST_TOOL"; then
11750 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11751else
11752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $PATH
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11762 fi
11763done
11764 done
11765IFS=$as_save_IFS
11766
11767fi
11768fi
11769MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11770if test -n "$MANIFEST_TOOL"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11772$as_echo "$MANIFEST_TOOL" >&6; }
11773else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775$as_echo "no" >&6; }
11776fi
11777
11778
11779fi
11780if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11781 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11782 # Extract the first word of "mt", so it can be a program name with args.
11783set dummy mt; ac_word=$2
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785$as_echo_n "checking for $ac_word... " >&6; }
11786if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788else
11789 if test -n "$ac_ct_MANIFEST_TOOL"; then
11790 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11791else
11792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793for as_dir in $PATH
11794do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11799 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 break 2
11802 fi
11803done
11804 done
11805IFS=$as_save_IFS
11806
11807fi
11808fi
11809ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11810if test -n "$ac_ct_MANIFEST_TOOL"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11812$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11813else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815$as_echo "no" >&6; }
11816fi
11817
11818 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11819 MANIFEST_TOOL=":"
11820 else
11821 case $cross_compiling:$ac_tool_warned in
11822yes:)
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11825ac_tool_warned=yes ;;
11826esac
11827 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11828 fi
11829else
11830 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11831fi
11832
11833test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11835$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11836if ${lt_cv_path_mainfest_tool+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838else
11839 lt_cv_path_mainfest_tool=no
11840 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11841 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11842 cat conftest.err >&5
11843 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11844 lt_cv_path_mainfest_tool=yes
11845 fi
11846 rm -f conftest*
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11849$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11850if test "x$lt_cv_path_mainfest_tool" != xyes; then
11851 MANIFEST_TOOL=:
11852fi
11853
11854
11855
11856
11857
cristy73bd4a52010-10-05 11:24:23 +000011858
11859 case $host_os in
11860 rhapsody* | darwin*)
11861 if test -n "$ac_tool_prefix"; then
11862 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11863set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011866if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011867 $as_echo_n "(cached) " >&6
11868else
11869 if test -n "$DSYMUTIL"; then
11870 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11871else
11872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883done
11884 done
11885IFS=$as_save_IFS
11886
11887fi
11888fi
11889DSYMUTIL=$ac_cv_prog_DSYMUTIL
11890if test -n "$DSYMUTIL"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11892$as_echo "$DSYMUTIL" >&6; }
11893else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
11896fi
11897
11898
11899fi
11900if test -z "$ac_cv_prog_DSYMUTIL"; then
11901 ac_ct_DSYMUTIL=$DSYMUTIL
11902 # Extract the first word of "dsymutil", so it can be a program name with args.
11903set dummy dsymutil; ac_word=$2
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011906if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011907 $as_echo_n "(cached) " >&6
11908else
11909 if test -n "$ac_ct_DSYMUTIL"; then
11910 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11911else
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923done
11924 done
11925IFS=$as_save_IFS
11926
11927fi
11928fi
11929ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11930if test -n "$ac_ct_DSYMUTIL"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11932$as_echo "$ac_ct_DSYMUTIL" >&6; }
11933else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935$as_echo "no" >&6; }
11936fi
11937
11938 if test "x$ac_ct_DSYMUTIL" = x; then
11939 DSYMUTIL=":"
11940 else
11941 case $cross_compiling:$ac_tool_warned in
11942yes:)
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11945ac_tool_warned=yes ;;
11946esac
11947 DSYMUTIL=$ac_ct_DSYMUTIL
11948 fi
11949else
11950 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11951fi
11952
11953 if test -n "$ac_tool_prefix"; then
11954 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11955set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011958if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011959 $as_echo_n "(cached) " >&6
11960else
11961 if test -n "$NMEDIT"; then
11962 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11963else
11964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965for as_dir in $PATH
11966do
11967 IFS=$as_save_IFS
11968 test -z "$as_dir" && as_dir=.
11969 for ac_exec_ext in '' $ac_executable_extensions; do
11970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11971 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 break 2
11974 fi
11975done
11976 done
11977IFS=$as_save_IFS
11978
11979fi
11980fi
11981NMEDIT=$ac_cv_prog_NMEDIT
11982if test -n "$NMEDIT"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11984$as_echo "$NMEDIT" >&6; }
11985else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
11988fi
11989
11990
11991fi
11992if test -z "$ac_cv_prog_NMEDIT"; then
11993 ac_ct_NMEDIT=$NMEDIT
11994 # Extract the first word of "nmedit", so it can be a program name with args.
11995set dummy nmedit; ac_word=$2
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011998if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011999 $as_echo_n "(cached) " >&6
12000else
12001 if test -n "$ac_ct_NMEDIT"; then
12002 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12003else
12004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005for as_dir in $PATH
12006do
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12011 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12013 break 2
12014 fi
12015done
12016 done
12017IFS=$as_save_IFS
12018
12019fi
12020fi
12021ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12022if test -n "$ac_ct_NMEDIT"; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12024$as_echo "$ac_ct_NMEDIT" >&6; }
12025else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
12028fi
12029
12030 if test "x$ac_ct_NMEDIT" = x; then
12031 NMEDIT=":"
12032 else
12033 case $cross_compiling:$ac_tool_warned in
12034yes:)
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12037ac_tool_warned=yes ;;
12038esac
12039 NMEDIT=$ac_ct_NMEDIT
12040 fi
12041else
12042 NMEDIT="$ac_cv_prog_NMEDIT"
12043fi
12044
12045 if test -n "$ac_tool_prefix"; then
12046 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12047set dummy ${ac_tool_prefix}lipo; ac_word=$2
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012050if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012051 $as_echo_n "(cached) " >&6
12052else
12053 if test -n "$LIPO"; then
12054 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12055else
12056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057for as_dir in $PATH
12058do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12063 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 break 2
12066 fi
12067done
12068 done
12069IFS=$as_save_IFS
12070
12071fi
12072fi
12073LIPO=$ac_cv_prog_LIPO
12074if test -n "$LIPO"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12076$as_echo "$LIPO" >&6; }
12077else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
12080fi
12081
12082
12083fi
12084if test -z "$ac_cv_prog_LIPO"; then
12085 ac_ct_LIPO=$LIPO
12086 # Extract the first word of "lipo", so it can be a program name with args.
12087set dummy lipo; ac_word=$2
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012090if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012091 $as_echo_n "(cached) " >&6
12092else
12093 if test -n "$ac_ct_LIPO"; then
12094 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12095else
12096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097for as_dir in $PATH
12098do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12103 ac_cv_prog_ac_ct_LIPO="lipo"
12104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12105 break 2
12106 fi
12107done
12108 done
12109IFS=$as_save_IFS
12110
12111fi
12112fi
12113ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12114if test -n "$ac_ct_LIPO"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12116$as_echo "$ac_ct_LIPO" >&6; }
12117else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119$as_echo "no" >&6; }
12120fi
12121
12122 if test "x$ac_ct_LIPO" = x; then
12123 LIPO=":"
12124 else
12125 case $cross_compiling:$ac_tool_warned in
12126yes:)
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12129ac_tool_warned=yes ;;
12130esac
12131 LIPO=$ac_ct_LIPO
12132 fi
12133else
12134 LIPO="$ac_cv_prog_LIPO"
12135fi
12136
12137 if test -n "$ac_tool_prefix"; then
12138 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12139set dummy ${ac_tool_prefix}otool; ac_word=$2
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012142if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012143 $as_echo_n "(cached) " >&6
12144else
12145 if test -n "$OTOOL"; then
12146 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12147else
12148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149for as_dir in $PATH
12150do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12155 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159done
12160 done
12161IFS=$as_save_IFS
12162
12163fi
12164fi
12165OTOOL=$ac_cv_prog_OTOOL
12166if test -n "$OTOOL"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12168$as_echo "$OTOOL" >&6; }
12169else
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
12172fi
12173
12174
12175fi
12176if test -z "$ac_cv_prog_OTOOL"; then
12177 ac_ct_OTOOL=$OTOOL
12178 # Extract the first word of "otool", so it can be a program name with args.
12179set dummy otool; ac_word=$2
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012182if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012183 $as_echo_n "(cached) " >&6
12184else
12185 if test -n "$ac_ct_OTOOL"; then
12186 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12187else
12188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_prog_ac_ct_OTOOL="otool"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199done
12200 done
12201IFS=$as_save_IFS
12202
12203fi
12204fi
12205ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12206if test -n "$ac_ct_OTOOL"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12208$as_echo "$ac_ct_OTOOL" >&6; }
12209else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213
12214 if test "x$ac_ct_OTOOL" = x; then
12215 OTOOL=":"
12216 else
12217 case $cross_compiling:$ac_tool_warned in
12218yes:)
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12221ac_tool_warned=yes ;;
12222esac
12223 OTOOL=$ac_ct_OTOOL
12224 fi
12225else
12226 OTOOL="$ac_cv_prog_OTOOL"
12227fi
12228
12229 if test -n "$ac_tool_prefix"; then
12230 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12231set dummy ${ac_tool_prefix}otool64; ac_word=$2
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012234if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012235 $as_echo_n "(cached) " >&6
12236else
12237 if test -n "$OTOOL64"; then
12238 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12239else
12240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241for as_dir in $PATH
12242do
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12250 fi
12251done
12252 done
12253IFS=$as_save_IFS
12254
12255fi
12256fi
12257OTOOL64=$ac_cv_prog_OTOOL64
12258if test -n "$OTOOL64"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12260$as_echo "$OTOOL64" >&6; }
12261else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263$as_echo "no" >&6; }
12264fi
12265
12266
12267fi
12268if test -z "$ac_cv_prog_OTOOL64"; then
12269 ac_ct_OTOOL64=$OTOOL64
12270 # Extract the first word of "otool64", so it can be a program name with args.
12271set dummy otool64; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012274if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012275 $as_echo_n "(cached) " >&6
12276else
12277 if test -n "$ac_ct_OTOOL64"; then
12278 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287 ac_cv_prog_ac_ct_OTOOL64="otool64"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291done
12292 done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12298if test -n "$ac_ct_OTOOL64"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12300$as_echo "$ac_ct_OTOOL64" >&6; }
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306 if test "x$ac_ct_OTOOL64" = x; then
12307 OTOOL64=":"
12308 else
12309 case $cross_compiling:$ac_tool_warned in
12310yes:)
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12313ac_tool_warned=yes ;;
12314esac
12315 OTOOL64=$ac_ct_OTOOL64
12316 fi
12317else
12318 OTOOL64="$ac_cv_prog_OTOOL64"
12319fi
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12348$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012349if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012350 $as_echo_n "(cached) " >&6
12351else
12352 lt_cv_apple_cc_single_mod=no
12353 if test -z "${LT_MULTI_MODULE}"; then
12354 # By default we will add the -single_module flag. You can override
12355 # by either setting the environment variable LT_MULTI_MODULE
12356 # non-empty at configure time, or by adding -multi_module to the
12357 # link flags.
12358 rm -rf libconftest.dylib*
12359 echo "int foo(void){return 1;}" > conftest.c
12360 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12361-dynamiclib -Wl,-single_module conftest.c" >&5
12362 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12363 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12364 _lt_result=$?
12365 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12366 lt_cv_apple_cc_single_mod=yes
12367 else
12368 cat conftest.err >&5
12369 fi
12370 rm -rf libconftest.dylib*
12371 rm -f conftest.*
12372 fi
12373fi
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12375$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12377$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012378if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012379 $as_echo_n "(cached) " >&6
12380else
12381 lt_cv_ld_exported_symbols_list=no
12382 save_LDFLAGS=$LDFLAGS
12383 echo "_main" > conftest.sym
12384 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386/* end confdefs.h. */
12387
12388int
12389main ()
12390{
12391
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396if ac_fn_c_try_link "$LINENO"; then :
12397 lt_cv_ld_exported_symbols_list=yes
12398else
12399 lt_cv_ld_exported_symbols_list=no
12400fi
12401rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12403 LDFLAGS="$save_LDFLAGS"
12404
12405fi
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12407$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12409$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012410if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012411 $as_echo_n "(cached) " >&6
12412else
12413 lt_cv_ld_force_load=no
12414 cat > conftest.c << _LT_EOF
12415int forced_loaded() { return 2;}
12416_LT_EOF
12417 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12418 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12419 echo "$AR cru libconftest.a conftest.o" >&5
12420 $AR cru libconftest.a conftest.o 2>&5
12421 echo "$RANLIB libconftest.a" >&5
12422 $RANLIB libconftest.a 2>&5
12423 cat > conftest.c << _LT_EOF
12424int main() { return 0;}
12425_LT_EOF
12426 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12427 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12428 _lt_result=$?
12429 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12430 lt_cv_ld_force_load=yes
12431 else
12432 cat conftest.err >&5
12433 fi
12434 rm -f conftest.err libconftest.a conftest conftest.c
12435 rm -rf conftest.dSYM
12436
12437fi
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12439$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012440 case $host_os in
12441 rhapsody* | darwin1.[012])
12442 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12443 darwin1.*)
12444 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12445 darwin*) # darwin 5.x on
12446 # if running on 10.5 or later, the deployment target defaults
12447 # to the OS version, if on x86, and 10.4, the deployment
12448 # target defaults to 10.4. Don't you love it?
12449 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12450 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12451 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12452 10.[012]*)
12453 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12454 10.*)
12455 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12456 esac
12457 ;;
12458 esac
12459 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12460 _lt_dar_single_mod='$single_module'
12461 fi
12462 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12463 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12464 else
12465 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12466 fi
cristy0c60a692010-11-04 01:09:47 +000012467 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012468 _lt_dsymutil='~$DSYMUTIL $lib || :'
12469 else
12470 _lt_dsymutil=
12471 fi
12472 ;;
12473 esac
12474
12475for ac_header in dlfcn.h
12476do :
12477 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12478"
cristyda16f162011-02-19 23:52:17 +000012479if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012480 cat >>confdefs.h <<_ACEOF
12481#define HAVE_DLFCN_H 1
12482_ACEOF
12483
12484fi
12485
12486done
12487
12488
12489
cristy73bd4a52010-10-05 11:24:23 +000012490
cristyda16f162011-02-19 23:52:17 +000012491func_stripname_cnf ()
12492{
12493 case ${2} in
12494 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12495 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12496 esac
12497} # func_stripname_cnf
12498
12499
12500
cristy73bd4a52010-10-05 11:24:23 +000012501
12502
12503# Set options
12504enable_win32_dll=yes
12505
12506case $host in
cristy0c60a692010-11-04 01:09:47 +000012507*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012508 if test -n "$ac_tool_prefix"; then
12509 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12510set dummy ${ac_tool_prefix}as; ac_word=$2
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012513if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012514 $as_echo_n "(cached) " >&6
12515else
12516 if test -n "$AS"; then
12517 ac_cv_prog_AS="$AS" # Let the user override the test.
12518else
12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
12521do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_AS="${ac_tool_prefix}as"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12529 fi
12530done
12531 done
12532IFS=$as_save_IFS
12533
12534fi
12535fi
12536AS=$ac_cv_prog_AS
12537if test -n "$AS"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12539$as_echo "$AS" >&6; }
12540else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542$as_echo "no" >&6; }
12543fi
12544
12545
12546fi
12547if test -z "$ac_cv_prog_AS"; then
12548 ac_ct_AS=$AS
12549 # Extract the first word of "as", so it can be a program name with args.
12550set dummy as; ac_word=$2
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012553if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012554 $as_echo_n "(cached) " >&6
12555else
12556 if test -n "$ac_ct_AS"; then
12557 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12558else
12559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560for as_dir in $PATH
12561do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12566 ac_cv_prog_ac_ct_AS="as"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 break 2
12569 fi
12570done
12571 done
12572IFS=$as_save_IFS
12573
12574fi
12575fi
12576ac_ct_AS=$ac_cv_prog_ac_ct_AS
12577if test -n "$ac_ct_AS"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12579$as_echo "$ac_ct_AS" >&6; }
12580else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
12583fi
12584
12585 if test "x$ac_ct_AS" = x; then
12586 AS="false"
12587 else
12588 case $cross_compiling:$ac_tool_warned in
12589yes:)
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12592ac_tool_warned=yes ;;
12593esac
12594 AS=$ac_ct_AS
12595 fi
12596else
12597 AS="$ac_cv_prog_AS"
12598fi
12599
12600 if test -n "$ac_tool_prefix"; then
12601 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12602set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012605if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012606 $as_echo_n "(cached) " >&6
12607else
12608 if test -n "$DLLTOOL"; then
12609 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12610else
12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in $PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 break 2
12621 fi
12622done
12623 done
12624IFS=$as_save_IFS
12625
12626fi
12627fi
12628DLLTOOL=$ac_cv_prog_DLLTOOL
12629if test -n "$DLLTOOL"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12631$as_echo "$DLLTOOL" >&6; }
12632else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
12635fi
12636
12637
12638fi
12639if test -z "$ac_cv_prog_DLLTOOL"; then
12640 ac_ct_DLLTOOL=$DLLTOOL
12641 # Extract the first word of "dlltool", so it can be a program name with args.
12642set dummy dlltool; ac_word=$2
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012645if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012646 $as_echo_n "(cached) " >&6
12647else
12648 if test -n "$ac_ct_DLLTOOL"; then
12649 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12650else
12651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652for as_dir in $PATH
12653do
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 break 2
12661 fi
12662done
12663 done
12664IFS=$as_save_IFS
12665
12666fi
12667fi
12668ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12669if test -n "$ac_ct_DLLTOOL"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12671$as_echo "$ac_ct_DLLTOOL" >&6; }
12672else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674$as_echo "no" >&6; }
12675fi
12676
12677 if test "x$ac_ct_DLLTOOL" = x; then
12678 DLLTOOL="false"
12679 else
12680 case $cross_compiling:$ac_tool_warned in
12681yes:)
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12684ac_tool_warned=yes ;;
12685esac
12686 DLLTOOL=$ac_ct_DLLTOOL
12687 fi
12688else
12689 DLLTOOL="$ac_cv_prog_DLLTOOL"
12690fi
12691
12692 if test -n "$ac_tool_prefix"; then
12693 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12694set dummy ${ac_tool_prefix}objdump; ac_word=$2
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012697if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012698 $as_echo_n "(cached) " >&6
12699else
12700 if test -n "$OBJDUMP"; then
12701 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12702else
12703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704for as_dir in $PATH
12705do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12713 fi
12714done
12715 done
12716IFS=$as_save_IFS
12717
12718fi
12719fi
12720OBJDUMP=$ac_cv_prog_OBJDUMP
12721if test -n "$OBJDUMP"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12723$as_echo "$OBJDUMP" >&6; }
12724else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726$as_echo "no" >&6; }
12727fi
12728
12729
12730fi
12731if test -z "$ac_cv_prog_OBJDUMP"; then
12732 ac_ct_OBJDUMP=$OBJDUMP
12733 # Extract the first word of "objdump", so it can be a program name with args.
12734set dummy objdump; ac_word=$2
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012737if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012738 $as_echo_n "(cached) " >&6
12739else
12740 if test -n "$ac_ct_OBJDUMP"; then
12741 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12742else
12743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744for as_dir in $PATH
12745do
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12750 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12753 fi
12754done
12755 done
12756IFS=$as_save_IFS
12757
12758fi
12759fi
12760ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12761if test -n "$ac_ct_OBJDUMP"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12763$as_echo "$ac_ct_OBJDUMP" >&6; }
12764else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
12767fi
12768
12769 if test "x$ac_ct_OBJDUMP" = x; then
12770 OBJDUMP="false"
12771 else
12772 case $cross_compiling:$ac_tool_warned in
12773yes:)
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12776ac_tool_warned=yes ;;
12777esac
12778 OBJDUMP=$ac_ct_OBJDUMP
12779 fi
12780else
12781 OBJDUMP="$ac_cv_prog_OBJDUMP"
12782fi
12783
12784 ;;
12785esac
12786
12787test -z "$AS" && AS=as
12788
12789
12790
12791
12792
12793test -z "$DLLTOOL" && DLLTOOL=dlltool
12794
12795
12796
12797
12798
12799test -z "$OBJDUMP" && OBJDUMP=objdump
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809 # Check whether --enable-shared was given.
12810if test "${enable_shared+set}" = set; then :
12811 enableval=$enable_shared; p=${PACKAGE-default}
12812 case $enableval in
12813 yes) enable_shared=yes ;;
12814 no) enable_shared=no ;;
12815 *)
12816 enable_shared=no
12817 # Look at the argument we got. We use all the common list separators.
12818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12819 for pkg in $enableval; do
12820 IFS="$lt_save_ifs"
12821 if test "X$pkg" = "X$p"; then
12822 enable_shared=yes
12823 fi
12824 done
12825 IFS="$lt_save_ifs"
12826 ;;
12827 esac
12828else
12829 enable_shared=yes
12830fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840 # Check whether --enable-static was given.
12841if test "${enable_static+set}" = set; then :
12842 enableval=$enable_static; p=${PACKAGE-default}
12843 case $enableval in
12844 yes) enable_static=yes ;;
12845 no) enable_static=no ;;
12846 *)
12847 enable_static=no
12848 # Look at the argument we got. We use all the common list separators.
12849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12850 for pkg in $enableval; do
12851 IFS="$lt_save_ifs"
12852 if test "X$pkg" = "X$p"; then
12853 enable_static=yes
12854 fi
12855 done
12856 IFS="$lt_save_ifs"
12857 ;;
12858 esac
12859else
12860 enable_static=yes
12861fi
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872# Check whether --with-pic was given.
12873if test "${with_pic+set}" = set; then :
12874 withval=$with_pic; pic_mode="$withval"
12875else
12876 pic_mode=default
12877fi
12878
12879
12880test -z "$pic_mode" && pic_mode=default
12881
12882
12883
12884
12885
12886
12887
12888 # Check whether --enable-fast-install was given.
12889if test "${enable_fast_install+set}" = set; then :
12890 enableval=$enable_fast_install; p=${PACKAGE-default}
12891 case $enableval in
12892 yes) enable_fast_install=yes ;;
12893 no) enable_fast_install=no ;;
12894 *)
12895 enable_fast_install=no
12896 # Look at the argument we got. We use all the common list separators.
12897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12898 for pkg in $enableval; do
12899 IFS="$lt_save_ifs"
12900 if test "X$pkg" = "X$p"; then
12901 enable_fast_install=yes
12902 fi
12903 done
12904 IFS="$lt_save_ifs"
12905 ;;
12906 esac
12907else
12908 enable_fast_install=yes
12909fi
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921# This can be used to rebuild libtool when needed
12922LIBTOOL_DEPS="$ltmain"
12923
12924# Always use our own libtool.
12925LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
cristy0c60a692010-11-04 01:09:47 +000012951
cristy73bd4a52010-10-05 11:24:23 +000012952test -z "$LN_S" && LN_S="ln -s"
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967if test -n "${ZSH_VERSION+set}" ; then
12968 setopt NO_GLOB_SUBST
12969fi
12970
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12972$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012973if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012974 $as_echo_n "(cached) " >&6
12975else
12976 rm -f .libs 2>/dev/null
12977mkdir .libs 2>/dev/null
12978if test -d .libs; then
12979 lt_cv_objdir=.libs
12980else
12981 # MS-DOS does not allow filenames that begin with a dot.
12982 lt_cv_objdir=_libs
12983fi
12984rmdir .libs 2>/dev/null
12985fi
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12987$as_echo "$lt_cv_objdir" >&6; }
12988objdir=$lt_cv_objdir
12989
12990
12991
12992
12993
12994cat >>confdefs.h <<_ACEOF
12995#define LT_OBJDIR "$lt_cv_objdir/"
12996_ACEOF
12997
12998
12999
13000
cristy73bd4a52010-10-05 11:24:23 +000013001case $host_os in
13002aix3*)
13003 # AIX sometimes has problems with the GCC collect2 program. For some
13004 # reason, if we set the COLLECT_NAMES environment variable, the problems
13005 # vanish in a puff of smoke.
13006 if test "X${COLLECT_NAMES+set}" != Xset; then
13007 COLLECT_NAMES=
13008 export COLLECT_NAMES
13009 fi
13010 ;;
13011esac
13012
cristy73bd4a52010-10-05 11:24:23 +000013013# Global variables:
13014ofile=libtool
13015can_build_shared=yes
13016
13017# All known linkers require a `.a' archive for static linking (except MSVC,
13018# which needs '.lib').
13019libext=a
13020
13021with_gnu_ld="$lt_cv_prog_gnu_ld"
13022
13023old_CC="$CC"
13024old_CFLAGS="$CFLAGS"
13025
13026# Set sane defaults for various variables
13027test -z "$CC" && CC=cc
13028test -z "$LTCC" && LTCC=$CC
13029test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13030test -z "$LD" && LD=ld
13031test -z "$ac_objext" && ac_objext=o
13032
13033for cc_temp in $compiler""; do
13034 case $cc_temp in
13035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13037 \-*) ;;
13038 *) break;;
13039 esac
13040done
cristy0c60a692010-11-04 01:09:47 +000013041cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013042
13043
13044# Only perform the check for file, if the check method requires it
13045test -z "$MAGIC_CMD" && MAGIC_CMD=file
13046case $deplibs_check_method in
13047file_magic*)
13048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13050$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013051if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013052 $as_echo_n "(cached) " >&6
13053else
13054 case $MAGIC_CMD in
13055[\\/*] | ?:[\\/]*)
13056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13057 ;;
13058*)
13059 lt_save_MAGIC_CMD="$MAGIC_CMD"
13060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13062 for ac_dir in $ac_dummy; do
13063 IFS="$lt_save_ifs"
13064 test -z "$ac_dir" && ac_dir=.
13065 if test -f $ac_dir/${ac_tool_prefix}file; then
13066 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13067 if test -n "$file_magic_test_file"; then
13068 case $deplibs_check_method in
13069 "file_magic "*)
13070 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13073 $EGREP "$file_magic_regex" > /dev/null; then
13074 :
13075 else
13076 cat <<_LT_EOF 1>&2
13077
13078*** Warning: the command libtool uses to detect shared libraries,
13079*** $file_magic_cmd, produces output that libtool cannot recognize.
13080*** The result is that libtool may fail to recognize shared libraries
13081*** as such. This will affect the creation of libtool libraries that
13082*** depend on shared libraries, but programs linked with such libtool
13083*** libraries will work regardless of this problem. Nevertheless, you
13084*** may want to report the problem to your system manager and/or to
13085*** bug-libtool@gnu.org
13086
13087_LT_EOF
13088 fi ;;
13089 esac
13090 fi
13091 break
13092 fi
13093 done
13094 IFS="$lt_save_ifs"
13095 MAGIC_CMD="$lt_save_MAGIC_CMD"
13096 ;;
13097esac
13098fi
13099
13100MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13101if test -n "$MAGIC_CMD"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13103$as_echo "$MAGIC_CMD" >&6; }
13104else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106$as_echo "no" >&6; }
13107fi
13108
13109
13110
13111
13112
13113if test -z "$lt_cv_path_MAGIC_CMD"; then
13114 if test -n "$ac_tool_prefix"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13116$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013117if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013118 $as_echo_n "(cached) " >&6
13119else
13120 case $MAGIC_CMD in
13121[\\/*] | ?:[\\/]*)
13122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13123 ;;
13124*)
13125 lt_save_MAGIC_CMD="$MAGIC_CMD"
13126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13128 for ac_dir in $ac_dummy; do
13129 IFS="$lt_save_ifs"
13130 test -z "$ac_dir" && ac_dir=.
13131 if test -f $ac_dir/file; then
13132 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13133 if test -n "$file_magic_test_file"; then
13134 case $deplibs_check_method in
13135 "file_magic "*)
13136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13139 $EGREP "$file_magic_regex" > /dev/null; then
13140 :
13141 else
13142 cat <<_LT_EOF 1>&2
13143
13144*** Warning: the command libtool uses to detect shared libraries,
13145*** $file_magic_cmd, produces output that libtool cannot recognize.
13146*** The result is that libtool may fail to recognize shared libraries
13147*** as such. This will affect the creation of libtool libraries that
13148*** depend on shared libraries, but programs linked with such libtool
13149*** libraries will work regardless of this problem. Nevertheless, you
13150*** may want to report the problem to your system manager and/or to
13151*** bug-libtool@gnu.org
13152
13153_LT_EOF
13154 fi ;;
13155 esac
13156 fi
13157 break
13158 fi
13159 done
13160 IFS="$lt_save_ifs"
13161 MAGIC_CMD="$lt_save_MAGIC_CMD"
13162 ;;
13163esac
13164fi
13165
13166MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13167if test -n "$MAGIC_CMD"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13169$as_echo "$MAGIC_CMD" >&6; }
13170else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172$as_echo "no" >&6; }
13173fi
13174
13175
13176 else
13177 MAGIC_CMD=:
13178 fi
13179fi
13180
13181 fi
13182 ;;
13183esac
13184
13185# Use C for the default configuration in the libtool script
13186
13187lt_save_CC="$CC"
13188ac_ext=c
13189ac_cpp='$CPP $CPPFLAGS'
13190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193
13194
13195# Source file extension for C test sources.
13196ac_ext=c
13197
13198# Object file extension for compiled C test sources.
13199objext=o
13200objext=$objext
13201
13202# Code to be used in simple compile tests
13203lt_simple_compile_test_code="int some_variable = 0;"
13204
13205# Code to be used in simple link tests
13206lt_simple_link_test_code='int main(){return(0);}'
13207
13208
13209
13210
13211
13212
13213
13214# If no C compiler was specified, use CC.
13215LTCC=${LTCC-"$CC"}
13216
13217# If no C compiler flags were specified, use CFLAGS.
13218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13219
13220# Allow CC to be a program name with arguments.
13221compiler=$CC
13222
13223# Save the default compiler, since it gets overwritten when the other
13224# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13225compiler_DEFAULT=$CC
13226
13227# save warnings/boilerplate of simple test code
13228ac_outfile=conftest.$ac_objext
13229echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13230eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13231_lt_compiler_boilerplate=`cat conftest.err`
13232$RM conftest*
13233
13234ac_outfile=conftest.$ac_objext
13235echo "$lt_simple_link_test_code" >conftest.$ac_ext
13236eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13237_lt_linker_boilerplate=`cat conftest.err`
13238$RM -r conftest*
13239
13240
13241## CAVEAT EMPTOR:
13242## There is no encapsulation within the following macros, do not change
13243## the running order or otherwise move them around unless you know exactly
13244## what you are doing...
13245if test -n "$compiler"; then
13246
13247lt_prog_compiler_no_builtin_flag=
13248
13249if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013250 case $cc_basename in
13251 nvcc*)
13252 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13253 *)
13254 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13255 esac
cristy73bd4a52010-10-05 11:24:23 +000013256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13258$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013259if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013260 $as_echo_n "(cached) " >&6
13261else
13262 lt_cv_prog_compiler_rtti_exceptions=no
13263 ac_outfile=conftest.$ac_objext
13264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13265 lt_compiler_flag="-fno-rtti -fno-exceptions"
13266 # Insert the option either (1) after the last *FLAGS variable, or
13267 # (2) before a word containing "conftest.", or (3) at the end.
13268 # Note that $ac_compile itself does not contain backslashes and begins
13269 # with a dollar sign (not a hyphen), so the echo should work correctly.
13270 # The option is referenced via a variable to avoid confusing sed.
13271 lt_compile=`echo "$ac_compile" | $SED \
13272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13274 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013276 (eval "$lt_compile" 2>conftest.err)
13277 ac_status=$?
13278 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013280 if (exit $ac_status) && test -s "$ac_outfile"; then
13281 # The compiler can only warn and ignore the option if not recognized
13282 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13285 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13286 lt_cv_prog_compiler_rtti_exceptions=yes
13287 fi
13288 fi
13289 $RM conftest*
13290
13291fi
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13293$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13294
13295if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13296 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13297else
13298 :
13299fi
13300
13301fi
13302
13303
13304
13305
13306
13307
13308 lt_prog_compiler_wl=
13309lt_prog_compiler_pic=
13310lt_prog_compiler_static=
13311
cristy73bd4a52010-10-05 11:24:23 +000013312
13313 if test "$GCC" = yes; then
13314 lt_prog_compiler_wl='-Wl,'
13315 lt_prog_compiler_static='-static'
13316
13317 case $host_os in
13318 aix*)
13319 # All AIX code is PIC.
13320 if test "$host_cpu" = ia64; then
13321 # AIX 5 now supports IA64 processor
13322 lt_prog_compiler_static='-Bstatic'
13323 fi
13324 ;;
13325
13326 amigaos*)
13327 case $host_cpu in
13328 powerpc)
13329 # see comment about AmigaOS4 .so support
13330 lt_prog_compiler_pic='-fPIC'
13331 ;;
13332 m68k)
13333 # FIXME: we need at least 68020 code to build shared libraries, but
13334 # adding the `-m68020' flag to GCC prevents building anything better,
13335 # like `-m68040'.
13336 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13337 ;;
13338 esac
13339 ;;
13340
13341 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13342 # PIC is the default for these OSes.
13343 ;;
13344
13345 mingw* | cygwin* | pw32* | os2* | cegcc*)
13346 # This hack is so that the source file can tell whether it is being
13347 # built for inclusion in a dll (and should export symbols for example).
13348 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13349 # (--disable-auto-import) libraries
13350 lt_prog_compiler_pic='-DDLL_EXPORT'
13351 ;;
13352
13353 darwin* | rhapsody*)
13354 # PIC is the default on this platform
13355 # Common symbols not allowed in MH_DYLIB files
13356 lt_prog_compiler_pic='-fno-common'
13357 ;;
13358
cristy0c60a692010-11-04 01:09:47 +000013359 haiku*)
13360 # PIC is the default for Haiku.
13361 # The "-static" flag exists, but is broken.
13362 lt_prog_compiler_static=
13363 ;;
13364
cristy73bd4a52010-10-05 11:24:23 +000013365 hpux*)
13366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13368 # sets the default TLS model and affects inlining.
13369 case $host_cpu in
13370 hppa*64*)
13371 # +Z the default
13372 ;;
13373 *)
13374 lt_prog_compiler_pic='-fPIC'
13375 ;;
13376 esac
13377 ;;
13378
13379 interix[3-9]*)
13380 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13381 # Instead, we relocate shared libraries at runtime.
13382 ;;
13383
13384 msdosdjgpp*)
13385 # Just because we use GCC doesn't mean we suddenly get shared libraries
13386 # on systems that don't support them.
13387 lt_prog_compiler_can_build_shared=no
13388 enable_shared=no
13389 ;;
13390
13391 *nto* | *qnx*)
13392 # QNX uses GNU C++, but need to define -shared option too, otherwise
13393 # it will coredump.
13394 lt_prog_compiler_pic='-fPIC -shared'
13395 ;;
13396
13397 sysv4*MP*)
13398 if test -d /usr/nec; then
13399 lt_prog_compiler_pic=-Kconform_pic
13400 fi
13401 ;;
13402
13403 *)
13404 lt_prog_compiler_pic='-fPIC'
13405 ;;
13406 esac
cristy0c60a692010-11-04 01:09:47 +000013407
13408 case $cc_basename in
13409 nvcc*) # Cuda Compiler Driver 2.2
13410 lt_prog_compiler_wl='-Xlinker '
13411 lt_prog_compiler_pic='-Xcompiler -fPIC'
13412 ;;
13413 esac
cristy73bd4a52010-10-05 11:24:23 +000013414 else
13415 # PORTME Check for flag to pass linker flags through the system compiler.
13416 case $host_os in
13417 aix*)
13418 lt_prog_compiler_wl='-Wl,'
13419 if test "$host_cpu" = ia64; then
13420 # AIX 5 now supports IA64 processor
13421 lt_prog_compiler_static='-Bstatic'
13422 else
13423 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13424 fi
13425 ;;
13426
13427 mingw* | cygwin* | pw32* | os2* | cegcc*)
13428 # This hack is so that the source file can tell whether it is being
13429 # built for inclusion in a dll (and should export symbols for example).
13430 lt_prog_compiler_pic='-DDLL_EXPORT'
13431 ;;
13432
13433 hpux9* | hpux10* | hpux11*)
13434 lt_prog_compiler_wl='-Wl,'
13435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13436 # not for PA HP-UX.
13437 case $host_cpu in
13438 hppa*64*|ia64*)
13439 # +Z the default
13440 ;;
13441 *)
13442 lt_prog_compiler_pic='+Z'
13443 ;;
13444 esac
13445 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13446 lt_prog_compiler_static='${wl}-a ${wl}archive'
13447 ;;
13448
13449 irix5* | irix6* | nonstopux*)
13450 lt_prog_compiler_wl='-Wl,'
13451 # PIC (with -KPIC) is the default.
13452 lt_prog_compiler_static='-non_shared'
13453 ;;
13454
cristy0c60a692010-11-04 01:09:47 +000013455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013456 case $cc_basename in
13457 # old Intel for x86_64 which still supported -KPIC.
13458 ecc*)
13459 lt_prog_compiler_wl='-Wl,'
13460 lt_prog_compiler_pic='-KPIC'
13461 lt_prog_compiler_static='-static'
13462 ;;
13463 # icc used to be incompatible with GCC.
13464 # ICC 10 doesn't accept -KPIC any more.
13465 icc* | ifort*)
13466 lt_prog_compiler_wl='-Wl,'
13467 lt_prog_compiler_pic='-fPIC'
13468 lt_prog_compiler_static='-static'
13469 ;;
13470 # Lahey Fortran 8.1.
13471 lf95*)
13472 lt_prog_compiler_wl='-Wl,'
13473 lt_prog_compiler_pic='--shared'
13474 lt_prog_compiler_static='--static'
13475 ;;
cristyda16f162011-02-19 23:52:17 +000013476 nagfor*)
13477 # NAG Fortran compiler
13478 lt_prog_compiler_wl='-Wl,-Wl,,'
13479 lt_prog_compiler_pic='-PIC'
13480 lt_prog_compiler_static='-Bstatic'
13481 ;;
cristy0c60a692010-11-04 01:09:47 +000013482 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013483 # Portland Group compilers (*not* the Pentium gcc compiler,
13484 # which looks to be a dead project)
13485 lt_prog_compiler_wl='-Wl,'
13486 lt_prog_compiler_pic='-fpic'
13487 lt_prog_compiler_static='-Bstatic'
13488 ;;
13489 ccc*)
13490 lt_prog_compiler_wl='-Wl,'
13491 # All Alpha code is PIC.
13492 lt_prog_compiler_static='-non_shared'
13493 ;;
cristy0c60a692010-11-04 01:09:47 +000013494 xl* | bgxl* | bgf* | mpixl*)
13495 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013496 lt_prog_compiler_wl='-Wl,'
13497 lt_prog_compiler_pic='-qpic'
13498 lt_prog_compiler_static='-qstaticlink'
13499 ;;
13500 *)
13501 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013502 *Sun\ F* | *Sun*Fortran*)
13503 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13504 lt_prog_compiler_pic='-KPIC'
13505 lt_prog_compiler_static='-Bstatic'
13506 lt_prog_compiler_wl=''
13507 ;;
cristy73bd4a52010-10-05 11:24:23 +000013508 *Sun\ C*)
13509 # Sun C 5.9
13510 lt_prog_compiler_pic='-KPIC'
13511 lt_prog_compiler_static='-Bstatic'
13512 lt_prog_compiler_wl='-Wl,'
13513 ;;
cristy73bd4a52010-10-05 11:24:23 +000013514 esac
13515 ;;
13516 esac
13517 ;;
13518
13519 newsos6)
13520 lt_prog_compiler_pic='-KPIC'
13521 lt_prog_compiler_static='-Bstatic'
13522 ;;
13523
13524 *nto* | *qnx*)
13525 # QNX uses GNU C++, but need to define -shared option too, otherwise
13526 # it will coredump.
13527 lt_prog_compiler_pic='-fPIC -shared'
13528 ;;
13529
13530 osf3* | osf4* | osf5*)
13531 lt_prog_compiler_wl='-Wl,'
13532 # All OSF/1 code is PIC.
13533 lt_prog_compiler_static='-non_shared'
13534 ;;
13535
13536 rdos*)
13537 lt_prog_compiler_static='-non_shared'
13538 ;;
13539
13540 solaris*)
13541 lt_prog_compiler_pic='-KPIC'
13542 lt_prog_compiler_static='-Bstatic'
13543 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013544 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013545 lt_prog_compiler_wl='-Qoption ld ';;
13546 *)
13547 lt_prog_compiler_wl='-Wl,';;
13548 esac
13549 ;;
13550
13551 sunos4*)
13552 lt_prog_compiler_wl='-Qoption ld '
13553 lt_prog_compiler_pic='-PIC'
13554 lt_prog_compiler_static='-Bstatic'
13555 ;;
13556
13557 sysv4 | sysv4.2uw2* | sysv4.3*)
13558 lt_prog_compiler_wl='-Wl,'
13559 lt_prog_compiler_pic='-KPIC'
13560 lt_prog_compiler_static='-Bstatic'
13561 ;;
13562
13563 sysv4*MP*)
13564 if test -d /usr/nec ;then
13565 lt_prog_compiler_pic='-Kconform_pic'
13566 lt_prog_compiler_static='-Bstatic'
13567 fi
13568 ;;
13569
13570 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13571 lt_prog_compiler_wl='-Wl,'
13572 lt_prog_compiler_pic='-KPIC'
13573 lt_prog_compiler_static='-Bstatic'
13574 ;;
13575
13576 unicos*)
13577 lt_prog_compiler_wl='-Wl,'
13578 lt_prog_compiler_can_build_shared=no
13579 ;;
13580
13581 uts4*)
13582 lt_prog_compiler_pic='-pic'
13583 lt_prog_compiler_static='-Bstatic'
13584 ;;
13585
13586 *)
13587 lt_prog_compiler_can_build_shared=no
13588 ;;
13589 esac
13590 fi
13591
13592case $host_os in
13593 # For platforms which do not support PIC, -DPIC is meaningless:
13594 *djgpp*)
13595 lt_prog_compiler_pic=
13596 ;;
13597 *)
13598 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13599 ;;
13600esac
cristy73bd4a52010-10-05 11:24:23 +000013601
cristyda16f162011-02-19 23:52:17 +000013602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13603$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13604if ${lt_cv_prog_compiler_pic+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606else
13607 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13608fi
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13610$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13611lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013612
13613#
13614# Check to make sure the PIC flag actually works.
13615#
13616if test -n "$lt_prog_compiler_pic"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13618$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013619if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013620 $as_echo_n "(cached) " >&6
13621else
13622 lt_cv_prog_compiler_pic_works=no
13623 ac_outfile=conftest.$ac_objext
13624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13625 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13626 # Insert the option either (1) after the last *FLAGS variable, or
13627 # (2) before a word containing "conftest.", or (3) at the end.
13628 # Note that $ac_compile itself does not contain backslashes and begins
13629 # with a dollar sign (not a hyphen), so the echo should work correctly.
13630 # The option is referenced via a variable to avoid confusing sed.
13631 lt_compile=`echo "$ac_compile" | $SED \
13632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13634 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013636 (eval "$lt_compile" 2>conftest.err)
13637 ac_status=$?
13638 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013640 if (exit $ac_status) && test -s "$ac_outfile"; then
13641 # The compiler can only warn and ignore the option if not recognized
13642 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13646 lt_cv_prog_compiler_pic_works=yes
13647 fi
13648 fi
13649 $RM conftest*
13650
13651fi
13652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13653$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13654
13655if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13656 case $lt_prog_compiler_pic in
13657 "" | " "*) ;;
13658 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13659 esac
13660else
13661 lt_prog_compiler_pic=
13662 lt_prog_compiler_can_build_shared=no
13663fi
13664
13665fi
13666
13667
13668
13669
13670
13671
cristyda16f162011-02-19 23:52:17 +000013672
13673
13674
13675
13676
cristy73bd4a52010-10-05 11:24:23 +000013677#
13678# Check to make sure the static flag actually works.
13679#
13680wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13682$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013683if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013684 $as_echo_n "(cached) " >&6
13685else
13686 lt_cv_prog_compiler_static_works=no
13687 save_LDFLAGS="$LDFLAGS"
13688 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13689 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13691 # The linker can only warn and ignore the option if not recognized
13692 # So say no if there are warnings
13693 if test -s conftest.err; then
13694 # Append any errors to the config.log.
13695 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013696 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13698 if diff conftest.exp conftest.er2 >/dev/null; then
13699 lt_cv_prog_compiler_static_works=yes
13700 fi
13701 else
13702 lt_cv_prog_compiler_static_works=yes
13703 fi
13704 fi
13705 $RM -r conftest*
13706 LDFLAGS="$save_LDFLAGS"
13707
13708fi
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13710$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13711
13712if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13713 :
13714else
13715 lt_prog_compiler_static=
13716fi
13717
13718
13719
13720
13721
13722
13723
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13725$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013726if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013727 $as_echo_n "(cached) " >&6
13728else
13729 lt_cv_prog_compiler_c_o=no
13730 $RM -r conftest 2>/dev/null
13731 mkdir conftest
13732 cd conftest
13733 mkdir out
13734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13735
13736 lt_compiler_flag="-o out/conftest2.$ac_objext"
13737 # Insert the option either (1) after the last *FLAGS variable, or
13738 # (2) before a word containing "conftest.", or (3) at the end.
13739 # Note that $ac_compile itself does not contain backslashes and begins
13740 # with a dollar sign (not a hyphen), so the echo should work correctly.
13741 lt_compile=`echo "$ac_compile" | $SED \
13742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13744 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013746 (eval "$lt_compile" 2>out/conftest.err)
13747 ac_status=$?
13748 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13751 then
13752 # The compiler can only warn and ignore the option if not recognized
13753 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13757 lt_cv_prog_compiler_c_o=yes
13758 fi
13759 fi
13760 chmod u+w . 2>&5
13761 $RM conftest*
13762 # SGI C++ compiler will create directory out/ii_files/ for
13763 # template instantiation
13764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13765 $RM out/* && rmdir out
13766 cd ..
13767 $RM -r conftest
13768 $RM conftest*
13769
13770fi
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13772$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13773
13774
13775
13776
13777
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13780$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013781if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013782 $as_echo_n "(cached) " >&6
13783else
13784 lt_cv_prog_compiler_c_o=no
13785 $RM -r conftest 2>/dev/null
13786 mkdir conftest
13787 cd conftest
13788 mkdir out
13789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13790
13791 lt_compiler_flag="-o out/conftest2.$ac_objext"
13792 # Insert the option either (1) after the last *FLAGS variable, or
13793 # (2) before a word containing "conftest.", or (3) at the end.
13794 # Note that $ac_compile itself does not contain backslashes and begins
13795 # with a dollar sign (not a hyphen), so the echo should work correctly.
13796 lt_compile=`echo "$ac_compile" | $SED \
13797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13799 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013801 (eval "$lt_compile" 2>out/conftest.err)
13802 ac_status=$?
13803 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13806 then
13807 # The compiler can only warn and ignore the option if not recognized
13808 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13812 lt_cv_prog_compiler_c_o=yes
13813 fi
13814 fi
13815 chmod u+w . 2>&5
13816 $RM conftest*
13817 # SGI C++ compiler will create directory out/ii_files/ for
13818 # template instantiation
13819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13820 $RM out/* && rmdir out
13821 cd ..
13822 $RM -r conftest
13823 $RM conftest*
13824
13825fi
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13827$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13828
13829
13830
13831
13832hard_links="nottested"
13833if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13834 # do not overwrite the value of need_locks provided by the user
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13836$as_echo_n "checking if we can lock with hard links... " >&6; }
13837 hard_links=yes
13838 $RM conftest*
13839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13840 touch conftest.a
13841 ln conftest.a conftest.b 2>&5 || hard_links=no
13842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13844$as_echo "$hard_links" >&6; }
13845 if test "$hard_links" = no; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13847$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13848 need_locks=warn
13849 fi
13850else
13851 need_locks=no
13852fi
13853
13854
13855
13856
13857
13858
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13860$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13861
13862 runpath_var=
13863 allow_undefined_flag=
13864 always_export_symbols=no
13865 archive_cmds=
13866 archive_expsym_cmds=
13867 compiler_needs_object=no
13868 enable_shared_with_static_runtimes=no
13869 export_dynamic_flag_spec=
13870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13871 hardcode_automatic=no
13872 hardcode_direct=no
13873 hardcode_direct_absolute=no
13874 hardcode_libdir_flag_spec=
13875 hardcode_libdir_flag_spec_ld=
13876 hardcode_libdir_separator=
13877 hardcode_minus_L=no
13878 hardcode_shlibpath_var=unsupported
13879 inherit_rpath=no
13880 link_all_deplibs=unknown
13881 module_cmds=
13882 module_expsym_cmds=
13883 old_archive_from_new_cmds=
13884 old_archive_from_expsyms_cmds=
13885 thread_safe_flag_spec=
13886 whole_archive_flag_spec=
13887 # include_expsyms should be a list of space-separated symbols to be *always*
13888 # included in the symbol list
13889 include_expsyms=
13890 # exclude_expsyms can be an extended regexp of symbols to exclude
13891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13893 # as well as any symbol that contains `d'.
13894 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13896 # platforms (ab)use it in PIC code, but their linkers get confused if
13897 # the symbol is explicitly referenced. Since portable code cannot
13898 # rely on this symbol name, it's probably fine to never include it in
13899 # preloaded symbol tables.
13900 # Exclude shared library initialization/finalization symbols.
13901 extract_expsyms_cmds=
13902
13903 case $host_os in
13904 cygwin* | mingw* | pw32* | cegcc*)
13905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13906 # When not using gcc, we currently assume that we are using
13907 # Microsoft Visual C++.
13908 if test "$GCC" != yes; then
13909 with_gnu_ld=no
13910 fi
13911 ;;
13912 interix*)
13913 # we just hope/assume this is gcc and not c89 (= MSVC++)
13914 with_gnu_ld=yes
13915 ;;
13916 openbsd*)
13917 with_gnu_ld=no
13918 ;;
13919 esac
13920
13921 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013922
13923 # On some targets, GNU ld is compatible enough with the native linker
13924 # that we're better off using the native interface for both.
13925 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013926 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013927 case $host_os in
13928 aix*)
13929 # The AIX port of GNU ld has always aspired to compatibility
13930 # with the native linker. However, as the warning in the GNU ld
13931 # block says, versions before 2.19.5* couldn't really create working
13932 # shared libraries, regardless of the interface used.
13933 case `$LD -v 2>&1` in
13934 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13935 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13936 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13937 *)
13938 lt_use_gnu_ld_interface=yes
13939 ;;
13940 esac
13941 ;;
13942 *)
13943 lt_use_gnu_ld_interface=yes
13944 ;;
13945 esac
13946 fi
13947
13948 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013949 # If archive_cmds runs LD, not CC, wlarc should be empty
13950 wlarc='${wl}'
13951
13952 # Set some defaults for GNU ld with shared library support. These
13953 # are reset later if shared libraries are not supported. Putting them
13954 # here allows them to be overridden if necessary.
13955 runpath_var=LD_RUN_PATH
13956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13957 export_dynamic_flag_spec='${wl}--export-dynamic'
13958 # ancient GNU ld didn't support --whole-archive et. al.
13959 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13960 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13961 else
13962 whole_archive_flag_spec=
13963 fi
13964 supports_anon_versioning=no
13965 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013966 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13970 *\ 2.11.*) ;; # other 2.11 versions
13971 *) supports_anon_versioning=yes ;;
13972 esac
13973
13974 # See if GNU ld supports shared libraries.
13975 case $host_os in
13976 aix[3-9]*)
13977 # On AIX/PPC, the GNU linker is very broken
13978 if test "$host_cpu" != ia64; then
13979 ld_shlibs=no
13980 cat <<_LT_EOF 1>&2
13981
cristy0c60a692010-11-04 01:09:47 +000013982*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013983*** to be unable to reliably create shared libraries on AIX.
13984*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013985*** really care for shared libraries, you may want to install binutils
13986*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13987*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013988
13989_LT_EOF
13990 fi
13991 ;;
13992
13993 amigaos*)
13994 case $host_cpu in
13995 powerpc)
13996 # see comment about AmigaOS4 .so support
13997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998 archive_expsym_cmds=''
13999 ;;
14000 m68k)
14001 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)'
14002 hardcode_libdir_flag_spec='-L$libdir'
14003 hardcode_minus_L=yes
14004 ;;
14005 esac
14006 ;;
14007
14008 beos*)
14009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14010 allow_undefined_flag=unsupported
14011 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14012 # support --undefined. This deserves some investigation. FIXME
14013 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14014 else
14015 ld_shlibs=no
14016 fi
14017 ;;
14018
14019 cygwin* | mingw* | pw32* | cegcc*)
14020 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14021 # as there is no search path for DLLs.
14022 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014023 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014024 allow_undefined_flag=unsupported
14025 always_export_symbols=no
14026 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014027 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'
14028 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 +000014029
14030 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14032 # If the export-symbols file already is a .def file (1st line
14033 # is EXPORTS), use it as is; otherwise, prepend...
14034 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14035 cp $export_symbols $output_objdir/$soname.def;
14036 else
14037 echo EXPORTS > $output_objdir/$soname.def;
14038 cat $export_symbols >> $output_objdir/$soname.def;
14039 fi~
14040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14041 else
14042 ld_shlibs=no
14043 fi
14044 ;;
14045
cristy0c60a692010-11-04 01:09:47 +000014046 haiku*)
14047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 link_all_deplibs=yes
14049 ;;
14050
cristy73bd4a52010-10-05 11:24:23 +000014051 interix[3-9]*)
14052 hardcode_direct=no
14053 hardcode_shlibpath_var=no
14054 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14055 export_dynamic_flag_spec='${wl}-E'
14056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14057 # Instead, shared libraries are loaded at an image base (0x10000000 by
14058 # default) and relocated if they conflict, which is a slow very memory
14059 # consuming and fragmenting process. To avoid this, we pick a random,
14060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14063 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'
14064 ;;
14065
cristy0c60a692010-11-04 01:09:47 +000014066 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014067 tmp_diet=no
14068 if test "$host_os" = linux-dietlibc; then
14069 case $cc_basename in
14070 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14071 esac
14072 fi
14073 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14074 && test "$tmp_diet" = no
14075 then
cristyda16f162011-02-19 23:52:17 +000014076 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014077 tmp_sharedflag='-shared'
14078 case $cc_basename,$host_cpu in
14079 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014080 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 +000014081 tmp_addflag=' $pic_flag'
14082 ;;
cristy0c60a692010-11-04 01:09:47 +000014083 pgf77* | pgf90* | pgf95* | pgfortran*)
14084 # Portland Group f77 and f90 compilers
14085 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 +000014086 tmp_addflag=' $pic_flag -Mnomain' ;;
14087 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14088 tmp_addflag=' -i_dynamic' ;;
14089 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14090 tmp_addflag=' -i_dynamic -nofor_main' ;;
14091 ifc* | ifort*) # Intel Fortran compiler
14092 tmp_addflag=' -nofor_main' ;;
14093 lf95*) # Lahey Fortran 8.1
14094 whole_archive_flag_spec=
14095 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014096 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014097 tmp_sharedflag='-qmkshrobj'
14098 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014099 nvcc*) # Cuda Compiler Driver 2.2
14100 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'
14101 compiler_needs_object=yes
14102 ;;
cristy73bd4a52010-10-05 11:24:23 +000014103 esac
14104 case `$CC -V 2>&1 | sed 5q` in
14105 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014106 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 +000014107 compiler_needs_object=yes
14108 tmp_sharedflag='-G' ;;
14109 *Sun\ F*) # Sun Fortran 8.3
14110 tmp_sharedflag='-G' ;;
14111 esac
14112 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14113
14114 if test "x$supports_anon_versioning" = xyes; then
14115 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14117 echo "local: *; };" >> $output_objdir/$libname.ver~
14118 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14119 fi
14120
14121 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014122 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014123 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14124 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14125 hardcode_libdir_flag_spec=
14126 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014127 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014128 if test "x$supports_anon_versioning" = xyes; then
14129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14131 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014132 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014133 fi
14134 ;;
14135 esac
14136 else
14137 ld_shlibs=no
14138 fi
14139 ;;
14140
14141 netbsd*)
14142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14143 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14144 wlarc=
14145 else
cristyda16f162011-02-19 23:52:17 +000014146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14147 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 +000014148 fi
14149 ;;
14150
14151 solaris*)
14152 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14153 ld_shlibs=no
14154 cat <<_LT_EOF 1>&2
14155
14156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14157*** create shared libraries on Solaris systems. Therefore, libtool
14158*** is disabling shared libraries support. We urge you to upgrade GNU
14159*** binutils to release 2.9.1 or newer. Another option is to modify
14160*** your PATH or compiler configuration so that the native linker is
14161*** used, and then restart.
14162
14163_LT_EOF
14164 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166 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 +000014167 else
14168 ld_shlibs=no
14169 fi
14170 ;;
14171
14172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14173 case `$LD -v 2>&1` in
14174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14175 ld_shlibs=no
14176 cat <<_LT_EOF 1>&2
14177
14178*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14179*** reliably create shared libraries on SCO systems. Therefore, libtool
14180*** is disabling shared libraries support. We urge you to upgrade GNU
14181*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14182*** your PATH or compiler configuration so that the native linker is
14183*** used, and then restart.
14184
14185_LT_EOF
14186 ;;
14187 *)
14188 # For security reasons, it is highly recommended that you always
14189 # use absolute paths for naming shared libraries, and exclude the
14190 # DT_RUNPATH tag from executables and libraries. But doing so
14191 # requires that you compile everything twice, which is a pain.
14192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14196 else
14197 ld_shlibs=no
14198 fi
14199 ;;
14200 esac
14201 ;;
14202
14203 sunos4*)
14204 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14205 wlarc=
14206 hardcode_direct=yes
14207 hardcode_shlibpath_var=no
14208 ;;
14209
14210 *)
14211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14213 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 +000014214 else
14215 ld_shlibs=no
14216 fi
14217 ;;
14218 esac
14219
14220 if test "$ld_shlibs" = no; then
14221 runpath_var=
14222 hardcode_libdir_flag_spec=
14223 export_dynamic_flag_spec=
14224 whole_archive_flag_spec=
14225 fi
14226 else
14227 # PORTME fill in a description of your system's linker (not GNU ld)
14228 case $host_os in
14229 aix3*)
14230 allow_undefined_flag=unsupported
14231 always_export_symbols=yes
14232 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'
14233 # Note: this linker hardcodes the directories in LIBPATH if there
14234 # are no directories specified by -L.
14235 hardcode_minus_L=yes
14236 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14237 # Neither direct hardcoding nor static linking is supported with a
14238 # broken collect2.
14239 hardcode_direct=unsupported
14240 fi
14241 ;;
14242
14243 aix[4-9]*)
14244 if test "$host_cpu" = ia64; then
14245 # On IA64, the linker does run time linking by default, so we don't
14246 # have to do anything special.
14247 aix_use_runtimelinking=no
14248 exp_sym_flag='-Bexport'
14249 no_entry_flag=""
14250 else
14251 # If we're using GNU nm, then we don't want the "-C" option.
14252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014253 # Also, AIX nm treats weak defined symbols like other global
14254 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014256 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 +000014257 else
14258 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'
14259 fi
14260 aix_use_runtimelinking=no
14261
14262 # Test if we are trying to use run time linking or normal
14263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14264 # need to do runtime linking.
14265 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14266 for ld_flag in $LDFLAGS; do
14267 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14268 aix_use_runtimelinking=yes
14269 break
14270 fi
14271 done
14272 ;;
14273 esac
14274
14275 exp_sym_flag='-bexport'
14276 no_entry_flag='-bnoentry'
14277 fi
14278
14279 # When large executables or shared objects are built, AIX ld can
14280 # have problems creating the table of contents. If linking a library
14281 # or program results in "error TOC overflow" add -mminimal-toc to
14282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14284
14285 archive_cmds=''
14286 hardcode_direct=yes
14287 hardcode_direct_absolute=yes
14288 hardcode_libdir_separator=':'
14289 link_all_deplibs=yes
14290 file_list_spec='${wl}-f,'
14291
14292 if test "$GCC" = yes; then
14293 case $host_os in aix4.[012]|aix4.[012].*)
14294 # We only want to do this on AIX 4.2 and lower, the check
14295 # below for broken collect2 doesn't work under 4.3+
14296 collect2name=`${CC} -print-prog-name=collect2`
14297 if test -f "$collect2name" &&
14298 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14299 then
14300 # We have reworked collect2
14301 :
14302 else
14303 # We have old collect2
14304 hardcode_direct=unsupported
14305 # It fails to find uninstalled libraries when the uninstalled
14306 # path is not listed in the libpath. Setting hardcode_minus_L
14307 # to unsupported forces relinking
14308 hardcode_minus_L=yes
14309 hardcode_libdir_flag_spec='-L$libdir'
14310 hardcode_libdir_separator=
14311 fi
14312 ;;
14313 esac
14314 shared_flag='-shared'
14315 if test "$aix_use_runtimelinking" = yes; then
14316 shared_flag="$shared_flag "'${wl}-G'
14317 fi
14318 else
14319 # not using gcc
14320 if test "$host_cpu" = ia64; then
14321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14322 # chokes on -Wl,-G. The following line is correct:
14323 shared_flag='-G'
14324 else
14325 if test "$aix_use_runtimelinking" = yes; then
14326 shared_flag='${wl}-G'
14327 else
14328 shared_flag='${wl}-bM:SRE'
14329 fi
14330 fi
14331 fi
14332
14333 export_dynamic_flag_spec='${wl}-bexpall'
14334 # It seems that -bexpall does not export symbols beginning with
14335 # underscore (_), so it is better to generate a list of symbols to export.
14336 always_export_symbols=yes
14337 if test "$aix_use_runtimelinking" = yes; then
14338 # Warning - without using the other runtime loading flags (-brtl),
14339 # -berok will link without error, but may produce a broken library.
14340 allow_undefined_flag='-berok'
14341 # Determine the default libpath from the value encoded in an
14342 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014343 if test "${lt_cv_aix_libpath+set}" = set; then
14344 aix_libpath=$lt_cv_aix_libpath
14345else
14346 if ${lt_cv_aix_libpath_+:} false; then :
14347 $as_echo_n "(cached) " >&6
14348else
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014350/* end confdefs.h. */
14351
14352int
14353main ()
14354{
14355
14356 ;
14357 return 0;
14358}
14359_ACEOF
14360if ac_fn_c_try_link "$LINENO"; then :
14361
cristyda16f162011-02-19 23:52:17 +000014362 lt_aix_libpath_sed='
14363 /Import File Strings/,/^$/ {
14364 /^0/ {
14365 s/^0 *\([^ ]*\) *$/\1/
14366 p
14367 }
14368 }'
14369 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14370 # Check for a 64-bit object if we didn't find anything.
14371 if test -z "$lt_cv_aix_libpath_"; then
14372 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14373 fi
cristy73bd4a52010-10-05 11:24:23 +000014374fi
14375rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014377 if test -z "$lt_cv_aix_libpath_"; then
14378 lt_cv_aix_libpath_="/usr/lib:/lib"
14379 fi
14380
14381fi
14382
14383 aix_libpath=$lt_cv_aix_libpath_
14384fi
cristy73bd4a52010-10-05 11:24:23 +000014385
14386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014387 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 +000014388 else
14389 if test "$host_cpu" = ia64; then
14390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14391 allow_undefined_flag="-z nodefs"
14392 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"
14393 else
14394 # Determine the default libpath from the value encoded in an
14395 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014396 if test "${lt_cv_aix_libpath+set}" = set; then
14397 aix_libpath=$lt_cv_aix_libpath
14398else
14399 if ${lt_cv_aix_libpath_+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401else
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014403/* end confdefs.h. */
14404
14405int
14406main ()
14407{
14408
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413if ac_fn_c_try_link "$LINENO"; then :
14414
cristyda16f162011-02-19 23:52:17 +000014415 lt_aix_libpath_sed='
14416 /Import File Strings/,/^$/ {
14417 /^0/ {
14418 s/^0 *\([^ ]*\) *$/\1/
14419 p
14420 }
14421 }'
14422 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14423 # Check for a 64-bit object if we didn't find anything.
14424 if test -z "$lt_cv_aix_libpath_"; then
14425 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14426 fi
cristy73bd4a52010-10-05 11:24:23 +000014427fi
14428rm -f core conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014430 if test -z "$lt_cv_aix_libpath_"; then
14431 lt_cv_aix_libpath_="/usr/lib:/lib"
14432 fi
14433
14434fi
14435
14436 aix_libpath=$lt_cv_aix_libpath_
14437fi
cristy73bd4a52010-10-05 11:24:23 +000014438
14439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14440 # Warning - without using the other run time loading flags,
14441 # -berok will link without error, but may produce a broken library.
14442 no_undefined_flag=' ${wl}-bernotok'
14443 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014444 if test "$with_gnu_ld" = yes; then
14445 # We only use this code for GNU lds that support --whole-archive.
14446 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14447 else
14448 # Exported symbols can be pulled into shared objects from archives
14449 whole_archive_flag_spec='$convenience'
14450 fi
cristy73bd4a52010-10-05 11:24:23 +000014451 archive_cmds_need_lc=yes
14452 # This is similar to how AIX traditionally builds its shared libraries.
14453 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'
14454 fi
14455 fi
14456 ;;
14457
14458 amigaos*)
14459 case $host_cpu in
14460 powerpc)
14461 # see comment about AmigaOS4 .so support
14462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14463 archive_expsym_cmds=''
14464 ;;
14465 m68k)
14466 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)'
14467 hardcode_libdir_flag_spec='-L$libdir'
14468 hardcode_minus_L=yes
14469 ;;
14470 esac
14471 ;;
14472
14473 bsdi[45]*)
14474 export_dynamic_flag_spec=-rdynamic
14475 ;;
14476
14477 cygwin* | mingw* | pw32* | cegcc*)
14478 # When not using gcc, we currently assume that we are using
14479 # Microsoft Visual C++.
14480 # hardcode_libdir_flag_spec is actually meaningless, as there is
14481 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014482 case $cc_basename in
14483 cl*)
14484 # Native MSVC
14485 hardcode_libdir_flag_spec=' '
14486 allow_undefined_flag=unsupported
14487 always_export_symbols=yes
14488 file_list_spec='@'
14489 # Tell ltmain to make .lib files, not .a files.
14490 libext=lib
14491 # Tell ltmain to make .dll files, not .so files.
14492 shrext_cmds=".dll"
14493 # FIXME: Setting linknames here is a bad hack.
14494 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14495 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14496 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14497 else
14498 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14499 fi~
14500 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14501 linknames='
14502 # The linker will not automatically build a static lib if we build a DLL.
14503 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14504 enable_shared_with_static_runtimes=yes
14505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14506 # Don't use ranlib
14507 old_postinstall_cmds='chmod 644 $oldlib'
14508 postlink_cmds='lt_outputfile="@OUTPUT@"~
14509 lt_tool_outputfile="@TOOL_OUTPUT@"~
14510 case $lt_outputfile in
14511 *.exe|*.EXE) ;;
14512 *)
14513 lt_outputfile="$lt_outputfile.exe"
14514 lt_tool_outputfile="$lt_tool_outputfile.exe"
14515 ;;
14516 esac~
14517 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14518 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14519 $RM "$lt_outputfile.manifest";
14520 fi'
14521 ;;
14522 *)
14523 # Assume MSVC wrapper
14524 hardcode_libdir_flag_spec=' '
14525 allow_undefined_flag=unsupported
14526 # Tell ltmain to make .lib files, not .a files.
14527 libext=lib
14528 # Tell ltmain to make .dll files, not .so files.
14529 shrext_cmds=".dll"
14530 # FIXME: Setting linknames here is a bad hack.
14531 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14532 # The linker will automatically build a .lib file if we build a DLL.
14533 old_archive_from_new_cmds='true'
14534 # FIXME: Should let the user specify the lib program.
14535 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14536 enable_shared_with_static_runtimes=yes
14537 ;;
14538 esac
cristy73bd4a52010-10-05 11:24:23 +000014539 ;;
14540
14541 darwin* | rhapsody*)
14542
14543
14544 archive_cmds_need_lc=no
14545 hardcode_direct=no
14546 hardcode_automatic=yes
14547 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014548 if test "$lt_cv_ld_force_load" = "yes"; then
14549 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\"`'
14550 else
14551 whole_archive_flag_spec=''
14552 fi
cristy73bd4a52010-10-05 11:24:23 +000014553 link_all_deplibs=yes
14554 allow_undefined_flag="$_lt_dar_allow_undefined"
14555 case $cc_basename in
14556 ifort*) _lt_dar_can_shared=yes ;;
14557 *) _lt_dar_can_shared=$GCC ;;
14558 esac
14559 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014560 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014561 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14562 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14563 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}"
14564 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}"
14565
14566 else
14567 ld_shlibs=no
14568 fi
14569
14570 ;;
14571
14572 dgux*)
14573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14574 hardcode_libdir_flag_spec='-L$libdir'
14575 hardcode_shlibpath_var=no
14576 ;;
14577
14578 freebsd1*)
14579 ld_shlibs=no
14580 ;;
14581
14582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14583 # support. Future versions do this automatically, but an explicit c++rt0.o
14584 # does not break anything, and helps significantly (at the cost of a little
14585 # extra space).
14586 freebsd2.2*)
14587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14588 hardcode_libdir_flag_spec='-R$libdir'
14589 hardcode_direct=yes
14590 hardcode_shlibpath_var=no
14591 ;;
14592
14593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14594 freebsd2*)
14595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14596 hardcode_direct=yes
14597 hardcode_minus_L=yes
14598 hardcode_shlibpath_var=no
14599 ;;
14600
14601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14602 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014604 hardcode_libdir_flag_spec='-R$libdir'
14605 hardcode_direct=yes
14606 hardcode_shlibpath_var=no
14607 ;;
14608
14609 hpux9*)
14610 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014611 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 +000014612 else
14613 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'
14614 fi
14615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14616 hardcode_libdir_separator=:
14617 hardcode_direct=yes
14618
14619 # hardcode_minus_L: Not really in the search PATH,
14620 # but as the default location of the library.
14621 hardcode_minus_L=yes
14622 export_dynamic_flag_spec='${wl}-E'
14623 ;;
14624
14625 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014626 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014627 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 +000014628 else
14629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14630 fi
14631 if test "$with_gnu_ld" = no; then
14632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14633 hardcode_libdir_flag_spec_ld='+b $libdir'
14634 hardcode_libdir_separator=:
14635 hardcode_direct=yes
14636 hardcode_direct_absolute=yes
14637 export_dynamic_flag_spec='${wl}-E'
14638 # hardcode_minus_L: Not really in the search PATH,
14639 # but as the default location of the library.
14640 hardcode_minus_L=yes
14641 fi
14642 ;;
14643
14644 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014645 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014646 case $host_cpu in
14647 hppa*64*)
14648 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14649 ;;
14650 ia64*)
cristyda16f162011-02-19 23:52:17 +000014651 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014652 ;;
14653 *)
cristyda16f162011-02-19 23:52:17 +000014654 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 +000014655 ;;
14656 esac
14657 else
14658 case $host_cpu in
14659 hppa*64*)
14660 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14661 ;;
14662 ia64*)
14663 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14664 ;;
14665 *)
cristy0c60a692010-11-04 01:09:47 +000014666
14667 # Older versions of the 11.00 compiler do not understand -b yet
14668 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14670$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014671if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014672 $as_echo_n "(cached) " >&6
14673else
14674 lt_cv_prog_compiler__b=no
14675 save_LDFLAGS="$LDFLAGS"
14676 LDFLAGS="$LDFLAGS -b"
14677 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14679 # The linker can only warn and ignore the option if not recognized
14680 # So say no if there are warnings
14681 if test -s conftest.err; then
14682 # Append any errors to the config.log.
14683 cat conftest.err 1>&5
14684 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14686 if diff conftest.exp conftest.er2 >/dev/null; then
14687 lt_cv_prog_compiler__b=yes
14688 fi
14689 else
14690 lt_cv_prog_compiler__b=yes
14691 fi
14692 fi
14693 $RM -r conftest*
14694 LDFLAGS="$save_LDFLAGS"
14695
14696fi
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14698$as_echo "$lt_cv_prog_compiler__b" >&6; }
14699
14700if test x"$lt_cv_prog_compiler__b" = xyes; then
14701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14702else
14703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14704fi
14705
cristy73bd4a52010-10-05 11:24:23 +000014706 ;;
14707 esac
14708 fi
14709 if test "$with_gnu_ld" = no; then
14710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14711 hardcode_libdir_separator=:
14712
14713 case $host_cpu in
14714 hppa*64*|ia64*)
14715 hardcode_direct=no
14716 hardcode_shlibpath_var=no
14717 ;;
14718 *)
14719 hardcode_direct=yes
14720 hardcode_direct_absolute=yes
14721 export_dynamic_flag_spec='${wl}-E'
14722
14723 # hardcode_minus_L: Not really in the search PATH,
14724 # but as the default location of the library.
14725 hardcode_minus_L=yes
14726 ;;
14727 esac
14728 fi
14729 ;;
14730
14731 irix5* | irix6* | nonstopux*)
14732 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014733 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 +000014734 # Try to use the -exported_symbol ld option, if it does not
14735 # work, assume that -exports_file does not work either and
14736 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014737 # This should be the same for all languages, so no per-tag cache variable.
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14739$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14740if ${lt_cv_irix_exported_symbol+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742else
14743 save_LDFLAGS="$LDFLAGS"
14744 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014746/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014747int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014748_ACEOF
14749if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014750 lt_cv_irix_exported_symbol=yes
14751else
14752 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014753fi
14754rm -f core conftest.err conftest.$ac_objext \
14755 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014756 LDFLAGS="$save_LDFLAGS"
14757fi
14758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14759$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14760 if test "$lt_cv_irix_exported_symbol" = yes; then
14761 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'
14762 fi
cristy73bd4a52010-10-05 11:24:23 +000014763 else
cristy0c60a692010-11-04 01:09:47 +000014764 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'
14765 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 +000014766 fi
14767 archive_cmds_need_lc='no'
14768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14769 hardcode_libdir_separator=:
14770 inherit_rpath=yes
14771 link_all_deplibs=yes
14772 ;;
14773
14774 netbsd*)
14775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14777 else
14778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14779 fi
14780 hardcode_libdir_flag_spec='-R$libdir'
14781 hardcode_direct=yes
14782 hardcode_shlibpath_var=no
14783 ;;
14784
14785 newsos6)
14786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787 hardcode_direct=yes
14788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14789 hardcode_libdir_separator=:
14790 hardcode_shlibpath_var=no
14791 ;;
14792
14793 *nto* | *qnx*)
14794 ;;
14795
14796 openbsd*)
14797 if test -f /usr/libexec/ld.so; then
14798 hardcode_direct=yes
14799 hardcode_shlibpath_var=no
14800 hardcode_direct_absolute=yes
14801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14803 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14805 export_dynamic_flag_spec='${wl}-E'
14806 else
14807 case $host_os in
14808 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14810 hardcode_libdir_flag_spec='-R$libdir'
14811 ;;
14812 *)
14813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14815 ;;
14816 esac
14817 fi
14818 else
14819 ld_shlibs=no
14820 fi
14821 ;;
14822
14823 os2*)
14824 hardcode_libdir_flag_spec='-L$libdir'
14825 hardcode_minus_L=yes
14826 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014827 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 +000014828 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14829 ;;
14830
14831 osf3*)
14832 if test "$GCC" = yes; then
14833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014834 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 +000014835 else
14836 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014837 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 +000014838 fi
14839 archive_cmds_need_lc='no'
14840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14841 hardcode_libdir_separator=:
14842 ;;
14843
14844 osf4* | osf5*) # as osf3* with the addition of -msym flag
14845 if test "$GCC" = yes; then
14846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014847 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 +000014848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14849 else
14850 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014851 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 +000014852 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 +000014853 $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 +000014854
14855 # Both c and cxx compiler support -rpath directly
14856 hardcode_libdir_flag_spec='-rpath $libdir'
14857 fi
14858 archive_cmds_need_lc='no'
14859 hardcode_libdir_separator=:
14860 ;;
14861
14862 solaris*)
14863 no_undefined_flag=' -z defs'
14864 if test "$GCC" = yes; then
14865 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014866 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 +000014867 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 +000014868 $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 +000014869 else
14870 case `$CC -V 2>&1` in
14871 *"Compilers 5.0"*)
14872 wlarc=''
14873 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14875 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14876 ;;
14877 *)
14878 wlarc='${wl}'
14879 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14881 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14882 ;;
14883 esac
14884 fi
14885 hardcode_libdir_flag_spec='-R$libdir'
14886 hardcode_shlibpath_var=no
14887 case $host_os in
14888 solaris2.[0-5] | solaris2.[0-5].*) ;;
14889 *)
14890 # The compiler driver will combine and reorder linker options,
14891 # but understands `-z linker_flag'. GCC discards it without `$wl',
14892 # but is careful enough not to reorder.
14893 # Supported since Solaris 2.6 (maybe 2.5.1?)
14894 if test "$GCC" = yes; then
14895 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14896 else
14897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14898 fi
14899 ;;
14900 esac
14901 link_all_deplibs=yes
14902 ;;
14903
14904 sunos4*)
14905 if test "x$host_vendor" = xsequent; then
14906 # Use $CC to link under sequent, because it throws in some extra .o
14907 # files that make .init and .fini sections work.
14908 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14909 else
14910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14911 fi
14912 hardcode_libdir_flag_spec='-L$libdir'
14913 hardcode_direct=yes
14914 hardcode_minus_L=yes
14915 hardcode_shlibpath_var=no
14916 ;;
14917
14918 sysv4)
14919 case $host_vendor in
14920 sni)
14921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14922 hardcode_direct=yes # is this really true???
14923 ;;
14924 siemens)
14925 ## LD is ld it makes a PLAMLIB
14926 ## CC just makes a GrossModule.
14927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14928 reload_cmds='$CC -r -o $output$reload_objs'
14929 hardcode_direct=no
14930 ;;
14931 motorola)
14932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14934 ;;
14935 esac
14936 runpath_var='LD_RUN_PATH'
14937 hardcode_shlibpath_var=no
14938 ;;
14939
14940 sysv4.3*)
14941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_shlibpath_var=no
14943 export_dynamic_flag_spec='-Bexport'
14944 ;;
14945
14946 sysv4*MP*)
14947 if test -d /usr/nec; then
14948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14949 hardcode_shlibpath_var=no
14950 runpath_var=LD_RUN_PATH
14951 hardcode_runpath_var=yes
14952 ld_shlibs=yes
14953 fi
14954 ;;
14955
14956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14957 no_undefined_flag='${wl}-z,text'
14958 archive_cmds_need_lc=no
14959 hardcode_shlibpath_var=no
14960 runpath_var='LD_RUN_PATH'
14961
14962 if test "$GCC" = yes; then
14963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14965 else
14966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 fi
14969 ;;
14970
14971 sysv5* | sco3.2v5* | sco5v6*)
14972 # Note: We can NOT use -z defs as we might desire, because we do not
14973 # link with -lc, and that would cause any symbols used from libc to
14974 # always be unresolved, which means just about no library would
14975 # ever link correctly. If we're not using GNU ld we use -z text
14976 # though, which does catch some bad symbols but isn't as heavy-handed
14977 # as -z defs.
14978 no_undefined_flag='${wl}-z,text'
14979 allow_undefined_flag='${wl}-z,nodefs'
14980 archive_cmds_need_lc=no
14981 hardcode_shlibpath_var=no
14982 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14983 hardcode_libdir_separator=':'
14984 link_all_deplibs=yes
14985 export_dynamic_flag_spec='${wl}-Bexport'
14986 runpath_var='LD_RUN_PATH'
14987
14988 if test "$GCC" = yes; then
14989 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 else
14992 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 fi
14995 ;;
14996
14997 uts4*)
14998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 hardcode_libdir_flag_spec='-L$libdir'
15000 hardcode_shlibpath_var=no
15001 ;;
15002
15003 *)
15004 ld_shlibs=no
15005 ;;
15006 esac
15007
15008 if test x$host_vendor = xsni; then
15009 case $host in
15010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15011 export_dynamic_flag_spec='${wl}-Blargedynsym'
15012 ;;
15013 esac
15014 fi
15015 fi
15016
15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15018$as_echo "$ld_shlibs" >&6; }
15019test "$ld_shlibs" = no && can_build_shared=no
15020
15021with_gnu_ld=$with_gnu_ld
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037#
15038# Do we need to explicitly link libc?
15039#
15040case "x$archive_cmds_need_lc" in
15041x|xyes)
15042 # Assume -lc should be added
15043 archive_cmds_need_lc=yes
15044
15045 if test "$enable_shared" = yes && test "$GCC" = yes; then
15046 case $archive_cmds in
15047 *'~'*)
15048 # FIXME: we may have to deal with multi-command sequences.
15049 ;;
15050 '$CC '*)
15051 # Test whether the compiler implicitly links with -lc since on some
15052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15053 # to ld, don't add -lc before -lgcc.
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15055$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015056if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015057 $as_echo_n "(cached) " >&6
15058else
15059 $RM conftest*
15060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015061
cristy0c60a692010-11-04 01:09:47 +000015062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015063 (eval $ac_compile) 2>&5
15064 ac_status=$?
15065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15066 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015067 soname=conftest
15068 lib=conftest
15069 libobjs=conftest.$ac_objext
15070 deplibs=
15071 wl=$lt_prog_compiler_wl
15072 pic_flag=$lt_prog_compiler_pic
15073 compiler_flags=-v
15074 linker_flags=-v
15075 verstring=
15076 output_objdir=.
15077 libname=conftest
15078 lt_save_allow_undefined_flag=$allow_undefined_flag
15079 allow_undefined_flag=
15080 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 +000015081 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15082 ac_status=$?
15083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015085 then
15086 lt_cv_archive_cmds_need_lc=no
15087 else
15088 lt_cv_archive_cmds_need_lc=yes
15089 fi
15090 allow_undefined_flag=$lt_save_allow_undefined_flag
15091 else
15092 cat conftest.err 1>&5
15093 fi
15094 $RM conftest*
15095
15096fi
15097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15098$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15099 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015100 ;;
15101 esac
15102 fi
15103 ;;
15104esac
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15263$as_echo_n "checking dynamic linker characteristics... " >&6; }
15264
15265if test "$GCC" = yes; then
15266 case $host_os in
15267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15268 *) lt_awk_arg="/^libraries:/" ;;
15269 esac
cristy0c60a692010-11-04 01:09:47 +000015270 case $host_os in
15271 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15272 *) lt_sed_strip_eq="s,=/,/,g" ;;
15273 esac
15274 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15275 case $lt_search_path_spec in
15276 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015277 # if the path contains ";" then we assume it to be the separator
15278 # otherwise default to the standard path separator (i.e. ":") - it is
15279 # assumed that no part of a normal pathname contains ";" but that should
15280 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15282 ;;
15283 *)
15284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15285 ;;
15286 esac
cristy73bd4a52010-10-05 11:24:23 +000015287 # Ok, now we have the path, separated by spaces, we can step through it
15288 # and add multilib dir if necessary.
15289 lt_tmp_lt_search_path_spec=
15290 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15291 for lt_sys_path in $lt_search_path_spec; do
15292 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15294 else
15295 test -d "$lt_sys_path" && \
15296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15297 fi
15298 done
cristy0c60a692010-11-04 01:09:47 +000015299 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015300BEGIN {RS=" "; FS="/|\n";} {
15301 lt_foo="";
15302 lt_count=0;
15303 for (lt_i = NF; lt_i > 0; lt_i--) {
15304 if ($lt_i != "" && $lt_i != ".") {
15305 if ($lt_i == "..") {
15306 lt_count++;
15307 } else {
15308 if (lt_count == 0) {
15309 lt_foo="/" $lt_i lt_foo;
15310 } else {
15311 lt_count--;
15312 }
15313 }
15314 }
15315 }
15316 if (lt_foo != "") { lt_freq[lt_foo]++; }
15317 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15318}'`
cristy0c60a692010-11-04 01:09:47 +000015319 # AWK program above erroneously prepends '/' to C:/dos/paths
15320 # for these hosts.
15321 case $host_os in
15322 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15323 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15324 esac
15325 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015326else
15327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15328fi
15329library_names_spec=
15330libname_spec='lib$name'
15331soname_spec=
15332shrext_cmds=".so"
15333postinstall_cmds=
15334postuninstall_cmds=
15335finish_cmds=
15336finish_eval=
15337shlibpath_var=
15338shlibpath_overrides_runpath=unknown
15339version_type=none
15340dynamic_linker="$host_os ld.so"
15341sys_lib_dlsearch_path_spec="/lib /usr/lib"
15342need_lib_prefix=unknown
15343hardcode_into_libs=no
15344
15345# when you set need_version to no, make sure it does not cause -set_version
15346# flags to be left without arguments
15347need_version=unknown
15348
15349case $host_os in
15350aix3*)
15351 version_type=linux
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15353 shlibpath_var=LIBPATH
15354
15355 # AIX 3 has no versioning support, so we append a major version to the name.
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 ;;
15358
15359aix[4-9]*)
15360 version_type=linux
15361 need_lib_prefix=no
15362 need_version=no
15363 hardcode_into_libs=yes
15364 if test "$host_cpu" = ia64; then
15365 # AIX 5 supports IA64
15366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 else
15369 # With GCC up to 2.95.x, collect2 would create an import file
15370 # for dependence libraries. The import file would start with
15371 # the line `#! .'. This would cause the generated library to
15372 # depend on `.', always an invalid library. This was fixed in
15373 # development snapshots of GCC prior to 3.0.
15374 case $host_os in
15375 aix4 | aix4.[01] | aix4.[01].*)
15376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15377 echo ' yes '
15378 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15379 :
15380 else
15381 can_build_shared=no
15382 fi
15383 ;;
15384 esac
15385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15386 # soname into executable. Probably we can add versioning support to
15387 # collect2, so additional links can be useful in future.
15388 if test "$aix_use_runtimelinking" = yes; then
15389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15390 # instead of lib<name>.a to let people know that these are not
15391 # typical AIX shared libraries.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 else
15394 # We preserve .a as extension for shared libraries through AIX4.2
15395 # and later when we are not doing run time linking.
15396 library_names_spec='${libname}${release}.a $libname.a'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 fi
15399 shlibpath_var=LIBPATH
15400 fi
15401 ;;
15402
15403amigaos*)
15404 case $host_cpu in
15405 powerpc)
15406 # Since July 2007 AmigaOS4 officially supports .so libraries.
15407 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409 ;;
15410 m68k)
15411 library_names_spec='$libname.ixlibrary $libname.a'
15412 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015413 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 +000015414 ;;
15415 esac
15416 ;;
15417
15418beos*)
15419 library_names_spec='${libname}${shared_ext}'
15420 dynamic_linker="$host_os ld.so"
15421 shlibpath_var=LIBRARY_PATH
15422 ;;
15423
15424bsdi[45]*)
15425 version_type=linux
15426 need_version=no
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15433 # the default ld.so.conf also contains /usr/contrib/lib and
15434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15435 # libtool to hard-code these into programs
15436 ;;
15437
15438cygwin* | mingw* | pw32* | cegcc*)
15439 version_type=windows
15440 shrext_cmds=".dll"
15441 need_version=no
15442 need_lib_prefix=no
15443
cristyda16f162011-02-19 23:52:17 +000015444 case $GCC,$cc_basename in
15445 yes,*)
15446 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015447 library_names_spec='$libname.dll.a'
15448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15449 postinstall_cmds='base_file=`basename \${file}`~
15450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15451 dldir=$destdir/`dirname \$dlpath`~
15452 test -d \$dldir || mkdir -p \$dldir~
15453 $install_prog $dir/$dlname \$dldir/$dlname~
15454 chmod a+x \$dldir/$dlname~
15455 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15456 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15457 fi'
15458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15459 dlpath=$dir/\$dldll~
15460 $RM \$dlpath'
15461 shlibpath_overrides_runpath=yes
15462
15463 case $host_os in
15464 cygwin*)
15465 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015467
15468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015469 ;;
15470 mingw* | cegcc*)
15471 # MinGW DLLs use traditional 'lib' prefix
15472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015473 ;;
15474 pw32*)
15475 # pw32 DLLs use 'pw' prefix rather than 'lib'
15476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15477 ;;
15478 esac
cristyda16f162011-02-19 23:52:17 +000015479 dynamic_linker='Win32 ld.exe'
15480 ;;
15481
15482 *,cl*)
15483 # Native MSVC
15484 libname_spec='$name'
15485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15486 library_names_spec='${libname}.dll.lib'
15487
15488 case $build_os in
15489 mingw*)
15490 sys_lib_search_path_spec=
15491 lt_save_ifs=$IFS
15492 IFS=';'
15493 for lt_path in $LIB
15494 do
15495 IFS=$lt_save_ifs
15496 # Let DOS variable expansion print the short 8.3 style file name.
15497 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15498 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15499 done
15500 IFS=$lt_save_ifs
15501 # Convert to MSYS style.
15502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15503 ;;
15504 cygwin*)
15505 # Convert to unix form, then to dos form, then back to unix form
15506 # but this time dos style (no spaces!) so that the unix form looks
15507 # like /cygdrive/c/PROGRA~1:/cygdr...
15508 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15509 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15510 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15511 ;;
15512 *)
15513 sys_lib_search_path_spec="$LIB"
15514 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15515 # It is most probably a Windows format PATH.
15516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15517 else
15518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15519 fi
15520 # FIXME: find the short name or the path components, as spaces are
15521 # common. (e.g. "Program Files" -> "PROGRA~1")
15522 ;;
15523 esac
15524
15525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15526 postinstall_cmds='base_file=`basename \${file}`~
15527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15528 dldir=$destdir/`dirname \$dlpath`~
15529 test -d \$dldir || mkdir -p \$dldir~
15530 $install_prog $dir/$dlname \$dldir/$dlname'
15531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15532 dlpath=$dir/\$dldll~
15533 $RM \$dlpath'
15534 shlibpath_overrides_runpath=yes
15535 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015536 ;;
15537
15538 *)
cristyda16f162011-02-19 23:52:17 +000015539 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015540 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015541 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015542 ;;
15543 esac
cristy73bd4a52010-10-05 11:24:23 +000015544 # FIXME: first we should search . and the directory the executable is in
15545 shlibpath_var=PATH
15546 ;;
15547
15548darwin* | rhapsody*)
15549 dynamic_linker="$host_os dyld"
15550 version_type=darwin
15551 need_lib_prefix=no
15552 need_version=no
15553 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15554 soname_spec='${libname}${release}${major}$shared_ext'
15555 shlibpath_overrides_runpath=yes
15556 shlibpath_var=DYLD_LIBRARY_PATH
15557 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15558
15559 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15560 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15561 ;;
15562
15563dgux*)
15564 version_type=linux
15565 need_lib_prefix=no
15566 need_version=no
15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 ;;
15571
15572freebsd1*)
15573 dynamic_linker=no
15574 ;;
15575
15576freebsd* | dragonfly*)
15577 # DragonFly does not have aout. When/if they implement a new
15578 # versioning mechanism, adjust this.
15579 if test -x /usr/bin/objformat; then
15580 objformat=`/usr/bin/objformat`
15581 else
15582 case $host_os in
15583 freebsd[123]*) objformat=aout ;;
15584 *) objformat=elf ;;
15585 esac
15586 fi
15587 version_type=freebsd-$objformat
15588 case $version_type in
15589 freebsd-elf*)
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15591 need_version=no
15592 need_lib_prefix=no
15593 ;;
15594 freebsd-*)
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15596 need_version=yes
15597 ;;
15598 esac
15599 shlibpath_var=LD_LIBRARY_PATH
15600 case $host_os in
15601 freebsd2*)
15602 shlibpath_overrides_runpath=yes
15603 ;;
15604 freebsd3.[01]* | freebsdelf3.[01]*)
15605 shlibpath_overrides_runpath=yes
15606 hardcode_into_libs=yes
15607 ;;
15608 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15609 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15610 shlibpath_overrides_runpath=no
15611 hardcode_into_libs=yes
15612 ;;
15613 *) # from 4.6 on, and DragonFly
15614 shlibpath_overrides_runpath=yes
15615 hardcode_into_libs=yes
15616 ;;
15617 esac
15618 ;;
15619
15620gnu*)
15621 version_type=linux
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 hardcode_into_libs=yes
15628 ;;
15629
cristy0c60a692010-11-04 01:09:47 +000015630haiku*)
15631 version_type=linux
15632 need_lib_prefix=no
15633 need_version=no
15634 dynamic_linker="$host_os runtime_loader"
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 shlibpath_var=LIBRARY_PATH
15638 shlibpath_overrides_runpath=yes
15639 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15640 hardcode_into_libs=yes
15641 ;;
15642
cristy73bd4a52010-10-05 11:24:23 +000015643hpux9* | hpux10* | hpux11*)
15644 # Give a soname corresponding to the major version so that dld.sl refuses to
15645 # link against other versions.
15646 version_type=sunos
15647 need_lib_prefix=no
15648 need_version=no
15649 case $host_cpu in
15650 ia64*)
15651 shrext_cmds='.so'
15652 hardcode_into_libs=yes
15653 dynamic_linker="$host_os dld.so"
15654 shlibpath_var=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 if test "X$HPUX_IA64_MODE" = X32; then
15659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15660 else
15661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15662 fi
15663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15664 ;;
15665 hppa*64*)
15666 shrext_cmds='.sl'
15667 hardcode_into_libs=yes
15668 dynamic_linker="$host_os dld.sl"
15669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 soname_spec='${libname}${release}${shared_ext}$major'
15673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15675 ;;
15676 *)
15677 shrext_cmds='.sl'
15678 dynamic_linker="$host_os dld.sl"
15679 shlibpath_var=SHLIB_PATH
15680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 ;;
15684 esac
cristy0c60a692010-11-04 01:09:47 +000015685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015686 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015687 # or fails outright, so override atomically:
15688 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015689 ;;
15690
15691interix[3-9]*)
15692 version_type=linux
15693 need_lib_prefix=no
15694 need_version=no
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15696 soname_spec='${libname}${release}${shared_ext}$major'
15697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=no
15700 hardcode_into_libs=yes
15701 ;;
15702
15703irix5* | irix6* | nonstopux*)
15704 case $host_os in
15705 nonstopux*) version_type=nonstopux ;;
15706 *)
15707 if test "$lt_cv_prog_gnu_ld" = yes; then
15708 version_type=linux
15709 else
15710 version_type=irix
15711 fi ;;
15712 esac
15713 need_lib_prefix=no
15714 need_version=no
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15717 case $host_os in
15718 irix5* | nonstopux*)
15719 libsuff= shlibsuff=
15720 ;;
15721 *)
15722 case $LD in # libtool.m4 will add one of these switches to LD
15723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15724 libsuff= shlibsuff= libmagic=32-bit;;
15725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15726 libsuff=32 shlibsuff=N32 libmagic=N32;;
15727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15729 *) libsuff= shlibsuff= libmagic=never-match;;
15730 esac
15731 ;;
15732 esac
15733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15734 shlibpath_overrides_runpath=no
15735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15737 hardcode_into_libs=yes
15738 ;;
15739
15740# No shared lib support for Linux oldld, aout, or coff.
15741linux*oldld* | linux*aout* | linux*coff*)
15742 dynamic_linker=no
15743 ;;
15744
15745# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015746linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015747 version_type=linux
15748 need_lib_prefix=no
15749 need_version=no
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015755
cristy73bd4a52010-10-05 11:24:23 +000015756 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015757 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015758 $as_echo_n "(cached) " >&6
15759else
15760 lt_cv_shlibpath_overrides_runpath=no
15761 save_LDFLAGS=$LDFLAGS
15762 save_libdir=$libdir
15763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015766/* end confdefs.h. */
15767
15768int
15769main ()
15770{
15771
15772 ;
15773 return 0;
15774}
15775_ACEOF
15776if ac_fn_c_try_link "$LINENO"; then :
15777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015778 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015779fi
15780fi
15781rm -f core conftest.err conftest.$ac_objext \
15782 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015783 LDFLAGS=$save_LDFLAGS
15784 libdir=$save_libdir
15785
15786fi
15787
15788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015789
15790 # This implies no fast_install, which is unacceptable.
15791 # Some rework will be needed to allow for fast_install
15792 # before this can be enabled.
15793 hardcode_into_libs=yes
15794
15795 # Add ABI-specific directories to the system library path.
15796 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15797
15798 # Append ld.so.conf contents to the search path
15799 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015800 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 +000015801 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015802
cristy73bd4a52010-10-05 11:24:23 +000015803 fi
15804
15805 # We used to test for /lib/ld.so.1 and disable shared libraries on
15806 # powerpc, because MkLinux only supported shared libraries with the
15807 # GNU dynamic linker. Since this was broken with cross compilers,
15808 # most powerpc-linux boxes support dynamic linking these days and
15809 # people can always --disable-shared, the test was removed, and we
15810 # assume the GNU/Linux dynamic linker is in use.
15811 dynamic_linker='GNU/Linux ld.so'
15812 ;;
15813
15814netbsd*)
15815 version_type=sunos
15816 need_lib_prefix=no
15817 need_version=no
15818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15821 dynamic_linker='NetBSD (a.out) ld.so'
15822 else
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 dynamic_linker='NetBSD ld.elf_so'
15826 fi
15827 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=yes
15829 hardcode_into_libs=yes
15830 ;;
15831
15832newsos6)
15833 version_type=linux
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 ;;
15838
15839*nto* | *qnx*)
15840 version_type=qnx
15841 need_lib_prefix=no
15842 need_version=no
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844 soname_spec='${libname}${release}${shared_ext}$major'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 shlibpath_overrides_runpath=no
15847 hardcode_into_libs=yes
15848 dynamic_linker='ldqnx.so'
15849 ;;
15850
15851openbsd*)
15852 version_type=sunos
15853 sys_lib_dlsearch_path_spec="/usr/lib"
15854 need_lib_prefix=no
15855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15856 case $host_os in
15857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15858 *) need_version=no ;;
15859 esac
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15862 shlibpath_var=LD_LIBRARY_PATH
15863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15864 case $host_os in
15865 openbsd2.[89] | openbsd2.[89].*)
15866 shlibpath_overrides_runpath=no
15867 ;;
15868 *)
15869 shlibpath_overrides_runpath=yes
15870 ;;
15871 esac
15872 else
15873 shlibpath_overrides_runpath=yes
15874 fi
15875 ;;
15876
15877os2*)
15878 libname_spec='$name'
15879 shrext_cmds=".dll"
15880 need_lib_prefix=no
15881 library_names_spec='$libname${shared_ext} $libname.a'
15882 dynamic_linker='OS/2 ld.exe'
15883 shlibpath_var=LIBPATH
15884 ;;
15885
15886osf3* | osf4* | osf5*)
15887 version_type=osf
15888 need_lib_prefix=no
15889 need_version=no
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15895 ;;
15896
15897rdos*)
15898 dynamic_linker=no
15899 ;;
15900
15901solaris*)
15902 version_type=linux
15903 need_lib_prefix=no
15904 need_version=no
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes
15909 hardcode_into_libs=yes
15910 # ldd complains unless libraries are executable
15911 postinstall_cmds='chmod +x $lib'
15912 ;;
15913
15914sunos4*)
15915 version_type=sunos
15916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15918 shlibpath_var=LD_LIBRARY_PATH
15919 shlibpath_overrides_runpath=yes
15920 if test "$with_gnu_ld" = yes; then
15921 need_lib_prefix=no
15922 fi
15923 need_version=yes
15924 ;;
15925
15926sysv4 | sysv4.3*)
15927 version_type=linux
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 case $host_vendor in
15932 sni)
15933 shlibpath_overrides_runpath=no
15934 need_lib_prefix=no
15935 runpath_var=LD_RUN_PATH
15936 ;;
15937 siemens)
15938 need_lib_prefix=no
15939 ;;
15940 motorola)
15941 need_lib_prefix=no
15942 need_version=no
15943 shlibpath_overrides_runpath=no
15944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15945 ;;
15946 esac
15947 ;;
15948
15949sysv4*MP*)
15950 if test -d /usr/nec ;then
15951 version_type=linux
15952 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15953 soname_spec='$libname${shared_ext}.$major'
15954 shlibpath_var=LD_LIBRARY_PATH
15955 fi
15956 ;;
15957
15958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15959 version_type=freebsd-elf
15960 need_lib_prefix=no
15961 need_version=no
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 shlibpath_overrides_runpath=yes
15966 hardcode_into_libs=yes
15967 if test "$with_gnu_ld" = yes; then
15968 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15969 else
15970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15971 case $host_os in
15972 sco3.2v5*)
15973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15974 ;;
15975 esac
15976 fi
15977 sys_lib_dlsearch_path_spec='/usr/lib'
15978 ;;
15979
15980tpf*)
15981 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15982 version_type=linux
15983 need_lib_prefix=no
15984 need_version=no
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=no
15988 hardcode_into_libs=yes
15989 ;;
15990
15991uts4*)
15992 version_type=linux
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 ;;
15997
15998*)
15999 dynamic_linker=no
16000 ;;
16001esac
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16003$as_echo "$dynamic_linker" >&6; }
16004test "$dynamic_linker" = no && can_build_shared=no
16005
16006variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16007if test "$GCC" = yes; then
16008 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16009fi
16010
16011if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16012 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16013fi
16014if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16015 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16016fi
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
cristy0c60a692010-11-04 01:09:47 +000016104
16105
16106
16107
16108
cristy73bd4a52010-10-05 11:24:23 +000016109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16110$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16111hardcode_action=
16112if test -n "$hardcode_libdir_flag_spec" ||
16113 test -n "$runpath_var" ||
16114 test "X$hardcode_automatic" = "Xyes" ; then
16115
16116 # We can hardcode non-existent directories.
16117 if test "$hardcode_direct" != no &&
16118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16119 # have to relink, otherwise we might link with an installed library
16120 # when we should be linking with a yet-to-be-installed one
16121 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16122 test "$hardcode_minus_L" != no; then
16123 # Linking always hardcodes the temporary library directory.
16124 hardcode_action=relink
16125 else
16126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16127 hardcode_action=immediate
16128 fi
16129else
16130 # We cannot hardcode anything, or else we can only hardcode existing
16131 # directories.
16132 hardcode_action=unsupported
16133fi
16134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16135$as_echo "$hardcode_action" >&6; }
16136
16137if test "$hardcode_action" = relink ||
16138 test "$inherit_rpath" = yes; then
16139 # Fast installation is not supported
16140 enable_fast_install=no
16141elif test "$shlibpath_overrides_runpath" = yes ||
16142 test "$enable_shared" = no; then
16143 # Fast installation is not necessary
16144 enable_fast_install=needless
16145fi
16146
16147
16148
16149
16150
16151
16152 if test "x$enable_dlopen" != xyes; then
16153 enable_dlopen=unknown
16154 enable_dlopen_self=unknown
16155 enable_dlopen_self_static=unknown
16156else
16157 lt_cv_dlopen=no
16158 lt_cv_dlopen_libs=
16159
16160 case $host_os in
16161 beos*)
16162 lt_cv_dlopen="load_add_on"
16163 lt_cv_dlopen_libs=
16164 lt_cv_dlopen_self=yes
16165 ;;
16166
16167 mingw* | pw32* | cegcc*)
16168 lt_cv_dlopen="LoadLibrary"
16169 lt_cv_dlopen_libs=
16170 ;;
16171
16172 cygwin*)
16173 lt_cv_dlopen="dlopen"
16174 lt_cv_dlopen_libs=
16175 ;;
16176
16177 darwin*)
16178 # if libdl is installed we need to link against it
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16180$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016181if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016182 $as_echo_n "(cached) " >&6
16183else
16184 ac_check_lib_save_LIBS=$LIBS
16185LIBS="-ldl $LIBS"
16186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h. */
16188
16189/* Override any GCC internal prototype to avoid an error.
16190 Use char because int might match the return type of a GCC
16191 builtin and then its argument prototype would still apply. */
16192#ifdef __cplusplus
16193extern "C"
16194#endif
16195char dlopen ();
16196int
16197main ()
16198{
16199return dlopen ();
16200 ;
16201 return 0;
16202}
16203_ACEOF
16204if ac_fn_c_try_link "$LINENO"; then :
16205 ac_cv_lib_dl_dlopen=yes
16206else
16207 ac_cv_lib_dl_dlopen=no
16208fi
16209rm -f core conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
16211LIBS=$ac_check_lib_save_LIBS
16212fi
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16214$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016215if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16217else
16218
16219 lt_cv_dlopen="dyld"
16220 lt_cv_dlopen_libs=
16221 lt_cv_dlopen_self=yes
16222
16223fi
16224
16225 ;;
16226
16227 *)
16228 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016229if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016230 lt_cv_dlopen="shl_load"
16231else
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16233$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016234if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016235 $as_echo_n "(cached) " >&6
16236else
16237 ac_check_lib_save_LIBS=$LIBS
16238LIBS="-ldld $LIBS"
16239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240/* end confdefs.h. */
16241
16242/* Override any GCC internal prototype to avoid an error.
16243 Use char because int might match the return type of a GCC
16244 builtin and then its argument prototype would still apply. */
16245#ifdef __cplusplus
16246extern "C"
16247#endif
16248char shl_load ();
16249int
16250main ()
16251{
16252return shl_load ();
16253 ;
16254 return 0;
16255}
16256_ACEOF
16257if ac_fn_c_try_link "$LINENO"; then :
16258 ac_cv_lib_dld_shl_load=yes
16259else
16260 ac_cv_lib_dld_shl_load=no
16261fi
16262rm -f core conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264LIBS=$ac_check_lib_save_LIBS
16265fi
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16267$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016268if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016269 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16270else
16271 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016272if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016273 lt_cv_dlopen="dlopen"
16274else
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16276$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016277if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016278 $as_echo_n "(cached) " >&6
16279else
16280 ac_check_lib_save_LIBS=$LIBS
16281LIBS="-ldl $LIBS"
16282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283/* end confdefs.h. */
16284
16285/* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16288#ifdef __cplusplus
16289extern "C"
16290#endif
16291char dlopen ();
16292int
16293main ()
16294{
16295return dlopen ();
16296 ;
16297 return 0;
16298}
16299_ACEOF
16300if ac_fn_c_try_link "$LINENO"; then :
16301 ac_cv_lib_dl_dlopen=yes
16302else
16303 ac_cv_lib_dl_dlopen=no
16304fi
16305rm -f core conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16307LIBS=$ac_check_lib_save_LIBS
16308fi
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16310$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016311if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16313else
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16315$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016316if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016317 $as_echo_n "(cached) " >&6
16318else
16319 ac_check_lib_save_LIBS=$LIBS
16320LIBS="-lsvld $LIBS"
16321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h. */
16323
16324/* Override any GCC internal prototype to avoid an error.
16325 Use char because int might match the return type of a GCC
16326 builtin and then its argument prototype would still apply. */
16327#ifdef __cplusplus
16328extern "C"
16329#endif
16330char dlopen ();
16331int
16332main ()
16333{
16334return dlopen ();
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339if ac_fn_c_try_link "$LINENO"; then :
16340 ac_cv_lib_svld_dlopen=yes
16341else
16342 ac_cv_lib_svld_dlopen=no
16343fi
16344rm -f core conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext conftest.$ac_ext
16346LIBS=$ac_check_lib_save_LIBS
16347fi
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16349$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016350if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16352else
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16354$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016355if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016356 $as_echo_n "(cached) " >&6
16357else
16358 ac_check_lib_save_LIBS=$LIBS
16359LIBS="-ldld $LIBS"
16360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361/* end confdefs.h. */
16362
16363/* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
16366#ifdef __cplusplus
16367extern "C"
16368#endif
16369char dld_link ();
16370int
16371main ()
16372{
16373return dld_link ();
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378if ac_fn_c_try_link "$LINENO"; then :
16379 ac_cv_lib_dld_dld_link=yes
16380else
16381 ac_cv_lib_dld_dld_link=no
16382fi
16383rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385LIBS=$ac_check_lib_save_LIBS
16386fi
16387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16388$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016389if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016390 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16391fi
16392
16393
16394fi
16395
16396
16397fi
16398
16399
16400fi
16401
16402
16403fi
16404
16405
16406fi
16407
16408 ;;
16409 esac
16410
16411 if test "x$lt_cv_dlopen" != xno; then
16412 enable_dlopen=yes
16413 else
16414 enable_dlopen=no
16415 fi
16416
16417 case $lt_cv_dlopen in
16418 dlopen)
16419 save_CPPFLAGS="$CPPFLAGS"
16420 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16421
16422 save_LDFLAGS="$LDFLAGS"
16423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16424
16425 save_LIBS="$LIBS"
16426 LIBS="$lt_cv_dlopen_libs $LIBS"
16427
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16429$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016430if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016431 $as_echo_n "(cached) " >&6
16432else
16433 if test "$cross_compiling" = yes; then :
16434 lt_cv_dlopen_self=cross
16435else
16436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16437 lt_status=$lt_dlunknown
16438 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016439#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016440#include "confdefs.h"
16441
16442#if HAVE_DLFCN_H
16443#include <dlfcn.h>
16444#endif
16445
16446#include <stdio.h>
16447
16448#ifdef RTLD_GLOBAL
16449# define LT_DLGLOBAL RTLD_GLOBAL
16450#else
16451# ifdef DL_GLOBAL
16452# define LT_DLGLOBAL DL_GLOBAL
16453# else
16454# define LT_DLGLOBAL 0
16455# endif
16456#endif
16457
16458/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16459 find out it does not work in some platform. */
16460#ifndef LT_DLLAZY_OR_NOW
16461# ifdef RTLD_LAZY
16462# define LT_DLLAZY_OR_NOW RTLD_LAZY
16463# else
16464# ifdef DL_LAZY
16465# define LT_DLLAZY_OR_NOW DL_LAZY
16466# else
16467# ifdef RTLD_NOW
16468# define LT_DLLAZY_OR_NOW RTLD_NOW
16469# else
16470# ifdef DL_NOW
16471# define LT_DLLAZY_OR_NOW DL_NOW
16472# else
16473# define LT_DLLAZY_OR_NOW 0
16474# endif
16475# endif
16476# endif
16477# endif
16478#endif
16479
cristy0c60a692010-11-04 01:09:47 +000016480/* When -fvisbility=hidden is used, assume the code has been annotated
16481 correspondingly for the symbols needed. */
16482#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016483int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016484#endif
16485
cristyda16f162011-02-19 23:52:17 +000016486int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016487int main ()
16488{
16489 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16490 int status = $lt_dlunknown;
16491
16492 if (self)
16493 {
16494 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016495 else
16496 {
16497 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16498 else puts (dlerror ());
16499 }
cristy73bd4a52010-10-05 11:24:23 +000016500 /* dlclose (self); */
16501 }
16502 else
16503 puts (dlerror ());
16504
16505 return status;
16506}
16507_LT_EOF
16508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16509 (eval $ac_link) 2>&5
16510 ac_status=$?
16511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16512 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16513 (./conftest; exit; ) >&5 2>/dev/null
16514 lt_status=$?
16515 case x$lt_status in
16516 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16517 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16518 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16519 esac
16520 else :
16521 # compilation failed
16522 lt_cv_dlopen_self=no
16523 fi
16524fi
16525rm -fr conftest*
16526
16527
16528fi
16529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16530$as_echo "$lt_cv_dlopen_self" >&6; }
16531
16532 if test "x$lt_cv_dlopen_self" = xyes; then
16533 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16535$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016536if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016537 $as_echo_n "(cached) " >&6
16538else
16539 if test "$cross_compiling" = yes; then :
16540 lt_cv_dlopen_self_static=cross
16541else
16542 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16543 lt_status=$lt_dlunknown
16544 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016545#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016546#include "confdefs.h"
16547
16548#if HAVE_DLFCN_H
16549#include <dlfcn.h>
16550#endif
16551
16552#include <stdio.h>
16553
16554#ifdef RTLD_GLOBAL
16555# define LT_DLGLOBAL RTLD_GLOBAL
16556#else
16557# ifdef DL_GLOBAL
16558# define LT_DLGLOBAL DL_GLOBAL
16559# else
16560# define LT_DLGLOBAL 0
16561# endif
16562#endif
16563
16564/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16565 find out it does not work in some platform. */
16566#ifndef LT_DLLAZY_OR_NOW
16567# ifdef RTLD_LAZY
16568# define LT_DLLAZY_OR_NOW RTLD_LAZY
16569# else
16570# ifdef DL_LAZY
16571# define LT_DLLAZY_OR_NOW DL_LAZY
16572# else
16573# ifdef RTLD_NOW
16574# define LT_DLLAZY_OR_NOW RTLD_NOW
16575# else
16576# ifdef DL_NOW
16577# define LT_DLLAZY_OR_NOW DL_NOW
16578# else
16579# define LT_DLLAZY_OR_NOW 0
16580# endif
16581# endif
16582# endif
16583# endif
16584#endif
16585
cristy0c60a692010-11-04 01:09:47 +000016586/* When -fvisbility=hidden is used, assume the code has been annotated
16587 correspondingly for the symbols needed. */
16588#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016589int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016590#endif
16591
cristyda16f162011-02-19 23:52:17 +000016592int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016593int main ()
16594{
16595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16596 int status = $lt_dlunknown;
16597
16598 if (self)
16599 {
16600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016601 else
16602 {
16603 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16604 else puts (dlerror ());
16605 }
cristy73bd4a52010-10-05 11:24:23 +000016606 /* dlclose (self); */
16607 }
16608 else
16609 puts (dlerror ());
16610
16611 return status;
16612}
16613_LT_EOF
16614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16615 (eval $ac_link) 2>&5
16616 ac_status=$?
16617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16619 (./conftest; exit; ) >&5 2>/dev/null
16620 lt_status=$?
16621 case x$lt_status in
16622 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16623 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16624 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16625 esac
16626 else :
16627 # compilation failed
16628 lt_cv_dlopen_self_static=no
16629 fi
16630fi
16631rm -fr conftest*
16632
16633
16634fi
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16636$as_echo "$lt_cv_dlopen_self_static" >&6; }
16637 fi
16638
16639 CPPFLAGS="$save_CPPFLAGS"
16640 LDFLAGS="$save_LDFLAGS"
16641 LIBS="$save_LIBS"
16642 ;;
16643 esac
16644
16645 case $lt_cv_dlopen_self in
16646 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16647 *) enable_dlopen_self=unknown ;;
16648 esac
16649
16650 case $lt_cv_dlopen_self_static in
16651 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16652 *) enable_dlopen_self_static=unknown ;;
16653 esac
16654fi
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672striplib=
16673old_striplib=
16674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16675$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16676if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16677 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16678 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16680$as_echo "yes" >&6; }
16681else
16682# FIXME - insert some real tests, host_os isn't really good enough
16683 case $host_os in
16684 darwin*)
16685 if test -n "$STRIP" ; then
16686 striplib="$STRIP -x"
16687 old_striplib="$STRIP -S"
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16689$as_echo "yes" >&6; }
16690 else
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692$as_echo "no" >&6; }
16693 fi
16694 ;;
16695 *)
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697$as_echo "no" >&6; }
16698 ;;
16699 esac
16700fi
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713 # Report which library types will actually be built
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16715$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16717$as_echo "$can_build_shared" >&6; }
16718
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16720$as_echo_n "checking whether to build shared libraries... " >&6; }
16721 test "$can_build_shared" = "no" && enable_shared=no
16722
16723 # On AIX, shared libraries and static libraries use the same namespace, and
16724 # are all built from PIC.
16725 case $host_os in
16726 aix3*)
16727 test "$enable_shared" = yes && enable_static=no
16728 if test -n "$RANLIB"; then
16729 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16730 postinstall_cmds='$RANLIB $lib'
16731 fi
16732 ;;
16733
16734 aix[4-9]*)
16735 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16736 test "$enable_shared" = yes && enable_static=no
16737 fi
16738 ;;
16739 esac
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16741$as_echo "$enable_shared" >&6; }
16742
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16744$as_echo_n "checking whether to build static libraries... " >&6; }
16745 # Make sure either enable_shared or enable_static is yes.
16746 test "$enable_shared" = yes || enable_static=yes
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16748$as_echo "$enable_static" >&6; }
16749
16750
16751
16752
16753fi
16754ac_ext=c
16755ac_cpp='$CPP $CPPFLAGS'
16756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16758ac_compiler_gnu=$ac_cv_c_compiler_gnu
16759
16760CC="$lt_save_CC"
16761
cristy0c60a692010-11-04 01:09:47 +000016762 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16763 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16764 (test "X$CXX" != "Xg++"))) ; then
16765 ac_ext=cpp
16766ac_cpp='$CXXCPP $CPPFLAGS'
16767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16771$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16772if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016773 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016774 $as_echo_n "(cached) " >&6
16775else
16776 # Double quotes because CXXCPP needs to be expanded
16777 for CXXCPP in "$CXX -E" "/lib/cpp"
16778 do
16779 ac_preproc_ok=false
16780for ac_cxx_preproc_warn_flag in '' yes
16781do
16782 # Use a header file that comes with gcc, so configuring glibc
16783 # with a fresh cross-compiler works.
16784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16785 # <limits.h> exists even on freestanding compilers.
16786 # On the NeXT, cc -E runs the code through the compiler's parser,
16787 # not just through cpp. "Syntax error" is here to catch this case.
16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789/* end confdefs.h. */
16790#ifdef __STDC__
16791# include <limits.h>
16792#else
16793# include <assert.h>
16794#endif
16795 Syntax error
16796_ACEOF
16797if ac_fn_cxx_try_cpp "$LINENO"; then :
16798
16799else
16800 # Broken: fails on valid input.
16801continue
16802fi
cristyda16f162011-02-19 23:52:17 +000016803rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016804
16805 # OK, works on sane cases. Now check whether nonexistent headers
16806 # can be detected and how.
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808/* end confdefs.h. */
16809#include <ac_nonexistent.h>
16810_ACEOF
16811if ac_fn_cxx_try_cpp "$LINENO"; then :
16812 # Broken: success on invalid input.
16813continue
16814else
16815 # Passes both tests.
16816ac_preproc_ok=:
16817break
16818fi
cristyda16f162011-02-19 23:52:17 +000016819rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016820
16821done
16822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016823rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016824if $ac_preproc_ok; then :
16825 break
16826fi
16827
16828 done
16829 ac_cv_prog_CXXCPP=$CXXCPP
16830
16831fi
16832 CXXCPP=$ac_cv_prog_CXXCPP
16833else
16834 ac_cv_prog_CXXCPP=$CXXCPP
16835fi
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16837$as_echo "$CXXCPP" >&6; }
16838ac_preproc_ok=false
16839for ac_cxx_preproc_warn_flag in '' yes
16840do
16841 # Use a header file that comes with gcc, so configuring glibc
16842 # with a fresh cross-compiler works.
16843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 # <limits.h> exists even on freestanding compilers.
16845 # On the NeXT, cc -E runs the code through the compiler's parser,
16846 # not just through cpp. "Syntax error" is here to catch this case.
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848/* end confdefs.h. */
16849#ifdef __STDC__
16850# include <limits.h>
16851#else
16852# include <assert.h>
16853#endif
16854 Syntax error
16855_ACEOF
16856if ac_fn_cxx_try_cpp "$LINENO"; then :
16857
16858else
16859 # Broken: fails on valid input.
16860continue
16861fi
cristyda16f162011-02-19 23:52:17 +000016862rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016863
16864 # OK, works on sane cases. Now check whether nonexistent headers
16865 # can be detected and how.
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867/* end confdefs.h. */
16868#include <ac_nonexistent.h>
16869_ACEOF
16870if ac_fn_cxx_try_cpp "$LINENO"; then :
16871 # Broken: success on invalid input.
16872continue
16873else
16874 # Passes both tests.
16875ac_preproc_ok=:
16876break
16877fi
cristyda16f162011-02-19 23:52:17 +000016878rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016879
16880done
16881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016882rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016883if $ac_preproc_ok; then :
16884
16885else
16886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16888as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16889See \`config.log' for more details" "$LINENO" 5; }
16890fi
16891
16892ac_ext=c
16893ac_cpp='$CPP $CPPFLAGS'
16894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16896ac_compiler_gnu=$ac_cv_c_compiler_gnu
16897
16898else
16899 _lt_caught_CXX_error=yes
16900fi
cristy73bd4a52010-10-05 11:24:23 +000016901
16902ac_ext=cpp
16903ac_cpp='$CXXCPP $CPPFLAGS'
16904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16907
16908archive_cmds_need_lc_CXX=no
16909allow_undefined_flag_CXX=
16910always_export_symbols_CXX=no
16911archive_expsym_cmds_CXX=
16912compiler_needs_object_CXX=no
16913export_dynamic_flag_spec_CXX=
16914hardcode_direct_CXX=no
16915hardcode_direct_absolute_CXX=no
16916hardcode_libdir_flag_spec_CXX=
16917hardcode_libdir_flag_spec_ld_CXX=
16918hardcode_libdir_separator_CXX=
16919hardcode_minus_L_CXX=no
16920hardcode_shlibpath_var_CXX=unsupported
16921hardcode_automatic_CXX=no
16922inherit_rpath_CXX=no
16923module_cmds_CXX=
16924module_expsym_cmds_CXX=
16925link_all_deplibs_CXX=unknown
16926old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016927reload_flag_CXX=$reload_flag
16928reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016929no_undefined_flag_CXX=
16930whole_archive_flag_spec_CXX=
16931enable_shared_with_static_runtimes_CXX=no
16932
16933# Source file extension for C++ test sources.
16934ac_ext=cpp
16935
16936# Object file extension for compiled C++ test sources.
16937objext=o
16938objext_CXX=$objext
16939
16940# No sense in running all these tests if we already determined that
16941# the CXX compiler isn't working. Some variables (like enable_shared)
16942# are currently assumed to apply to all compilers on this platform,
16943# and will be corrupted by setting them based on a non-working compiler.
16944if test "$_lt_caught_CXX_error" != yes; then
16945 # Code to be used in simple compile tests
16946 lt_simple_compile_test_code="int some_variable = 0;"
16947
16948 # Code to be used in simple link tests
16949 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16950
16951 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16952
16953
16954
16955
16956
16957
16958# If no C compiler was specified, use CC.
16959LTCC=${LTCC-"$CC"}
16960
16961# If no C compiler flags were specified, use CFLAGS.
16962LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16963
16964# Allow CC to be a program name with arguments.
16965compiler=$CC
16966
16967
16968 # save warnings/boilerplate of simple test code
16969 ac_outfile=conftest.$ac_objext
16970echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16971eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16972_lt_compiler_boilerplate=`cat conftest.err`
16973$RM conftest*
16974
16975 ac_outfile=conftest.$ac_objext
16976echo "$lt_simple_link_test_code" >conftest.$ac_ext
16977eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16978_lt_linker_boilerplate=`cat conftest.err`
16979$RM -r conftest*
16980
16981
16982 # Allow CC to be a program name with arguments.
16983 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016984 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016985 lt_save_LD=$LD
16986 lt_save_GCC=$GCC
16987 GCC=$GXX
16988 lt_save_with_gnu_ld=$with_gnu_ld
16989 lt_save_path_LD=$lt_cv_path_LD
16990 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16991 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16992 else
16993 $as_unset lt_cv_prog_gnu_ld
16994 fi
16995 if test -n "${lt_cv_path_LDCXX+set}"; then
16996 lt_cv_path_LD=$lt_cv_path_LDCXX
16997 else
16998 $as_unset lt_cv_path_LD
16999 fi
17000 test -z "${LDCXX+set}" || LD=$LDCXX
17001 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017002 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017003 compiler=$CC
17004 compiler_CXX=$CC
17005 for cc_temp in $compiler""; do
17006 case $cc_temp in
17007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17009 \-*) ;;
17010 *) break;;
17011 esac
17012done
cristy0c60a692010-11-04 01:09:47 +000017013cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017014
17015
17016 if test -n "$compiler"; then
17017 # We don't want -fno-exception when compiling C++ code, so set the
17018 # no_builtin_flag separately
17019 if test "$GXX" = yes; then
17020 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17021 else
17022 lt_prog_compiler_no_builtin_flag_CXX=
17023 fi
17024
17025 if test "$GXX" = yes; then
17026 # Set up default GNU C++ configuration
17027
17028
17029
17030# Check whether --with-gnu-ld was given.
17031if test "${with_gnu_ld+set}" = set; then :
17032 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17033else
17034 with_gnu_ld=no
17035fi
17036
17037ac_prog=ld
17038if test "$GCC" = yes; then
17039 # Check if gcc -print-prog-name=ld gives a path.
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17041$as_echo_n "checking for ld used by $CC... " >&6; }
17042 case $host in
17043 *-*-mingw*)
17044 # gcc leaves a trailing carriage return which upsets mingw
17045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17046 *)
17047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17048 esac
17049 case $ac_prog in
17050 # Accept absolute paths.
17051 [\\/]* | ?:[\\/]*)
17052 re_direlt='/[^/][^/]*/\.\./'
17053 # Canonicalize the pathname of ld
17054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17057 done
17058 test -z "$LD" && LD="$ac_prog"
17059 ;;
17060 "")
17061 # If it fails, then pretend we aren't using GCC.
17062 ac_prog=ld
17063 ;;
17064 *)
17065 # If it is relative, then search for the first ld in PATH.
17066 with_gnu_ld=unknown
17067 ;;
17068 esac
17069elif test "$with_gnu_ld" = yes; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17071$as_echo_n "checking for GNU ld... " >&6; }
17072else
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17074$as_echo_n "checking for non-GNU ld... " >&6; }
17075fi
cristyda16f162011-02-19 23:52:17 +000017076if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017077 $as_echo_n "(cached) " >&6
17078else
17079 if test -z "$LD"; then
17080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17081 for ac_dir in $PATH; do
17082 IFS="$lt_save_ifs"
17083 test -z "$ac_dir" && ac_dir=.
17084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17085 lt_cv_path_LD="$ac_dir/$ac_prog"
17086 # Check to see if the program is GNU ld. I'd rather use --version,
17087 # but apparently some variants of GNU ld only accept -v.
17088 # Break only if it was the GNU/non-GNU ld that we prefer.
17089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17090 *GNU* | *'with BFD'*)
17091 test "$with_gnu_ld" != no && break
17092 ;;
17093 *)
17094 test "$with_gnu_ld" != yes && break
17095 ;;
17096 esac
17097 fi
17098 done
17099 IFS="$lt_save_ifs"
17100else
17101 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17102fi
17103fi
17104
17105LD="$lt_cv_path_LD"
17106if test -n "$LD"; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17108$as_echo "$LD" >&6; }
17109else
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111$as_echo "no" >&6; }
17112fi
cristy98dddb52010-11-04 00:30:15 +000017113test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17115$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017116if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017117 $as_echo_n "(cached) " >&6
17118else
17119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17120case `$LD -v 2>&1 </dev/null` in
17121*GNU* | *'with BFD'*)
17122 lt_cv_prog_gnu_ld=yes
17123 ;;
17124*)
17125 lt_cv_prog_gnu_ld=no
17126 ;;
17127esac
17128fi
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17130$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17131with_gnu_ld=$lt_cv_prog_gnu_ld
17132
17133
17134
17135
17136
17137
17138
17139 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17140 # archiving commands below assume that GNU ld is being used.
17141 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017142 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17143 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 +000017144
17145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17147
17148 # If archive_cmds runs LD, not CC, wlarc should be empty
17149 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17150 # investigate it a little bit more. (MM)
17151 wlarc='${wl}'
17152
17153 # ancient GNU ld didn't support --whole-archive et. al.
17154 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17155 $GREP 'no-whole-archive' > /dev/null; then
17156 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17157 else
17158 whole_archive_flag_spec_CXX=
17159 fi
17160 else
17161 with_gnu_ld=no
17162 wlarc=
17163
17164 # A generic and very simple default shared library creation
17165 # command for GNU C++ for the case where it uses the native
17166 # linker, instead of GNU ld. If possible, this setting should
17167 # overridden to take advantage of the native linker features on
17168 # the platform it is being used on.
17169 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17170 fi
17171
17172 # Commands to make compiler produce verbose output that lists
17173 # what "hidden" libraries, object files and flags are used when
17174 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017176
17177 else
17178 GXX=no
17179 with_gnu_ld=no
17180 wlarc=
17181 fi
17182
17183 # PORTME: fill in a description of your system's C++ link characteristics
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17185$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17186 ld_shlibs_CXX=yes
17187 case $host_os in
17188 aix3*)
17189 # FIXME: insert proper C++ library support
17190 ld_shlibs_CXX=no
17191 ;;
17192 aix[4-9]*)
17193 if test "$host_cpu" = ia64; then
17194 # On IA64, the linker does run time linking by default, so we don't
17195 # have to do anything special.
17196 aix_use_runtimelinking=no
17197 exp_sym_flag='-Bexport'
17198 no_entry_flag=""
17199 else
17200 aix_use_runtimelinking=no
17201
17202 # Test if we are trying to use run time linking or normal
17203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17204 # need to do runtime linking.
17205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17206 for ld_flag in $LDFLAGS; do
17207 case $ld_flag in
17208 *-brtl*)
17209 aix_use_runtimelinking=yes
17210 break
17211 ;;
17212 esac
17213 done
17214 ;;
17215 esac
17216
17217 exp_sym_flag='-bexport'
17218 no_entry_flag='-bnoentry'
17219 fi
17220
17221 # When large executables or shared objects are built, AIX ld can
17222 # have problems creating the table of contents. If linking a library
17223 # or program results in "error TOC overflow" add -mminimal-toc to
17224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17226
17227 archive_cmds_CXX=''
17228 hardcode_direct_CXX=yes
17229 hardcode_direct_absolute_CXX=yes
17230 hardcode_libdir_separator_CXX=':'
17231 link_all_deplibs_CXX=yes
17232 file_list_spec_CXX='${wl}-f,'
17233
17234 if test "$GXX" = yes; then
17235 case $host_os in aix4.[012]|aix4.[012].*)
17236 # We only want to do this on AIX 4.2 and lower, the check
17237 # below for broken collect2 doesn't work under 4.3+
17238 collect2name=`${CC} -print-prog-name=collect2`
17239 if test -f "$collect2name" &&
17240 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17241 then
17242 # We have reworked collect2
17243 :
17244 else
17245 # We have old collect2
17246 hardcode_direct_CXX=unsupported
17247 # It fails to find uninstalled libraries when the uninstalled
17248 # path is not listed in the libpath. Setting hardcode_minus_L
17249 # to unsupported forces relinking
17250 hardcode_minus_L_CXX=yes
17251 hardcode_libdir_flag_spec_CXX='-L$libdir'
17252 hardcode_libdir_separator_CXX=
17253 fi
17254 esac
17255 shared_flag='-shared'
17256 if test "$aix_use_runtimelinking" = yes; then
17257 shared_flag="$shared_flag "'${wl}-G'
17258 fi
17259 else
17260 # not using gcc
17261 if test "$host_cpu" = ia64; then
17262 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17263 # chokes on -Wl,-G. The following line is correct:
17264 shared_flag='-G'
17265 else
17266 if test "$aix_use_runtimelinking" = yes; then
17267 shared_flag='${wl}-G'
17268 else
17269 shared_flag='${wl}-bM:SRE'
17270 fi
17271 fi
17272 fi
17273
17274 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17275 # It seems that -bexpall does not export symbols beginning with
17276 # underscore (_), so it is better to generate a list of symbols to
17277 # export.
17278 always_export_symbols_CXX=yes
17279 if test "$aix_use_runtimelinking" = yes; then
17280 # Warning - without using the other runtime loading flags (-brtl),
17281 # -berok will link without error, but may produce a broken library.
17282 allow_undefined_flag_CXX='-berok'
17283 # Determine the default libpath from the value encoded in an empty
17284 # executable.
cristyda16f162011-02-19 23:52:17 +000017285 if test "${lt_cv_aix_libpath+set}" = set; then
17286 aix_libpath=$lt_cv_aix_libpath
17287else
17288 if ${lt_cv_aix_libpath__CXX+:} false; then :
17289 $as_echo_n "(cached) " >&6
17290else
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017292/* end confdefs.h. */
17293
17294int
17295main ()
17296{
17297
17298 ;
17299 return 0;
17300}
17301_ACEOF
17302if ac_fn_cxx_try_link "$LINENO"; then :
17303
cristyda16f162011-02-19 23:52:17 +000017304 lt_aix_libpath_sed='
17305 /Import File Strings/,/^$/ {
17306 /^0/ {
17307 s/^0 *\([^ ]*\) *$/\1/
17308 p
17309 }
17310 }'
17311 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17312 # Check for a 64-bit object if we didn't find anything.
17313 if test -z "$lt_cv_aix_libpath__CXX"; then
17314 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17315 fi
cristy73bd4a52010-10-05 11:24:23 +000017316fi
17317rm -f core conftest.err conftest.$ac_objext \
17318 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017319 if test -z "$lt_cv_aix_libpath__CXX"; then
17320 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17321 fi
17322
17323fi
17324
17325 aix_libpath=$lt_cv_aix_libpath__CXX
17326fi
cristy73bd4a52010-10-05 11:24:23 +000017327
17328 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17329
cristy0c60a692010-11-04 01:09:47 +000017330 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 +000017331 else
17332 if test "$host_cpu" = ia64; then
17333 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17334 allow_undefined_flag_CXX="-z nodefs"
17335 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"
17336 else
17337 # Determine the default libpath from the value encoded in an
17338 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017339 if test "${lt_cv_aix_libpath+set}" = set; then
17340 aix_libpath=$lt_cv_aix_libpath
17341else
17342 if ${lt_cv_aix_libpath__CXX+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017346/* end confdefs.h. */
17347
17348int
17349main ()
17350{
17351
17352 ;
17353 return 0;
17354}
17355_ACEOF
17356if ac_fn_cxx_try_link "$LINENO"; then :
17357
cristyda16f162011-02-19 23:52:17 +000017358 lt_aix_libpath_sed='
17359 /Import File Strings/,/^$/ {
17360 /^0/ {
17361 s/^0 *\([^ ]*\) *$/\1/
17362 p
17363 }
17364 }'
17365 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17366 # Check for a 64-bit object if we didn't find anything.
17367 if test -z "$lt_cv_aix_libpath__CXX"; then
17368 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17369 fi
cristy73bd4a52010-10-05 11:24:23 +000017370fi
17371rm -f core conftest.err conftest.$ac_objext \
17372 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017373 if test -z "$lt_cv_aix_libpath__CXX"; then
17374 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17375 fi
17376
17377fi
17378
17379 aix_libpath=$lt_cv_aix_libpath__CXX
17380fi
cristy73bd4a52010-10-05 11:24:23 +000017381
17382 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17383 # Warning - without using the other run time loading flags,
17384 # -berok will link without error, but may produce a broken library.
17385 no_undefined_flag_CXX=' ${wl}-bernotok'
17386 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017387 if test "$with_gnu_ld" = yes; then
17388 # We only use this code for GNU lds that support --whole-archive.
17389 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17390 else
17391 # Exported symbols can be pulled into shared objects from archives
17392 whole_archive_flag_spec_CXX='$convenience'
17393 fi
cristy73bd4a52010-10-05 11:24:23 +000017394 archive_cmds_need_lc_CXX=yes
17395 # This is similar to how AIX traditionally builds its shared
17396 # libraries.
17397 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'
17398 fi
17399 fi
17400 ;;
17401
17402 beos*)
17403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17404 allow_undefined_flag_CXX=unsupported
17405 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17406 # support --undefined. This deserves some investigation. FIXME
17407 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17408 else
17409 ld_shlibs_CXX=no
17410 fi
17411 ;;
17412
17413 chorus*)
17414 case $cc_basename in
17415 *)
17416 # FIXME: insert proper C++ library support
17417 ld_shlibs_CXX=no
17418 ;;
17419 esac
17420 ;;
17421
17422 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017423 case $GXX,$cc_basename in
17424 ,cl* | no,cl*)
17425 # Native MSVC
17426 # hardcode_libdir_flag_spec is actually meaningless, as there is
17427 # no search path for DLLs.
17428 hardcode_libdir_flag_spec_CXX=' '
17429 allow_undefined_flag_CXX=unsupported
17430 always_export_symbols_CXX=yes
17431 file_list_spec_CXX='@'
17432 # Tell ltmain to make .lib files, not .a files.
17433 libext=lib
17434 # Tell ltmain to make .dll files, not .so files.
17435 shrext_cmds=".dll"
17436 # FIXME: Setting linknames here is a bad hack.
17437 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17438 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17439 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17440 else
17441 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17442 fi~
17443 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17444 linknames='
17445 # The linker will not automatically build a static lib if we build a DLL.
17446 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17447 enable_shared_with_static_runtimes_CXX=yes
17448 # Don't use ranlib
17449 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17450 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17451 lt_tool_outputfile="@TOOL_OUTPUT@"~
17452 case $lt_outputfile in
17453 *.exe|*.EXE) ;;
17454 *)
17455 lt_outputfile="$lt_outputfile.exe"
17456 lt_tool_outputfile="$lt_tool_outputfile.exe"
17457 ;;
17458 esac~
17459 func_to_tool_file "$lt_outputfile"~
17460 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17461 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17462 $RM "$lt_outputfile.manifest";
17463 fi'
17464 ;;
17465 *)
17466 # g++
17467 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17468 # as there is no search path for DLLs.
17469 hardcode_libdir_flag_spec_CXX='-L$libdir'
17470 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17471 allow_undefined_flag_CXX=unsupported
17472 always_export_symbols_CXX=no
17473 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017474
cristyda16f162011-02-19 23:52:17 +000017475 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17476 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'
17477 # If the export-symbols file already is a .def file (1st line
17478 # is EXPORTS), use it as is; otherwise, prepend...
17479 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17480 cp $export_symbols $output_objdir/$soname.def;
17481 else
17482 echo EXPORTS > $output_objdir/$soname.def;
17483 cat $export_symbols >> $output_objdir/$soname.def;
17484 fi~
17485 $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'
17486 else
17487 ld_shlibs_CXX=no
17488 fi
17489 ;;
17490 esac
17491 ;;
cristy73bd4a52010-10-05 11:24:23 +000017492 darwin* | rhapsody*)
17493
17494
17495 archive_cmds_need_lc_CXX=no
17496 hardcode_direct_CXX=no
17497 hardcode_automatic_CXX=yes
17498 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017499 if test "$lt_cv_ld_force_load" = "yes"; then
17500 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\"`'
17501 else
17502 whole_archive_flag_spec_CXX=''
17503 fi
cristy73bd4a52010-10-05 11:24:23 +000017504 link_all_deplibs_CXX=yes
17505 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17506 case $cc_basename in
17507 ifort*) _lt_dar_can_shared=yes ;;
17508 *) _lt_dar_can_shared=$GCC ;;
17509 esac
17510 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017511 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017512 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}"
17513 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17514 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}"
17515 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}"
17516 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17517 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}"
17518 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}"
17519 fi
17520
17521 else
17522 ld_shlibs_CXX=no
17523 fi
17524
17525 ;;
17526
17527 dgux*)
17528 case $cc_basename in
17529 ec++*)
17530 # FIXME: insert proper C++ library support
17531 ld_shlibs_CXX=no
17532 ;;
17533 ghcx*)
17534 # Green Hills C++ Compiler
17535 # FIXME: insert proper C++ library support
17536 ld_shlibs_CXX=no
17537 ;;
17538 *)
17539 # FIXME: insert proper C++ library support
17540 ld_shlibs_CXX=no
17541 ;;
17542 esac
17543 ;;
17544
17545 freebsd[12]*)
17546 # C++ shared libraries reported to be fairly broken before
17547 # switch to ELF
17548 ld_shlibs_CXX=no
17549 ;;
17550
17551 freebsd-elf*)
17552 archive_cmds_need_lc_CXX=no
17553 ;;
17554
17555 freebsd* | dragonfly*)
17556 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17557 # conventions
17558 ld_shlibs_CXX=yes
17559 ;;
17560
17561 gnu*)
17562 ;;
17563
cristy0c60a692010-11-04 01:09:47 +000017564 haiku*)
17565 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17566 link_all_deplibs_CXX=yes
17567 ;;
17568
cristy73bd4a52010-10-05 11:24:23 +000017569 hpux9*)
17570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17571 hardcode_libdir_separator_CXX=:
17572 export_dynamic_flag_spec_CXX='${wl}-E'
17573 hardcode_direct_CXX=yes
17574 hardcode_minus_L_CXX=yes # Not in the search PATH,
17575 # but as the default
17576 # location of the library.
17577
17578 case $cc_basename in
17579 CC*)
17580 # FIXME: insert proper C++ library support
17581 ld_shlibs_CXX=no
17582 ;;
17583 aCC*)
17584 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'
17585 # Commands to make compiler produce verbose output that lists
17586 # what "hidden" libraries, object files and flags are used when
17587 # linking a shared library.
17588 #
17589 # There doesn't appear to be a way to prevent this compiler from
17590 # explicitly linking system object files so we need to strip them
17591 # from the output so that they don't get included in the library
17592 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017593 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 +000017594 ;;
17595 *)
17596 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017597 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 +000017598 else
17599 # FIXME: insert proper C++ library support
17600 ld_shlibs_CXX=no
17601 fi
17602 ;;
17603 esac
17604 ;;
17605
17606 hpux10*|hpux11*)
17607 if test $with_gnu_ld = no; then
17608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17609 hardcode_libdir_separator_CXX=:
17610
17611 case $host_cpu in
17612 hppa*64*|ia64*)
17613 ;;
17614 *)
17615 export_dynamic_flag_spec_CXX='${wl}-E'
17616 ;;
17617 esac
17618 fi
17619 case $host_cpu in
17620 hppa*64*|ia64*)
17621 hardcode_direct_CXX=no
17622 hardcode_shlibpath_var_CXX=no
17623 ;;
17624 *)
17625 hardcode_direct_CXX=yes
17626 hardcode_direct_absolute_CXX=yes
17627 hardcode_minus_L_CXX=yes # Not in the search PATH,
17628 # but as the default
17629 # location of the library.
17630 ;;
17631 esac
17632
17633 case $cc_basename in
17634 CC*)
17635 # FIXME: insert proper C++ library support
17636 ld_shlibs_CXX=no
17637 ;;
17638 aCC*)
17639 case $host_cpu in
17640 hppa*64*)
17641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17642 ;;
17643 ia64*)
17644 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17645 ;;
17646 *)
17647 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17648 ;;
17649 esac
17650 # Commands to make compiler produce verbose output that lists
17651 # what "hidden" libraries, object files and flags are used when
17652 # linking a shared library.
17653 #
17654 # There doesn't appear to be a way to prevent this compiler from
17655 # explicitly linking system object files so we need to strip them
17656 # from the output so that they don't get included in the library
17657 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017658 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 +000017659 ;;
17660 *)
17661 if test "$GXX" = yes; then
17662 if test $with_gnu_ld = no; then
17663 case $host_cpu in
17664 hppa*64*)
17665 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17666 ;;
17667 ia64*)
cristyda16f162011-02-19 23:52:17 +000017668 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 +000017669 ;;
17670 *)
cristyda16f162011-02-19 23:52:17 +000017671 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 +000017672 ;;
17673 esac
17674 fi
17675 else
17676 # FIXME: insert proper C++ library support
17677 ld_shlibs_CXX=no
17678 fi
17679 ;;
17680 esac
17681 ;;
17682
17683 interix[3-9]*)
17684 hardcode_direct_CXX=no
17685 hardcode_shlibpath_var_CXX=no
17686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17687 export_dynamic_flag_spec_CXX='${wl}-E'
17688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17689 # Instead, shared libraries are loaded at an image base (0x10000000 by
17690 # default) and relocated if they conflict, which is a slow very memory
17691 # consuming and fragmenting process. To avoid this, we pick a random,
17692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17694 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'
17695 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'
17696 ;;
17697 irix5* | irix6*)
17698 case $cc_basename in
17699 CC*)
17700 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017701 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 +000017702
17703 # Archives containing C++ object files must be created using
17704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17705 # necessary to make sure instantiated templates are included
17706 # in the archive.
17707 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17708 ;;
17709 *)
17710 if test "$GXX" = yes; then
17711 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017712 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 +000017713 else
cristyda16f162011-02-19 23:52:17 +000017714 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 +000017715 fi
17716 fi
17717 link_all_deplibs_CXX=yes
17718 ;;
17719 esac
17720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17721 hardcode_libdir_separator_CXX=:
17722 inherit_rpath_CXX=yes
17723 ;;
17724
cristy0c60a692010-11-04 01:09:47 +000017725 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017726 case $cc_basename in
17727 KCC*)
17728 # Kuck and Associates, Inc. (KAI) C++ Compiler
17729
17730 # KCC will only create a shared library if the output file
17731 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17732 # to its proper name (with version) after linking.
17733 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'
17734 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'
17735 # Commands to make compiler produce verbose output that lists
17736 # what "hidden" libraries, object files and flags are used when
17737 # linking a shared library.
17738 #
17739 # There doesn't appear to be a way to prevent this compiler from
17740 # explicitly linking system object files so we need to strip them
17741 # from the output so that they don't get included in the library
17742 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017743 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 +000017744
17745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17747
17748 # Archives containing C++ object files must be created using
17749 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17750 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17751 ;;
17752 icpc* | ecpc* )
17753 # Intel C++
17754 with_gnu_ld=yes
17755 # version 8.0 and above of icpc choke on multiply defined symbols
17756 # if we add $predep_objects and $postdep_objects, however 7.1 and
17757 # earlier do not add the objects themselves.
17758 case `$CC -V 2>&1` in
17759 *"Version 7."*)
17760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761 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'
17762 ;;
17763 *) # Version 8.0 or newer
17764 tmp_idyn=
17765 case $host_cpu in
17766 ia64*) tmp_idyn=' -i_dynamic';;
17767 esac
17768 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17769 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'
17770 ;;
17771 esac
17772 archive_cmds_need_lc_CXX=no
17773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17775 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17776 ;;
17777 pgCC* | pgcpp*)
17778 # Portland Group C++ compiler
17779 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017780 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017781 prelink_cmds_CXX='tpldir=Template.dir~
17782 rm -rf $tpldir~
17783 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017784 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017785 old_archive_cmds_CXX='tpldir=Template.dir~
17786 rm -rf $tpldir~
17787 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017788 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017789 $RANLIB $oldlib'
17790 archive_cmds_CXX='tpldir=Template.dir~
17791 rm -rf $tpldir~
17792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017793 $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 +000017794 archive_expsym_cmds_CXX='tpldir=Template.dir~
17795 rm -rf $tpldir~
17796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017797 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017798 ;;
cristy0c60a692010-11-04 01:09:47 +000017799 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17801 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'
17802 ;;
17803 esac
17804
17805 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017807 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 +000017808 ;;
17809 cxx*)
17810 # Compaq C++
17811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17812 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'
17813
17814 runpath_var=LD_RUN_PATH
17815 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17816 hardcode_libdir_separator_CXX=:
17817
17818 # Commands to make compiler produce verbose output that lists
17819 # what "hidden" libraries, object files and flags are used when
17820 # linking a shared library.
17821 #
17822 # There doesn't appear to be a way to prevent this compiler from
17823 # explicitly linking system object files so we need to strip them
17824 # from the output so that they don't get included in the library
17825 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017826 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 +000017827 ;;
cristy0c60a692010-11-04 01:09:47 +000017828 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017829 # IBM XL 8.0 on PPC, with GNU ld
17830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17832 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17833 if test "x$supports_anon_versioning" = xyes; then
17834 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17836 echo "local: *; };" >> $output_objdir/$libname.ver~
17837 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17838 fi
17839 ;;
17840 *)
17841 case `$CC -V 2>&1 | sed 5q` in
17842 *Sun\ C*)
17843 # Sun C++ 5.9
17844 no_undefined_flag_CXX=' -zdefs'
17845 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17846 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'
17847 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017848 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 +000017849 compiler_needs_object_CXX=yes
17850
17851 # Not sure whether something based on
17852 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17853 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017854 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017855
17856 # Archives containing C++ object files must be created using
17857 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17858 # necessary to make sure instantiated templates are included
17859 # in the archive.
17860 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17861 ;;
17862 esac
17863 ;;
17864 esac
17865 ;;
17866
17867 lynxos*)
17868 # FIXME: insert proper C++ library support
17869 ld_shlibs_CXX=no
17870 ;;
17871
17872 m88k*)
17873 # FIXME: insert proper C++ library support
17874 ld_shlibs_CXX=no
17875 ;;
17876
17877 mvs*)
17878 case $cc_basename in
17879 cxx*)
17880 # FIXME: insert proper C++ library support
17881 ld_shlibs_CXX=no
17882 ;;
17883 *)
17884 # FIXME: insert proper C++ library support
17885 ld_shlibs_CXX=no
17886 ;;
17887 esac
17888 ;;
17889
17890 netbsd*)
17891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17892 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17893 wlarc=
17894 hardcode_libdir_flag_spec_CXX='-R$libdir'
17895 hardcode_direct_CXX=yes
17896 hardcode_shlibpath_var_CXX=no
17897 fi
17898 # Workaround some broken pre-1.5 toolchains
17899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17900 ;;
17901
17902 *nto* | *qnx*)
17903 ld_shlibs_CXX=yes
17904 ;;
17905
17906 openbsd2*)
17907 # C++ shared libraries are fairly broken
17908 ld_shlibs_CXX=no
17909 ;;
17910
17911 openbsd*)
17912 if test -f /usr/libexec/ld.so; then
17913 hardcode_direct_CXX=yes
17914 hardcode_shlibpath_var_CXX=no
17915 hardcode_direct_absolute_CXX=yes
17916 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17919 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17920 export_dynamic_flag_spec_CXX='${wl}-E'
17921 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17922 fi
cristy0c60a692010-11-04 01:09:47 +000017923 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017924 else
17925 ld_shlibs_CXX=no
17926 fi
17927 ;;
17928
17929 osf3* | osf4* | osf5*)
17930 case $cc_basename in
17931 KCC*)
17932 # Kuck and Associates, Inc. (KAI) C++ Compiler
17933
17934 # KCC will only create a shared library if the output file
17935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17936 # to its proper name (with version) after linking.
17937 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'
17938
17939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17940 hardcode_libdir_separator_CXX=:
17941
17942 # Archives containing C++ object files must be created using
17943 # the KAI C++ compiler.
17944 case $host in
17945 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17946 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17947 esac
17948 ;;
17949 RCC*)
17950 # Rational C++ 2.4.1
17951 # FIXME: insert proper C++ library support
17952 ld_shlibs_CXX=no
17953 ;;
17954 cxx*)
17955 case $host in
17956 osf3*)
17957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017958 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 +000017959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17960 ;;
17961 *)
17962 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017963 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 +000017964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17965 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017966 $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 +000017967 $RM $lib.exp'
17968 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17969 ;;
17970 esac
17971
17972 hardcode_libdir_separator_CXX=:
17973
17974 # Commands to make compiler produce verbose output that lists
17975 # what "hidden" libraries, object files and flags are used when
17976 # linking a shared library.
17977 #
17978 # There doesn't appear to be a way to prevent this compiler from
17979 # explicitly linking system object files so we need to strip them
17980 # from the output so that they don't get included in the library
17981 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017982 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 +000017983 ;;
17984 *)
17985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17986 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17987 case $host in
17988 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017989 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 +000017990 ;;
17991 *)
cristyda16f162011-02-19 23:52:17 +000017992 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 +000017993 ;;
17994 esac
17995
17996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17997 hardcode_libdir_separator_CXX=:
17998
17999 # Commands to make compiler produce verbose output that lists
18000 # what "hidden" libraries, object files and flags are used when
18001 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018003
18004 else
18005 # FIXME: insert proper C++ library support
18006 ld_shlibs_CXX=no
18007 fi
18008 ;;
18009 esac
18010 ;;
18011
18012 psos*)
18013 # FIXME: insert proper C++ library support
18014 ld_shlibs_CXX=no
18015 ;;
18016
18017 sunos4*)
18018 case $cc_basename in
18019 CC*)
18020 # Sun C++ 4.x
18021 # FIXME: insert proper C++ library support
18022 ld_shlibs_CXX=no
18023 ;;
18024 lcc*)
18025 # Lucid
18026 # FIXME: insert proper C++ library support
18027 ld_shlibs_CXX=no
18028 ;;
18029 *)
18030 # FIXME: insert proper C++ library support
18031 ld_shlibs_CXX=no
18032 ;;
18033 esac
18034 ;;
18035
18036 solaris*)
18037 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018038 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018039 # Sun C++ 4.2, 5.x and Centerline C++
18040 archive_cmds_need_lc_CXX=yes
18041 no_undefined_flag_CXX=' -zdefs'
18042 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18044 $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'
18045
18046 hardcode_libdir_flag_spec_CXX='-R$libdir'
18047 hardcode_shlibpath_var_CXX=no
18048 case $host_os in
18049 solaris2.[0-5] | solaris2.[0-5].*) ;;
18050 *)
18051 # The compiler driver will combine and reorder linker options,
18052 # but understands `-z linker_flag'.
18053 # Supported since Solaris 2.6 (maybe 2.5.1?)
18054 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18055 ;;
18056 esac
18057 link_all_deplibs_CXX=yes
18058
cristy0c60a692010-11-04 01:09:47 +000018059 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018060
18061 # Archives containing C++ object files must be created using
18062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18063 # necessary to make sure instantiated templates are included
18064 # in the archive.
18065 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18066 ;;
18067 gcx*)
18068 # Green Hills C++ Compiler
18069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18070
18071 # The C++ compiler must be used to create the archive.
18072 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18073 ;;
18074 *)
18075 # GNU C++ compiler with Solaris linker
18076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18077 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18078 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018079 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 +000018080 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 +000018081 $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 +000018082
18083 # Commands to make compiler produce verbose output that lists
18084 # what "hidden" libraries, object files and flags are used when
18085 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018087 else
18088 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18089 # platform.
18090 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18091 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18092 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18093
18094 # Commands to make compiler produce verbose output that lists
18095 # what "hidden" libraries, object files and flags are used when
18096 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018097 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018098 fi
18099
18100 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18101 case $host_os in
18102 solaris2.[0-5] | solaris2.[0-5].*) ;;
18103 *)
18104 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18105 ;;
18106 esac
18107 fi
18108 ;;
18109 esac
18110 ;;
18111
18112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18113 no_undefined_flag_CXX='${wl}-z,text'
18114 archive_cmds_need_lc_CXX=no
18115 hardcode_shlibpath_var_CXX=no
18116 runpath_var='LD_RUN_PATH'
18117
18118 case $cc_basename in
18119 CC*)
18120 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122 ;;
18123 *)
18124 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18125 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 ;;
18127 esac
18128 ;;
18129
18130 sysv5* | sco3.2v5* | sco5v6*)
18131 # Note: We can NOT use -z defs as we might desire, because we do not
18132 # link with -lc, and that would cause any symbols used from libc to
18133 # always be unresolved, which means just about no library would
18134 # ever link correctly. If we're not using GNU ld we use -z text
18135 # though, which does catch some bad symbols but isn't as heavy-handed
18136 # as -z defs.
18137 no_undefined_flag_CXX='${wl}-z,text'
18138 allow_undefined_flag_CXX='${wl}-z,nodefs'
18139 archive_cmds_need_lc_CXX=no
18140 hardcode_shlibpath_var_CXX=no
18141 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18142 hardcode_libdir_separator_CXX=':'
18143 link_all_deplibs_CXX=yes
18144 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18145 runpath_var='LD_RUN_PATH'
18146
18147 case $cc_basename in
18148 CC*)
18149 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18150 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 +000018151 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18152 '"$old_archive_cmds_CXX"
18153 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18154 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018155 ;;
18156 *)
18157 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18158 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18159 ;;
18160 esac
18161 ;;
18162
18163 tandem*)
18164 case $cc_basename in
18165 NCC*)
18166 # NonStop-UX NCC 3.20
18167 # FIXME: insert proper C++ library support
18168 ld_shlibs_CXX=no
18169 ;;
18170 *)
18171 # FIXME: insert proper C++ library support
18172 ld_shlibs_CXX=no
18173 ;;
18174 esac
18175 ;;
18176
18177 vxworks*)
18178 # FIXME: insert proper C++ library support
18179 ld_shlibs_CXX=no
18180 ;;
18181
18182 *)
18183 # FIXME: insert proper C++ library support
18184 ld_shlibs_CXX=no
18185 ;;
18186 esac
18187
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18189$as_echo "$ld_shlibs_CXX" >&6; }
18190 test "$ld_shlibs_CXX" = no && can_build_shared=no
18191
18192 GCC_CXX="$GXX"
18193 LD_CXX="$LD"
18194
18195 ## CAVEAT EMPTOR:
18196 ## There is no encapsulation within the following macros, do not change
18197 ## the running order or otherwise move them around unless you know exactly
18198 ## what you are doing...
18199 # Dependencies to place before and after the object being linked:
18200predep_objects_CXX=
18201postdep_objects_CXX=
18202predeps_CXX=
18203postdeps_CXX=
18204compiler_lib_search_path_CXX=
18205
18206cat > conftest.$ac_ext <<_LT_EOF
18207class Foo
18208{
18209public:
18210 Foo (void) { a = 0; }
18211private:
18212 int a;
18213};
18214_LT_EOF
18215
cristyda16f162011-02-19 23:52:17 +000018216
18217_lt_libdeps_save_CFLAGS=$CFLAGS
18218case "$CC $CFLAGS " in #(
18219*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18220*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18221esac
18222
cristy73bd4a52010-10-05 11:24:23 +000018223if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18224 (eval $ac_compile) 2>&5
18225 ac_status=$?
18226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18227 test $ac_status = 0; }; then
18228 # Parse the compiler output and extract the necessary
18229 # objects, libraries and library flags.
18230
18231 # Sentinel used to keep track of whether or not we are before
18232 # the conftest object file.
18233 pre_test_object_deps_done=no
18234
18235 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018236 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018237
18238 -L* | -R* | -l*)
18239 # Some compilers place space between "-{L,R}" and the path.
18240 # Remove the space.
18241 if test $p = "-L" ||
18242 test $p = "-R"; then
18243 prev=$p
18244 continue
cristy73bd4a52010-10-05 11:24:23 +000018245 fi
18246
cristyda16f162011-02-19 23:52:17 +000018247 # Expand the sysroot to ease extracting the directories later.
18248 if test -z "$prev"; then
18249 case $p in
18250 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18251 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18252 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18253 esac
18254 fi
18255 case $p in
18256 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18257 esac
cristy73bd4a52010-10-05 11:24:23 +000018258 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018259 case ${prev} in
18260 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018261 # Internal compiler library paths should come after those
18262 # provided the user. The postdeps already come after the
18263 # user supplied libs so there is no need to process them.
18264 if test -z "$compiler_lib_search_path_CXX"; then
18265 compiler_lib_search_path_CXX="${prev}${p}"
18266 else
18267 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18268 fi
18269 ;;
18270 # The "-l" case would never come before the object being
18271 # linked, so don't bother handling this case.
18272 esac
18273 else
18274 if test -z "$postdeps_CXX"; then
18275 postdeps_CXX="${prev}${p}"
18276 else
18277 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18278 fi
18279 fi
cristyda16f162011-02-19 23:52:17 +000018280 prev=
cristy73bd4a52010-10-05 11:24:23 +000018281 ;;
18282
cristyda16f162011-02-19 23:52:17 +000018283 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018284 *.$objext)
18285 # This assumes that the test object file only shows up
18286 # once in the compiler output.
18287 if test "$p" = "conftest.$objext"; then
18288 pre_test_object_deps_done=yes
18289 continue
18290 fi
18291
18292 if test "$pre_test_object_deps_done" = no; then
18293 if test -z "$predep_objects_CXX"; then
18294 predep_objects_CXX="$p"
18295 else
18296 predep_objects_CXX="$predep_objects_CXX $p"
18297 fi
18298 else
18299 if test -z "$postdep_objects_CXX"; then
18300 postdep_objects_CXX="$p"
18301 else
18302 postdep_objects_CXX="$postdep_objects_CXX $p"
18303 fi
18304 fi
18305 ;;
18306
18307 *) ;; # Ignore the rest.
18308
18309 esac
18310 done
18311
18312 # Clean up.
18313 rm -f a.out a.exe
18314else
18315 echo "libtool.m4: error: problem compiling CXX test program"
18316fi
18317
18318$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018319CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018320
18321# PORTME: override above test on systems where it is broken
18322case $host_os in
18323interix[3-9]*)
18324 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18325 # hack all around it, let's just trust "g++" to DTRT.
18326 predep_objects_CXX=
18327 postdep_objects_CXX=
18328 postdeps_CXX=
18329 ;;
18330
18331linux*)
18332 case `$CC -V 2>&1 | sed 5q` in
18333 *Sun\ C*)
18334 # Sun C++ 5.9
18335
18336 # The more standards-conforming stlport4 library is
18337 # incompatible with the Cstd library. Avoid specifying
18338 # it if it's in CXXFLAGS. Ignore libCrun as
18339 # -library=stlport4 depends on it.
18340 case " $CXX $CXXFLAGS " in
18341 *" -library=stlport4 "*)
18342 solaris_use_stlport4=yes
18343 ;;
18344 esac
18345
18346 if test "$solaris_use_stlport4" != yes; then
18347 postdeps_CXX='-library=Cstd -library=Crun'
18348 fi
18349 ;;
18350 esac
18351 ;;
18352
18353solaris*)
18354 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018355 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018356 # The more standards-conforming stlport4 library is
18357 # incompatible with the Cstd library. Avoid specifying
18358 # it if it's in CXXFLAGS. Ignore libCrun as
18359 # -library=stlport4 depends on it.
18360 case " $CXX $CXXFLAGS " in
18361 *" -library=stlport4 "*)
18362 solaris_use_stlport4=yes
18363 ;;
18364 esac
18365
18366 # Adding this requires a known-good setup of shared libraries for
18367 # Sun compiler versions before 5.6, else PIC objects from an old
18368 # archive will be linked into the output, leading to subtle bugs.
18369 if test "$solaris_use_stlport4" != yes; then
18370 postdeps_CXX='-library=Cstd -library=Crun'
18371 fi
18372 ;;
18373 esac
18374 ;;
18375esac
18376
18377
18378case " $postdeps_CXX " in
18379*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18380esac
18381 compiler_lib_search_dirs_CXX=
18382if test -n "${compiler_lib_search_path_CXX}"; then
18383 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18384fi
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416 lt_prog_compiler_wl_CXX=
18417lt_prog_compiler_pic_CXX=
18418lt_prog_compiler_static_CXX=
18419
cristy73bd4a52010-10-05 11:24:23 +000018420
18421 # C++ specific cases for pic, static, wl, etc.
18422 if test "$GXX" = yes; then
18423 lt_prog_compiler_wl_CXX='-Wl,'
18424 lt_prog_compiler_static_CXX='-static'
18425
18426 case $host_os in
18427 aix*)
18428 # All AIX code is PIC.
18429 if test "$host_cpu" = ia64; then
18430 # AIX 5 now supports IA64 processor
18431 lt_prog_compiler_static_CXX='-Bstatic'
18432 fi
18433 ;;
18434
18435 amigaos*)
18436 case $host_cpu in
18437 powerpc)
18438 # see comment about AmigaOS4 .so support
18439 lt_prog_compiler_pic_CXX='-fPIC'
18440 ;;
18441 m68k)
18442 # FIXME: we need at least 68020 code to build shared libraries, but
18443 # adding the `-m68020' flag to GCC prevents building anything better,
18444 # like `-m68040'.
18445 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18446 ;;
18447 esac
18448 ;;
18449
18450 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18451 # PIC is the default for these OSes.
18452 ;;
18453 mingw* | cygwin* | os2* | pw32* | cegcc*)
18454 # This hack is so that the source file can tell whether it is being
18455 # built for inclusion in a dll (and should export symbols for example).
18456 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18457 # (--disable-auto-import) libraries
18458 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18459 ;;
18460 darwin* | rhapsody*)
18461 # PIC is the default on this platform
18462 # Common symbols not allowed in MH_DYLIB files
18463 lt_prog_compiler_pic_CXX='-fno-common'
18464 ;;
18465 *djgpp*)
18466 # DJGPP does not support shared libraries at all
18467 lt_prog_compiler_pic_CXX=
18468 ;;
cristy0c60a692010-11-04 01:09:47 +000018469 haiku*)
18470 # PIC is the default for Haiku.
18471 # The "-static" flag exists, but is broken.
18472 lt_prog_compiler_static_CXX=
18473 ;;
cristy73bd4a52010-10-05 11:24:23 +000018474 interix[3-9]*)
18475 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18476 # Instead, we relocate shared libraries at runtime.
18477 ;;
18478 sysv4*MP*)
18479 if test -d /usr/nec; then
18480 lt_prog_compiler_pic_CXX=-Kconform_pic
18481 fi
18482 ;;
18483 hpux*)
18484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18486 # sets the default TLS model and affects inlining.
18487 case $host_cpu in
18488 hppa*64*)
18489 ;;
18490 *)
18491 lt_prog_compiler_pic_CXX='-fPIC'
18492 ;;
18493 esac
18494 ;;
18495 *qnx* | *nto*)
18496 # QNX uses GNU C++, but need to define -shared option too, otherwise
18497 # it will coredump.
18498 lt_prog_compiler_pic_CXX='-fPIC -shared'
18499 ;;
18500 *)
18501 lt_prog_compiler_pic_CXX='-fPIC'
18502 ;;
18503 esac
18504 else
18505 case $host_os in
18506 aix[4-9]*)
18507 # All AIX code is PIC.
18508 if test "$host_cpu" = ia64; then
18509 # AIX 5 now supports IA64 processor
18510 lt_prog_compiler_static_CXX='-Bstatic'
18511 else
18512 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18513 fi
18514 ;;
18515 chorus*)
18516 case $cc_basename in
18517 cxch68*)
18518 # Green Hills C++ Compiler
18519 # _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"
18520 ;;
18521 esac
18522 ;;
cristyda16f162011-02-19 23:52:17 +000018523 mingw* | cygwin* | os2* | pw32* | cegcc*)
18524 # This hack is so that the source file can tell whether it is being
18525 # built for inclusion in a dll (and should export symbols for example).
18526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18527 ;;
cristy73bd4a52010-10-05 11:24:23 +000018528 dgux*)
18529 case $cc_basename in
18530 ec++*)
18531 lt_prog_compiler_pic_CXX='-KPIC'
18532 ;;
18533 ghcx*)
18534 # Green Hills C++ Compiler
18535 lt_prog_compiler_pic_CXX='-pic'
18536 ;;
18537 *)
18538 ;;
18539 esac
18540 ;;
18541 freebsd* | dragonfly*)
18542 # FreeBSD uses GNU C++
18543 ;;
18544 hpux9* | hpux10* | hpux11*)
18545 case $cc_basename in
18546 CC*)
18547 lt_prog_compiler_wl_CXX='-Wl,'
18548 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18549 if test "$host_cpu" != ia64; then
18550 lt_prog_compiler_pic_CXX='+Z'
18551 fi
18552 ;;
18553 aCC*)
18554 lt_prog_compiler_wl_CXX='-Wl,'
18555 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18556 case $host_cpu in
18557 hppa*64*|ia64*)
18558 # +Z the default
18559 ;;
18560 *)
18561 lt_prog_compiler_pic_CXX='+Z'
18562 ;;
18563 esac
18564 ;;
18565 *)
18566 ;;
18567 esac
18568 ;;
18569 interix*)
18570 # This is c89, which is MS Visual C++ (no shared libs)
18571 # Anyone wants to do a port?
18572 ;;
18573 irix5* | irix6* | nonstopux*)
18574 case $cc_basename in
18575 CC*)
18576 lt_prog_compiler_wl_CXX='-Wl,'
18577 lt_prog_compiler_static_CXX='-non_shared'
18578 # CC pic flag -KPIC is the default.
18579 ;;
18580 *)
18581 ;;
18582 esac
18583 ;;
cristy0c60a692010-11-04 01:09:47 +000018584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018585 case $cc_basename in
18586 KCC*)
18587 # KAI C++ Compiler
18588 lt_prog_compiler_wl_CXX='--backend -Wl,'
18589 lt_prog_compiler_pic_CXX='-fPIC'
18590 ;;
18591 ecpc* )
18592 # old Intel C++ for x86_64 which still supported -KPIC.
18593 lt_prog_compiler_wl_CXX='-Wl,'
18594 lt_prog_compiler_pic_CXX='-KPIC'
18595 lt_prog_compiler_static_CXX='-static'
18596 ;;
18597 icpc* )
18598 # Intel C++, used to be incompatible with GCC.
18599 # ICC 10 doesn't accept -KPIC any more.
18600 lt_prog_compiler_wl_CXX='-Wl,'
18601 lt_prog_compiler_pic_CXX='-fPIC'
18602 lt_prog_compiler_static_CXX='-static'
18603 ;;
18604 pgCC* | pgcpp*)
18605 # Portland Group C++ compiler
18606 lt_prog_compiler_wl_CXX='-Wl,'
18607 lt_prog_compiler_pic_CXX='-fpic'
18608 lt_prog_compiler_static_CXX='-Bstatic'
18609 ;;
18610 cxx*)
18611 # Compaq C++
18612 # Make sure the PIC flag is empty. It appears that all Alpha
18613 # Linux and Compaq Tru64 Unix objects are PIC.
18614 lt_prog_compiler_pic_CXX=
18615 lt_prog_compiler_static_CXX='-non_shared'
18616 ;;
cristy0c60a692010-11-04 01:09:47 +000018617 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18618 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018619 lt_prog_compiler_wl_CXX='-Wl,'
18620 lt_prog_compiler_pic_CXX='-qpic'
18621 lt_prog_compiler_static_CXX='-qstaticlink'
18622 ;;
18623 *)
18624 case `$CC -V 2>&1 | sed 5q` in
18625 *Sun\ C*)
18626 # Sun C++ 5.9
18627 lt_prog_compiler_pic_CXX='-KPIC'
18628 lt_prog_compiler_static_CXX='-Bstatic'
18629 lt_prog_compiler_wl_CXX='-Qoption ld '
18630 ;;
18631 esac
18632 ;;
18633 esac
18634 ;;
18635 lynxos*)
18636 ;;
18637 m88k*)
18638 ;;
18639 mvs*)
18640 case $cc_basename in
18641 cxx*)
18642 lt_prog_compiler_pic_CXX='-W c,exportall'
18643 ;;
18644 *)
18645 ;;
18646 esac
18647 ;;
18648 netbsd*)
18649 ;;
18650 *qnx* | *nto*)
18651 # QNX uses GNU C++, but need to define -shared option too, otherwise
18652 # it will coredump.
18653 lt_prog_compiler_pic_CXX='-fPIC -shared'
18654 ;;
18655 osf3* | osf4* | osf5*)
18656 case $cc_basename in
18657 KCC*)
18658 lt_prog_compiler_wl_CXX='--backend -Wl,'
18659 ;;
18660 RCC*)
18661 # Rational C++ 2.4.1
18662 lt_prog_compiler_pic_CXX='-pic'
18663 ;;
18664 cxx*)
18665 # Digital/Compaq C++
18666 lt_prog_compiler_wl_CXX='-Wl,'
18667 # Make sure the PIC flag is empty. It appears that all Alpha
18668 # Linux and Compaq Tru64 Unix objects are PIC.
18669 lt_prog_compiler_pic_CXX=
18670 lt_prog_compiler_static_CXX='-non_shared'
18671 ;;
18672 *)
18673 ;;
18674 esac
18675 ;;
18676 psos*)
18677 ;;
18678 solaris*)
18679 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018680 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018681 # Sun C++ 4.2, 5.x and Centerline C++
18682 lt_prog_compiler_pic_CXX='-KPIC'
18683 lt_prog_compiler_static_CXX='-Bstatic'
18684 lt_prog_compiler_wl_CXX='-Qoption ld '
18685 ;;
18686 gcx*)
18687 # Green Hills C++ Compiler
18688 lt_prog_compiler_pic_CXX='-PIC'
18689 ;;
18690 *)
18691 ;;
18692 esac
18693 ;;
18694 sunos4*)
18695 case $cc_basename in
18696 CC*)
18697 # Sun C++ 4.x
18698 lt_prog_compiler_pic_CXX='-pic'
18699 lt_prog_compiler_static_CXX='-Bstatic'
18700 ;;
18701 lcc*)
18702 # Lucid
18703 lt_prog_compiler_pic_CXX='-pic'
18704 ;;
18705 *)
18706 ;;
18707 esac
18708 ;;
18709 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18710 case $cc_basename in
18711 CC*)
18712 lt_prog_compiler_wl_CXX='-Wl,'
18713 lt_prog_compiler_pic_CXX='-KPIC'
18714 lt_prog_compiler_static_CXX='-Bstatic'
18715 ;;
18716 esac
18717 ;;
18718 tandem*)
18719 case $cc_basename in
18720 NCC*)
18721 # NonStop-UX NCC 3.20
18722 lt_prog_compiler_pic_CXX='-KPIC'
18723 ;;
18724 *)
18725 ;;
18726 esac
18727 ;;
18728 vxworks*)
18729 ;;
18730 *)
18731 lt_prog_compiler_can_build_shared_CXX=no
18732 ;;
18733 esac
18734 fi
18735
18736case $host_os in
18737 # For platforms which do not support PIC, -DPIC is meaningless:
18738 *djgpp*)
18739 lt_prog_compiler_pic_CXX=
18740 ;;
18741 *)
18742 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18743 ;;
18744esac
cristy73bd4a52010-10-05 11:24:23 +000018745
cristyda16f162011-02-19 23:52:17 +000018746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18747$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18748if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18749 $as_echo_n "(cached) " >&6
18750else
18751 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18752fi
18753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18754$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18755lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018756
18757#
18758# Check to make sure the PIC flag actually works.
18759#
18760if test -n "$lt_prog_compiler_pic_CXX"; then
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18762$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018763if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018764 $as_echo_n "(cached) " >&6
18765else
18766 lt_cv_prog_compiler_pic_works_CXX=no
18767 ac_outfile=conftest.$ac_objext
18768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18769 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18770 # Insert the option either (1) after the last *FLAGS variable, or
18771 # (2) before a word containing "conftest.", or (3) at the end.
18772 # Note that $ac_compile itself does not contain backslashes and begins
18773 # with a dollar sign (not a hyphen), so the echo should work correctly.
18774 # The option is referenced via a variable to avoid confusing sed.
18775 lt_compile=`echo "$ac_compile" | $SED \
18776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18778 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018780 (eval "$lt_compile" 2>conftest.err)
18781 ac_status=$?
18782 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018784 if (exit $ac_status) && test -s "$ac_outfile"; then
18785 # The compiler can only warn and ignore the option if not recognized
18786 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18790 lt_cv_prog_compiler_pic_works_CXX=yes
18791 fi
18792 fi
18793 $RM conftest*
18794
18795fi
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18797$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18798
18799if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18800 case $lt_prog_compiler_pic_CXX in
18801 "" | " "*) ;;
18802 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18803 esac
18804else
18805 lt_prog_compiler_pic_CXX=
18806 lt_prog_compiler_can_build_shared_CXX=no
18807fi
18808
18809fi
18810
18811
18812
cristyda16f162011-02-19 23:52:17 +000018813
18814
cristy73bd4a52010-10-05 11:24:23 +000018815#
18816# Check to make sure the static flag actually works.
18817#
18818wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18820$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018821if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018822 $as_echo_n "(cached) " >&6
18823else
18824 lt_cv_prog_compiler_static_works_CXX=no
18825 save_LDFLAGS="$LDFLAGS"
18826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18829 # The linker can only warn and ignore the option if not recognized
18830 # So say no if there are warnings
18831 if test -s conftest.err; then
18832 # Append any errors to the config.log.
18833 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018834 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18836 if diff conftest.exp conftest.er2 >/dev/null; then
18837 lt_cv_prog_compiler_static_works_CXX=yes
18838 fi
18839 else
18840 lt_cv_prog_compiler_static_works_CXX=yes
18841 fi
18842 fi
18843 $RM -r conftest*
18844 LDFLAGS="$save_LDFLAGS"
18845
18846fi
18847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18848$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18849
18850if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18851 :
18852else
18853 lt_prog_compiler_static_CXX=
18854fi
18855
18856
18857
18858
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18860$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018861if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018862 $as_echo_n "(cached) " >&6
18863else
18864 lt_cv_prog_compiler_c_o_CXX=no
18865 $RM -r conftest 2>/dev/null
18866 mkdir conftest
18867 cd conftest
18868 mkdir out
18869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18870
18871 lt_compiler_flag="-o out/conftest2.$ac_objext"
18872 # Insert the option either (1) after the last *FLAGS variable, or
18873 # (2) before a word containing "conftest.", or (3) at the end.
18874 # Note that $ac_compile itself does not contain backslashes and begins
18875 # with a dollar sign (not a hyphen), so the echo should work correctly.
18876 lt_compile=`echo "$ac_compile" | $SED \
18877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18879 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018881 (eval "$lt_compile" 2>out/conftest.err)
18882 ac_status=$?
18883 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18886 then
18887 # The compiler can only warn and ignore the option if not recognized
18888 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18892 lt_cv_prog_compiler_c_o_CXX=yes
18893 fi
18894 fi
18895 chmod u+w . 2>&5
18896 $RM conftest*
18897 # SGI C++ compiler will create directory out/ii_files/ for
18898 # template instantiation
18899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18900 $RM out/* && rmdir out
18901 cd ..
18902 $RM -r conftest
18903 $RM conftest*
18904
18905fi
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18907$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18908
18909
18910
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18912$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018913if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018914 $as_echo_n "(cached) " >&6
18915else
18916 lt_cv_prog_compiler_c_o_CXX=no
18917 $RM -r conftest 2>/dev/null
18918 mkdir conftest
18919 cd conftest
18920 mkdir out
18921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18922
18923 lt_compiler_flag="-o out/conftest2.$ac_objext"
18924 # Insert the option either (1) after the last *FLAGS variable, or
18925 # (2) before a word containing "conftest.", or (3) at the end.
18926 # Note that $ac_compile itself does not contain backslashes and begins
18927 # with a dollar sign (not a hyphen), so the echo should work correctly.
18928 lt_compile=`echo "$ac_compile" | $SED \
18929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18931 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018933 (eval "$lt_compile" 2>out/conftest.err)
18934 ac_status=$?
18935 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18938 then
18939 # The compiler can only warn and ignore the option if not recognized
18940 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18944 lt_cv_prog_compiler_c_o_CXX=yes
18945 fi
18946 fi
18947 chmod u+w . 2>&5
18948 $RM conftest*
18949 # SGI C++ compiler will create directory out/ii_files/ for
18950 # template instantiation
18951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18952 $RM out/* && rmdir out
18953 cd ..
18954 $RM -r conftest
18955 $RM conftest*
18956
18957fi
18958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18959$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18960
18961
18962
18963
18964hard_links="nottested"
18965if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18966 # do not overwrite the value of need_locks provided by the user
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18968$as_echo_n "checking if we can lock with hard links... " >&6; }
18969 hard_links=yes
18970 $RM conftest*
18971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18972 touch conftest.a
18973 ln conftest.a conftest.b 2>&5 || hard_links=no
18974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18976$as_echo "$hard_links" >&6; }
18977 if test "$hard_links" = no; then
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18979$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18980 need_locks=warn
18981 fi
18982else
18983 need_locks=no
18984fi
18985
18986
18987
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18989$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18990
18991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018992 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018993 case $host_os in
18994 aix[4-9]*)
18995 # If we're using GNU nm, then we don't want the "-C" option.
18996 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018997 # Also, AIX nm treats weak defined symbols like other global defined
18998 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018999 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019000 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 +000019001 else
19002 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'
19003 fi
19004 ;;
19005 pw32*)
19006 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019007 ;;
cristy73bd4a52010-10-05 11:24:23 +000019008 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019009 case $cc_basename in
19010 cl*) ;;
19011 *)
19012 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'
19013 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19014 ;;
19015 esac
19016 ;;
cristy73bd4a52010-10-05 11:24:23 +000019017 *)
19018 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019019 ;;
cristy73bd4a52010-10-05 11:24:23 +000019020 esac
cristy73bd4a52010-10-05 11:24:23 +000019021
19022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19023$as_echo "$ld_shlibs_CXX" >&6; }
19024test "$ld_shlibs_CXX" = no && can_build_shared=no
19025
19026with_gnu_ld_CXX=$with_gnu_ld
19027
19028
19029
19030
19031
19032
19033#
19034# Do we need to explicitly link libc?
19035#
19036case "x$archive_cmds_need_lc_CXX" in
19037x|xyes)
19038 # Assume -lc should be added
19039 archive_cmds_need_lc_CXX=yes
19040
19041 if test "$enable_shared" = yes && test "$GCC" = yes; then
19042 case $archive_cmds_CXX in
19043 *'~'*)
19044 # FIXME: we may have to deal with multi-command sequences.
19045 ;;
19046 '$CC '*)
19047 # Test whether the compiler implicitly links with -lc since on some
19048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19049 # to ld, don't add -lc before -lgcc.
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19051$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019052if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019053 $as_echo_n "(cached) " >&6
19054else
19055 $RM conftest*
19056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019057
cristy0c60a692010-11-04 01:09:47 +000019058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019059 (eval $ac_compile) 2>&5
19060 ac_status=$?
19061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19062 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019063 soname=conftest
19064 lib=conftest
19065 libobjs=conftest.$ac_objext
19066 deplibs=
19067 wl=$lt_prog_compiler_wl_CXX
19068 pic_flag=$lt_prog_compiler_pic_CXX
19069 compiler_flags=-v
19070 linker_flags=-v
19071 verstring=
19072 output_objdir=.
19073 libname=conftest
19074 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19075 allow_undefined_flag_CXX=
19076 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 +000019077 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19078 ac_status=$?
19079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19080 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019081 then
19082 lt_cv_archive_cmds_need_lc_CXX=no
19083 else
19084 lt_cv_archive_cmds_need_lc_CXX=yes
19085 fi
19086 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19087 else
19088 cat conftest.err 1>&5
19089 fi
19090 $RM conftest*
19091
19092fi
19093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19094$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19095 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019096 ;;
19097 esac
19098 fi
19099 ;;
19100esac
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19166$as_echo_n "checking dynamic linker characteristics... " >&6; }
19167
19168library_names_spec=
19169libname_spec='lib$name'
19170soname_spec=
19171shrext_cmds=".so"
19172postinstall_cmds=
19173postuninstall_cmds=
19174finish_cmds=
19175finish_eval=
19176shlibpath_var=
19177shlibpath_overrides_runpath=unknown
19178version_type=none
19179dynamic_linker="$host_os ld.so"
19180sys_lib_dlsearch_path_spec="/lib /usr/lib"
19181need_lib_prefix=unknown
19182hardcode_into_libs=no
19183
19184# when you set need_version to no, make sure it does not cause -set_version
19185# flags to be left without arguments
19186need_version=unknown
19187
19188case $host_os in
19189aix3*)
19190 version_type=linux
19191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19192 shlibpath_var=LIBPATH
19193
19194 # AIX 3 has no versioning support, so we append a major version to the name.
19195 soname_spec='${libname}${release}${shared_ext}$major'
19196 ;;
19197
19198aix[4-9]*)
19199 version_type=linux
19200 need_lib_prefix=no
19201 need_version=no
19202 hardcode_into_libs=yes
19203 if test "$host_cpu" = ia64; then
19204 # AIX 5 supports IA64
19205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19206 shlibpath_var=LD_LIBRARY_PATH
19207 else
19208 # With GCC up to 2.95.x, collect2 would create an import file
19209 # for dependence libraries. The import file would start with
19210 # the line `#! .'. This would cause the generated library to
19211 # depend on `.', always an invalid library. This was fixed in
19212 # development snapshots of GCC prior to 3.0.
19213 case $host_os in
19214 aix4 | aix4.[01] | aix4.[01].*)
19215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19216 echo ' yes '
19217 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19218 :
19219 else
19220 can_build_shared=no
19221 fi
19222 ;;
19223 esac
19224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19225 # soname into executable. Probably we can add versioning support to
19226 # collect2, so additional links can be useful in future.
19227 if test "$aix_use_runtimelinking" = yes; then
19228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19229 # instead of lib<name>.a to let people know that these are not
19230 # typical AIX shared libraries.
19231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232 else
19233 # We preserve .a as extension for shared libraries through AIX4.2
19234 # and later when we are not doing run time linking.
19235 library_names_spec='${libname}${release}.a $libname.a'
19236 soname_spec='${libname}${release}${shared_ext}$major'
19237 fi
19238 shlibpath_var=LIBPATH
19239 fi
19240 ;;
19241
19242amigaos*)
19243 case $host_cpu in
19244 powerpc)
19245 # Since July 2007 AmigaOS4 officially supports .so libraries.
19246 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19248 ;;
19249 m68k)
19250 library_names_spec='$libname.ixlibrary $libname.a'
19251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019252 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 +000019253 ;;
19254 esac
19255 ;;
19256
19257beos*)
19258 library_names_spec='${libname}${shared_ext}'
19259 dynamic_linker="$host_os ld.so"
19260 shlibpath_var=LIBRARY_PATH
19261 ;;
19262
19263bsdi[45]*)
19264 version_type=linux
19265 need_version=no
19266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19267 soname_spec='${libname}${release}${shared_ext}$major'
19268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19269 shlibpath_var=LD_LIBRARY_PATH
19270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19272 # the default ld.so.conf also contains /usr/contrib/lib and
19273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19274 # libtool to hard-code these into programs
19275 ;;
19276
19277cygwin* | mingw* | pw32* | cegcc*)
19278 version_type=windows
19279 shrext_cmds=".dll"
19280 need_version=no
19281 need_lib_prefix=no
19282
cristyda16f162011-02-19 23:52:17 +000019283 case $GCC,$cc_basename in
19284 yes,*)
19285 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019286 library_names_spec='$libname.dll.a'
19287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19288 postinstall_cmds='base_file=`basename \${file}`~
19289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19290 dldir=$destdir/`dirname \$dlpath`~
19291 test -d \$dldir || mkdir -p \$dldir~
19292 $install_prog $dir/$dlname \$dldir/$dlname~
19293 chmod a+x \$dldir/$dlname~
19294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19296 fi'
19297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19298 dlpath=$dir/\$dldll~
19299 $RM \$dlpath'
19300 shlibpath_overrides_runpath=yes
19301
19302 case $host_os in
19303 cygwin*)
19304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019306
cristy73bd4a52010-10-05 11:24:23 +000019307 ;;
19308 mingw* | cegcc*)
19309 # MinGW DLLs use traditional 'lib' prefix
19310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019311 ;;
19312 pw32*)
19313 # pw32 DLLs use 'pw' prefix rather than 'lib'
19314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19315 ;;
19316 esac
cristyda16f162011-02-19 23:52:17 +000019317 dynamic_linker='Win32 ld.exe'
19318 ;;
19319
19320 *,cl*)
19321 # Native MSVC
19322 libname_spec='$name'
19323 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19324 library_names_spec='${libname}.dll.lib'
19325
19326 case $build_os in
19327 mingw*)
19328 sys_lib_search_path_spec=
19329 lt_save_ifs=$IFS
19330 IFS=';'
19331 for lt_path in $LIB
19332 do
19333 IFS=$lt_save_ifs
19334 # Let DOS variable expansion print the short 8.3 style file name.
19335 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19336 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19337 done
19338 IFS=$lt_save_ifs
19339 # Convert to MSYS style.
19340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19341 ;;
19342 cygwin*)
19343 # Convert to unix form, then to dos form, then back to unix form
19344 # but this time dos style (no spaces!) so that the unix form looks
19345 # like /cygdrive/c/PROGRA~1:/cygdr...
19346 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19347 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19348 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19349 ;;
19350 *)
19351 sys_lib_search_path_spec="$LIB"
19352 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19353 # It is most probably a Windows format PATH.
19354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19355 else
19356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19357 fi
19358 # FIXME: find the short name or the path components, as spaces are
19359 # common. (e.g. "Program Files" -> "PROGRA~1")
19360 ;;
19361 esac
19362
19363 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19364 postinstall_cmds='base_file=`basename \${file}`~
19365 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19366 dldir=$destdir/`dirname \$dlpath`~
19367 test -d \$dldir || mkdir -p \$dldir~
19368 $install_prog $dir/$dlname \$dldir/$dlname'
19369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19370 dlpath=$dir/\$dldll~
19371 $RM \$dlpath'
19372 shlibpath_overrides_runpath=yes
19373 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019374 ;;
19375
19376 *)
cristyda16f162011-02-19 23:52:17 +000019377 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019378 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019379 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019380 ;;
19381 esac
cristy73bd4a52010-10-05 11:24:23 +000019382 # FIXME: first we should search . and the directory the executable is in
19383 shlibpath_var=PATH
19384 ;;
19385
19386darwin* | rhapsody*)
19387 dynamic_linker="$host_os dyld"
19388 version_type=darwin
19389 need_lib_prefix=no
19390 need_version=no
19391 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19392 soname_spec='${libname}${release}${major}$shared_ext'
19393 shlibpath_overrides_runpath=yes
19394 shlibpath_var=DYLD_LIBRARY_PATH
19395 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19396
19397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19398 ;;
19399
19400dgux*)
19401 version_type=linux
19402 need_lib_prefix=no
19403 need_version=no
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 shlibpath_var=LD_LIBRARY_PATH
19407 ;;
19408
19409freebsd1*)
19410 dynamic_linker=no
19411 ;;
19412
19413freebsd* | dragonfly*)
19414 # DragonFly does not have aout. When/if they implement a new
19415 # versioning mechanism, adjust this.
19416 if test -x /usr/bin/objformat; then
19417 objformat=`/usr/bin/objformat`
19418 else
19419 case $host_os in
19420 freebsd[123]*) objformat=aout ;;
19421 *) objformat=elf ;;
19422 esac
19423 fi
19424 version_type=freebsd-$objformat
19425 case $version_type in
19426 freebsd-elf*)
19427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19428 need_version=no
19429 need_lib_prefix=no
19430 ;;
19431 freebsd-*)
19432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19433 need_version=yes
19434 ;;
19435 esac
19436 shlibpath_var=LD_LIBRARY_PATH
19437 case $host_os in
19438 freebsd2*)
19439 shlibpath_overrides_runpath=yes
19440 ;;
19441 freebsd3.[01]* | freebsdelf3.[01]*)
19442 shlibpath_overrides_runpath=yes
19443 hardcode_into_libs=yes
19444 ;;
19445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19447 shlibpath_overrides_runpath=no
19448 hardcode_into_libs=yes
19449 ;;
19450 *) # from 4.6 on, and DragonFly
19451 shlibpath_overrides_runpath=yes
19452 hardcode_into_libs=yes
19453 ;;
19454 esac
19455 ;;
19456
19457gnu*)
19458 version_type=linux
19459 need_lib_prefix=no
19460 need_version=no
19461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19462 soname_spec='${libname}${release}${shared_ext}$major'
19463 shlibpath_var=LD_LIBRARY_PATH
19464 hardcode_into_libs=yes
19465 ;;
19466
cristy0c60a692010-11-04 01:09:47 +000019467haiku*)
19468 version_type=linux
19469 need_lib_prefix=no
19470 need_version=no
19471 dynamic_linker="$host_os runtime_loader"
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19473 soname_spec='${libname}${release}${shared_ext}$major'
19474 shlibpath_var=LIBRARY_PATH
19475 shlibpath_overrides_runpath=yes
19476 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19477 hardcode_into_libs=yes
19478 ;;
19479
cristy73bd4a52010-10-05 11:24:23 +000019480hpux9* | hpux10* | hpux11*)
19481 # Give a soname corresponding to the major version so that dld.sl refuses to
19482 # link against other versions.
19483 version_type=sunos
19484 need_lib_prefix=no
19485 need_version=no
19486 case $host_cpu in
19487 ia64*)
19488 shrext_cmds='.so'
19489 hardcode_into_libs=yes
19490 dynamic_linker="$host_os dld.so"
19491 shlibpath_var=LD_LIBRARY_PATH
19492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19494 soname_spec='${libname}${release}${shared_ext}$major'
19495 if test "X$HPUX_IA64_MODE" = X32; then
19496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19497 else
19498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19499 fi
19500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19501 ;;
19502 hppa*64*)
19503 shrext_cmds='.sl'
19504 hardcode_into_libs=yes
19505 dynamic_linker="$host_os dld.sl"
19506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19509 soname_spec='${libname}${release}${shared_ext}$major'
19510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19512 ;;
19513 *)
19514 shrext_cmds='.sl'
19515 dynamic_linker="$host_os dld.sl"
19516 shlibpath_var=SHLIB_PATH
19517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19519 soname_spec='${libname}${release}${shared_ext}$major'
19520 ;;
19521 esac
cristy0c60a692010-11-04 01:09:47 +000019522 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019523 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019524 # or fails outright, so override atomically:
19525 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019526 ;;
19527
19528interix[3-9]*)
19529 version_type=linux
19530 need_lib_prefix=no
19531 need_version=no
19532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19533 soname_spec='${libname}${release}${shared_ext}$major'
19534 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19535 shlibpath_var=LD_LIBRARY_PATH
19536 shlibpath_overrides_runpath=no
19537 hardcode_into_libs=yes
19538 ;;
19539
19540irix5* | irix6* | nonstopux*)
19541 case $host_os in
19542 nonstopux*) version_type=nonstopux ;;
19543 *)
19544 if test "$lt_cv_prog_gnu_ld" = yes; then
19545 version_type=linux
19546 else
19547 version_type=irix
19548 fi ;;
19549 esac
19550 need_lib_prefix=no
19551 need_version=no
19552 soname_spec='${libname}${release}${shared_ext}$major'
19553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19554 case $host_os in
19555 irix5* | nonstopux*)
19556 libsuff= shlibsuff=
19557 ;;
19558 *)
19559 case $LD in # libtool.m4 will add one of these switches to LD
19560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19561 libsuff= shlibsuff= libmagic=32-bit;;
19562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19563 libsuff=32 shlibsuff=N32 libmagic=N32;;
19564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19566 *) libsuff= shlibsuff= libmagic=never-match;;
19567 esac
19568 ;;
19569 esac
19570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19571 shlibpath_overrides_runpath=no
19572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19574 hardcode_into_libs=yes
19575 ;;
19576
19577# No shared lib support for Linux oldld, aout, or coff.
19578linux*oldld* | linux*aout* | linux*coff*)
19579 dynamic_linker=no
19580 ;;
19581
19582# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019583linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019584 version_type=linux
19585 need_lib_prefix=no
19586 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019592
cristy73bd4a52010-10-05 11:24:23 +000019593 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019594 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019595 $as_echo_n "(cached) " >&6
19596else
19597 lt_cv_shlibpath_overrides_runpath=no
19598 save_LDFLAGS=$LDFLAGS
19599 save_libdir=$libdir
19600 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19601 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019603/* end confdefs.h. */
19604
19605int
19606main ()
19607{
19608
19609 ;
19610 return 0;
19611}
19612_ACEOF
19613if ac_fn_cxx_try_link "$LINENO"; then :
19614 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019615 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019616fi
19617fi
19618rm -f core conftest.err conftest.$ac_objext \
19619 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019620 LDFLAGS=$save_LDFLAGS
19621 libdir=$save_libdir
19622
19623fi
19624
19625 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019626
19627 # This implies no fast_install, which is unacceptable.
19628 # Some rework will be needed to allow for fast_install
19629 # before this can be enabled.
19630 hardcode_into_libs=yes
19631
19632 # Add ABI-specific directories to the system library path.
19633 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19634
19635 # Append ld.so.conf contents to the search path
19636 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019637 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 +000019638 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019639
cristy73bd4a52010-10-05 11:24:23 +000019640 fi
19641
19642 # We used to test for /lib/ld.so.1 and disable shared libraries on
19643 # powerpc, because MkLinux only supported shared libraries with the
19644 # GNU dynamic linker. Since this was broken with cross compilers,
19645 # most powerpc-linux boxes support dynamic linking these days and
19646 # people can always --disable-shared, the test was removed, and we
19647 # assume the GNU/Linux dynamic linker is in use.
19648 dynamic_linker='GNU/Linux ld.so'
19649 ;;
19650
19651netbsd*)
19652 version_type=sunos
19653 need_lib_prefix=no
19654 need_version=no
19655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19658 dynamic_linker='NetBSD (a.out) ld.so'
19659 else
19660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19661 soname_spec='${libname}${release}${shared_ext}$major'
19662 dynamic_linker='NetBSD ld.elf_so'
19663 fi
19664 shlibpath_var=LD_LIBRARY_PATH
19665 shlibpath_overrides_runpath=yes
19666 hardcode_into_libs=yes
19667 ;;
19668
19669newsos6)
19670 version_type=linux
19671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19672 shlibpath_var=LD_LIBRARY_PATH
19673 shlibpath_overrides_runpath=yes
19674 ;;
19675
19676*nto* | *qnx*)
19677 version_type=qnx
19678 need_lib_prefix=no
19679 need_version=no
19680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19681 soname_spec='${libname}${release}${shared_ext}$major'
19682 shlibpath_var=LD_LIBRARY_PATH
19683 shlibpath_overrides_runpath=no
19684 hardcode_into_libs=yes
19685 dynamic_linker='ldqnx.so'
19686 ;;
19687
19688openbsd*)
19689 version_type=sunos
19690 sys_lib_dlsearch_path_spec="/usr/lib"
19691 need_lib_prefix=no
19692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19693 case $host_os in
19694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19695 *) need_version=no ;;
19696 esac
19697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19699 shlibpath_var=LD_LIBRARY_PATH
19700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19701 case $host_os in
19702 openbsd2.[89] | openbsd2.[89].*)
19703 shlibpath_overrides_runpath=no
19704 ;;
19705 *)
19706 shlibpath_overrides_runpath=yes
19707 ;;
19708 esac
19709 else
19710 shlibpath_overrides_runpath=yes
19711 fi
19712 ;;
19713
19714os2*)
19715 libname_spec='$name'
19716 shrext_cmds=".dll"
19717 need_lib_prefix=no
19718 library_names_spec='$libname${shared_ext} $libname.a'
19719 dynamic_linker='OS/2 ld.exe'
19720 shlibpath_var=LIBPATH
19721 ;;
19722
19723osf3* | osf4* | osf5*)
19724 version_type=osf
19725 need_lib_prefix=no
19726 need_version=no
19727 soname_spec='${libname}${release}${shared_ext}$major'
19728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19729 shlibpath_var=LD_LIBRARY_PATH
19730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19732 ;;
19733
19734rdos*)
19735 dynamic_linker=no
19736 ;;
19737
19738solaris*)
19739 version_type=linux
19740 need_lib_prefix=no
19741 need_version=no
19742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19743 soname_spec='${libname}${release}${shared_ext}$major'
19744 shlibpath_var=LD_LIBRARY_PATH
19745 shlibpath_overrides_runpath=yes
19746 hardcode_into_libs=yes
19747 # ldd complains unless libraries are executable
19748 postinstall_cmds='chmod +x $lib'
19749 ;;
19750
19751sunos4*)
19752 version_type=sunos
19753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19755 shlibpath_var=LD_LIBRARY_PATH
19756 shlibpath_overrides_runpath=yes
19757 if test "$with_gnu_ld" = yes; then
19758 need_lib_prefix=no
19759 fi
19760 need_version=yes
19761 ;;
19762
19763sysv4 | sysv4.3*)
19764 version_type=linux
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766 soname_spec='${libname}${release}${shared_ext}$major'
19767 shlibpath_var=LD_LIBRARY_PATH
19768 case $host_vendor in
19769 sni)
19770 shlibpath_overrides_runpath=no
19771 need_lib_prefix=no
19772 runpath_var=LD_RUN_PATH
19773 ;;
19774 siemens)
19775 need_lib_prefix=no
19776 ;;
19777 motorola)
19778 need_lib_prefix=no
19779 need_version=no
19780 shlibpath_overrides_runpath=no
19781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19782 ;;
19783 esac
19784 ;;
19785
19786sysv4*MP*)
19787 if test -d /usr/nec ;then
19788 version_type=linux
19789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19790 soname_spec='$libname${shared_ext}.$major'
19791 shlibpath_var=LD_LIBRARY_PATH
19792 fi
19793 ;;
19794
19795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19796 version_type=freebsd-elf
19797 need_lib_prefix=no
19798 need_version=no
19799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19800 soname_spec='${libname}${release}${shared_ext}$major'
19801 shlibpath_var=LD_LIBRARY_PATH
19802 shlibpath_overrides_runpath=yes
19803 hardcode_into_libs=yes
19804 if test "$with_gnu_ld" = yes; then
19805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19806 else
19807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19808 case $host_os in
19809 sco3.2v5*)
19810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19811 ;;
19812 esac
19813 fi
19814 sys_lib_dlsearch_path_spec='/usr/lib'
19815 ;;
19816
19817tpf*)
19818 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19819 version_type=linux
19820 need_lib_prefix=no
19821 need_version=no
19822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19823 shlibpath_var=LD_LIBRARY_PATH
19824 shlibpath_overrides_runpath=no
19825 hardcode_into_libs=yes
19826 ;;
19827
19828uts4*)
19829 version_type=linux
19830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831 soname_spec='${libname}${release}${shared_ext}$major'
19832 shlibpath_var=LD_LIBRARY_PATH
19833 ;;
19834
19835*)
19836 dynamic_linker=no
19837 ;;
19838esac
19839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19840$as_echo "$dynamic_linker" >&6; }
19841test "$dynamic_linker" = no && can_build_shared=no
19842
19843variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19844if test "$GCC" = yes; then
19845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19846fi
19847
19848if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19849 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19850fi
19851if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19852 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19853fi
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
cristy0c60a692010-11-04 01:09:47 +000019890
19891
cristy73bd4a52010-10-05 11:24:23 +000019892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19893$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19894hardcode_action_CXX=
19895if test -n "$hardcode_libdir_flag_spec_CXX" ||
19896 test -n "$runpath_var_CXX" ||
19897 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19898
19899 # We can hardcode non-existent directories.
19900 if test "$hardcode_direct_CXX" != no &&
19901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19902 # have to relink, otherwise we might link with an installed library
19903 # when we should be linking with a yet-to-be-installed one
19904 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19905 test "$hardcode_minus_L_CXX" != no; then
19906 # Linking always hardcodes the temporary library directory.
19907 hardcode_action_CXX=relink
19908 else
19909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19910 hardcode_action_CXX=immediate
19911 fi
19912else
19913 # We cannot hardcode anything, or else we can only hardcode existing
19914 # directories.
19915 hardcode_action_CXX=unsupported
19916fi
19917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19918$as_echo "$hardcode_action_CXX" >&6; }
19919
19920if test "$hardcode_action_CXX" = relink ||
19921 test "$inherit_rpath_CXX" = yes; then
19922 # Fast installation is not supported
19923 enable_fast_install=no
19924elif test "$shlibpath_overrides_runpath" = yes ||
19925 test "$enable_shared" = no; then
19926 # Fast installation is not necessary
19927 enable_fast_install=needless
19928fi
19929
19930
19931
19932
19933
19934
19935
19936 fi # test -n "$compiler"
19937
19938 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019939 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019940 LDCXX=$LD
19941 LD=$lt_save_LD
19942 GCC=$lt_save_GCC
19943 with_gnu_ld=$lt_save_with_gnu_ld
19944 lt_cv_path_LDCXX=$lt_cv_path_LD
19945 lt_cv_path_LD=$lt_save_path_LD
19946 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19947 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19948fi # test "$_lt_caught_CXX_error" != yes
19949
19950ac_ext=c
19951ac_cpp='$CPP $CPPFLAGS'
19952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954ac_compiler_gnu=$ac_cv_c_compiler_gnu
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968 ac_config_commands="$ac_config_commands libtool"
19969
19970
19971
19972
19973# Only expand once:
19974
19975
19976
cristy3ed852e2009-09-05 21:47:34 +000019977
19978
19979# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019980
19981
19982
19983
19984
19985
19986
cristy73bd4a52010-10-05 11:24:23 +000019987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19988$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019989if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019990 $as_echo_n "(cached) " >&6
19991else
19992
19993module=yes
19994eval libltdl_cv_shlibext=$shrext_cmds
19995
19996fi
19997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19998$as_echo "$libltdl_cv_shlibext" >&6; }
19999if test -n "$libltdl_cv_shlibext"; then
20000
20001cat >>confdefs.h <<_ACEOF
20002#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20003_ACEOF
20004
20005fi
20006
20007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20008$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020009if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020010 $as_echo_n "(cached) " >&6
20011else
20012 lt_cv_module_path_var="$shlibpath_var"
20013fi
20014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20015$as_echo "$lt_cv_module_path_var" >&6; }
20016if test -n "$lt_cv_module_path_var"; then
20017
20018cat >>confdefs.h <<_ACEOF
20019#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20020_ACEOF
20021
20022fi
20023
20024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20025$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020026if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020027 $as_echo_n "(cached) " >&6
20028else
20029 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20030fi
20031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20032$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20033if test -n "$lt_cv_sys_dlsearch_path"; then
20034 sys_dlsearch_path=
20035 for dir in $lt_cv_sys_dlsearch_path; do
20036 if test -z "$sys_dlsearch_path"; then
20037 sys_dlsearch_path="$dir"
20038 else
20039 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20040 fi
20041 done
20042
20043cat >>confdefs.h <<_ACEOF
20044#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20045_ACEOF
20046
20047fi
20048
20049
20050LT_DLLOADERS=
20051
20052
20053ac_ext=c
20054ac_cpp='$CPP $CPPFLAGS'
20055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20057ac_compiler_gnu=$ac_cv_c_compiler_gnu
20058
20059
20060LIBADD_DLOPEN=
20061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20062$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020063if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020064 $as_echo_n "(cached) " >&6
20065else
20066 ac_func_search_save_LIBS=$LIBS
20067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068/* end confdefs.h. */
20069
20070/* Override any GCC internal prototype to avoid an error.
20071 Use char because int might match the return type of a GCC
20072 builtin and then its argument prototype would still apply. */
20073#ifdef __cplusplus
20074extern "C"
20075#endif
20076char dlopen ();
20077int
20078main ()
20079{
20080return dlopen ();
20081 ;
20082 return 0;
20083}
20084_ACEOF
20085for ac_lib in '' dl; do
20086 if test -z "$ac_lib"; then
20087 ac_res="none required"
20088 else
20089 ac_res=-l$ac_lib
20090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20091 fi
20092 if ac_fn_c_try_link "$LINENO"; then :
20093 ac_cv_search_dlopen=$ac_res
20094fi
20095rm -f core conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020097 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020098 break
20099fi
20100done
cristyda16f162011-02-19 23:52:17 +000020101if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020102
20103else
20104 ac_cv_search_dlopen=no
20105fi
20106rm conftest.$ac_ext
20107LIBS=$ac_func_search_save_LIBS
20108fi
20109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20110$as_echo "$ac_cv_search_dlopen" >&6; }
20111ac_res=$ac_cv_search_dlopen
20112if test "$ac_res" != no; then :
20113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20114
20115$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20116
20117 if test "$ac_cv_search_dlopen" != "none required" ; then
20118 LIBADD_DLOPEN="-ldl"
20119 fi
20120 libltdl_cv_lib_dl_dlopen="yes"
20121 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20122else
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124/* end confdefs.h. */
20125#if HAVE_DLFCN_H
20126# include <dlfcn.h>
20127#endif
20128
20129int
20130main ()
20131{
20132dlopen(0, 0);
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137if ac_fn_c_try_link "$LINENO"; then :
20138
20139$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20140
20141 libltdl_cv_func_dlopen="yes"
20142 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20143else
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20145$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020146if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020147 $as_echo_n "(cached) " >&6
20148else
20149 ac_check_lib_save_LIBS=$LIBS
20150LIBS="-lsvld $LIBS"
20151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20152/* end confdefs.h. */
20153
20154/* Override any GCC internal prototype to avoid an error.
20155 Use char because int might match the return type of a GCC
20156 builtin and then its argument prototype would still apply. */
20157#ifdef __cplusplus
20158extern "C"
20159#endif
20160char dlopen ();
20161int
20162main ()
20163{
20164return dlopen ();
20165 ;
20166 return 0;
20167}
20168_ACEOF
20169if ac_fn_c_try_link "$LINENO"; then :
20170 ac_cv_lib_svld_dlopen=yes
20171else
20172 ac_cv_lib_svld_dlopen=no
20173fi
20174rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20176LIBS=$ac_check_lib_save_LIBS
20177fi
20178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20179$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020180if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020181
20182$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20183
20184 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20185 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20186fi
20187
20188fi
20189rm -f core conftest.err conftest.$ac_objext \
20190 conftest$ac_exeext conftest.$ac_ext
20191fi
20192
20193if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20194then
20195 lt_save_LIBS="$LIBS"
20196 LIBS="$LIBS $LIBADD_DLOPEN"
20197 for ac_func in dlerror
20198do :
20199 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020200if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020201 cat >>confdefs.h <<_ACEOF
20202#define HAVE_DLERROR 1
20203_ACEOF
20204
20205fi
20206done
20207
20208 LIBS="$lt_save_LIBS"
20209fi
20210
20211
20212LIBADD_SHL_LOAD=
20213ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020214if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020215
20216$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20217
20218 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20219else
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20221$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020222if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020223 $as_echo_n "(cached) " >&6
20224else
20225 ac_check_lib_save_LIBS=$LIBS
20226LIBS="-ldld $LIBS"
20227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228/* end confdefs.h. */
20229
20230/* Override any GCC internal prototype to avoid an error.
20231 Use char because int might match the return type of a GCC
20232 builtin and then its argument prototype would still apply. */
20233#ifdef __cplusplus
20234extern "C"
20235#endif
20236char shl_load ();
20237int
20238main ()
20239{
20240return shl_load ();
20241 ;
20242 return 0;
20243}
20244_ACEOF
20245if ac_fn_c_try_link "$LINENO"; then :
20246 ac_cv_lib_dld_shl_load=yes
20247else
20248 ac_cv_lib_dld_shl_load=no
20249fi
20250rm -f core conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20252LIBS=$ac_check_lib_save_LIBS
20253fi
20254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20255$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020256if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020257
20258$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20259
20260 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20261 LIBADD_SHL_LOAD="-ldld"
20262fi
20263
20264fi
20265
20266
20267
20268case $host_os in
20269darwin[1567].*)
20270# We only want this for pre-Mac OS X 10.4.
20271 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020272if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020273
20274$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20275
20276 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20277fi
20278
20279 ;;
20280beos*)
20281 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20282 ;;
20283cygwin* | mingw* | os2* | pw32*)
20284 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20285"
cristyda16f162011-02-19 23:52:17 +000020286if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020287 ac_have_decl=1
20288else
20289 ac_have_decl=0
20290fi
20291
20292cat >>confdefs.h <<_ACEOF
20293#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20294_ACEOF
20295
20296 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20297 ;;
20298esac
20299
20300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20301$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020302if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020303 $as_echo_n "(cached) " >&6
20304else
20305 ac_check_lib_save_LIBS=$LIBS
20306LIBS="-ldld $LIBS"
20307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308/* end confdefs.h. */
20309
20310/* Override any GCC internal prototype to avoid an error.
20311 Use char because int might match the return type of a GCC
20312 builtin and then its argument prototype would still apply. */
20313#ifdef __cplusplus
20314extern "C"
20315#endif
20316char dld_link ();
20317int
20318main ()
20319{
20320return dld_link ();
20321 ;
20322 return 0;
20323}
20324_ACEOF
20325if ac_fn_c_try_link "$LINENO"; then :
20326 ac_cv_lib_dld_dld_link=yes
20327else
20328 ac_cv_lib_dld_dld_link=no
20329fi
20330rm -f core conftest.err conftest.$ac_objext \
20331 conftest$ac_exeext conftest.$ac_ext
20332LIBS=$ac_check_lib_save_LIBS
20333fi
20334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20335$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020336if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020337
20338$as_echo "#define HAVE_DLD 1" >>confdefs.h
20339
20340 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20341fi
20342
20343
20344
20345
20346LT_DLPREOPEN=
20347if test -n "$LT_DLLOADERS"
20348then
20349 for lt_loader in $LT_DLLOADERS; do
20350 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20351 done
20352
20353$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20354
20355fi
20356
20357
20358LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20359
20360
20361ac_ext=c
20362ac_cpp='$CPP $CPPFLAGS'
20363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365ac_compiler_gnu=$ac_cv_c_compiler_gnu
20366
20367
20368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20369$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020370if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020371 $as_echo_n "(cached) " >&6
20372else
20373 lt_cv_sys_symbol_underscore=no
20374 cat > conftest.$ac_ext <<_LT_EOF
20375void nm_test_func(){}
20376int main(){nm_test_func;return 0;}
20377_LT_EOF
20378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20379 (eval $ac_compile) 2>&5
20380 ac_status=$?
20381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20382 test $ac_status = 0; }; then
20383 # Now try to grab the symbols.
20384 ac_nlist=conftest.nm
20385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20386 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20387 ac_status=$?
20388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20389 test $ac_status = 0; } && test -s "$ac_nlist"; then
20390 # See whether the symbols have a leading underscore.
20391 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20392 lt_cv_sys_symbol_underscore=yes
20393 else
20394 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20395 :
20396 else
20397 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20398 fi
20399 fi
20400 else
20401 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20402 fi
20403 else
20404 echo "configure: failed program was:" >&5
20405 cat conftest.c >&5
20406 fi
20407 rm -rf conftest*
20408
20409fi
20410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20411$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20412 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20413
20414
20415if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20416 if test x"$libltdl_cv_func_dlopen" = xyes ||
20417 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20419$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020420if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020421 $as_echo_n "(cached) " >&6
20422else
20423 libltdl_cv_need_uscore=unknown
20424 save_LIBS="$LIBS"
20425 LIBS="$LIBS $LIBADD_DLOPEN"
20426 if test "$cross_compiling" = yes; then :
20427 libltdl_cv_need_uscore=cross
20428else
20429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20430 lt_status=$lt_dlunknown
20431 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020432#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020433#include "confdefs.h"
20434
20435#if HAVE_DLFCN_H
20436#include <dlfcn.h>
20437#endif
20438
20439#include <stdio.h>
20440
20441#ifdef RTLD_GLOBAL
20442# define LT_DLGLOBAL RTLD_GLOBAL
20443#else
20444# ifdef DL_GLOBAL
20445# define LT_DLGLOBAL DL_GLOBAL
20446# else
20447# define LT_DLGLOBAL 0
20448# endif
20449#endif
20450
20451/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20452 find out it does not work in some platform. */
20453#ifndef LT_DLLAZY_OR_NOW
20454# ifdef RTLD_LAZY
20455# define LT_DLLAZY_OR_NOW RTLD_LAZY
20456# else
20457# ifdef DL_LAZY
20458# define LT_DLLAZY_OR_NOW DL_LAZY
20459# else
20460# ifdef RTLD_NOW
20461# define LT_DLLAZY_OR_NOW RTLD_NOW
20462# else
20463# ifdef DL_NOW
20464# define LT_DLLAZY_OR_NOW DL_NOW
20465# else
20466# define LT_DLLAZY_OR_NOW 0
20467# endif
20468# endif
20469# endif
20470# endif
20471#endif
20472
cristy0c60a692010-11-04 01:09:47 +000020473/* When -fvisbility=hidden is used, assume the code has been annotated
20474 correspondingly for the symbols needed. */
20475#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020476int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020477#endif
20478
cristyda16f162011-02-19 23:52:17 +000020479int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020480int main ()
20481{
20482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20483 int status = $lt_dlunknown;
20484
20485 if (self)
20486 {
20487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020488 else
20489 {
20490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20491 else puts (dlerror ());
20492 }
cristy73bd4a52010-10-05 11:24:23 +000020493 /* dlclose (self); */
20494 }
20495 else
20496 puts (dlerror ());
20497
20498 return status;
20499}
20500_LT_EOF
20501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20502 (eval $ac_link) 2>&5
20503 ac_status=$?
20504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20505 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20506 (./conftest; exit; ) >&5 2>/dev/null
20507 lt_status=$?
20508 case x$lt_status in
20509 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20510 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20511 x$lt_dlunknown|x*) ;;
20512 esac
20513 else :
20514 # compilation failed
20515
20516 fi
20517fi
20518rm -fr conftest*
20519
20520 LIBS="$save_LIBS"
20521
20522fi
20523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20524$as_echo "$libltdl_cv_need_uscore" >&6; }
20525 fi
20526fi
20527
20528if test x"$libltdl_cv_need_uscore" = xyes; then
20529
20530$as_echo "#define NEED_USCORE 1" >>confdefs.h
20531
20532fi
20533
20534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20535$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020536if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020537 $as_echo_n "(cached) " >&6
20538else
20539 # PORTME does your system automatically load deplibs for dlopen?
20540 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20541 # For now, we just catch OSes we know something about -- in the
20542 # future, we'll try test this programmatically.
20543 lt_cv_sys_dlopen_deplibs=unknown
20544 case $host_os in
20545 aix3*|aix4.1.*|aix4.2.*)
20546 # Unknown whether this is true for these versions of AIX, but
20547 # we want this `case' here to explicitly catch those versions.
20548 lt_cv_sys_dlopen_deplibs=unknown
20549 ;;
20550 aix[4-9]*)
20551 lt_cv_sys_dlopen_deplibs=yes
20552 ;;
20553 amigaos*)
20554 case $host_cpu in
20555 powerpc)
20556 lt_cv_sys_dlopen_deplibs=no
20557 ;;
20558 esac
20559 ;;
20560 darwin*)
20561 # Assuming the user has installed a libdl from somewhere, this is true
20562 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20563 lt_cv_sys_dlopen_deplibs=yes
20564 ;;
20565 freebsd* | dragonfly*)
20566 lt_cv_sys_dlopen_deplibs=yes
20567 ;;
cristy0c60a692010-11-04 01:09:47 +000020568 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020569 # GNU and its variants, using gnu ld.so (Glibc)
20570 lt_cv_sys_dlopen_deplibs=yes
20571 ;;
20572 hpux10*|hpux11*)
20573 lt_cv_sys_dlopen_deplibs=yes
20574 ;;
20575 interix*)
20576 lt_cv_sys_dlopen_deplibs=yes
20577 ;;
20578 irix[12345]*|irix6.[01]*)
20579 # Catch all versions of IRIX before 6.2, and indicate that we don't
20580 # know how it worked for any of those versions.
20581 lt_cv_sys_dlopen_deplibs=unknown
20582 ;;
20583 irix*)
20584 # The case above catches anything before 6.2, and it's known that
20585 # at 6.2 and later dlopen does load deplibs.
20586 lt_cv_sys_dlopen_deplibs=yes
20587 ;;
20588 netbsd*)
20589 lt_cv_sys_dlopen_deplibs=yes
20590 ;;
20591 openbsd*)
20592 lt_cv_sys_dlopen_deplibs=yes
20593 ;;
20594 osf[1234]*)
20595 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20596 # it did *not* use an RPATH in a shared library to find objects the
20597 # library depends on, so we explicitly say `no'.
20598 lt_cv_sys_dlopen_deplibs=no
20599 ;;
20600 osf5.0|osf5.0a|osf5.1)
20601 # dlopen *does* load deplibs and with the right loader patch applied
20602 # it even uses RPATH in a shared library to search for shared objects
20603 # that the library depends on, but there's no easy way to know if that
20604 # patch is installed. Since this is the case, all we can really
20605 # say is unknown -- it depends on the patch being installed. If
20606 # it is, this changes to `yes'. Without it, it would be `no'.
20607 lt_cv_sys_dlopen_deplibs=unknown
20608 ;;
20609 osf*)
20610 # the two cases above should catch all versions of osf <= 5.1. Read
20611 # the comments above for what we know about them.
20612 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20613 # is used to find them so we can finally say `yes'.
20614 lt_cv_sys_dlopen_deplibs=yes
20615 ;;
20616 qnx*)
20617 lt_cv_sys_dlopen_deplibs=yes
20618 ;;
20619 solaris*)
20620 lt_cv_sys_dlopen_deplibs=yes
20621 ;;
20622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20623 libltdl_cv_sys_dlopen_deplibs=yes
20624 ;;
20625 esac
20626
20627fi
20628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20629$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20630if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20631
20632$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20633
20634fi
20635
20636:
20637
20638for ac_header in argz.h
20639do :
20640 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20641"
cristyda16f162011-02-19 23:52:17 +000020642if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020643 cat >>confdefs.h <<_ACEOF
20644#define HAVE_ARGZ_H 1
20645_ACEOF
20646
20647fi
20648
20649done
20650
20651
20652ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20653# include <argz.h>
20654#endif
20655"
cristyda16f162011-02-19 23:52:17 +000020656if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020657
20658cat >>confdefs.h <<_ACEOF
20659#define HAVE_ERROR_T 1
20660_ACEOF
20661
20662
20663else
20664
20665$as_echo "#define error_t int" >>confdefs.h
20666
20667
20668$as_echo "#define __error_t_defined 1" >>confdefs.h
20669
20670fi
20671
20672
20673ARGZ_H=
20674for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20675 argz_next argz_stringify
20676do :
20677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20678ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020679if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020680 cat >>confdefs.h <<_ACEOF
20681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20682_ACEOF
20683
20684else
20685 ARGZ_H=argz.h;
20686
20687 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20688
20689fi
20690done
20691
20692
20693if test -z "$ARGZ_H"; then :
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20695$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020696if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020697 $as_echo_n "(cached) " >&6
20698else
20699 case $host_os in #(
20700 *cygwin*)
20701 lt_cv_sys_argz_works=no
20702 if test "$cross_compiling" != no; then
20703 lt_cv_sys_argz_works="guessing no"
20704 else
20705 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20706 save_IFS=$IFS
20707 IFS=-.
20708 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20709 IFS=$save_IFS
20710 lt_os_major=${2-0}
20711 lt_os_minor=${3-0}
20712 lt_os_micro=${4-0}
20713 if test "$lt_os_major" -gt 1 \
20714 || { test "$lt_os_major" -eq 1 \
20715 && { test "$lt_os_minor" -gt 5 \
20716 || { test "$lt_os_minor" -eq 5 \
20717 && test "$lt_os_micro" -gt 24; }; }; }; then
20718 lt_cv_sys_argz_works=yes
20719 fi
20720 fi
20721 ;; #(
20722 *) lt_cv_sys_argz_works=yes ;;
20723 esac
20724fi
20725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20726$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020727 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020728
20729$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20730
20731else
20732 ARGZ_H=argz.h
20733
20734
20735 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20736
20737fi
20738fi
20739
20740
20741
20742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20743$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020744if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020745 $as_echo_n "(cached) " >&6
20746else
20747 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20748 libltdl_cv_preloaded_symbols=yes
20749 else
20750 libltdl_cv_preloaded_symbols=no
20751 fi
20752
20753fi
20754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20755$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20756if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20757
20758$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20759
20760fi
20761
20762# Set options
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774# Check whether --with-included_ltdl was given.
20775if test "${with_included_ltdl+set}" = set; then :
20776 withval=$with_included_ltdl;
20777fi
20778
20779
20780if test "x$with_included_ltdl" != xyes; then
20781 # We are not being forced to use the included libltdl sources, so
20782 # decide whether there is a useful installed version we can use.
20783 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20784
20785"
cristyda16f162011-02-19 23:52:17 +000020786if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020787 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20788 #include <ltdl.h>
20789"
cristyda16f162011-02-19 23:52:17 +000020790if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20792$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020793if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020794 $as_echo_n "(cached) " >&6
20795else
20796 ac_check_lib_save_LIBS=$LIBS
20797LIBS="-lltdl $LIBS"
20798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799/* end confdefs.h. */
20800
20801/* Override any GCC internal prototype to avoid an error.
20802 Use char because int might match the return type of a GCC
20803 builtin and then its argument prototype would still apply. */
20804#ifdef __cplusplus
20805extern "C"
20806#endif
20807char lt_dladvise_preload ();
20808int
20809main ()
20810{
20811return lt_dladvise_preload ();
20812 ;
20813 return 0;
20814}
20815_ACEOF
20816if ac_fn_c_try_link "$LINENO"; then :
20817 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20818else
20819 ac_cv_lib_ltdl_lt_dladvise_preload=no
20820fi
20821rm -f core conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
20823LIBS=$ac_check_lib_save_LIBS
20824fi
20825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20826$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020827if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020828 with_included_ltdl=no
20829else
20830 with_included_ltdl=yes
20831fi
20832
20833else
20834 with_included_ltdl=yes
20835fi
20836
20837else
20838 with_included_ltdl=yes
20839fi
20840
20841
20842fi
20843
20844
20845
20846
20847# Check whether --with-ltdl_include was given.
20848if test "${with_ltdl_include+set}" = set; then :
20849 withval=$with_ltdl_include;
20850fi
20851
20852
20853if test -n "$with_ltdl_include"; then
20854 if test -f "$with_ltdl_include/ltdl.h"; then :
20855 else
cristy98dddb52010-11-04 00:30:15 +000020856 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020857 fi
20858else
20859 with_ltdl_include=no
20860fi
20861
20862
20863# Check whether --with-ltdl_lib was given.
20864if test "${with_ltdl_lib+set}" = set; then :
20865 withval=$with_ltdl_lib;
20866fi
20867
20868
20869if test -n "$with_ltdl_lib"; then
20870 if test -f "$with_ltdl_lib/libltdl.la"; then :
20871 else
cristy98dddb52010-11-04 00:30:15 +000020872 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020873 fi
20874else
20875 with_ltdl_lib=no
20876fi
20877
20878case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20879 ,yes,no,no,)
20880 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020881 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020882 "") enable_ltdl_convenience=yes
20883 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20884esac
20885LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20886LTDLDEPS=$LIBLTDL
20887LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20888
20889
20890
20891
20892
20893# For backwards non-gettext consistent compatibility...
20894INCLTDL="$LTDLINCL"
20895
20896
20897 ;;
20898 ,no,no,no,)
20899 # If the included ltdl is not to be used, then use the
20900 # preinstalled libltdl we found.
20901
20902$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20903
20904 LIBLTDL=-lltdl
20905 LTDLDEPS=
20906 LTDLINCL=
20907 ;;
20908 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020909 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020910 ;;
20911 *) with_included_ltdl=no
20912 LIBLTDL="-L$with_ltdl_lib -lltdl"
20913 LTDLDEPS=
20914 LTDLINCL="-I$with_ltdl_include"
20915 ;;
20916esac
20917INCLTDL="$LTDLINCL"
20918
20919# Report our decision...
20920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20921$as_echo_n "checking where to find libltdl headers... " >&6; }
20922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20923$as_echo "$LTDLINCL" >&6; }
20924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20925$as_echo_n "checking where to find libltdl library... " >&6; }
20926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20927$as_echo "$LIBLTDL" >&6; }
20928
20929
20930
20931# Check whether --enable-ltdl-install was given.
20932if test "${enable_ltdl_install+set}" = set; then :
20933 enableval=$enable_ltdl_install;
20934fi
20935
20936
20937case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20938 *yes*) ;;
20939 *) enable_ltdl_convenience=yes ;;
20940esac
20941
20942 if test x"${enable_ltdl_install-no}" != xno; then
20943 INSTALL_LTDL_TRUE=
20944 INSTALL_LTDL_FALSE='#'
20945else
20946 INSTALL_LTDL_TRUE='#'
20947 INSTALL_LTDL_FALSE=
20948fi
20949
20950 if test x"${enable_ltdl_convenience-no}" != xno; then
20951 CONVENIENCE_LTDL_TRUE=
20952 CONVENIENCE_LTDL_FALSE='#'
20953else
20954 CONVENIENCE_LTDL_TRUE='#'
20955 CONVENIENCE_LTDL_FALSE=
20956fi
20957
20958
20959
20960
20961
20962
cristy73bd4a52010-10-05 11:24:23 +000020963# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20964# the user used. This is so that ltdl.h can pick up the parent projects
20965# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20966# definitions required by ltdl.c.
20967# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20968
20969
20970
20971for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20972do :
20973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20974ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20975"
cristy98dddb52010-11-04 00:30:15 +000020976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020977 cat >>confdefs.h <<_ACEOF
20978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979_ACEOF
20980
20981fi
20982
20983done
20984
20985
20986for ac_func in closedir opendir readdir
20987do :
20988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20989ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020990if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020991 cat >>confdefs.h <<_ACEOF
20992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20993_ACEOF
20994
20995else
20996
20997
20998 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20999
21000fi
21001done
21002
21003for ac_func in strlcat strlcpy
21004do :
21005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21006ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021007if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021008 cat >>confdefs.h <<_ACEOF
21009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21010_ACEOF
21011
21012else
21013
21014
21015 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21016
21017fi
21018done
21019
21020
21021
21022cat >>confdefs.h <<_ACEOF
21023#define LT_LIBEXT "$libext"
21024_ACEOF
21025
21026
cristyda16f162011-02-19 23:52:17 +000021027name=
21028eval "lt_libprefix=\"$libname_spec\""
21029
21030cat >>confdefs.h <<_ACEOF
21031#define LT_LIBPREFIX "$lt_libprefix"
21032_ACEOF
21033
21034
cristy73bd4a52010-10-05 11:24:23 +000021035name=ltdl
cristyda16f162011-02-19 23:52:17 +000021036eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021037
21038
21039
21040
21041
21042
21043
21044
21045# Only expand once:
21046
21047
cristy3ed852e2009-09-05 21:47:34 +000021048
21049# Check to see if building shared libraries
21050libtool_build_shared_libs='no'
21051if test "$enable_shared" = 'yes'; then
21052 libtool_build_shared_libs='yes'
21053fi
21054
21055# Check to see if building static libraries
21056libtool_build_static_libs='no'
21057if test "$enable_static" = 'yes'; then
21058 libtool_build_static_libs='yes'
21059fi
21060
cristy73bd4a52010-10-05 11:24:23 +000021061 if test "${libtool_build_shared_libs}" = 'yes'; then
21062 WITH_SHARED_LIBS_TRUE=
21063 WITH_SHARED_LIBS_FALSE='#'
21064else
21065 WITH_SHARED_LIBS_TRUE='#'
21066 WITH_SHARED_LIBS_FALSE=
21067fi
21068
cristy3ed852e2009-09-05 21:47:34 +000021069#
21070# Enable support for building loadable modules
21071#
21072
21073# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021074if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021075 withval=$with_modules; with_modules=$withval
21076else
cristy5a1cefd2010-01-06 20:42:35 +000021077 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021078fi
21079
21080
21081# Only allow building loadable modules if we are building shared libraries
21082if test "$with_modules" != 'no' ; then
21083 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021084 { $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 +000021085$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21086 with_modules='no'
21087 fi
21088fi
21089if test "$with_modules" != 'no'; then
21090
cristy8b350f62009-11-15 23:12:43 +000021091$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021092
21093fi
cristy73bd4a52010-10-05 11:24:23 +000021094 if test "$with_modules" != 'no'; then
21095 WITH_MODULES_TRUE=
21096 WITH_MODULES_FALSE='#'
21097else
21098 WITH_MODULES_TRUE='#'
21099 WITH_MODULES_FALSE=
21100fi
21101
cristy3ed852e2009-09-05 21:47:34 +000021102
21103# Enable building/use of libltdl if we are building shared libraries regardless
21104# of whether modules are built or not.
21105with_ltdl='no'
21106if test "$libtool_build_shared_libs" != 'no'; then
21107 with_ltdl='yes'
21108fi
21109
cristy73bd4a52010-10-05 11:24:23 +000021110 if test "$with_ltdl" != 'no'; then
21111 WITH_LTDL_TRUE=
21112 WITH_LTDL_FALSE='#'
21113else
21114 WITH_LTDL_TRUE='#'
21115 WITH_LTDL_FALSE=
21116fi
21117
cristy3ed852e2009-09-05 21:47:34 +000021118if test "$with_ltdl" != 'no'; then
21119
cristy8b350f62009-11-15 23:12:43 +000021120$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021121
21122
21123 # Set DLLDFLAGS
21124 if test X"$enable_shared" = Xyes; then
21125 DLLDFLAGS=-export-dynamic
21126
21127 fi
21128fi
21129
21130# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021131# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021132# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021133if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021134 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21135else
21136 enable_delegate_build='no'
21137fi
21138
21139
21140# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021141if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021142 enableval=$enable_deprecated; enable_deprecated=$enableval
21143else
21144 enable_deprecated='no'
21145fi
21146
21147
21148if test "$enable_deprecated" = 'yes'; then
21149
cristy8b350f62009-11-15 23:12:43 +000021150$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021151
21152else
21153 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21154fi
21155
21156# Build a version of ImageMagick which operates uninstalled.
21157# Used to build distributions located via MAGICK_HOME / executable path
21158# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021159if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021160 enableval=$enable_installed; enable_installed=$enableval
21161else
21162 enable_installed='yes'
21163fi
21164
21165
21166if test "$enable_installed" = 'yes'; then
21167
cristy8b350f62009-11-15 23:12:43 +000021168$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021169
21170else
21171 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21172fi
21173
21174# Permit enciphering and deciphering image pixels.
21175# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021176if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021177 enableval=$enable_cipher; enable_cipher=$enableval
21178else
21179 enable_cipher='yes'
21180fi
21181
21182
21183if test "$enable_cipher" = 'yes'; then
21184
cristy8b350f62009-11-15 23:12:43 +000021185$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021186
21187fi
21188
cristy6e3607c2011-09-13 13:59:17 +000021189# Build a zero-configuration version of ImageMagick.
21190# Check whether --enable-zero-configuration was given.
21191if test "${enable_zero_configuration+set}" = set; then :
21192 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021193else
cristy6e3607c2011-09-13 13:59:17 +000021194 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021195fi
21196
21197
cristy6e3607c2011-09-13 13:59:17 +000021198if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021199
cristy6e3607c2011-09-13 13:59:17 +000021200$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021201
cristy81af5702011-09-13 14:20:58 +000021202 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021203fi
21204
21205# Build a high dynamic range version of ImageMagick.
21206# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021207if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021208 enableval=$enable_hdri; enable_hdri=$enableval
21209else
21210 enable_hdri='no'
21211fi
21212
21213
21214MAGICK_HDRI=""
21215if test "$enable_hdri" = 'yes'; then
21216 MAGICK_HDRI="HDRI"
21217
cristy8b350f62009-11-15 23:12:43 +000021218$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021219
cristyfd9dcd42010-08-08 18:07:02 +000021220 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021221fi
21222
cristy3ed852e2009-09-05 21:47:34 +000021223# Build a version of ImageMagick with assert statements.
21224# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021225if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 enableval=$enable_assert; enable_assert=$enableval
21227else
21228 enable_assert='yes'
21229fi
21230
21231
21232if test "$enable_assert" = 'no'; then
21233
cristy8b350f62009-11-15 23:12:43 +000021234$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021235
21236fi
21237
cristya448bd22011-10-14 12:38:13 +000021238# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021239
21240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21241$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21242 # Check whether --enable-maintainer-mode was given.
21243if test "${enable_maintainer_mode+set}" = set; then :
21244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21245else
21246 USE_MAINTAINER_MODE=no
21247fi
21248
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21250$as_echo "$USE_MAINTAINER_MODE" >&6; }
21251 if test $USE_MAINTAINER_MODE = yes; then
21252 MAINTAINER_MODE_TRUE=
21253 MAINTAINER_MODE_FALSE='#'
21254else
21255 MAINTAINER_MODE_TRUE='#'
21256 MAINTAINER_MODE_FALSE=
21257fi
21258
21259 MAINT=$MAINTAINER_MODE_TRUE
21260
21261
cristy3ed852e2009-09-05 21:47:34 +000021262
cristy3ed852e2009-09-05 21:47:34 +000021263# Enable ccmalloc memory debugging support
21264# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021265if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021266 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21267else
21268 enable_ccmalloc='no'
21269fi
21270
21271
21272# Enable Electric Fence memory debugging support
21273# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021274if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021275 enableval=$enable_efence; enable_efence=$enableval
21276else
21277 enable_efence='no'
21278fi
21279
21280
21281# Enable prof-based profiling support
21282# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021283if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021284 enableval=$enable_prof; enable_prof=$enableval
21285else
21286 enable_prof='no'
21287fi
21288
21289
21290# Enable gprof-based profiling support
21291# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021292if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021293 enableval=$enable_gprof; enable_gprof=$enableval
21294else
21295 enable_gprof='no'
21296fi
21297
21298
21299# Enable gcov-based profiling support
21300# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021301if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021302 enableval=$enable_gcov; enable_gcov=$enableval
21303else
21304 enable_gcov='no'
21305fi
21306
21307
21308enable_profiling='no'
21309if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21310 enable_profiling='yes'
21311 if test "$libtool_build_shared_libs" = 'yes'; then
21312 echo "Warning: Can not profile code using shared libraries"
21313 fi
21314fi
21315
21316# Magick API method prefix
21317
21318# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021319if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021320 withval=$with_method_prefix; with_method_prefix=$enableval
21321else
21322 with_method_prefix=''
21323fi
21324
21325
21326if test "$with_method_prefix" != ''; then
21327
21328cat >>confdefs.h <<_ACEOF
21329#define NAMESPACE_PREFIX $with_method_prefix
21330_ACEOF
21331
21332fi
21333
21334# Number of bits in a Quantum
21335
21336# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021337if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021338 withval=$with_quantum_depth; with_quantum_depth=$withval
21339else
21340 with_quantum_depth=16
21341fi
21342
21343
21344if test "$with_quantum_depth" != '8'; then
21345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21346fi
21347
21348case "${with_quantum_depth}" in
21349 8 ) ;;
21350 16 ) ;;
21351 32 ) ;;
21352 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021353 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021354esac
21355QUANTUM_DEPTH="$with_quantum_depth"
21356
21357cat >>confdefs.h <<_ACEOF
21358#define QUANTUM_DEPTH $QUANTUM_DEPTH
21359_ACEOF
21360
21361
21362# Set pixel cache threshold
21363
21364# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021365if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021366 withval=$with_cache; with_cache=$withval
21367else
21368 with_cache=''
21369fi
21370
21371
21372if test "$with_cache" != ''; then
21373
21374cat >>confdefs.h <<_ACEOF
21375#define PixelCacheThreshold $with_cache
21376_ACEOF
21377
21378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21379fi
21380
21381# Disable/Enable support for full delegate paths
21382
21383# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021384if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021385 withval=$with_frozenpaths; with_frozenpaths=$withval
21386else
21387 with_frozenpaths='no'
21388fi
21389
21390
21391# Enable build/install of Magick++
21392
21393# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021394if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021395 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21396else
21397 with_magick_plus_plus='yes'
21398fi
21399
21400
21401# Disable build/install of PerlMagick.
21402
21403# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021404if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021405 withval=$with_perl; with_perl=$withval
21406else
cristyb5f4e2f2010-04-25 00:49:11 +000021407 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021408fi
21409
21410
21411# Options to pass when configuring PerlMagick
21412
21413# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021414if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021415 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021416fi
21417
21418
cristy3ed852e2009-09-05 21:47:34 +000021419
21420# Enable umem, object-caching memory allocation library.
21421
21422# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021423if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 withval=$with_umem; with_umem=$withval
21425else
21426 with_umem='no'
21427fi
21428
21429if test "$with_umem" != 'yes' ; then
21430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21431fi
21432
21433#
21434# Specify path to shared libstdc++ if not in normal location
21435#
21436
21437# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021438if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021439 withval=$with_libstdc; with_libstdc=$withval
21440else
21441 with_libstdc=''
21442fi
21443
21444
21445if test "$with_libstdc" != ''; then
21446 if test -d "$with_libstdc"; then
21447 LIBSTDCLDFLAGS="-L$with_libstdc"
21448 fi
21449fi
21450
21451
21452# Does gcc required -traditional?
21453if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021455$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021456if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021457 $as_echo_n "(cached) " >&6
21458else
21459 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021461/* end confdefs.h. */
21462#include <sgtty.h>
21463Autoconf TIOCGETP
21464_ACEOF
21465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021466 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 ac_cv_prog_gcc_traditional=yes
21468else
21469 ac_cv_prog_gcc_traditional=no
21470fi
21471rm -f conftest*
21472
21473
21474 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021476/* end confdefs.h. */
21477#include <termio.h>
21478Autoconf TCGETA
21479_ACEOF
21480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021481 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021482 ac_cv_prog_gcc_traditional=yes
21483fi
21484rm -f conftest*
21485
21486 fi
21487fi
cristy8b350f62009-11-15 23:12:43 +000021488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021489$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21490 if test $ac_cv_prog_gcc_traditional = yes; then
21491 CC="$CC -traditional"
21492 fi
21493fi
21494
21495
21496########
21497#
21498# Set defines required to build DLLs and modules using MinGW
21499#
21500########
21501# These options are set for multi-thread DLL module build
21502# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21503# module: _DLL
21504# executable/Magick++: _DLL _MAGICKMOD_
21505MODULE_EXTRA_CPPFLAGS=''
21506LIBRARY_EXTRA_CPPFLAGS=''
21507if test "${native_win32_build}" = 'yes'; then
21508 if test "${libtool_build_shared_libs}" = 'yes'; then
21509 CPPFLAGS="$CPPFLAGS -D_DLL"
21510 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21511 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21512 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21513 if test "$with_modules" = 'yes'; then
21514 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21515 else
21516 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21517 fi
21518 else
21519 CPPFLAGS="$CPPFLAGS -D_LIB"
21520 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21521 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21522 fi
21523 if test "$with_threads" = 'yes'; then
21524 CPPFLAGS="$CPPFLAGS -D_MT"
21525 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21526 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21527 fi
21528fi
21529
21530
21531
21532# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021534$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021535if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021536 $as_echo_n "(cached) " >&6
21537else
cristy8b350f62009-11-15 23:12:43 +000021538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021539/* end confdefs.h. */
21540#include <stdlib.h>
21541#include <stdarg.h>
21542#include <string.h>
21543#include <float.h>
21544
21545int
21546main ()
21547{
21548
21549 ;
21550 return 0;
21551}
21552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021553if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 ac_cv_header_stdc=yes
21555else
cristy8b350f62009-11-15 23:12:43 +000021556 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021557fi
cristy3ed852e2009-09-05 21:47:34 +000021558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559
21560if test $ac_cv_header_stdc = yes; then
21561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021563/* end confdefs.h. */
21564#include <string.h>
21565
21566_ACEOF
21567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021568 $EGREP "memchr" >/dev/null 2>&1; then :
21569
cristy3ed852e2009-09-05 21:47:34 +000021570else
21571 ac_cv_header_stdc=no
21572fi
21573rm -f conftest*
21574
21575fi
21576
21577if test $ac_cv_header_stdc = yes; then
21578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021580/* end confdefs.h. */
21581#include <stdlib.h>
21582
21583_ACEOF
21584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021585 $EGREP "free" >/dev/null 2>&1; then :
21586
cristy3ed852e2009-09-05 21:47:34 +000021587else
21588 ac_cv_header_stdc=no
21589fi
21590rm -f conftest*
21591
21592fi
21593
21594if test $ac_cv_header_stdc = yes; then
21595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021596 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021597 :
21598else
cristy8b350f62009-11-15 23:12:43 +000021599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021600/* end confdefs.h. */
21601#include <ctype.h>
21602#include <stdlib.h>
21603#if ((' ' & 0x0FF) == 0x020)
21604# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21605# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21606#else
21607# define ISLOWER(c) \
21608 (('a' <= (c) && (c) <= 'i') \
21609 || ('j' <= (c) && (c) <= 'r') \
21610 || ('s' <= (c) && (c) <= 'z'))
21611# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21612#endif
21613
21614#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21615int
21616main ()
21617{
21618 int i;
21619 for (i = 0; i < 256; i++)
21620 if (XOR (islower (i), ISLOWER (i))
21621 || toupper (i) != TOUPPER (i))
21622 return 2;
21623 return 0;
21624}
21625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021626if ac_fn_c_try_run "$LINENO"; then :
21627
cristy3ed852e2009-09-05 21:47:34 +000021628else
cristy8b350f62009-11-15 23:12:43 +000021629 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021630fi
cristy8b350f62009-11-15 23:12:43 +000021631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21632 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021633fi
21634
cristy3ed852e2009-09-05 21:47:34 +000021635fi
21636fi
cristy8b350f62009-11-15 23:12:43 +000021637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021638$as_echo "$ac_cv_header_stdc" >&6; }
21639if test $ac_cv_header_stdc = yes; then
21640
cristy8b350f62009-11-15 23:12:43 +000021641$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021642
21643fi
21644
21645if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021646 { $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 +000021647 header files. Compilation cannot proceed. Please install the ANSI C
21648 headers and rerun this script." >&5
21649$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21650 header files. Compilation cannot proceed. Please install the ANSI C
21651 headers and rerun this script." >&2;};
21652fi
cristya0b81c32010-01-22 02:54:33 +000021653
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21655$as_echo_n "checking whether to enable assertions... " >&6; }
21656 # Check whether --enable-assert was given.
21657if test "${enable_assert+set}" = set; then :
21658 enableval=$enable_assert; ac_enable_assert=$enableval
21659 if test "x$enableval" = xno; then :
21660
21661$as_echo "#define NDEBUG 1" >>confdefs.h
21662
21663elif test "x$enableval" != xyes; then :
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21665$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21666 ac_enable_assert=yes
21667fi
21668else
21669 ac_enable_assert=yes
21670fi
21671
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21673$as_echo "$ac_enable_assert" >&6; }
21674
cristy3ed852e2009-09-05 21:47:34 +000021675ac_header_dirent=no
21676for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21677 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021680if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 $as_echo_n "(cached) " >&6
21682else
cristy8b350f62009-11-15 23:12:43 +000021683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021684/* end confdefs.h. */
21685#include <sys/types.h>
21686#include <$ac_hdr>
21687
21688int
21689main ()
21690{
21691if ((DIR *) 0)
21692return 0;
21693 ;
21694 return 0;
21695}
21696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021697if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021698 eval "$as_ac_Header=yes"
21699else
cristy8b350f62009-11-15 23:12:43 +000021700 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021701fi
cristy3ed852e2009-09-05 21:47:34 +000021702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21703fi
cristy8b350f62009-11-15 23:12:43 +000021704eval ac_res=\$$as_ac_Header
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021706$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021708 cat >>confdefs.h <<_ACEOF
21709#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21710_ACEOF
21711
21712ac_header_dirent=$ac_hdr; break
21713fi
21714
21715done
21716# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21717if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021719$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021720if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 $as_echo_n "(cached) " >&6
21722else
21723 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021725/* end confdefs.h. */
21726
21727/* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
21730#ifdef __cplusplus
21731extern "C"
21732#endif
21733char opendir ();
21734int
21735main ()
21736{
21737return opendir ();
21738 ;
21739 return 0;
21740}
21741_ACEOF
21742for ac_lib in '' dir; do
21743 if test -z "$ac_lib"; then
21744 ac_res="none required"
21745 else
21746 ac_res=-l$ac_lib
21747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21748 fi
cristy8b350f62009-11-15 23:12:43 +000021749 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021750 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021751fi
cristy8b350f62009-11-15 23:12:43 +000021752rm -f core conftest.err conftest.$ac_objext \
21753 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021754 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021755 break
21756fi
21757done
cristyda16f162011-02-19 23:52:17 +000021758if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021759
cristy3ed852e2009-09-05 21:47:34 +000021760else
21761 ac_cv_search_opendir=no
21762fi
21763rm conftest.$ac_ext
21764LIBS=$ac_func_search_save_LIBS
21765fi
cristy8b350f62009-11-15 23:12:43 +000021766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021767$as_echo "$ac_cv_search_opendir" >&6; }
21768ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021769if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21771
21772fi
21773
21774else
cristy8b350f62009-11-15 23:12:43 +000021775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021776$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021777if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 $as_echo_n "(cached) " >&6
21779else
21780 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021782/* end confdefs.h. */
21783
21784/* Override any GCC internal prototype to avoid an error.
21785 Use char because int might match the return type of a GCC
21786 builtin and then its argument prototype would still apply. */
21787#ifdef __cplusplus
21788extern "C"
21789#endif
21790char opendir ();
21791int
21792main ()
21793{
21794return opendir ();
21795 ;
21796 return 0;
21797}
21798_ACEOF
21799for ac_lib in '' x; do
21800 if test -z "$ac_lib"; then
21801 ac_res="none required"
21802 else
21803 ac_res=-l$ac_lib
21804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21805 fi
cristy8b350f62009-11-15 23:12:43 +000021806 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021808fi
cristy8b350f62009-11-15 23:12:43 +000021809rm -f core conftest.err conftest.$ac_objext \
21810 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021811 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021812 break
21813fi
21814done
cristyda16f162011-02-19 23:52:17 +000021815if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021816
cristy3ed852e2009-09-05 21:47:34 +000021817else
21818 ac_cv_search_opendir=no
21819fi
21820rm conftest.$ac_ext
21821LIBS=$ac_func_search_save_LIBS
21822fi
cristy8b350f62009-11-15 23:12:43 +000021823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021824$as_echo "$ac_cv_search_opendir" >&6; }
21825ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021826if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21828
21829fi
21830
21831fi
21832
21833
21834# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021835for 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 +000021836do :
21837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21838ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021840 cat >>confdefs.h <<_ACEOF
21841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21842_ACEOF
21843
21844fi
21845
21846done
21847
21848
21849########
21850#
21851# Checks for typedefs, structures, and compiler characteristics.
21852#
21853########
21854
cristy8b350f62009-11-15 23:12:43 +000021855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021856$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021857if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021858 $as_echo_n "(cached) " >&6
21859else
cristy8b350f62009-11-15 23:12:43 +000021860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021861/* end confdefs.h. */
21862
21863#include <stdbool.h>
21864#ifndef bool
21865 "error: bool is not defined"
21866#endif
21867#ifndef false
21868 "error: false is not defined"
21869#endif
21870#if false
21871 "error: false is not 0"
21872#endif
21873#ifndef true
21874 "error: true is not defined"
21875#endif
21876#if true != 1
21877 "error: true is not 1"
21878#endif
21879#ifndef __bool_true_false_are_defined
21880 "error: __bool_true_false_are_defined is not defined"
21881#endif
21882
21883 struct s { _Bool s: 1; _Bool t; } s;
21884
21885 char a[true == 1 ? 1 : -1];
21886 char b[false == 0 ? 1 : -1];
21887 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21888 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021889 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021890 char f[(_Bool) 0.0 == false ? 1 : -1];
21891 char g[true];
21892 char h[sizeof (_Bool)];
21893 char i[sizeof s.t];
21894 enum { j = false, k = true, l = false * true, m = true * 256 };
21895 /* The following fails for
21896 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21897 _Bool n[m];
21898 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21899 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021900 /* Catch a bug in an HP-UX C compiler. See
21901 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21902 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21903 */
21904 _Bool q = true;
21905 _Bool *pq = &q;
21906
21907int
21908main ()
21909{
21910
cristyda16f162011-02-19 23:52:17 +000021911 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021912 *pq |= q;
21913 *pq |= ! q;
21914 /* Refer to every declared value, to avoid compiler optimizations. */
21915 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21916 + !m + !n + !o + !p + !q + !pq);
21917
21918 ;
21919 return 0;
21920}
21921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021923 ac_cv_header_stdbool_h=yes
21924else
cristy8b350f62009-11-15 23:12:43 +000021925 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021926fi
cristy3ed852e2009-09-05 21:47:34 +000021927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928fi
cristy8b350f62009-11-15 23:12:43 +000021929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021930$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021931ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021932if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021933
21934cat >>confdefs.h <<_ACEOF
21935#define HAVE__BOOL 1
21936_ACEOF
21937
21938
21939fi
21940
21941if test $ac_cv_header_stdbool_h = yes; then
21942
cristy8b350f62009-11-15 23:12:43 +000021943$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021944
21945fi
21946
cristy8b350f62009-11-15 23:12:43 +000021947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021948$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021949if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021950 $as_echo_n "(cached) " >&6
21951else
cristy8b350f62009-11-15 23:12:43 +000021952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021953/* end confdefs.h. */
21954
21955int
21956main ()
21957{
21958
21959volatile int x;
21960int * volatile y = (int *) 0;
21961return !x && !y;
21962 ;
21963 return 0;
21964}
21965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021966if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021967 ac_cv_c_volatile=yes
21968else
cristy8b350f62009-11-15 23:12:43 +000021969 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021970fi
cristy3ed852e2009-09-05 21:47:34 +000021971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972fi
cristy8b350f62009-11-15 23:12:43 +000021973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo "$ac_cv_c_volatile" >&6; }
21975if test $ac_cv_c_volatile = no; then
21976
cristy8b350f62009-11-15 23:12:43 +000021977$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021978
21979fi
21980
cristy8b350f62009-11-15 23:12:43 +000021981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021982$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021983if ${ac_cv_c_stringize+:} 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#define x(y) #y
21989
21990char *s = x(teststring);
21991_ACEOF
21992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021993 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021994 ac_cv_c_stringize=no
21995else
21996 ac_cv_c_stringize=yes
21997fi
21998rm -f conftest*
21999
22000fi
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo "$ac_cv_c_stringize" >&6; }
22003if test $ac_cv_c_stringize = yes; then
22004
cristy8b350f62009-11-15 23:12:43 +000022005$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022006
22007fi
22008
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022011if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022012 $as_echo_n "(cached) " >&6
22013else
cristy8b350f62009-11-15 23:12:43 +000022014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022015/* end confdefs.h. */
22016#include <sys/types.h>
22017#include <sys/stat.h>
22018
22019#if defined S_ISBLK && defined S_IFDIR
22020extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22021#endif
22022
22023#if defined S_ISBLK && defined S_IFCHR
22024extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22025#endif
22026
22027#if defined S_ISLNK && defined S_IFREG
22028extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22029#endif
22030
22031#if defined S_ISSOCK && defined S_IFREG
22032extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22033#endif
22034
22035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022036if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022037 ac_cv_header_stat_broken=no
22038else
cristy8b350f62009-11-15 23:12:43 +000022039 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022040fi
cristy3ed852e2009-09-05 21:47:34 +000022041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042fi
cristy8b350f62009-11-15 23:12:43 +000022043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022044$as_echo "$ac_cv_header_stat_broken" >&6; }
22045if test $ac_cv_header_stat_broken = yes; then
22046
cristy8b350f62009-11-15 23:12:43 +000022047$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022048
22049fi
22050
cristy8b350f62009-11-15 23:12:43 +000022051{ $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 +000022052$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022053if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022054 $as_echo_n "(cached) " >&6
22055else
cristy8b350f62009-11-15 23:12:43 +000022056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022057/* end confdefs.h. */
22058#include <sys/types.h>
22059#include <sys/time.h>
22060#include <time.h>
22061
22062int
22063main ()
22064{
22065if ((struct tm *) 0)
22066return 0;
22067 ;
22068 return 0;
22069}
22070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022071if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022072 ac_cv_header_time=yes
22073else
cristy8b350f62009-11-15 23:12:43 +000022074 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022075fi
cristy3ed852e2009-09-05 21:47:34 +000022076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22077fi
cristy8b350f62009-11-15 23:12:43 +000022078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022079$as_echo "$ac_cv_header_time" >&6; }
22080if test $ac_cv_header_time = yes; then
22081
cristy8b350f62009-11-15 23:12:43 +000022082$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022083
22084fi
22085
cristy8b350f62009-11-15 23:12:43 +000022086{ $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 +000022087$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022088if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022089 $as_echo_n "(cached) " >&6
22090else
cristy8b350f62009-11-15 23:12:43 +000022091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022092/* end confdefs.h. */
22093#include <sys/types.h>
22094#include <time.h>
22095
22096int
22097main ()
22098{
22099struct tm tm;
22100 int *p = &tm.tm_sec;
22101 return !p;
22102 ;
22103 return 0;
22104}
22105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022106if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022107 ac_cv_struct_tm=time.h
22108else
cristy8b350f62009-11-15 23:12:43 +000022109 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022110fi
cristy3ed852e2009-09-05 21:47:34 +000022111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112fi
cristy8b350f62009-11-15 23:12:43 +000022113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo "$ac_cv_struct_tm" >&6; }
22115if test $ac_cv_struct_tm = sys/time.h; then
22116
cristy8b350f62009-11-15 23:12:43 +000022117$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022118
22119fi
22120
cristy92703d82010-04-26 00:18:18 +000022121ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22122#include <$ac_cv_struct_tm>
22123
22124"
cristyda16f162011-02-19 23:52:17 +000022125if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022126
22127cat >>confdefs.h <<_ACEOF
22128#define HAVE_STRUCT_TM_TM_ZONE 1
22129_ACEOF
22130
22131
22132fi
22133
22134if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22135
22136$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22137
22138else
22139 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22140"
cristyda16f162011-02-19 23:52:17 +000022141if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022142 ac_have_decl=1
22143else
22144 ac_have_decl=0
22145fi
22146
22147cat >>confdefs.h <<_ACEOF
22148#define HAVE_DECL_TZNAME $ac_have_decl
22149_ACEOF
22150
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22152$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022153if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022154 $as_echo_n "(cached) " >&6
22155else
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157/* end confdefs.h. */
22158#include <time.h>
22159#if !HAVE_DECL_TZNAME
22160extern char *tzname[];
22161#endif
22162
22163int
22164main ()
22165{
22166return tzname[0][0];
22167 ;
22168 return 0;
22169}
22170_ACEOF
22171if ac_fn_c_try_link "$LINENO"; then :
22172 ac_cv_var_tzname=yes
22173else
22174 ac_cv_var_tzname=no
22175fi
22176rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22178fi
22179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22180$as_echo "$ac_cv_var_tzname" >&6; }
22181 if test $ac_cv_var_tzname = yes; then
22182
22183$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22184
22185 fi
22186fi
22187
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022190if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022191 $as_echo_n "(cached) " >&6
22192else
22193 echo '#! /bin/cat
22194exit 69
22195' >conftest
22196chmod u+x conftest
22197(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22198if test $? -ne 69; then
22199 ac_cv_sys_interpreter=yes
22200else
22201 ac_cv_sys_interpreter=no
22202fi
22203rm -f conftest
22204fi
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo "$ac_cv_sys_interpreter" >&6; }
22207interpval=$ac_cv_sys_interpreter
22208
22209
cristy3ed852e2009-09-05 21:47:34 +000022210# If the C compiler supports the keyword inline, do nothing. Otherwise
22211# define inline to __inline__ or __inline if it accepts one of those,
22212# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022214$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022215if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 $as_echo_n "(cached) " >&6
22217else
22218 ac_cv_c_inline=no
22219for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022221/* end confdefs.h. */
22222#ifndef __cplusplus
22223typedef int foo_t;
22224static $ac_kw foo_t static_foo () {return 0; }
22225$ac_kw foo_t foo () {return 0; }
22226#endif
22227
22228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022229if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022230 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022231fi
cristy3ed852e2009-09-05 21:47:34 +000022232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 test "$ac_cv_c_inline" != no && break
22234done
22235
22236fi
cristy8b350f62009-11-15 23:12:43 +000022237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022238$as_echo "$ac_cv_c_inline" >&6; }
22239
cristy3ed852e2009-09-05 21:47:34 +000022240case $ac_cv_c_inline in
22241 inline | yes) ;;
22242 *)
22243 case $ac_cv_c_inline in
22244 no) ac_val=;;
22245 *) ac_val=$ac_cv_c_inline;;
22246 esac
22247 cat >>confdefs.h <<_ACEOF
22248#ifndef __cplusplus
22249#define inline $ac_val
22250#endif
22251_ACEOF
22252 ;;
22253esac
22254
22255
22256# If the C compiler supports the keyword restrict, do nothing. Otherwise
22257# define restrict to __restrict__ or __restrict if it accepts one of those,
22258# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022260$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022261if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022262 $as_echo_n "(cached) " >&6
22263else
22264 ac_cv_c_restrict=no
22265 # The order here caters to the fact that C++ does not require restrict.
22266 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022268/* end confdefs.h. */
22269typedef int * int_ptr;
22270 int foo (int_ptr $ac_kw ip) {
22271 return ip[0];
22272 }
22273int
22274main ()
22275{
22276int s[1];
22277 int * $ac_kw t = s;
22278 t[0] = 0;
22279 return foo(t)
22280 ;
22281 return 0;
22282}
22283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022284if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022285 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022286fi
cristy3ed852e2009-09-05 21:47:34 +000022287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 test "$ac_cv_c_restrict" != no && break
22289 done
22290
22291fi
cristy8b350f62009-11-15 23:12:43 +000022292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022293$as_echo "$ac_cv_c_restrict" >&6; }
22294
cristy3ed852e2009-09-05 21:47:34 +000022295 case $ac_cv_c_restrict in
22296 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022297 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022298 ;;
22299 *) cat >>confdefs.h <<_ACEOF
22300#define restrict $ac_cv_c_restrict
22301_ACEOF
22302 ;;
22303 esac
22304
22305
22306# If words are stored with the most significant byte first (like
22307# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022309$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022310if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022311 $as_echo_n "(cached) " >&6
22312else
22313 ac_cv_c_bigendian=unknown
22314 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022316/* end confdefs.h. */
22317#ifndef __APPLE_CC__
22318 not a universal capable compiler
22319 #endif
22320 typedef int dummy;
22321
22322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022323if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022324
22325 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022326 # there are at least two -arch flags with different values.
22327 ac_arch=
22328 ac_prev=
22329 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22330 if test -n "$ac_prev"; then
22331 case $ac_word in
22332 i?86 | x86_64 | ppc | ppc64)
22333 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22334 ac_arch=$ac_word
22335 else
22336 ac_cv_c_bigendian=universal
22337 break
22338 fi
22339 ;;
22340 esac
22341 ac_prev=
22342 elif test "x$ac_word" = "x-arch"; then
22343 ac_prev=arch
22344 fi
22345 done
cristy3ed852e2009-09-05 21:47:34 +000022346fi
cristy3ed852e2009-09-05 21:47:34 +000022347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348 if test $ac_cv_c_bigendian = unknown; then
22349 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022351/* end confdefs.h. */
22352#include <sys/types.h>
22353 #include <sys/param.h>
22354
22355int
22356main ()
22357{
22358#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22359 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22360 && LITTLE_ENDIAN)
22361 bogus endian macros
22362 #endif
22363
22364 ;
22365 return 0;
22366}
22367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022368if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022369 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022371/* end confdefs.h. */
22372#include <sys/types.h>
22373 #include <sys/param.h>
22374
22375int
22376main ()
22377{
22378#if BYTE_ORDER != BIG_ENDIAN
22379 not big endian
22380 #endif
22381
22382 ;
22383 return 0;
22384}
22385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022386if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022387 ac_cv_c_bigendian=yes
22388else
cristy8b350f62009-11-15 23:12:43 +000022389 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022390fi
cristy3ed852e2009-09-05 21:47:34 +000022391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022392fi
cristy3ed852e2009-09-05 21:47:34 +000022393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394 fi
22395 if test $ac_cv_c_bigendian = unknown; then
22396 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022398/* end confdefs.h. */
22399#include <limits.h>
22400
22401int
22402main ()
22403{
22404#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22405 bogus endian macros
22406 #endif
22407
22408 ;
22409 return 0;
22410}
22411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022412if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022413 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022415/* end confdefs.h. */
22416#include <limits.h>
22417
22418int
22419main ()
22420{
22421#ifndef _BIG_ENDIAN
22422 not big endian
22423 #endif
22424
22425 ;
22426 return 0;
22427}
22428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022429if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022430 ac_cv_c_bigendian=yes
22431else
cristy8b350f62009-11-15 23:12:43 +000022432 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022433fi
cristy3ed852e2009-09-05 21:47:34 +000022434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022435fi
cristy3ed852e2009-09-05 21:47:34 +000022436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 fi
22438 if test $ac_cv_c_bigendian = unknown; then
22439 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022440 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022441 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022443/* end confdefs.h. */
22444short int ascii_mm[] =
22445 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22446 short int ascii_ii[] =
22447 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22448 int use_ascii (int i) {
22449 return ascii_mm[i] + ascii_ii[i];
22450 }
22451 short int ebcdic_ii[] =
22452 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22453 short int ebcdic_mm[] =
22454 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22455 int use_ebcdic (int i) {
22456 return ebcdic_mm[i] + ebcdic_ii[i];
22457 }
22458 extern int foo;
22459
22460int
22461main ()
22462{
22463return use_ascii (foo) == use_ebcdic (foo);
22464 ;
22465 return 0;
22466}
22467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022468if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022469 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22470 ac_cv_c_bigendian=yes
22471 fi
22472 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22473 if test "$ac_cv_c_bigendian" = unknown; then
22474 ac_cv_c_bigendian=no
22475 else
22476 # finding both strings is unlikely to happen, but who knows?
22477 ac_cv_c_bigendian=unknown
22478 fi
22479 fi
cristy3ed852e2009-09-05 21:47:34 +000022480fi
cristy3ed852e2009-09-05 21:47:34 +000022481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482else
cristy8b350f62009-11-15 23:12:43 +000022483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022484/* end confdefs.h. */
22485$ac_includes_default
22486int
22487main ()
22488{
22489
22490 /* Are we little or big endian? From Harbison&Steele. */
22491 union
22492 {
22493 long int l;
22494 char c[sizeof (long int)];
22495 } u;
22496 u.l = 1;
22497 return u.c[sizeof (long int) - 1] == 1;
22498
22499 ;
22500 return 0;
22501}
22502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022503if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022504 ac_cv_c_bigendian=no
22505else
cristy8b350f62009-11-15 23:12:43 +000022506 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022507fi
cristy8b350f62009-11-15 23:12:43 +000022508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22509 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022510fi
22511
cristy3ed852e2009-09-05 21:47:34 +000022512 fi
22513fi
cristy8b350f62009-11-15 23:12:43 +000022514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022515$as_echo "$ac_cv_c_bigendian" >&6; }
22516 case $ac_cv_c_bigendian in #(
22517 yes)
cristy8b350f62009-11-15 23:12:43 +000022518 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022519;; #(
22520 no)
22521 ;; #(
22522 universal)
22523
cristy8b350f62009-11-15 23:12:43 +000022524$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022525
22526 ;; #(
22527 *)
cristy98dddb52010-11-04 00:30:15 +000022528 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022529 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022530 esac
22531
22532
cristy501c8042011-05-26 17:46:28 +000022533# Define to a suitable type, if standard headers do not define it.
22534ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22535case $ac_cv_c_int8_t in #(
22536 no|yes) ;; #(
22537 *)
cristy3ed852e2009-09-05 21:47:34 +000022538
22539cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022540#define int8_t $ac_cv_c_int8_t
22541_ACEOF
22542;;
22543esac
22544
22545ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22546case $ac_cv_c_int16_t in #(
22547 no|yes) ;; #(
22548 *)
22549
22550cat >>confdefs.h <<_ACEOF
22551#define int16_t $ac_cv_c_int16_t
22552_ACEOF
22553;;
22554esac
22555
22556ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22557case $ac_cv_c_int32_t in #(
22558 no|yes) ;; #(
22559 *)
22560
22561cat >>confdefs.h <<_ACEOF
22562#define int32_t $ac_cv_c_int32_t
22563_ACEOF
22564;;
22565esac
22566
22567ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22568case $ac_cv_c_int64_t in #(
22569 no|yes) ;; #(
22570 *)
22571
22572cat >>confdefs.h <<_ACEOF
22573#define int64_t $ac_cv_c_int64_t
22574_ACEOF
22575;;
22576esac
22577
22578
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22580$as_echo_n "checking for long long int... " >&6; }
22581if ${ac_cv_type_long_long_int+:} false; then :
22582 $as_echo_n "(cached) " >&6
22583else
22584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585/* end confdefs.h. */
22586
22587 /* For now, do not test the preprocessor; as of 2007 there are too many
22588 implementations with broken preprocessors. Perhaps this can
22589 be revisited in 2012. In the meantime, code should not expect
22590 #if to work with literals wider than 32 bits. */
22591 /* Test literals. */
22592 long long int ll = 9223372036854775807ll;
22593 long long int nll = -9223372036854775807LL;
22594 unsigned long long int ull = 18446744073709551615ULL;
22595 /* Test constant expressions. */
22596 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22597 ? 1 : -1)];
22598 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22599 ? 1 : -1)];
22600 int i = 63;
22601int
22602main ()
22603{
22604/* Test availability of runtime routines for shift and division. */
22605 long long int llmax = 9223372036854775807ll;
22606 unsigned long long int ullmax = 18446744073709551615ull;
22607 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22608 | (llmax / ll) | (llmax % ll)
22609 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22610 | (ullmax / ull) | (ullmax % ull));
22611 ;
22612 return 0;
22613}
22614
22615_ACEOF
22616if ac_fn_c_try_link "$LINENO"; then :
22617 if test "$cross_compiling" = yes; then :
22618 ac_cv_type_long_long_int=yes
22619else
22620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621/* end confdefs.h. */
22622#include <limits.h>
22623 #ifndef LLONG_MAX
22624 # define HALF \
22625 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22626 # define LLONG_MAX (HALF - 1 + HALF)
22627 #endif
22628int
22629main ()
22630{
22631long long int n = 1;
22632 int i;
22633 for (i = 0; ; i++)
22634 {
22635 long long int m = n << i;
22636 if (m >> i != n)
22637 return 1;
22638 if (LLONG_MAX / 2 < m)
22639 break;
22640 }
22641 return 0;
22642 ;
22643 return 0;
22644}
22645_ACEOF
22646if ac_fn_c_try_run "$LINENO"; then :
22647 ac_cv_type_long_long_int=yes
22648else
22649 ac_cv_type_long_long_int=no
22650fi
22651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22652 conftest.$ac_objext conftest.beam conftest.$ac_ext
22653fi
22654
22655else
22656 ac_cv_type_long_long_int=no
22657fi
22658rm -f core conftest.err conftest.$ac_objext \
22659 conftest$ac_exeext conftest.$ac_ext
22660fi
22661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22662$as_echo "$ac_cv_type_long_long_int" >&6; }
22663 if test $ac_cv_type_long_long_int = yes; then
22664
22665$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22666
22667 fi
22668
22669
22670
22671 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22672if test "x$ac_cv_type_intmax_t" = xyes; then :
22673
22674$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22675
22676else
22677 test $ac_cv_type_long_long_int = yes \
22678 && ac_type='long long int' \
22679 || ac_type='long int'
22680
22681cat >>confdefs.h <<_ACEOF
22682#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022683_ACEOF
22684
22685fi
22686
22687
cristy501c8042011-05-26 17:46:28 +000022688
22689 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22690if test "x$ac_cv_type_intptr_t" = xyes; then :
22691
22692$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022693
cristy3ed852e2009-09-05 21:47:34 +000022694else
cristy501c8042011-05-26 17:46:28 +000022695 for ac_type in 'int' 'long int' 'long long int'; do
22696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697/* end confdefs.h. */
22698$ac_includes_default
22699int
22700main ()
22701{
22702static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22703test_array [0] = 0
22704
22705 ;
22706 return 0;
22707}
22708_ACEOF
22709if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022710
22711cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022712#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022713_ACEOF
22714
cristy501c8042011-05-26 17:46:28 +000022715 ac_type=
22716fi
22717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22718 test -z "$ac_type" && break
22719 done
cristy3ed852e2009-09-05 21:47:34 +000022720fi
22721
22722
cristy3ed852e2009-09-05 21:47:34 +000022723
cristy501c8042011-05-26 17:46:28 +000022724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22725$as_echo_n "checking for long double... " >&6; }
22726if ${ac_cv_type_long_double+:} false; then :
22727 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022728else
cristy501c8042011-05-26 17:46:28 +000022729 if test "$GCC" = yes; then
22730 ac_cv_type_long_double=yes
22731 else
22732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733/* end confdefs.h. */
22734/* The Stardent Vistra knows sizeof (long double), but does
22735 not support it. */
22736 long double foo = 0.0L;
22737int
22738main ()
22739{
22740static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22741 sizeof (double) <= sizeof (long double))];
22742test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022743
cristy501c8042011-05-26 17:46:28 +000022744 ;
22745 return 0;
22746}
cristy3ed852e2009-09-05 21:47:34 +000022747_ACEOF
cristy501c8042011-05-26 17:46:28 +000022748if ac_fn_c_try_compile "$LINENO"; then :
22749 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022750else
cristy501c8042011-05-26 17:46:28 +000022751 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022752fi
cristy501c8042011-05-26 17:46:28 +000022753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 fi
cristy3ed852e2009-09-05 21:47:34 +000022755fi
cristy501c8042011-05-26 17:46:28 +000022756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22757$as_echo "$ac_cv_type_long_double" >&6; }
22758 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022759
cristy501c8042011-05-26 17:46:28 +000022760$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022761
cristy501c8042011-05-26 17:46:28 +000022762 fi
22763
cristy3ed852e2009-09-05 21:47:34 +000022764
cristy8b350f62009-11-15 23:12:43 +000022765 { $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 +000022766$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022767if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022768 $as_echo_n "(cached) " >&6
22769else
cristy8b350f62009-11-15 23:12:43 +000022770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022771/* end confdefs.h. */
22772#include <float.h>
22773 long double const a[] =
22774 {
22775 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22776 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22777 };
22778 long double
22779 f (long double x)
22780 {
22781 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22782 + (x ? f (x) : 'c'));
22783 }
22784
22785int
22786main ()
22787{
22788static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22789 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22790 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22791 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22792 && (int) LDBL_EPSILON == 0
22793 )];
22794test_array [0] = 0
22795
22796 ;
22797 return 0;
22798}
22799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022800if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022801 ac_cv_type_long_double_wider=yes
22802else
cristy8b350f62009-11-15 23:12:43 +000022803 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022804fi
cristy3ed852e2009-09-05 21:47:34 +000022805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806fi
cristy8b350f62009-11-15 23:12:43 +000022807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022808$as_echo "$ac_cv_type_long_double_wider" >&6; }
22809 if test $ac_cv_type_long_double_wider = yes; then
22810
cristy8b350f62009-11-15 23:12:43 +000022811$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022812
22813 fi
22814
22815
cristy501c8042011-05-26 17:46:28 +000022816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22817$as_echo_n "checking for long long int... " >&6; }
22818if ${ac_cv_type_long_long_int+:} false; then :
22819 $as_echo_n "(cached) " >&6
22820else
22821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22822/* end confdefs.h. */
22823
22824 /* For now, do not test the preprocessor; as of 2007 there are too many
22825 implementations with broken preprocessors. Perhaps this can
22826 be revisited in 2012. In the meantime, code should not expect
22827 #if to work with literals wider than 32 bits. */
22828 /* Test literals. */
22829 long long int ll = 9223372036854775807ll;
22830 long long int nll = -9223372036854775807LL;
22831 unsigned long long int ull = 18446744073709551615ULL;
22832 /* Test constant expressions. */
22833 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22834 ? 1 : -1)];
22835 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22836 ? 1 : -1)];
22837 int i = 63;
22838int
22839main ()
22840{
22841/* Test availability of runtime routines for shift and division. */
22842 long long int llmax = 9223372036854775807ll;
22843 unsigned long long int ullmax = 18446744073709551615ull;
22844 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22845 | (llmax / ll) | (llmax % ll)
22846 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22847 | (ullmax / ull) | (ullmax % ull));
22848 ;
22849 return 0;
22850}
22851
22852_ACEOF
22853if ac_fn_c_try_link "$LINENO"; then :
22854 if test "$cross_compiling" = yes; then :
22855 ac_cv_type_long_long_int=yes
22856else
22857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22858/* end confdefs.h. */
22859#include <limits.h>
22860 #ifndef LLONG_MAX
22861 # define HALF \
22862 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22863 # define LLONG_MAX (HALF - 1 + HALF)
22864 #endif
22865int
22866main ()
22867{
22868long long int n = 1;
22869 int i;
22870 for (i = 0; ; i++)
22871 {
22872 long long int m = n << i;
22873 if (m >> i != n)
22874 return 1;
22875 if (LLONG_MAX / 2 < m)
22876 break;
22877 }
22878 return 0;
22879 ;
22880 return 0;
22881}
22882_ACEOF
22883if ac_fn_c_try_run "$LINENO"; then :
22884 ac_cv_type_long_long_int=yes
22885else
22886 ac_cv_type_long_long_int=no
22887fi
22888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22889 conftest.$ac_objext conftest.beam conftest.$ac_ext
22890fi
22891
22892else
22893 ac_cv_type_long_long_int=no
22894fi
22895rm -f core conftest.err conftest.$ac_objext \
22896 conftest$ac_exeext conftest.$ac_ext
22897fi
22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22899$as_echo "$ac_cv_type_long_long_int" >&6; }
22900 if test $ac_cv_type_long_long_int = yes; then
22901
22902$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22903
22904 fi
22905
22906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22907$as_echo_n "checking for mbstate_t... " >&6; }
22908if ${ac_cv_type_mbstate_t+:} false; then :
22909 $as_echo_n "(cached) " >&6
22910else
22911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912/* end confdefs.h. */
22913$ac_includes_default
22914# include <wchar.h>
22915int
22916main ()
22917{
22918mbstate_t x; return sizeof x;
22919 ;
22920 return 0;
22921}
22922_ACEOF
22923if ac_fn_c_try_compile "$LINENO"; then :
22924 ac_cv_type_mbstate_t=yes
22925else
22926 ac_cv_type_mbstate_t=no
22927fi
22928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929fi
22930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22931$as_echo "$ac_cv_type_mbstate_t" >&6; }
22932 if test $ac_cv_type_mbstate_t = yes; then
22933
22934$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22935
22936 else
22937
22938$as_echo "#define mbstate_t int" >>confdefs.h
22939
22940 fi
22941ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22942if test "x$ac_cv_type_mode_t" = xyes; then :
22943
22944else
22945
22946cat >>confdefs.h <<_ACEOF
22947#define mode_t int
22948_ACEOF
22949
22950fi
22951
22952ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22953if test "x$ac_cv_type_off_t" = xyes; then :
22954
22955else
22956
22957cat >>confdefs.h <<_ACEOF
22958#define off_t long int
22959_ACEOF
22960
22961fi
22962
22963ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22964if test "x$ac_cv_type_pid_t" = xyes; then :
22965
22966else
22967
22968cat >>confdefs.h <<_ACEOF
22969#define pid_t int
22970_ACEOF
22971
22972fi
22973
22974ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22975if test "x$ac_cv_type_size_t" = xyes; then :
22976
22977else
22978
22979cat >>confdefs.h <<_ACEOF
22980#define size_t unsigned int
22981_ACEOF
22982
22983fi
22984
22985ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22986if test "x$ac_cv_type_ssize_t" = xyes; then :
22987
22988else
22989
22990cat >>confdefs.h <<_ACEOF
22991#define ssize_t int
22992_ACEOF
22993
22994fi
22995
22996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22997$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22998if ${ac_cv_type_uid_t+:} false; then :
22999 $as_echo_n "(cached) " >&6
23000else
23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002/* end confdefs.h. */
23003#include <sys/types.h>
23004
23005_ACEOF
23006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23007 $EGREP "uid_t" >/dev/null 2>&1; then :
23008 ac_cv_type_uid_t=yes
23009else
23010 ac_cv_type_uid_t=no
23011fi
23012rm -f conftest*
23013
23014fi
23015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23016$as_echo "$ac_cv_type_uid_t" >&6; }
23017if test $ac_cv_type_uid_t = no; then
23018
23019$as_echo "#define uid_t int" >>confdefs.h
23020
23021
23022$as_echo "#define gid_t int" >>confdefs.h
23023
23024fi
23025
23026ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23027case $ac_cv_c_uint8_t in #(
23028 no|yes) ;; #(
23029 *)
23030
23031$as_echo "#define _UINT8_T 1" >>confdefs.h
23032
23033
23034cat >>confdefs.h <<_ACEOF
23035#define uint8_t $ac_cv_c_uint8_t
23036_ACEOF
23037;;
23038 esac
23039
23040ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23041case $ac_cv_c_uint16_t in #(
23042 no|yes) ;; #(
23043 *)
23044
23045
23046cat >>confdefs.h <<_ACEOF
23047#define uint16_t $ac_cv_c_uint16_t
23048_ACEOF
23049;;
23050 esac
23051
23052ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23053case $ac_cv_c_uint32_t in #(
23054 no|yes) ;; #(
23055 *)
23056
23057$as_echo "#define _UINT32_T 1" >>confdefs.h
23058
23059
23060cat >>confdefs.h <<_ACEOF
23061#define uint32_t $ac_cv_c_uint32_t
23062_ACEOF
23063;;
23064 esac
23065
23066ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23067case $ac_cv_c_uint64_t in #(
23068 no|yes) ;; #(
23069 *)
23070
23071$as_echo "#define _UINT64_T 1" >>confdefs.h
23072
23073
23074cat >>confdefs.h <<_ACEOF
23075#define uint64_t $ac_cv_c_uint64_t
23076_ACEOF
23077;;
23078 esac
23079
23080
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23082$as_echo_n "checking for unsigned long long int... " >&6; }
23083if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23084 $as_echo_n "(cached) " >&6
23085else
23086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087/* end confdefs.h. */
23088
23089 /* For now, do not test the preprocessor; as of 2007 there are too many
23090 implementations with broken preprocessors. Perhaps this can
23091 be revisited in 2012. In the meantime, code should not expect
23092 #if to work with literals wider than 32 bits. */
23093 /* Test literals. */
23094 long long int ll = 9223372036854775807ll;
23095 long long int nll = -9223372036854775807LL;
23096 unsigned long long int ull = 18446744073709551615ULL;
23097 /* Test constant expressions. */
23098 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23099 ? 1 : -1)];
23100 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23101 ? 1 : -1)];
23102 int i = 63;
23103int
23104main ()
23105{
23106/* Test availability of runtime routines for shift and division. */
23107 long long int llmax = 9223372036854775807ll;
23108 unsigned long long int ullmax = 18446744073709551615ull;
23109 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23110 | (llmax / ll) | (llmax % ll)
23111 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23112 | (ullmax / ull) | (ullmax % ull));
23113 ;
23114 return 0;
23115}
23116
23117_ACEOF
23118if ac_fn_c_try_link "$LINENO"; then :
23119 ac_cv_type_unsigned_long_long_int=yes
23120else
23121 ac_cv_type_unsigned_long_long_int=no
23122fi
23123rm -f core conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
23125fi
23126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23127$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23128 if test $ac_cv_type_unsigned_long_long_int = yes; then
23129
23130$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23131
23132 fi
23133
23134
23135
23136 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23137if test "x$ac_cv_type_uintmax_t" = xyes; then :
23138
23139$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23140
23141else
23142 test $ac_cv_type_unsigned_long_long_int = yes \
23143 && ac_type='unsigned long long int' \
23144 || ac_type='unsigned long int'
23145
23146cat >>confdefs.h <<_ACEOF
23147#define uintmax_t $ac_type
23148_ACEOF
23149
23150fi
23151
23152
23153
23154 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23155if test "x$ac_cv_type_uintptr_t" = xyes; then :
23156
23157$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23158
23159else
23160 for ac_type in 'unsigned int' 'unsigned long int' \
23161 'unsigned long long int'; do
23162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163/* end confdefs.h. */
23164$ac_includes_default
23165int
23166main ()
23167{
23168static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23169test_array [0] = 0
23170
23171 ;
23172 return 0;
23173}
23174_ACEOF
23175if ac_fn_c_try_compile "$LINENO"; then :
23176
23177cat >>confdefs.h <<_ACEOF
23178#define uintptr_t $ac_type
23179_ACEOF
23180
23181 ac_type=
23182fi
23183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23184 test -z "$ac_type" && break
23185 done
23186fi
23187
23188
23189
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23191$as_echo_n "checking for unsigned long long int... " >&6; }
23192if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23193 $as_echo_n "(cached) " >&6
23194else
23195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196/* end confdefs.h. */
23197
23198 /* For now, do not test the preprocessor; as of 2007 there are too many
23199 implementations with broken preprocessors. Perhaps this can
23200 be revisited in 2012. In the meantime, code should not expect
23201 #if to work with literals wider than 32 bits. */
23202 /* Test literals. */
23203 long long int ll = 9223372036854775807ll;
23204 long long int nll = -9223372036854775807LL;
23205 unsigned long long int ull = 18446744073709551615ULL;
23206 /* Test constant expressions. */
23207 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23208 ? 1 : -1)];
23209 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23210 ? 1 : -1)];
23211 int i = 63;
23212int
23213main ()
23214{
23215/* Test availability of runtime routines for shift and division. */
23216 long long int llmax = 9223372036854775807ll;
23217 unsigned long long int ullmax = 18446744073709551615ull;
23218 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23219 | (llmax / ll) | (llmax % ll)
23220 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23221 | (ullmax / ull) | (ullmax % ull));
23222 ;
23223 return 0;
23224}
23225
23226_ACEOF
23227if ac_fn_c_try_link "$LINENO"; then :
23228 ac_cv_type_unsigned_long_long_int=yes
23229else
23230 ac_cv_type_unsigned_long_long_int=no
23231fi
23232rm -f core conftest.err conftest.$ac_objext \
23233 conftest$ac_exeext conftest.$ac_ext
23234fi
23235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23236$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23237 if test $ac_cv_type_unsigned_long_long_int = yes; then
23238
23239$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23240
23241 fi
23242
23243
cristy3ed852e2009-09-05 21:47:34 +000023244# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23245# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023248if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023249 $as_echo_n "(cached) " >&6
23250else
cristy8b350f62009-11-15 23:12:43 +000023251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023252/* end confdefs.h. */
23253$ac_includes_default
23254int
23255main ()
23256{
23257static int test_array [1 - 2 * !(((char) -1) < 0)];
23258test_array [0] = 0
23259
23260 ;
23261 return 0;
23262}
23263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023264if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023265 ac_cv_c_char_unsigned=no
23266else
cristy8b350f62009-11-15 23:12:43 +000023267 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023268fi
cristy3ed852e2009-09-05 21:47:34 +000023269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270fi
cristy8b350f62009-11-15 23:12:43 +000023271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023272$as_echo "$ac_cv_c_char_unsigned" >&6; }
23273if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023274 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023275
23276fi
23277
23278
23279# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23280# The cast to long int works around a bug in the HP C Compiler
23281# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23282# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23283# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023285$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023286if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023287 $as_echo_n "(cached) " >&6
23288else
cristy8b350f62009-11-15 23:12:43 +000023289 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 +000023290
cristy3ed852e2009-09-05 21:47:34 +000023291else
cristy8b350f62009-11-15 23:12:43 +000023292 if test "$ac_cv_type_signed_short" = yes; then
23293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023295as_fn_error 77 "cannot compute sizeof (signed short)
23296See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023297 else
23298 ac_cv_sizeof_signed_short=0
23299 fi
23300fi
cristy8b350f62009-11-15 23:12:43 +000023301
cristy3ed852e2009-09-05 21:47:34 +000023302fi
cristy8b350f62009-11-15 23:12:43 +000023303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023304$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23305
23306
23307
23308cat >>confdefs.h <<_ACEOF
23309#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23310_ACEOF
23311
23312
23313
23314# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23315# The cast to long int works around a bug in the HP C Compiler
23316# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23317# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23318# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023320$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023321if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023322 $as_echo_n "(cached) " >&6
23323else
cristy8b350f62009-11-15 23:12:43 +000023324 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 +000023325
cristy3ed852e2009-09-05 21:47:34 +000023326else
cristy8b350f62009-11-15 23:12:43 +000023327 if test "$ac_cv_type_unsigned_short" = yes; then
23328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023330as_fn_error 77 "cannot compute sizeof (unsigned short)
23331See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023332 else
23333 ac_cv_sizeof_unsigned_short=0
23334 fi
23335fi
cristy8b350f62009-11-15 23:12:43 +000023336
cristy3ed852e2009-09-05 21:47:34 +000023337fi
cristy8b350f62009-11-15 23:12:43 +000023338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023339$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23340
23341
23342
23343cat >>confdefs.h <<_ACEOF
23344#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23345_ACEOF
23346
23347
23348
23349# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23350# The cast to long int works around a bug in the HP C Compiler
23351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23353# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023355$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023356if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023357 $as_echo_n "(cached) " >&6
23358else
cristy8b350f62009-11-15 23:12:43 +000023359 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 +000023360
cristy3ed852e2009-09-05 21:47:34 +000023361else
cristy8b350f62009-11-15 23:12:43 +000023362 if test "$ac_cv_type_signed_int" = yes; then
23363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023365as_fn_error 77 "cannot compute sizeof (signed int)
23366See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023367 else
23368 ac_cv_sizeof_signed_int=0
23369 fi
23370fi
cristy8b350f62009-11-15 23:12:43 +000023371
cristy3ed852e2009-09-05 21:47:34 +000023372fi
cristy8b350f62009-11-15 23:12:43 +000023373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023374$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23375
23376
23377
23378cat >>confdefs.h <<_ACEOF
23379#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23380_ACEOF
23381
23382
23383
23384# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23385# The cast to long int works around a bug in the HP C Compiler
23386# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23387# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23388# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023390$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023391if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023392 $as_echo_n "(cached) " >&6
23393else
cristy8b350f62009-11-15 23:12:43 +000023394 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 +000023395
cristy3ed852e2009-09-05 21:47:34 +000023396else
cristy8b350f62009-11-15 23:12:43 +000023397 if test "$ac_cv_type_unsigned_int" = yes; then
23398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023400as_fn_error 77 "cannot compute sizeof (unsigned int)
23401See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023402 else
23403 ac_cv_sizeof_unsigned_int=0
23404 fi
23405fi
cristy8b350f62009-11-15 23:12:43 +000023406
cristy3ed852e2009-09-05 21:47:34 +000023407fi
cristy8b350f62009-11-15 23:12:43 +000023408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23410
23411
23412
23413cat >>confdefs.h <<_ACEOF
23414#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23415_ACEOF
23416
23417
23418
23419# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23420# The cast to long int works around a bug in the HP C Compiler
23421# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23422# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23423# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023426if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023427 $as_echo_n "(cached) " >&6
23428else
cristy8b350f62009-11-15 23:12:43 +000023429 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 +000023430
cristy3ed852e2009-09-05 21:47:34 +000023431else
cristy8b350f62009-11-15 23:12:43 +000023432 if test "$ac_cv_type_signed_long" = yes; then
23433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023435as_fn_error 77 "cannot compute sizeof (signed long)
23436See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023437 else
23438 ac_cv_sizeof_signed_long=0
23439 fi
23440fi
cristy8b350f62009-11-15 23:12:43 +000023441
cristy3ed852e2009-09-05 21:47:34 +000023442fi
cristy8b350f62009-11-15 23:12:43 +000023443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23445
23446
23447
23448cat >>confdefs.h <<_ACEOF
23449#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23450_ACEOF
23451
23452
23453
23454# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23455# The cast to long int works around a bug in the HP C Compiler
23456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23458# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023461if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 $as_echo_n "(cached) " >&6
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 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 +000023465
cristy3ed852e2009-09-05 21:47:34 +000023466else
cristy8b350f62009-11-15 23:12:43 +000023467 if test "$ac_cv_type_unsigned_long" = yes; then
23468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023470as_fn_error 77 "cannot compute sizeof (unsigned long)
23471See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023472 else
23473 ac_cv_sizeof_unsigned_long=0
23474 fi
23475fi
cristy8b350f62009-11-15 23:12:43 +000023476
cristy3ed852e2009-09-05 21:47:34 +000023477fi
cristy8b350f62009-11-15 23:12:43 +000023478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23480
23481
23482
23483cat >>confdefs.h <<_ACEOF
23484#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23485_ACEOF
23486
23487
23488
23489# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23490# 'signed long long' is not supported then the value defined is zero.
23491# The cast to long int works around a bug in the HP C Compiler
23492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23494# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023496$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023497if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023498 $as_echo_n "(cached) " >&6
23499else
cristy8b350f62009-11-15 23:12:43 +000023500 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 +000023501
cristy3ed852e2009-09-05 21:47:34 +000023502else
cristy8b350f62009-11-15 23:12:43 +000023503 if test "$ac_cv_type_signed_long_long" = yes; then
23504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023506as_fn_error 77 "cannot compute sizeof (signed long long)
23507See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023508 else
23509 ac_cv_sizeof_signed_long_long=0
23510 fi
23511fi
cristy8b350f62009-11-15 23:12:43 +000023512
cristy3ed852e2009-09-05 21:47:34 +000023513fi
cristy8b350f62009-11-15 23:12:43 +000023514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023515$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23516
23517
23518
23519cat >>confdefs.h <<_ACEOF
23520#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23521_ACEOF
23522
23523
23524
23525# Obtain size of a 'unsigned long long' and define as
23526# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23527# supported then the value defined is zero.
23528# The cast to long int works around a bug in the HP C Compiler
23529# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23530# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23531# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023533$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023534if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023535 $as_echo_n "(cached) " >&6
23536else
cristy8b350f62009-11-15 23:12:43 +000023537 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 +000023538
cristy3ed852e2009-09-05 21:47:34 +000023539else
cristy8b350f62009-11-15 23:12:43 +000023540 if test "$ac_cv_type_unsigned_long_long" = yes; then
23541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023543as_fn_error 77 "cannot compute sizeof (unsigned long long)
23544See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023545 else
23546 ac_cv_sizeof_unsigned_long_long=0
23547 fi
23548fi
cristy8b350f62009-11-15 23:12:43 +000023549
cristy3ed852e2009-09-05 21:47:34 +000023550fi
cristy8b350f62009-11-15 23:12:43 +000023551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023552$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23553
23554
23555
23556cat >>confdefs.h <<_ACEOF
23557#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23558_ACEOF
23559
23560
23561
23562# Obtain size of off_t and define as SIZEOF_OFF_T
23563# The cast to long int works around a bug in the HP C Compiler
23564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23566# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023568$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023569if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023570 $as_echo_n "(cached) " >&6
23571else
cristy8b350f62009-11-15 23:12:43 +000023572 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 +000023573
cristy3ed852e2009-09-05 21:47:34 +000023574else
cristy8b350f62009-11-15 23:12:43 +000023575 if test "$ac_cv_type_off_t" = yes; then
23576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023578as_fn_error 77 "cannot compute sizeof (off_t)
23579See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023580 else
23581 ac_cv_sizeof_off_t=0
23582 fi
23583fi
cristy8b350f62009-11-15 23:12:43 +000023584
cristy3ed852e2009-09-05 21:47:34 +000023585fi
cristy8b350f62009-11-15 23:12:43 +000023586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023587$as_echo "$ac_cv_sizeof_off_t" >&6; }
23588
23589
23590
23591cat >>confdefs.h <<_ACEOF
23592#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23593_ACEOF
23594
23595
23596
23597# Obtain size of size_t and define as SIZEOF_SIZE_T
23598# The cast to long int works around a bug in the HP C Compiler
23599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23601# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023603$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023604if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023605 $as_echo_n "(cached) " >&6
23606else
cristy8b350f62009-11-15 23:12:43 +000023607 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 +000023608
cristy3ed852e2009-09-05 21:47:34 +000023609else
cristy8b350f62009-11-15 23:12:43 +000023610 if test "$ac_cv_type_size_t" = yes; then
23611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023613as_fn_error 77 "cannot compute sizeof (size_t)
23614See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023615 else
23616 ac_cv_sizeof_size_t=0
23617 fi
23618fi
cristy8b350f62009-11-15 23:12:43 +000023619
cristy3ed852e2009-09-05 21:47:34 +000023620fi
cristy8b350f62009-11-15 23:12:43 +000023621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023622$as_echo "$ac_cv_sizeof_size_t" >&6; }
23623
23624
23625
23626cat >>confdefs.h <<_ACEOF
23627#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23628_ACEOF
23629
23630
23631
cristy330e9352010-06-01 18:42:49 +000023632# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23633# The cast to long int works around a bug in the HP C Compiler
23634# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23635# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23636# This bug is HP SR number 8606223364.
23637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23638$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023639if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023640 $as_echo_n "(cached) " >&6
23641else
23642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23643
23644else
23645 if test "$ac_cv_type_ssize_t" = yes; then
23646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023648as_fn_error 77 "cannot compute sizeof (ssize_t)
23649See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023650 else
23651 ac_cv_sizeof_ssize_t=0
23652 fi
23653fi
23654
23655fi
23656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23657$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23658
23659
23660
23661cat >>confdefs.h <<_ACEOF
23662#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23663_ACEOF
23664
23665
23666
cristy3ed852e2009-09-05 21:47:34 +000023667# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23668# The cast to long int works around a bug in the HP C Compiler
23669# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23670# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23671# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023673$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023674if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023675 $as_echo_n "(cached) " >&6
23676else
cristy8b350f62009-11-15 23:12:43 +000023677 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 +000023678
cristy3ed852e2009-09-05 21:47:34 +000023679else
cristy8b350f62009-11-15 23:12:43 +000023680 if test "$ac_cv_type_unsigned_intp" = yes; then
23681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023683as_fn_error 77 "cannot compute sizeof (unsigned int*)
23684See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023685 else
23686 ac_cv_sizeof_unsigned_intp=0
23687 fi
23688fi
cristy8b350f62009-11-15 23:12:43 +000023689
cristy3ed852e2009-09-05 21:47:34 +000023690fi
cristy8b350f62009-11-15 23:12:43 +000023691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023692$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23693
23694
23695
23696cat >>confdefs.h <<_ACEOF
23697#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23698_ACEOF
23699
23700
23701
23702#
23703# Compute sized types for current CPU and compiler options.
23704#
23705
cristy8b350f62009-11-15 23:12:43 +000023706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023707$as_echo_n "checking for signed 8-bit type... " >&6; }
23708INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023709{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23710$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023711
23712
cristy8b350f62009-11-15 23:12:43 +000023713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023714$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23715UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023716{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23717$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023718
23719
cristy8b350f62009-11-15 23:12:43 +000023720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023721$as_echo_n "checking for signed 16-bit type... " >&6; }
23722INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023723{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23724$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023725
23726
cristy8b350f62009-11-15 23:12:43 +000023727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023728$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23729UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023730{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23731$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023732
23733
cristy8b350f62009-11-15 23:12:43 +000023734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023735$as_echo_n "checking for signed 32-bit type... " >&6; }
23736INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023737INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023738if test $ac_cv_sizeof_signed_int -eq 4; then
23739 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023740 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023741elif test $ac_cv_sizeof_signed_long -eq 4; then
23742 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023743 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023744fi
cristy09b53e12011-10-14 12:47:22 +000023745{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23746$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023747
23748
cristy6d5e20f2011-04-25 13:48:54 +000023749
cristy8b350f62009-11-15 23:12:43 +000023750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023751$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23752UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023753UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023754if test $ac_cv_sizeof_unsigned_int -eq 4; then
23755 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023756 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023757elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23758 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023759 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023760fi
cristy09b53e12011-10-14 12:47:22 +000023761{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23762$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023763
23764
cristy6d5e20f2011-04-25 13:48:54 +000023765
cristy8b350f62009-11-15 23:12:43 +000023766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023767$as_echo_n "checking for signed 64-bit type... " >&6; }
23768INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023769INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023770if test $ac_cv_sizeof_signed_long -eq 8; then
23771 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023772 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023773elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23774 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023775 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023776fi
cristy6d5e20f2011-04-25 13:48:54 +000023777case "${build_os}" in
23778 mingw* )
23779 INT64_F='"I64"'
23780 ;;
23781esac
cristy09b53e12011-10-14 12:47:22 +000023782{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23783$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023784
23785
cristy6d5e20f2011-04-25 13:48:54 +000023786
cristy8b350f62009-11-15 23:12:43 +000023787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023788$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23789UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023790UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023791if test $ac_cv_sizeof_unsigned_long -eq 8; then
23792 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023793 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023794elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23795 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023796 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023797fi
cristy6d5e20f2011-04-25 13:48:54 +000023798case "${build_os}" in
23799 mingw* )
23800 UINT64_F='"I64"'
23801 ;;
23802esac
cristy09b53e12011-10-14 12:47:22 +000023803{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23804$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023805
23806
cristy6d5e20f2011-04-25 13:48:54 +000023807
cristy8b350f62009-11-15 23:12:43 +000023808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo_n "checking for unsigned maximum type... " >&6; }
23810UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023811UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023812if test "$UINT64_T" != 'none'; then
23813 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023814 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023815elif test "$UINT32_T" != 'none'; then
23816 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023817 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023818fi
cristy09b53e12011-10-14 12:47:22 +000023819{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23820$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023821
23822
cristy6d5e20f2011-04-25 13:48:54 +000023823
cristy8b350f62009-11-15 23:12:43 +000023824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023825$as_echo_n "checking for pointer difference type... " >&6; }
23826UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023827UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023828if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23829 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023830 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023831elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23832 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023833 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023834fi
cristy09b53e12011-10-14 12:47:22 +000023835{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23836$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023837
23838
cristy6d5e20f2011-04-25 13:48:54 +000023839
cristy8b350f62009-11-15 23:12:43 +000023840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023841$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023843/* end confdefs.h. */
23844
23845int
23846main ()
23847{
23848{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23849 ;
23850 return 0;
23851}
23852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023853if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023854 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23855$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023856else
cristy09b53e12011-10-14 12:47:22 +000023857 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23858$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023862/* end confdefs.h. */
23863
23864int
23865main ()
23866{
23867{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23868 ;
23869 return 0;
23870}
23871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023872if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023873 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23874$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023875
cristy8b350f62009-11-15 23:12:43 +000023876$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023877
23878else
cristy09b53e12011-10-14 12:47:22 +000023879 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23880$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023881
cristy8b350f62009-11-15 23:12:43 +000023882$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023883
23884fi
cristy3ed852e2009-09-05 21:47:34 +000023885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886fi
cristy3ed852e2009-09-05 21:47:34 +000023887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888
23889########
23890#
23891# Check for functions
23892#
23893########
cristy73bd4a52010-10-05 11:24:23 +000023894for ac_header in stdlib.h unistd.h
23895do :
23896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23897ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023898if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023899 cat >>confdefs.h <<_ACEOF
23900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23901_ACEOF
23902
23903fi
23904
23905done
23906
23907for ac_func in getpagesize
23908do :
23909 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023910if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023911 cat >>confdefs.h <<_ACEOF
23912#define HAVE_GETPAGESIZE 1
23913_ACEOF
23914
23915fi
23916done
23917
23918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23919$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023920if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023921 $as_echo_n "(cached) " >&6
23922else
23923 if test "$cross_compiling" = yes; then :
23924 magick_cv_func_mmap_fileio=no
23925else
23926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23927/* end confdefs.h. */
23928$ac_includes_default
23929/* malloc might have been renamed as rpl_malloc. */
23930#undef malloc
23931
23932/*
23933 This test is derived from GNU Autoconf's similar macro.
23934 The purpose of this test is to verify that files may be memory
23935 mapped, and that memory mapping and file I/O are coherent.
23936
23937 The test creates a test file, memory maps the file, updates
23938 the file using the memory map, and then reads the file using
23939 file I/O to verify that the file contains the updates.
23940*/
23941
23942#include <fcntl.h>
23943#include <sys/mman.h>
23944
23945#if !STDC_HEADERS && !HAVE_STDLIB_H
23946char *malloc ();
23947#endif
23948
23949/* This mess was copied from the GNU getpagesize.h. */
23950#if !HAVE_GETPAGESIZE
23951/* Assume that all systems that can run configure have sys/param.h. */
23952# if !HAVE_SYS_PARAM_H
23953# define HAVE_SYS_PARAM_H 1
23954# endif
23955
23956# ifdef _SC_PAGESIZE
23957# define getpagesize() sysconf(_SC_PAGESIZE)
23958# else /* no _SC_PAGESIZE */
23959# if HAVE_SYS_PARAM_H
23960# include <sys/param.h>
23961# ifdef EXEC_PAGESIZE
23962# define getpagesize() EXEC_PAGESIZE
23963# else /* no EXEC_PAGESIZE */
23964# ifdef NBPG
23965# define getpagesize() NBPG * CLSIZE
23966# ifndef CLSIZE
23967# define CLSIZE 1
23968# endif /* no CLSIZE */
23969# else /* no NBPG */
23970# ifdef NBPC
23971# define getpagesize() NBPC
23972# else /* no NBPC */
23973# ifdef PAGESIZE
23974# define getpagesize() PAGESIZE
23975# endif /* PAGESIZE */
23976# endif /* no NBPC */
23977# endif /* no NBPG */
23978# endif /* no EXEC_PAGESIZE */
23979# else /* no HAVE_SYS_PARAM_H */
23980# define getpagesize() 8192 /* punt totally */
23981# endif /* no HAVE_SYS_PARAM_H */
23982# endif /* no _SC_PAGESIZE */
23983
23984#endif /* no HAVE_GETPAGESIZE */
23985
23986int
23987main ()
23988{
23989 char *data, *data2, *data3;
23990 int i, pagesize;
23991 int fd;
23992
23993 pagesize = getpagesize ();
23994
23995 /* First, make a file with some known garbage in it. */
23996 data = (char *) malloc (pagesize);
23997 if (!data)
23998 exit (1);
23999 for (i = 0; i < pagesize; ++i)
24000 *(data + i) = rand ();
24001 umask (0);
24002 fd = creat ("conftest.mmap", 0600);
24003 if (fd < 0)
24004 exit (1);
24005 if (write (fd, data, pagesize) != pagesize)
24006 exit (1);
24007 close (fd);
24008
24009 /* Mmap the file as read/write/shared and verify that we see the
24010 same garbage. */
24011 fd = open ("conftest.mmap", O_RDWR);
24012 if (fd < 0)
24013 exit (1);
24014 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24015 if (data2 == 0)
24016 exit (1);
24017 for (i = 0; i < pagesize; ++i)
24018 if (*(data + i) != *(data2 + i))
24019 exit (1);
24020
24021 /* Finally, make sure that changes to the mapped area
24022 percolate back to the file as seen by read(). */
24023 for (i = 0; i < pagesize; ++i)
24024 *(data2 + i) = *(data2 + i) + 1;
24025 data3 = (char *) malloc (pagesize);
24026 if (!data3)
24027 exit (1);
24028 if (read (fd, data3, pagesize) != pagesize)
24029 exit (1);
24030 for (i = 0; i < pagesize; ++i)
24031 if (*(data2 + i) != *(data3 + i))
24032 exit (1);
24033 close (fd);
24034 exit (0);
24035}
24036_ACEOF
24037if ac_fn_c_try_run "$LINENO"; then :
24038 magick_cv_func_mmap_fileio=yes
24039else
24040 magick_cv_func_mmap_fileio=no
24041fi
24042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24043 conftest.$ac_objext conftest.beam conftest.$ac_ext
24044fi
24045
24046fi
24047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24048$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24049if test $magick_cv_func_mmap_fileio = yes; then
24050
24051$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24052
24053fi
24054rm -f conftest.mmap
24055
cristy8b350f62009-11-15 23:12:43 +000024056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024057$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024058if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024059 $as_echo_n "(cached) " >&6
24060else
cristy8b350f62009-11-15 23:12:43 +000024061 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024062 ac_cv_func_closedir_void=yes
24063else
cristy8b350f62009-11-15 23:12:43 +000024064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024065/* end confdefs.h. */
24066$ac_includes_default
24067#include <$ac_header_dirent>
24068#ifndef __cplusplus
24069int closedir ();
24070#endif
24071
24072int
24073main ()
24074{
24075return closedir (opendir (".")) != 0;
24076 ;
24077 return 0;
24078}
24079_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024080if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024081 ac_cv_func_closedir_void=no
24082else
cristy8b350f62009-11-15 23:12:43 +000024083 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024084fi
cristy8b350f62009-11-15 23:12:43 +000024085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24086 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024087fi
24088
cristy3ed852e2009-09-05 21:47:34 +000024089fi
cristy8b350f62009-11-15 23:12:43 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo "$ac_cv_func_closedir_void" >&6; }
24092if test $ac_cv_func_closedir_void = yes; then
24093
cristy8b350f62009-11-15 23:12:43 +000024094$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024095
24096fi
24097
cristycd4c5312009-11-22 01:19:08 +000024098
24099
24100
24101 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024102do :
24103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024104ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24105"
cristy98dddb52010-11-04 00:30:15 +000024106if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024107 cat >>confdefs.h <<_ACEOF
24108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24109_ACEOF
24110
24111fi
24112
24113done
24114
cristycd4c5312009-11-22 01:19:08 +000024115
24116
24117
24118
24119
24120
24121
cristy3ed852e2009-09-05 21:47:34 +000024122for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024123do :
24124 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024125if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024126 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024127#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024128_ACEOF
24129
24130fi
24131done
24132
cristy8b350f62009-11-15 23:12:43 +000024133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024135if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024136 $as_echo_n "(cached) " >&6
24137else
cristy8b350f62009-11-15 23:12:43 +000024138 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024139 ac_cv_func_mmap_fixed_mapped=no
24140else
cristy8b350f62009-11-15 23:12:43 +000024141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024142/* end confdefs.h. */
24143$ac_includes_default
24144/* malloc might have been renamed as rpl_malloc. */
24145#undef malloc
24146
24147/* Thanks to Mike Haertel and Jim Avera for this test.
24148 Here is a matrix of mmap possibilities:
24149 mmap private not fixed
24150 mmap private fixed at somewhere currently unmapped
24151 mmap private fixed at somewhere already mapped
24152 mmap shared not fixed
24153 mmap shared fixed at somewhere currently unmapped
24154 mmap shared fixed at somewhere already mapped
24155 For private mappings, we should verify that changes cannot be read()
24156 back from the file, nor mmap's back from the file at a different
24157 address. (There have been systems where private was not correctly
24158 implemented like the infamous i386 svr4.0, and systems where the
24159 VM page cache was not coherent with the file system buffer cache
24160 like early versions of FreeBSD and possibly contemporary NetBSD.)
24161 For shared mappings, we should conversely verify that changes get
24162 propagated back to all the places they're supposed to be.
24163
24164 Grep wants private fixed already mapped.
24165 The main things grep needs to know about mmap are:
24166 * does it exist and is it safe to write into the mmap'd area
24167 * how to use it (BSD variants) */
24168
24169#include <fcntl.h>
24170#include <sys/mman.h>
24171
24172#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24173char *malloc ();
24174#endif
24175
24176/* This mess was copied from the GNU getpagesize.h. */
24177#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024178# ifdef _SC_PAGESIZE
24179# define getpagesize() sysconf(_SC_PAGESIZE)
24180# else /* no _SC_PAGESIZE */
24181# ifdef HAVE_SYS_PARAM_H
24182# include <sys/param.h>
24183# ifdef EXEC_PAGESIZE
24184# define getpagesize() EXEC_PAGESIZE
24185# else /* no EXEC_PAGESIZE */
24186# ifdef NBPG
24187# define getpagesize() NBPG * CLSIZE
24188# ifndef CLSIZE
24189# define CLSIZE 1
24190# endif /* no CLSIZE */
24191# else /* no NBPG */
24192# ifdef NBPC
24193# define getpagesize() NBPC
24194# else /* no NBPC */
24195# ifdef PAGESIZE
24196# define getpagesize() PAGESIZE
24197# endif /* PAGESIZE */
24198# endif /* no NBPC */
24199# endif /* no NBPG */
24200# endif /* no EXEC_PAGESIZE */
24201# else /* no HAVE_SYS_PARAM_H */
24202# define getpagesize() 8192 /* punt totally */
24203# endif /* no HAVE_SYS_PARAM_H */
24204# endif /* no _SC_PAGESIZE */
24205
24206#endif /* no HAVE_GETPAGESIZE */
24207
24208int
24209main ()
24210{
24211 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024212 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024213 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024214 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024215
24216 pagesize = getpagesize ();
24217
24218 /* First, make a file with some known garbage in it. */
24219 data = (char *) malloc (pagesize);
24220 if (!data)
24221 return 1;
24222 for (i = 0; i < pagesize; ++i)
24223 *(data + i) = rand ();
24224 umask (0);
24225 fd = creat ("conftest.mmap", 0600);
24226 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024227 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024228 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024229 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024230 close (fd);
24231
cristycd4c5312009-11-22 01:19:08 +000024232 /* Next, check that the tail of a page is zero-filled. File must have
24233 non-zero length, otherwise we risk SIGBUS for entire page. */
24234 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24235 if (fd2 < 0)
24236 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024237 cdata2 = "";
24238 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024239 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024240 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024241 if (data2 == MAP_FAILED)
24242 return 6;
24243 for (i = 0; i < pagesize; ++i)
24244 if (*(data2 + i))
24245 return 7;
24246 close (fd2);
24247 if (munmap (data2, pagesize))
24248 return 8;
24249
cristy3ed852e2009-09-05 21:47:34 +000024250 /* Next, try to mmap the file at a fixed address which already has
24251 something else allocated at it. If we can, also make sure that
24252 we see the same garbage. */
24253 fd = open ("conftest.mmap", O_RDWR);
24254 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024255 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024258 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024259 for (i = 0; i < pagesize; ++i)
24260 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024261 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024262
24263 /* Finally, make sure that changes to the mapped area do not
24264 percolate back to the file as seen by read(). (This is a bug on
24265 some variants of i386 svr4.0.) */
24266 for (i = 0; i < pagesize; ++i)
24267 *(data2 + i) = *(data2 + i) + 1;
24268 data3 = (char *) malloc (pagesize);
24269 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024270 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024271 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024272 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024273 for (i = 0; i < pagesize; ++i)
24274 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024275 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024276 close (fd);
24277 return 0;
24278}
24279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024280if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024281 ac_cv_func_mmap_fixed_mapped=yes
24282else
cristy8b350f62009-11-15 23:12:43 +000024283 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024284fi
cristy8b350f62009-11-15 23:12:43 +000024285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24286 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024287fi
24288
cristy3ed852e2009-09-05 21:47:34 +000024289fi
cristy8b350f62009-11-15 23:12:43 +000024290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024291$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24292if test $ac_cv_func_mmap_fixed_mapped = yes; then
24293
cristy8b350f62009-11-15 23:12:43 +000024294$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024295
24296fi
cristycd4c5312009-11-22 01:19:08 +000024297rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024298
cristy3ed852e2009-09-05 21:47:34 +000024299for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024300do :
24301 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024302if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024303 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024304#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024305_ACEOF
24306
24307fi
24308
24309done
24310
cristy3ed852e2009-09-05 21:47:34 +000024311for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024312do :
24313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24314ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024315if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024316 cat >>confdefs.h <<_ACEOF
24317#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24318_ACEOF
24319
24320fi
24321done
24322
24323if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024325$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024326if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024327 $as_echo_n "(cached) " >&6
24328else
cristy8b350f62009-11-15 23:12:43 +000024329 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024330 ac_cv_func_fork_works=cross
24331else
cristy8b350f62009-11-15 23:12:43 +000024332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024333/* end confdefs.h. */
24334$ac_includes_default
24335int
24336main ()
24337{
24338
24339 /* By Ruediger Kuhlmann. */
24340 return fork () < 0;
24341
24342 ;
24343 return 0;
24344}
24345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024346if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 ac_cv_func_fork_works=yes
24348else
cristy8b350f62009-11-15 23:12:43 +000024349 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024350fi
cristy8b350f62009-11-15 23:12:43 +000024351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24352 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024353fi
24354
cristy3ed852e2009-09-05 21:47:34 +000024355fi
cristy8b350f62009-11-15 23:12:43 +000024356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024357$as_echo "$ac_cv_func_fork_works" >&6; }
24358
24359else
24360 ac_cv_func_fork_works=$ac_cv_func_fork
24361fi
24362if test "x$ac_cv_func_fork_works" = xcross; then
24363 case $host in
24364 *-*-amigaos* | *-*-msdosdjgpp*)
24365 # Override, as these systems have only a dummy fork() stub
24366 ac_cv_func_fork_works=no
24367 ;;
24368 *)
24369 ac_cv_func_fork_works=yes
24370 ;;
24371 esac
cristy8b350f62009-11-15 23:12:43 +000024372 { $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 +000024373$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24374fi
24375ac_cv_func_vfork_works=$ac_cv_func_vfork
24376if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024378$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024379if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024380 $as_echo_n "(cached) " >&6
24381else
cristy8b350f62009-11-15 23:12:43 +000024382 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024383 ac_cv_func_vfork_works=cross
24384else
cristy8b350f62009-11-15 23:12:43 +000024385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024386/* end confdefs.h. */
24387/* Thanks to Paul Eggert for this test. */
24388$ac_includes_default
24389#include <sys/wait.h>
24390#ifdef HAVE_VFORK_H
24391# include <vfork.h>
24392#endif
24393/* On some sparc systems, changes by the child to local and incoming
24394 argument registers are propagated back to the parent. The compiler
24395 is told about this with #include <vfork.h>, but some compilers
24396 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24397 static variable whose address is put into a register that is
24398 clobbered by the vfork. */
24399static void
24400#ifdef __cplusplus
24401sparc_address_test (int arg)
24402# else
24403sparc_address_test (arg) int arg;
24404#endif
24405{
24406 static pid_t child;
24407 if (!child) {
24408 child = vfork ();
24409 if (child < 0) {
24410 perror ("vfork");
24411 _exit(2);
24412 }
24413 if (!child) {
24414 arg = getpid();
24415 write(-1, "", 0);
24416 _exit (arg);
24417 }
24418 }
24419}
24420
24421int
24422main ()
24423{
24424 pid_t parent = getpid ();
24425 pid_t child;
24426
24427 sparc_address_test (0);
24428
24429 child = vfork ();
24430
24431 if (child == 0) {
24432 /* Here is another test for sparc vfork register problems. This
24433 test uses lots of local variables, at least as many local
24434 variables as main has allocated so far including compiler
24435 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24436 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24437 reuse the register of parent for one of the local variables,
24438 since it will think that parent can't possibly be used any more
24439 in this routine. Assigning to the local variable will thus
24440 munge parent in the parent process. */
24441 pid_t
24442 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24443 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24444 /* Convince the compiler that p..p7 are live; otherwise, it might
24445 use the same hardware register for all 8 local variables. */
24446 if (p != p1 || p != p2 || p != p3 || p != p4
24447 || p != p5 || p != p6 || p != p7)
24448 _exit(1);
24449
24450 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24451 from child file descriptors. If the child closes a descriptor
24452 before it execs or exits, this munges the parent's descriptor
24453 as well. Test for this by closing stdout in the child. */
24454 _exit(close(fileno(stdout)) != 0);
24455 } else {
24456 int status;
24457 struct stat st;
24458
24459 while (wait(&status) != child)
24460 ;
24461 return (
24462 /* Was there some problem with vforking? */
24463 child < 0
24464
24465 /* Did the child fail? (This shouldn't happen.) */
24466 || status
24467
24468 /* Did the vfork/compiler bug occur? */
24469 || parent != getpid()
24470
24471 /* Did the file descriptor bug occur? */
24472 || fstat(fileno(stdout), &st) != 0
24473 );
24474 }
24475}
24476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024477if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024478 ac_cv_func_vfork_works=yes
24479else
cristy8b350f62009-11-15 23:12:43 +000024480 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024481fi
cristy8b350f62009-11-15 23:12:43 +000024482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24483 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024484fi
24485
cristy3ed852e2009-09-05 21:47:34 +000024486fi
cristy8b350f62009-11-15 23:12:43 +000024487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024488$as_echo "$ac_cv_func_vfork_works" >&6; }
24489
24490fi;
24491if test "x$ac_cv_func_fork_works" = xcross; then
24492 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024493 { $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 +000024494$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24495fi
24496
24497if test "x$ac_cv_func_vfork_works" = xyes; then
24498
cristy8b350f62009-11-15 23:12:43 +000024499$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024500
24501else
24502
cristy8b350f62009-11-15 23:12:43 +000024503$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024504
24505fi
24506if test "x$ac_cv_func_fork_works" = xyes; then
24507
cristy8b350f62009-11-15 23:12:43 +000024508$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024509
24510fi
24511
cristy8b350f62009-11-15 23:12:43 +000024512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024513$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024514if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024515 $as_echo_n "(cached) " >&6
24516else
cristy8b350f62009-11-15 23:12:43 +000024517 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024518 ac_cv_func_memcmp_working=no
24519else
cristy8b350f62009-11-15 23:12:43 +000024520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024521/* end confdefs.h. */
24522$ac_includes_default
24523int
24524main ()
24525{
24526
24527 /* Some versions of memcmp are not 8-bit clean. */
24528 char c0 = '\100', c1 = '\200', c2 = '\201';
24529 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24530 return 1;
24531
24532 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24533 or more and with at least one buffer not starting on a 4-byte boundary.
24534 William Lewis provided this test program. */
24535 {
24536 char foo[21];
24537 char bar[21];
24538 int i;
24539 for (i = 0; i < 4; i++)
24540 {
24541 char *a = foo + i;
24542 char *b = bar + i;
24543 strcpy (a, "--------01111111");
24544 strcpy (b, "--------10000000");
24545 if (memcmp (a, b, 16) >= 0)
24546 return 1;
24547 }
24548 return 0;
24549 }
24550
24551 ;
24552 return 0;
24553}
24554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024555if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024556 ac_cv_func_memcmp_working=yes
24557else
cristy8b350f62009-11-15 23:12:43 +000024558 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024559fi
cristy8b350f62009-11-15 23:12:43 +000024560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24561 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024562fi
24563
cristy3ed852e2009-09-05 21:47:34 +000024564fi
cristy8b350f62009-11-15 23:12:43 +000024565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024566$as_echo "$ac_cv_func_memcmp_working" >&6; }
24567test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24568 *" memcmp.$ac_objext "* ) ;;
24569 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24570 ;;
24571esac
24572
24573
cristy3ed852e2009-09-05 21:47:34 +000024574for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024575do :
24576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24577ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024578if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024579 cat >>confdefs.h <<_ACEOF
24580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24581_ACEOF
24582
24583fi
24584
24585done
24586
cristy8b350f62009-11-15 23:12:43 +000024587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024588$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024589if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024590 $as_echo_n "(cached) " >&6
24591else
24592 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24593 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24594 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024596/* end confdefs.h. */
24597$ac_includes_default
24598#ifdef HAVE_SYS_SELECT_H
24599# include <sys/select.h>
24600#endif
24601#ifdef HAVE_SYS_SOCKET_H
24602# include <sys/socket.h>
24603#endif
24604
24605int
24606main ()
24607{
24608extern int select ($ac_arg1,
24609 $ac_arg234, $ac_arg234, $ac_arg234,
24610 $ac_arg5);
24611 ;
24612 return 0;
24613}
24614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024615if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024616 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024617fi
cristy3ed852e2009-09-05 21:47:34 +000024618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 done
24620 done
24621done
24622# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024623: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024624
24625fi
cristy8b350f62009-11-15 23:12:43 +000024626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024627$as_echo "$ac_cv_func_select_args" >&6; }
24628ac_save_IFS=$IFS; IFS=','
24629set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24630IFS=$ac_save_IFS
24631shift
24632
24633cat >>confdefs.h <<_ACEOF
24634#define SELECT_TYPE_ARG1 $1
24635_ACEOF
24636
24637
24638cat >>confdefs.h <<_ACEOF
24639#define SELECT_TYPE_ARG234 ($2)
24640_ACEOF
24641
24642
24643cat >>confdefs.h <<_ACEOF
24644#define SELECT_TYPE_ARG5 ($3)
24645_ACEOF
24646
24647rm -f conftest*
24648
cristyda16f162011-02-19 23:52:17 +000024649if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 $as_echo_n "(cached) " >&6
24651else
24652 ac_cv_func_setvbuf_reversed=no
24653fi
24654
24655
cristy8b350f62009-11-15 23:12:43 +000024656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024657$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024658if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024659 $as_echo_n "(cached) " >&6
24660else
cristy8b350f62009-11-15 23:12:43 +000024661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024662/* end confdefs.h. */
24663#include <sys/types.h>
24664#include <signal.h>
24665
24666int
24667main ()
24668{
24669return *(signal (0, 0)) (0) == 1;
24670 ;
24671 return 0;
24672}
24673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024674if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024675 ac_cv_type_signal=int
24676else
cristy8b350f62009-11-15 23:12:43 +000024677 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024678fi
cristy3ed852e2009-09-05 21:47:34 +000024679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24680fi
cristy8b350f62009-11-15 23:12:43 +000024681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024682$as_echo "$ac_cv_type_signal" >&6; }
24683
24684cat >>confdefs.h <<_ACEOF
24685#define RETSIGTYPE $ac_cv_type_signal
24686_ACEOF
24687
24688
cristy8b350f62009-11-15 23:12:43 +000024689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024690$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024691if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024692 $as_echo_n "(cached) " >&6
24693else
cristy8b350f62009-11-15 23:12:43 +000024694 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 ac_cv_func_strtod=no
24696else
cristy8b350f62009-11-15 23:12:43 +000024697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024698/* end confdefs.h. */
24699
24700$ac_includes_default
24701#ifndef strtod
24702double strtod ();
24703#endif
24704int
24705main()
24706{
24707 {
24708 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24709 char *string = " +69";
24710 char *term;
24711 double value;
24712 value = strtod (string, &term);
24713 if (value != 69 || term != (string + 4))
24714 return 1;
24715 }
24716
24717 {
24718 /* Under Solaris 2.4, strtod returns the wrong value for the
24719 terminating character under some conditions. */
24720 char *string = "NaN";
24721 char *term;
24722 strtod (string, &term);
24723 if (term != string && *(term - 1) == 0)
24724 return 1;
24725 }
24726 return 0;
24727}
24728
24729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024730if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024731 ac_cv_func_strtod=yes
24732else
cristy8b350f62009-11-15 23:12:43 +000024733 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024734fi
cristy8b350f62009-11-15 23:12:43 +000024735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24736 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024737fi
24738
cristy3ed852e2009-09-05 21:47:34 +000024739fi
cristy8b350f62009-11-15 23:12:43 +000024740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024741$as_echo "$ac_cv_func_strtod" >&6; }
24742if test $ac_cv_func_strtod = no; then
24743 case " $LIBOBJS " in
24744 *" strtod.$ac_objext "* ) ;;
24745 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24746 ;;
24747esac
24748
cristy8b350f62009-11-15 23:12:43 +000024749ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024750if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024751
cristy3ed852e2009-09-05 21:47:34 +000024752fi
24753
cristy3ed852e2009-09-05 21:47:34 +000024754if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024756$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024757if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 $as_echo_n "(cached) " >&6
24759else
24760 ac_check_lib_save_LIBS=$LIBS
24761LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024763/* end confdefs.h. */
24764
24765/* Override any GCC internal prototype to avoid an error.
24766 Use char because int might match the return type of a GCC
24767 builtin and then its argument prototype would still apply. */
24768#ifdef __cplusplus
24769extern "C"
24770#endif
24771char pow ();
24772int
24773main ()
24774{
24775return pow ();
24776 ;
24777 return 0;
24778}
24779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024780if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024781 ac_cv_lib_m_pow=yes
24782else
cristy8b350f62009-11-15 23:12:43 +000024783 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024784fi
cristy8b350f62009-11-15 23:12:43 +000024785rm -f core conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024787LIBS=$ac_check_lib_save_LIBS
24788fi
cristy8b350f62009-11-15 23:12:43 +000024789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024790$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024791if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024792 POW_LIB=-lm
24793else
cristy8b350f62009-11-15 23:12:43 +000024794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024795$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24796fi
24797
24798fi
24799
24800fi
24801
cristy7d4a1d62011-10-13 15:54:12 +000024802ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24803if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24804 ac_have_decl=1
24805else
24806 ac_have_decl=0
24807fi
24808
24809cat >>confdefs.h <<_ACEOF
24810#define HAVE_DECL_STRERROR_R $ac_have_decl
24811_ACEOF
24812
24813for ac_func in strerror_r
24814do :
24815 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24816if test "x$ac_cv_func_strerror_r" = xyes; then :
24817 cat >>confdefs.h <<_ACEOF
24818#define HAVE_STRERROR_R 1
24819_ACEOF
24820
24821fi
24822done
24823
24824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24825$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24826if ${ac_cv_func_strerror_r_char_p+:} false; then :
24827 $as_echo_n "(cached) " >&6
24828else
24829
24830 ac_cv_func_strerror_r_char_p=no
24831 if test $ac_cv_have_decl_strerror_r = yes; then
24832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833/* end confdefs.h. */
24834$ac_includes_default
24835int
24836main ()
24837{
24838
24839 char buf[100];
24840 char x = *strerror_r (0, buf, sizeof buf);
24841 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024842 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024843
24844 ;
24845 return 0;
24846}
24847_ACEOF
24848if ac_fn_c_try_compile "$LINENO"; then :
24849 ac_cv_func_strerror_r_char_p=yes
24850fi
24851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 else
24853 # strerror_r is not declared. Choose between
24854 # systems that have relatively inaccessible declarations for the
24855 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24856 # former has a strerror_r that returns char*, while the latter
24857 # has a strerror_r that returns `int'.
24858 # This test should segfault on the DEC system.
24859 if test "$cross_compiling" = yes; then :
24860 :
24861else
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863/* end confdefs.h. */
24864$ac_includes_default
24865 extern char *strerror_r ();
24866int
24867main ()
24868{
24869char buf[100];
24870 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024871 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024872 ;
24873 return 0;
24874}
24875_ACEOF
24876if ac_fn_c_try_run "$LINENO"; then :
24877 ac_cv_func_strerror_r_char_p=yes
24878fi
24879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24880 conftest.$ac_objext conftest.beam conftest.$ac_ext
24881fi
24882
24883 fi
24884
24885fi
24886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24887$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24888if test $ac_cv_func_strerror_r_char_p = yes; then
24889
24890$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24891
24892fi
24893
cristy3ed852e2009-09-05 21:47:34 +000024894for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024895do :
24896 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024897if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024898 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024899#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024900_ACEOF
24901
cristy8b350f62009-11-15 23:12:43 +000024902ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024903if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024904
cristy8b350f62009-11-15 23:12:43 +000024905$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024906
24907fi
24908
24909fi
24910done
24911
24912
24913
cristy161b9262010-03-20 19:34:32 +000024914#
24915# Find math library
24916#
24917MATH_LIBS=''
24918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24919$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024920if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024921 $as_echo_n "(cached) " >&6
24922else
24923 ac_check_lib_save_LIBS=$LIBS
24924LIBS="-lm $LIBS"
24925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24926/* end confdefs.h. */
24927
24928/* Override any GCC internal prototype to avoid an error.
24929 Use char because int might match the return type of a GCC
24930 builtin and then its argument prototype would still apply. */
24931#ifdef __cplusplus
24932extern "C"
24933#endif
24934char sqrt ();
24935int
24936main ()
24937{
24938return sqrt ();
24939 ;
24940 return 0;
24941}
24942_ACEOF
24943if ac_fn_c_try_link "$LINENO"; then :
24944 ac_cv_lib_m_sqrt=yes
24945else
24946 ac_cv_lib_m_sqrt=no
24947fi
24948rm -f core conftest.err conftest.$ac_objext \
24949 conftest$ac_exeext conftest.$ac_ext
24950LIBS=$ac_check_lib_save_LIBS
24951fi
24952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24953$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024954if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024955 MATH_LIBS="-lm"
24956fi
24957
24958LIBS="$MATH_LIBS $LIBS"
24959
24960
cristy7d4a1d62011-10-13 15:54:12 +000024961for 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 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 +000024962do :
24963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24964ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024965if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024966 cat >>confdefs.h <<_ACEOF
24967#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24968_ACEOF
24969
24970fi
24971done
24972
24973
cristye43a45e2009-09-28 14:49:00 +000024974#
24975# Check for clock_gettime().
24976#
cristy8b350f62009-11-15 23:12:43 +000024977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024978$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024979if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024980 $as_echo_n "(cached) " >&6
24981else
24982 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024984/* end confdefs.h. */
24985
24986/* Override any GCC internal prototype to avoid an error.
24987 Use char because int might match the return type of a GCC
24988 builtin and then its argument prototype would still apply. */
24989#ifdef __cplusplus
24990extern "C"
24991#endif
24992char clock_gettime ();
24993int
24994main ()
24995{
24996return clock_gettime ();
24997 ;
24998 return 0;
24999}
25000_ACEOF
25001for ac_lib in '' rt; do
25002 if test -z "$ac_lib"; then
25003 ac_res="none required"
25004 else
25005 ac_res=-l$ac_lib
25006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25007 fi
cristy8b350f62009-11-15 23:12:43 +000025008 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025009 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025010fi
cristy8b350f62009-11-15 23:12:43 +000025011rm -f core conftest.err conftest.$ac_objext \
25012 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025013 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025014 break
25015fi
25016done
cristyda16f162011-02-19 23:52:17 +000025017if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025018
cristye43a45e2009-09-28 14:49:00 +000025019else
25020 ac_cv_search_clock_gettime=no
25021fi
25022rm conftest.$ac_ext
25023LIBS=$ac_func_search_save_LIBS
25024fi
cristy8b350f62009-11-15 23:12:43 +000025025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025026$as_echo "$ac_cv_search_clock_gettime" >&6; }
25027ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025028if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25030
25031
cristy8b350f62009-11-15 23:12:43 +000025032$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025033
cristy8b350f62009-11-15 23:12:43 +000025034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025035$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025037/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025038
25039 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025040int
25041main ()
25042{
25043clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025044 ;
25045 return 0;
25046}
25047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025048if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025049
cristy09b53e12011-10-14 12:47:22 +000025050 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25051$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025052
cristy8b350f62009-11-15 23:12:43 +000025053$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025054
25055
25056else
cristy09b53e12011-10-14 12:47:22 +000025057 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25058$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025059
25060fi
cristye43a45e2009-09-28 14:49:00 +000025061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062
25063else
25064
cristy8b350f62009-11-15 23:12:43 +000025065 for ac_func in gettimeofday ftime
25066do :
25067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25068ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025069if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025070 cat >>confdefs.h <<_ACEOF
25071#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25072_ACEOF
25073 break
25074fi
25075done
25076
25077
25078
25079fi
25080
25081
cristy3ed852e2009-09-05 21:47:34 +000025082########
25083#
25084# Check for function prototypes
25085#
25086########
25087
cristy8b350f62009-11-15 23:12:43 +000025088ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025089#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025090"
cristyda16f162011-02-19 23:52:17 +000025091if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025092 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025093else
cristy8b350f62009-11-15 23:12:43 +000025094 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025095fi
25096
cristy3ed852e2009-09-05 21:47:34 +000025097cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025098#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025100ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025101#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025102"
cristyda16f162011-02-19 23:52:17 +000025103if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025104 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025105else
cristy8b350f62009-11-15 23:12:43 +000025106 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025107fi
25108
cristy3ed852e2009-09-05 21:47:34 +000025109cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025110#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025111_ACEOF
25112
25113
cristy8b350f62009-11-15 23:12:43 +000025114ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025115#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025116"
cristyda16f162011-02-19 23:52:17 +000025117if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025118 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025119else
cristy8b350f62009-11-15 23:12:43 +000025120 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025121fi
25122
cristy3ed852e2009-09-05 21:47:34 +000025123cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025124#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025125_ACEOF
25126
25127
cristy8b350f62009-11-15 23:12:43 +000025128ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025129#include <stdio.h>
25130#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025131"
cristyda16f162011-02-19 23:52:17 +000025132if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025133 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025134else
cristy8b350f62009-11-15 23:12:43 +000025135 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025136fi
25137
cristy3ed852e2009-09-05 21:47:34 +000025138cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025139#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025140_ACEOF
25141
25142
cristy3ed852e2009-09-05 21:47:34 +000025143########
25144#
25145# C++ Support Tests (For Magick++)
25146#
25147########
25148have_magick_plus_plus='no'
25149if test "$with_magick_plus_plus" = 'yes'; then
25150 OLIBS="$LIBS"
25151 LIBS=''
25152 ac_ext=cpp
25153ac_cpp='$CXXCPP $CPPFLAGS'
25154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25157
25158
25159 # Full set of headers used...
25160 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25161 # functional iomanip iosfwd iostream iterator list string strstream utility
25162 ac_ext=cpp
25163ac_cpp='$CXXCPP $CPPFLAGS'
25164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25167
25168 ac_ext=cpp
25169ac_cpp='$CXXCPP $CPPFLAGS'
25170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25173if test -z "$CXX"; then
25174 if test -n "$CCC"; then
25175 CXX=$CCC
25176 else
25177 if test -n "$ac_tool_prefix"; then
25178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25179 do
25180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025184if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025185 $as_echo_n "(cached) " >&6
25186else
25187 if test -n "$CXX"; then
25188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25189else
25190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25191for as_dir in $PATH
25192do
25193 IFS=$as_save_IFS
25194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025199 break 2
25200 fi
25201done
cristy8b350f62009-11-15 23:12:43 +000025202 done
cristy3ed852e2009-09-05 21:47:34 +000025203IFS=$as_save_IFS
25204
25205fi
25206fi
25207CXX=$ac_cv_prog_CXX
25208if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025210$as_echo "$CXX" >&6; }
25211else
cristy8b350f62009-11-15 23:12:43 +000025212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025213$as_echo "no" >&6; }
25214fi
25215
25216
25217 test -n "$CXX" && break
25218 done
25219fi
25220if test -z "$CXX"; then
25221 ac_ct_CXX=$CXX
25222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25223do
25224 # Extract the first word of "$ac_prog", so it can be a program name with args.
25225set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025228if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025229 $as_echo_n "(cached) " >&6
25230else
25231 if test -n "$ac_ct_CXX"; then
25232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25233else
25234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25235for as_dir in $PATH
25236do
25237 IFS=$as_save_IFS
25238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25241 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025243 break 2
25244 fi
25245done
cristy8b350f62009-11-15 23:12:43 +000025246 done
cristy3ed852e2009-09-05 21:47:34 +000025247IFS=$as_save_IFS
25248
25249fi
25250fi
25251ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25252if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025254$as_echo "$ac_ct_CXX" >&6; }
25255else
cristy8b350f62009-11-15 23:12:43 +000025256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025257$as_echo "no" >&6; }
25258fi
25259
25260
25261 test -n "$ac_ct_CXX" && break
25262done
25263
25264 if test "x$ac_ct_CXX" = x; then
25265 CXX="g++"
25266 else
25267 case $cross_compiling:$ac_tool_warned in
25268yes:)
cristy8b350f62009-11-15 23:12:43 +000025269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25271ac_tool_warned=yes ;;
25272esac
25273 CXX=$ac_ct_CXX
25274 fi
25275fi
25276
25277 fi
25278fi
25279# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025280$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281set X $ac_compile
25282ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025283for ac_option in --version -v -V -qversion; do
25284 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025285case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25288esac
cristy8b350f62009-11-15 23:12:43 +000025289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25290$as_echo "$ac_try_echo"; } >&5
25291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025292 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025293 if test -s conftest.err; then
25294 sed '10a\
25295... rest of stderr output deleted ...
25296 10q' conftest.err >conftest.er1
25297 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025298 fi
cristycd4c5312009-11-22 01:19:08 +000025299 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25301 test $ac_status = 0; }
25302done
cristy3ed852e2009-09-05 21:47:34 +000025303
cristy8b350f62009-11-15 23:12:43 +000025304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025305$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025306if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025307 $as_echo_n "(cached) " >&6
25308else
cristy8b350f62009-11-15 23:12:43 +000025309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025310/* end confdefs.h. */
25311
25312int
25313main ()
25314{
25315#ifndef __GNUC__
25316 choke me
25317#endif
25318
25319 ;
25320 return 0;
25321}
25322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025323if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025324 ac_compiler_gnu=yes
25325else
cristy8b350f62009-11-15 23:12:43 +000025326 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025327fi
cristy3ed852e2009-09-05 21:47:34 +000025328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25329ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25330
25331fi
cristy8b350f62009-11-15 23:12:43 +000025332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025333$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25334if test $ac_compiler_gnu = yes; then
25335 GXX=yes
25336else
25337 GXX=
25338fi
25339ac_test_CXXFLAGS=${CXXFLAGS+set}
25340ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025342$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025343if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025344 $as_echo_n "(cached) " >&6
25345else
25346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25347 ac_cxx_werror_flag=yes
25348 ac_cv_prog_cxx_g=no
25349 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025351/* end confdefs.h. */
25352
25353int
25354main ()
25355{
25356
25357 ;
25358 return 0;
25359}
25360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025361if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 ac_cv_prog_cxx_g=yes
25363else
cristy8b350f62009-11-15 23:12:43 +000025364 CXXFLAGS=""
25365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025366/* end confdefs.h. */
25367
25368int
25369main ()
25370{
25371
25372 ;
25373 return 0;
25374}
25375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025376if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025377
cristy8b350f62009-11-15 23:12:43 +000025378else
25379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025380 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025382/* end confdefs.h. */
25383
25384int
25385main ()
25386{
25387
25388 ;
25389 return 0;
25390}
25391_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025392if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025393 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025394fi
cristy3ed852e2009-09-05 21:47:34 +000025395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396fi
cristy3ed852e2009-09-05 21:47:34 +000025397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398fi
cristy3ed852e2009-09-05 21:47:34 +000025399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25401fi
cristy8b350f62009-11-15 23:12:43 +000025402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025403$as_echo "$ac_cv_prog_cxx_g" >&6; }
25404if test "$ac_test_CXXFLAGS" = set; then
25405 CXXFLAGS=$ac_save_CXXFLAGS
25406elif test $ac_cv_prog_cxx_g = yes; then
25407 if test "$GXX" = yes; then
25408 CXXFLAGS="-g -O2"
25409 else
25410 CXXFLAGS="-g"
25411 fi
25412else
25413 if test "$GXX" = yes; then
25414 CXXFLAGS="-O2"
25415 else
25416 CXXFLAGS=
25417 fi
25418fi
25419ac_ext=cpp
25420ac_cpp='$CXXCPP $CPPFLAGS'
25421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25424
cristy73bd4a52010-10-05 11:24:23 +000025425depcc="$CXX" am_compiler_list=
25426
25427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25428$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025429if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025430 $as_echo_n "(cached) " >&6
25431else
25432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25433 # We make a subdir and do the tests there. Otherwise we can end up
25434 # making bogus files that we don't know about and never remove. For
25435 # instance it was reported that on HP-UX the gcc test will end up
25436 # making a dummy file named `D' -- because `-MD' means `put the output
25437 # in D'.
25438 mkdir conftest.dir
25439 # Copy depcomp to subdir because otherwise we won't find it if we're
25440 # using a relative directory.
25441 cp "$am_depcomp" conftest.dir
25442 cd conftest.dir
25443 # We will build objects and dependencies in a subdirectory because
25444 # it helps to detect inapplicable dependency modes. For instance
25445 # both Tru64's cc and ICC support -MD to output dependencies as a
25446 # side effect of compilation, but ICC will put the dependencies in
25447 # the current directory while Tru64 will put them in the object
25448 # directory.
25449 mkdir sub
25450
25451 am_cv_CXX_dependencies_compiler_type=none
25452 if test "$am_compiler_list" = ""; then
25453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25454 fi
25455 am__universal=false
25456 case " $depcc " in #(
25457 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25458 esac
25459
25460 for depmode in $am_compiler_list; do
25461 # Setup a source with many dependencies, because some compilers
25462 # like to wrap large dependency lists on column 80 (with \), and
25463 # we should not choose a depcomp mode which is confused by this.
25464 #
25465 # We need to recreate these files for each test, as the compiler may
25466 # overwrite some of them when testing with obscure command lines.
25467 # This happens at least with the AIX C compiler.
25468 : > sub/conftest.c
25469 for i in 1 2 3 4 5 6; do
25470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25472 # Solaris 8's {/usr,}/bin/sh.
25473 touch sub/conftst$i.h
25474 done
25475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25476
25477 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25478 # mode. It turns out that the SunPro C++ compiler does not properly
25479 # handle `-M -o', and we need to detect this. Also, some Intel
25480 # versions had trouble with output in subdirs
25481 am__obj=sub/conftest.${OBJEXT-o}
25482 am__minus_obj="-o $am__obj"
25483 case $depmode in
25484 gcc)
25485 # This depmode causes a compiler race in universal mode.
25486 test "$am__universal" = false || continue
25487 ;;
25488 nosideeffect)
25489 # after this tag, mechanisms are not by side-effect, so they'll
25490 # only be used when explicitly requested
25491 if test "x$enable_dependency_tracking" = xyes; then
25492 continue
25493 else
25494 break
25495 fi
25496 ;;
25497 msvisualcpp | msvcmsys)
25498 # This compiler won't grok `-c -o', but also, the minuso test has
25499 # not run yet. These depmodes are late enough in the game, and
25500 # so weak that their functioning should not be impacted.
25501 am__obj=conftest.${OBJEXT-o}
25502 am__minus_obj=
25503 ;;
25504 none) break ;;
25505 esac
25506 if depmode=$depmode \
25507 source=sub/conftest.c object=$am__obj \
25508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25509 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25510 >/dev/null 2>conftest.err &&
25511 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25513 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25515 # icc doesn't choke on unknown options, it will just issue warnings
25516 # or remarks (even with -Werror). So we grep stderr for any message
25517 # that says an option was ignored or not supported.
25518 # When given -MP, icc 7.0 and 7.1 complain thusly:
25519 # icc: Command line warning: ignoring option '-M'; no argument required
25520 # The diagnosis changed in icc 8.0:
25521 # icc: Command line remark: option '-MP' not supported
25522 if (grep 'ignoring option' conftest.err ||
25523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25524 am_cv_CXX_dependencies_compiler_type=$depmode
25525 break
25526 fi
25527 fi
25528 done
25529
25530 cd ..
25531 rm -rf conftest.dir
25532else
25533 am_cv_CXX_dependencies_compiler_type=none
25534fi
25535
25536fi
25537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25538$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25539CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25540
25541 if
25542 test "x$enable_dependency_tracking" != xno \
25543 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25544 am__fastdepCXX_TRUE=
25545 am__fastdepCXX_FALSE='#'
25546else
25547 am__fastdepCXX_TRUE='#'
25548 am__fastdepCXX_FALSE=
25549fi
25550
25551
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25553$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025554if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025555 $as_echo_n "(cached) " >&6
25556else
25557
25558 ac_ext=cpp
25559ac_cpp='$CXXCPP $CPPFLAGS'
25560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25563
25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565/* end confdefs.h. */
25566
25567int f(int x){return 1;}
25568int f(char x){return 1;}
25569int f(bool x){return 1;}
25570
25571int
25572main ()
25573{
25574bool b = true; return f(b);
25575 ;
25576 return 0;
25577}
25578_ACEOF
25579if ac_fn_cxx_try_compile "$LINENO"; then :
25580 ax_cv_cxx_bool=yes
25581else
25582 ax_cv_cxx_bool=no
25583fi
25584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25585 ac_ext=cpp
25586ac_cpp='$CXXCPP $CPPFLAGS'
25587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25590
25591
25592fi
25593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25594$as_echo "$ax_cv_cxx_bool" >&6; }
25595if test "$ax_cv_cxx_bool" = yes; then
25596
25597$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25598
25599fi
25600
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25602$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025603if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025604 $as_echo_n "(cached) " >&6
25605else
25606
25607 ac_ext=cpp
25608ac_cpp='$CXXCPP $CPPFLAGS'
25609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25612
25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614/* end confdefs.h. */
25615namespace Outer { namespace Inner { int i = 0; }}
25616int
25617main ()
25618{
25619using namespace Outer::Inner; return i;
25620 ;
25621 return 0;
25622}
25623_ACEOF
25624if ac_fn_cxx_try_compile "$LINENO"; then :
25625 ax_cv_cxx_namespaces=yes
25626else
25627 ax_cv_cxx_namespaces=no
25628fi
25629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 ac_ext=cpp
25631ac_cpp='$CXXCPP $CPPFLAGS'
25632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25635
25636
25637fi
25638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25639$as_echo "$ax_cv_cxx_namespaces" >&6; }
25640if test "$ax_cv_cxx_namespaces" = yes; then
25641
25642$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25643
25644fi
25645
25646
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25648$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025649if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025650 $as_echo_n "(cached) " >&6
25651else
25652
25653 ac_ext=cpp
25654ac_cpp='$CXXCPP $CPPFLAGS'
25655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25658
25659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660/* end confdefs.h. */
25661#include <iostream>
25662 std::istream& is = std::cin;
25663int
25664main ()
25665{
25666
25667 ;
25668 return 0;
25669}
25670_ACEOF
25671if ac_fn_cxx_try_compile "$LINENO"; then :
25672 ax_cv_cxx_have_std_namespace=yes
25673else
25674 ax_cv_cxx_have_std_namespace=no
25675fi
25676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25677 ac_ext=cpp
25678ac_cpp='$CXXCPP $CPPFLAGS'
25679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25682
25683
25684fi
25685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25686$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25687 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25688
25689$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25690
25691 fi
25692
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25694$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025695if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025696 $as_echo_n "(cached) " >&6
25697else
25698
25699
25700 ac_ext=cpp
25701ac_cpp='$CXXCPP $CPPFLAGS'
25702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25705
25706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25707/* end confdefs.h. */
25708#include <iostream>
25709#include <map>
25710#include <iomanip>
25711#include <cmath>
25712#ifdef HAVE_NAMESPACES
25713using namespace std;
25714#endif
25715int
25716main ()
25717{
25718return 0;
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723if ac_fn_cxx_try_compile "$LINENO"; then :
25724 ac_cv_cxx_have_std_libs=yes
25725else
25726 ac_cv_cxx_have_std_libs=no
25727fi
25728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 ac_ext=cpp
25730ac_cpp='$CXXCPP $CPPFLAGS'
25731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25734
25735
25736fi
25737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25738$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25739if test "$ac_cv_cxx_have_std_libs" = yes; then
25740
25741$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25742
25743fi
25744
cristy3ed852e2009-09-05 21:47:34 +000025745
25746 OPENMP_CXXFLAGS=
25747 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025748if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025749 enableval=$enable_openmp;
25750fi
25751
25752 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25754$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025755if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025756 $as_echo_n "(cached) " >&6
25757else
cristy8b350f62009-11-15 23:12:43 +000025758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025760
25761#ifndef _OPENMP
25762 choke me
25763#endif
25764#include <omp.h>
25765int main () { return omp_get_num_threads (); }
25766
25767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025768if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025769 ac_cv_prog_cxx_openmp='none needed'
25770else
cristy8b350f62009-11-15 23:12:43 +000025771 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025772 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25773 ac_save_CXXFLAGS=$CXXFLAGS
25774 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25776/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025777
25778#ifndef _OPENMP
25779 choke me
25780#endif
25781#include <omp.h>
25782int main () { return omp_get_num_threads (); }
25783
25784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025785if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025786 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025787fi
cristy8b350f62009-11-15 23:12:43 +000025788rm -f core conftest.err conftest.$ac_objext \
25789 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025790 CXXFLAGS=$ac_save_CXXFLAGS
25791 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25792 break
25793 fi
25794 done
25795fi
cristy8b350f62009-11-15 23:12:43 +000025796rm -f core conftest.err conftest.$ac_objext \
25797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025798fi
cristy8b350f62009-11-15 23:12:43 +000025799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025800$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25801 case $ac_cv_prog_cxx_openmp in #(
25802 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025803 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025804 *)
cristy8b350f62009-11-15 23:12:43 +000025805 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025806 esac
25807 fi
25808
25809
25810 ac_ext=c
25811ac_cpp='$CPP $CPPFLAGS'
25812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25814ac_compiler_gnu=$ac_cv_c_compiler_gnu
25815
25816
cristy8b350f62009-11-15 23:12:43 +000025817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025818$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25819 if \
cristy964cb7f2010-04-25 23:18:00 +000025820 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025821 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025822 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025823 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025824 have_magick_plus_plus='yes'
25825 else
25826 have_magick_plus_plus='no (failed tests)'
25827 fi
cristy09b53e12011-10-14 12:47:22 +000025828 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25829$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025830 LIBS="$OLIBS"
25831fi
cristy73bd4a52010-10-05 11:24:23 +000025832 if test "$have_magick_plus_plus" = 'yes'; then
25833 WITH_MAGICK_PLUS_PLUS_TRUE=
25834 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25835else
25836 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25837 WITH_MAGICK_PLUS_PLUS_FALSE=
25838fi
25839
cristy3ed852e2009-09-05 21:47:34 +000025840
25841# Only check for delegate libraries in subdirectories if requested.
25842if test "$enable_delegate_build" != 'no'; then
25843 # Check for delegate sub-directories and add -I & -L options as required.
25844 # This presumes that delegates are installed as detailed in the ImageMagick
25845 # README. If delegates are installed in a standard location where the
25846 # compiler will automatically find them then these options should not be
25847 # required.
25848
25849 #
25850 # Most delegates have includes in the same directory as the library, but not all...
25851 #
25852 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025853 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025854 if test -d "$builddir/$dir"; then
25855 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25856 else
25857 if test -d "$srcdirfull/$dir"; then
25858 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25859 fi
25860 fi
25861 done
25862
25863 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025864 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025865 if test -d "$builddir/$dir/.libs"; then
25866 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25867 else
25868 if test -d "$srcdirfull/$dir/.libs"; then
25869 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25870 fi
25871 fi
25872 if test -d "$builddir/$dir"; then
25873 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25874 else
25875 if test -d "$srcdirfull/$dir"; then
25876 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25877 fi
25878 fi
25879 done
25880fi
25881
25882# Assume that delegate headers reside under same directory as ImageMagick
25883# installation prefix.
25884MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25885
25886#
25887# Find the X11 RGB database
25888#
cristy8b350f62009-11-15 23:12:43 +000025889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025890$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025891if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 $as_echo_n "(cached) " >&6
25893else
25894 # Look for the header file in a standard set of common directories.
25895# Check X11 before X11Rn because it is often a symlink to the current release.
25896 for ac_dir in \
25897 /lib/usr/lib/X11 \
25898 /usr/X11/lib \
25899 /usr/X11R4/lib \
25900 /usr/X11R5/lib \
25901 /usr/X11R6/lib \
25902 /usr/X11R7/lib \
25903 /usr/X386/lib \
25904 /usr/XFree86/lib/X11 \
25905 /usr/athena/lib \
25906 /usr/lib \
25907 /usr/lib/X11 \
25908 /usr/lib/X11R4 \
25909 /usr/lib/X11R5 \
25910 /usr/lib/X11R6 \
25911 /usr/lib/X11R7 \
25912 /usr/local/X11/lib \
25913 /usr/local/X11R4/lib \
25914 /usr/local/X11R5/lib \
25915 /usr/local/X11R6/lib \
25916 /usr/local/lib \
25917 /usr/local/lib/X11 \
25918 /usr/local/lib/X11R4 \
25919 /usr/local/lib/X11R5 \
25920 /usr/local/lib/X11R6 \
25921 /usr/local/lib/X11R7 \
25922 /usr/local/x11r5/lib \
25923 /usr/lpp/Xamples/lib \
25924 /usr/openwin/lib \
25925 /usr/openwin/share/lib \
25926 /usr/unsupported/lib \
25927 /usr/x386/lib \
25928 ; do
25929 if test -f "$ac_dir/X11/rgb.txt"; then
25930 im_cv_x_configure="$ac_dir/X11/"
25931 break
25932 elif test -f "$ac_dir/rgb.txt"; then
25933 im_cv_x_configure="$ac_dir/"
25934 break
25935 fi
25936
25937 done
25938fi
cristy8b350f62009-11-15 23:12:43 +000025939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025940$as_echo "$im_cv_x_configure" >&6; }
25941X11_CONFIGURE_PATH="$im_cv_x_configure"
25942case "${build_os}" in
25943 mingw* )
25944 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25945 ;;
25946esac
25947
25948cat >>confdefs.h <<_ACEOF
25949#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25950_ACEOF
25951
25952
25953#
25954# Find OpenMP library
25955#
25956GOMP_LIBS=''
25957if test "$enable_openmp" != 'no'; then
25958 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025960$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025961if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025962 $as_echo_n "(cached) " >&6
25963else
25964 ac_check_lib_save_LIBS=$LIBS
25965LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025967/* end confdefs.h. */
25968
25969/* Override any GCC internal prototype to avoid an error.
25970 Use char because int might match the return type of a GCC
25971 builtin and then its argument prototype would still apply. */
25972#ifdef __cplusplus
25973extern "C"
25974#endif
25975char GOMP_parallel_start ();
25976int
25977main ()
25978{
25979return GOMP_parallel_start ();
25980 ;
25981 return 0;
25982}
25983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025985 ac_cv_lib_gomp_GOMP_parallel_start=yes
25986else
cristy8b350f62009-11-15 23:12:43 +000025987 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025988fi
cristy8b350f62009-11-15 23:12:43 +000025989rm -f core conftest.err conftest.$ac_objext \
25990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025991LIBS=$ac_check_lib_save_LIBS
25992fi
cristy8b350f62009-11-15 23:12:43 +000025993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025994$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025995if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025996 GOMP_LIBS="-lgomp"
25997fi
25998 # gcc
25999 else
cristy8b350f62009-11-15 23:12:43 +000026000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026001$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026002if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 $as_echo_n "(cached) " >&6
26004else
26005 ac_check_lib_save_LIBS=$LIBS
26006LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026008/* end confdefs.h. */
26009
26010/* Override any GCC internal prototype to avoid an error.
26011 Use char because int might match the return type of a GCC
26012 builtin and then its argument prototype would still apply. */
26013#ifdef __cplusplus
26014extern "C"
26015#endif
26016char sunw_mp_register_warn ();
26017int
26018main ()
26019{
26020return sunw_mp_register_warn ();
26021 ;
26022 return 0;
26023}
26024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026025if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026026 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26027else
cristy8b350f62009-11-15 23:12:43 +000026028 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026029fi
cristy8b350f62009-11-15 23:12:43 +000026030rm -f core conftest.err conftest.$ac_objext \
26031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026032LIBS=$ac_check_lib_save_LIBS
26033fi
cristy8b350f62009-11-15 23:12:43 +000026034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026035$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026036if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026037 GOMP_LIBS="-lmtsk"
26038fi
26039 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026041$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026042if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026043 $as_echo_n "(cached) " >&6
26044else
26045 ac_check_lib_save_LIBS=$LIBS
26046LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026048/* end confdefs.h. */
26049
26050/* Override any GCC internal prototype to avoid an error.
26051 Use char because int might match the return type of a GCC
26052 builtin and then its argument prototype would still apply. */
26053#ifdef __cplusplus
26054extern "C"
26055#endif
26056char _xlsmpFlush ();
26057int
26058main ()
26059{
26060return _xlsmpFlush ();
26061 ;
26062 return 0;
26063}
26064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026065if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026066 ac_cv_lib_xlsmp__xlsmpFlush=yes
26067else
cristy8b350f62009-11-15 23:12:43 +000026068 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026069fi
cristy8b350f62009-11-15 23:12:43 +000026070rm -f core conftest.err conftest.$ac_objext \
26071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026072LIBS=$ac_check_lib_save_LIBS
26073fi
cristy8b350f62009-11-15 23:12:43 +000026074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026075$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026076if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026077 GOMP_LIBS="-lxlsmp"
26078fi
26079 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026081$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026082if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026083 $as_echo_n "(cached) " >&6
26084else
26085 ac_check_lib_save_LIBS=$LIBS
26086LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026088/* end confdefs.h. */
26089
26090/* Override any GCC internal prototype to avoid an error.
26091 Use char because int might match the return type of a GCC
26092 builtin and then its argument prototype would still apply. */
26093#ifdef __cplusplus
26094extern "C"
26095#endif
26096char mp_destroy ();
26097int
26098main ()
26099{
26100return mp_destroy ();
26101 ;
26102 return 0;
26103}
26104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026105if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026106 ac_cv_lib_mp_mp_destroy=yes
26107else
cristy8b350f62009-11-15 23:12:43 +000026108 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026109fi
cristy8b350f62009-11-15 23:12:43 +000026110rm -f core conftest.err conftest.$ac_objext \
26111 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026112LIBS=$ac_check_lib_save_LIBS
26113fi
cristy8b350f62009-11-15 23:12:43 +000026114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026115$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026116if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026117 GOMP_LIBS="-lmp"
26118fi
26119 # SGI IRIX 6.5 MIPSpro C/C++
26120 fi
26121 LIBS="$GOMP_LIBS $LIBS"
26122fi
26123
26124
26125#
26126# Find Posix threads library
26127#
26128THREAD_LIBS=''
26129if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26130
26131 if test "x$PTHREAD_LIBS" = "x"; then
26132 case "${host_cpu}-${host_os}" in
26133 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026134
26135
26136
26137ac_ext=c
26138ac_cpp='$CPP $CPPFLAGS'
26139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26141ac_compiler_gnu=$ac_cv_c_compiler_gnu
26142
26143magick_pthread_lib_ok=no
26144
26145LIB=-lc_r
26146save_LIBS="$LIBS"
26147LIBS="$LIBS $LIB"
26148
26149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26150$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152/* end confdefs.h. */
26153#include <pthread.h>
26154int
26155main ()
26156{
26157 pthread_t th;
26158 pthread_join(th, 0);
26159 pthread_attr_init(0);
26160 pthread_cleanup_push(0, 0);
26161 pthread_create(0,0,0,0);
26162 pthread_cleanup_pop(0);
26163 ;
26164 return 0;
26165}
26166_ACEOF
26167if ac_fn_c_try_link "$LINENO"; then :
26168 magick_pthread_lib_ok=yes
26169fi
26170rm -f core conftest.err conftest.$ac_objext \
26171 conftest$ac_exeext conftest.$ac_ext
26172
26173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26174$as_echo "${magick_pthread_lib_ok}" >&6; }
26175if test "$magick_pthread_lib_ok" = yes
26176then
26177 PTHREAD_LIBS=-lc_r
26178 :
26179else
26180
26181 :
26182fi
26183
26184LIBS="$save_LIBS"
26185
26186ac_ext=c
26187ac_cpp='$CPP $CPPFLAGS'
26188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26190ac_compiler_gnu=$ac_cv_c_compiler_gnu
26191
26192 ;;
cristy3ed852e2009-09-05 21:47:34 +000026193 esac
26194 fi
26195
26196 for lib in pthread pthreads; do
26197 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026198
26199
26200
26201ac_ext=c
26202ac_cpp='$CPP $CPPFLAGS'
26203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26205ac_compiler_gnu=$ac_cv_c_compiler_gnu
26206
26207magick_pthread_lib_ok=no
26208
26209LIB=-l$lib
26210save_LIBS="$LIBS"
26211LIBS="$LIBS $LIB"
26212
26213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26214$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26216/* end confdefs.h. */
26217#include <pthread.h>
26218int
26219main ()
26220{
26221 pthread_t th;
26222 pthread_join(th, 0);
26223 pthread_attr_init(0);
26224 pthread_cleanup_push(0, 0);
26225 pthread_create(0,0,0,0);
26226 pthread_cleanup_pop(0);
26227 ;
26228 return 0;
26229}
26230_ACEOF
26231if ac_fn_c_try_link "$LINENO"; then :
26232 magick_pthread_lib_ok=yes
26233fi
26234rm -f core conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
26236
26237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26238$as_echo "${magick_pthread_lib_ok}" >&6; }
26239if test "$magick_pthread_lib_ok" = yes
26240then
26241 PTHREAD_LIBS=-l$lib
26242 :
26243else
26244
26245 :
26246fi
26247
26248LIBS="$save_LIBS"
26249
26250ac_ext=c
26251ac_cpp='$CPP $CPPFLAGS'
26252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254ac_compiler_gnu=$ac_cv_c_compiler_gnu
26255
26256
cristy3ed852e2009-09-05 21:47:34 +000026257 fi
26258 done
26259
26260 THREAD_LIBS="$PTHREAD_LIBS"
26261 LIBS="$LIBS $THREAD_LIBS"
26262fi
26263
26264
26265#
26266# Check for umem.
26267#
26268have_umem='no'
26269UMEM_LIBS=''
26270if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026272$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026273 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26274$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026275 failed=0
26276 passed=0
cristy8b350f62009-11-15 23:12:43 +000026277 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026278if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026279 passed=`expr $passed + 1`
26280else
26281 failed=`expr $failed + 1`
26282fi
26283
26284
cristy8b350f62009-11-15 23:12:43 +000026285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026286$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026287if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026288 $as_echo_n "(cached) " >&6
26289else
26290 ac_check_lib_save_LIBS=$LIBS
26291LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026293/* end confdefs.h. */
26294
26295/* Override any GCC internal prototype to avoid an error.
26296 Use char because int might match the return type of a GCC
26297 builtin and then its argument prototype would still apply. */
26298#ifdef __cplusplus
26299extern "C"
26300#endif
26301char umem_alloc ();
26302int
26303main ()
26304{
26305return umem_alloc ();
26306 ;
26307 return 0;
26308}
26309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026310if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026311 ac_cv_lib_umem_umem_alloc=yes
26312else
cristy8b350f62009-11-15 23:12:43 +000026313 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026314fi
cristy8b350f62009-11-15 23:12:43 +000026315rm -f core conftest.err conftest.$ac_objext \
26316 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026317LIBS=$ac_check_lib_save_LIBS
26318fi
cristy8b350f62009-11-15 23:12:43 +000026319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026320$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026321if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026322 passed=`expr $passed + 1`
26323else
26324 failed=`expr $failed + 1`
26325fi
26326
cristy8b350f62009-11-15 23:12:43 +000026327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026328$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026329if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026330 $as_echo_n "(cached) " >&6
26331else
26332 ac_check_lib_save_LIBS=$LIBS
26333LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026335/* end confdefs.h. */
26336
26337/* Override any GCC internal prototype to avoid an error.
26338 Use char because int might match the return type of a GCC
26339 builtin and then its argument prototype would still apply. */
26340#ifdef __cplusplus
26341extern "C"
26342#endif
26343char umem_free ();
26344int
26345main ()
26346{
26347return umem_free ();
26348 ;
26349 return 0;
26350}
26351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026353 ac_cv_lib_umem_umem_free=yes
26354else
cristy8b350f62009-11-15 23:12:43 +000026355 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026356fi
cristy8b350f62009-11-15 23:12:43 +000026357rm -f core conftest.err conftest.$ac_objext \
26358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026359LIBS=$ac_check_lib_save_LIBS
26360fi
cristy8b350f62009-11-15 23:12:43 +000026361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026363if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026364 passed=`expr $passed + 1`
26365else
26366 failed=`expr $failed + 1`
26367fi
26368
cristy8b350f62009-11-15 23:12:43 +000026369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26371 if test $passed -gt 0; then
26372 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026373 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26374$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026375 have_umem='no (failed tests)'
26376 else
26377 UMEM_LIBS='-lumem'
26378 LIBS="$UMEM_LIBS $LIBS"
26379
cristy8b350f62009-11-15 23:12:43 +000026380$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026381
cristy09b53e12011-10-14 12:47:22 +000026382 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26383$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026384 have_umem='yes'
26385 fi
26386 else
cristy09b53e12011-10-14 12:47:22 +000026387 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26388$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026389 fi
26390fi
cristy73bd4a52010-10-05 11:24:23 +000026391 if test "$have_umem" = 'yes'; then
26392 HasUMEM_TRUE=
26393 HasUMEM_FALSE='#'
26394else
26395 HasUMEM_TRUE='#'
26396 HasUMEM_FALSE=
26397fi
26398
cristy3ed852e2009-09-05 21:47:34 +000026399
26400
26401#
26402# Add support for ccmalloc memory debugging library if requested
26403#
26404have_ccmalloc='no'
26405CCMALLOC_LIBS=''
26406if test "$enable_ccmalloc" = 'yes'; then
26407 # Extract the first word of "ccmalloc", so it can be a program name with args.
26408set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026410$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026411if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026412 $as_echo_n "(cached) " >&6
26413else
26414 case $CCMALLOCDelegate in
26415 [\\/]* | ?:[\\/]*)
26416 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26417 ;;
26418 *)
26419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26420for as_dir in $PATH
26421do
26422 IFS=$as_save_IFS
26423 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26426 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428 break 2
26429 fi
26430done
cristy8b350f62009-11-15 23:12:43 +000026431 done
cristy3ed852e2009-09-05 21:47:34 +000026432IFS=$as_save_IFS
26433
26434 ;;
26435esac
26436fi
26437CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26438if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026440$as_echo "$CCMALLOCDelegate" >&6; }
26441else
cristy8b350f62009-11-15 23:12:43 +000026442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026443$as_echo "no" >&6; }
26444fi
26445
26446
26447 if test -n "$CCMALLOCDelegate"; then
26448 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26449 OLIBS="$LIBS"
26450 # Assume that gcc is used with ccmalloc.
26451 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026454if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 $as_echo_n "(cached) " >&6
26456else
26457 ac_check_lib_save_LIBS=$LIBS
26458LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026460/* end confdefs.h. */
26461
26462/* Override any GCC internal prototype to avoid an error.
26463 Use char because int might match the return type of a GCC
26464 builtin and then its argument prototype would still apply. */
26465#ifdef __cplusplus
26466extern "C"
26467#endif
26468char ccmalloc_malloc ();
26469int
26470main ()
26471{
26472return ccmalloc_malloc ();
26473 ;
26474 return 0;
26475}
26476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26479else
cristy8b350f62009-11-15 23:12:43 +000026480 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026481fi
cristy8b350f62009-11-15 23:12:43 +000026482rm -f core conftest.err conftest.$ac_objext \
26483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026484LIBS=$ac_check_lib_save_LIBS
26485fi
cristy8b350f62009-11-15 23:12:43 +000026486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026487$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026488if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026489 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26490fi
26491
26492 if test -n "$CCMALLOC_LIBS"; then
26493 LIBS="$OLIBS"
26494 LIBS="$LIBS $CCMALLOC_LIBS"
26495 have_ccmalloc='yes'
26496 else
26497 LIBS="$OLIBS"
26498 fi
26499 fi
26500fi
26501
26502#
26503# Add support for efence memory debugging library if requested
26504#
26505if test "$enable_efence" = 'yes'; then
26506 EFENCE_LIBS='-lefence'
26507 LIBS="$EFENCE_LIBS $LIBS"
26508fi
26509
cristy3ed852e2009-09-05 21:47:34 +000026510
26511#
26512# Check for BZLIB
26513#
26514
26515
26516# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026517if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026518 withval=$with_bzlib; with_bzlib=$withval
26519else
26520 with_bzlib='yes'
26521fi
26522
26523
26524if test "$with_bzlib" != 'yes'; then
26525 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26526fi
26527
26528have_bzlib='no'
26529if test "$with_bzlib" != 'no'; then
26530 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026531 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26532$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026534$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26536$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026537 failed=0
26538 passed=0
26539 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026540 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026541if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026542 passed=`expr $passed + 1`
26543else
26544 failed=`expr $failed + 1`
26545fi
26546
26547
cristy8b350f62009-11-15 23:12:43 +000026548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026549$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026550if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026551 $as_echo_n "(cached) " >&6
26552else
26553 ac_check_lib_save_LIBS=$LIBS
26554LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026556/* end confdefs.h. */
26557
26558/* Override any GCC internal prototype to avoid an error.
26559 Use char because int might match the return type of a GCC
26560 builtin and then its argument prototype would still apply. */
26561#ifdef __cplusplus
26562extern "C"
26563#endif
26564char BZ2_bzDecompress ();
26565int
26566main ()
26567{
26568return BZ2_bzDecompress ();
26569 ;
26570 return 0;
26571}
26572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026573if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026574 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26575else
cristy8b350f62009-11-15 23:12:43 +000026576 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026577fi
cristy8b350f62009-11-15 23:12:43 +000026578rm -f core conftest.err conftest.$ac_objext \
26579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026580LIBS=$ac_check_lib_save_LIBS
26581fi
cristy8b350f62009-11-15 23:12:43 +000026582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026583$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026584if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026585 found_libbz=`expr $found_libbz + 1`
26586fi
26587
26588 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026590$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026591if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026592 $as_echo_n "(cached) " >&6
26593else
26594 ac_check_lib_save_LIBS=$LIBS
26595LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026597/* end confdefs.h. */
26598
26599/* Override any GCC internal prototype to avoid an error.
26600 Use char because int might match the return type of a GCC
26601 builtin and then its argument prototype would still apply. */
26602#ifdef __cplusplus
26603extern "C"
26604#endif
26605char _imp__BZ2_decompress ();
26606int
26607main ()
26608{
26609return _imp__BZ2_decompress ();
26610 ;
26611 return 0;
26612}
26613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026615 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26616else
cristy8b350f62009-11-15 23:12:43 +000026617 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026618fi
cristy8b350f62009-11-15 23:12:43 +000026619rm -f core conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026621LIBS=$ac_check_lib_save_LIBS
26622fi
cristy8b350f62009-11-15 23:12:43 +000026623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026625if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026626 found_libbz=`expr $found_libbz + 1`
26627fi
26628
26629 fi
26630 if test $found_libbz -gt 0; then
26631 passed=`expr $passed + 1`
26632 else
26633 failed=`expr $failed + 1`
26634 fi
cristy8b350f62009-11-15 23:12:43 +000026635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026636$as_echo_n "checking if BZLIB package is complete... " >&6; }
26637 if test $passed -gt 0; then
26638 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026639 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26640$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026641 have_bzlib='no (failed tests)'
26642 else
26643 BZLIB_LIBS='-lbz2'
26644 LIBS="$BZLIB_LIBS $LIBS"
26645
cristy8b350f62009-11-15 23:12:43 +000026646$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026647
cristy09b53e12011-10-14 12:47:22 +000026648 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26649$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026650 have_bzlib='yes'
26651 fi
26652 else
cristy09b53e12011-10-14 12:47:22 +000026653 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26654$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026655 fi
26656fi
cristy73bd4a52010-10-05 11:24:23 +000026657 if test "$have_bzlib" = 'yes'; then
26658 BZLIB_DELEGATE_TRUE=
26659 BZLIB_DELEGATE_FALSE='#'
26660else
26661 BZLIB_DELEGATE_TRUE='#'
26662 BZLIB_DELEGATE_FALSE=
26663fi
26664
cristy3ed852e2009-09-05 21:47:34 +000026665
26666
26667#
26668# Find the X11 include and library directories.
26669#
26670IPC_LIBS=''
26671X11_LIBS=''
26672XEXT_LIBS=''
26673XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026675$as_echo_n "checking for X... " >&6; }
26676
26677
26678# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026679if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026680 withval=$with_x;
26681fi
26682
26683# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26684if test "x$with_x" = xno; then
26685 # The user explicitly disabled X.
26686 have_x=disabled
26687else
26688 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026689 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026690 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026691 $as_echo_n "(cached) " >&6
26692else
26693 # One or both of the vars are not set, and there is no cached value.
26694ac_x_includes=no ac_x_libraries=no
26695rm -f -r conftest.dir
26696if mkdir conftest.dir; then
26697 cd conftest.dir
26698 cat >Imakefile <<'_ACEOF'
26699incroot:
26700 @echo incroot='${INCROOT}'
26701usrlibdir:
26702 @echo usrlibdir='${USRLIBDIR}'
26703libdir:
26704 @echo libdir='${LIBDIR}'
26705_ACEOF
26706 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026707 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026708 for ac_var in incroot usrlibdir libdir; do
26709 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26710 done
26711 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26712 for ac_extension in a so sl dylib la dll; do
26713 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26714 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26715 ac_im_usrlibdir=$ac_im_libdir; break
26716 fi
26717 done
26718 # Screen out bogus values from the imake configuration. They are
26719 # bogus both because they are the default anyway, and because
26720 # using them would break gcc on systems where it needs fixed includes.
26721 case $ac_im_incroot in
26722 /usr/include) ac_x_includes= ;;
26723 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26724 esac
26725 case $ac_im_usrlibdir in
26726 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26727 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26728 esac
26729 fi
26730 cd ..
26731 rm -f -r conftest.dir
26732fi
26733
26734# Standard set of common directories for X headers.
26735# Check X11 before X11Rn because it is often a symlink to the current release.
26736ac_x_header_dirs='
26737/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026738/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026739/usr/X11R6/include
26740/usr/X11R5/include
26741/usr/X11R4/include
26742
26743/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026744/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026745/usr/include/X11R6
26746/usr/include/X11R5
26747/usr/include/X11R4
26748
26749/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026750/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026751/usr/local/X11R6/include
26752/usr/local/X11R5/include
26753/usr/local/X11R4/include
26754
26755/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026756/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026757/usr/local/include/X11R6
26758/usr/local/include/X11R5
26759/usr/local/include/X11R4
26760
26761/usr/X386/include
26762/usr/x386/include
26763/usr/XFree86/include/X11
26764
26765/usr/include
26766/usr/local/include
26767/usr/unsupported/include
26768/usr/athena/include
26769/usr/local/x11r5/include
26770/usr/lpp/Xamples/include
26771
26772/usr/openwin/include
26773/usr/openwin/share/include'
26774
26775if test "$ac_x_includes" = no; then
26776 # Guess where to find include files, by looking for Xlib.h.
26777 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026779/* end confdefs.h. */
26780#include <X11/Xlib.h>
26781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026782if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026783 # We can compile using X headers with no special include directory.
26784ac_x_includes=
26785else
cristyc7083c12009-10-14 03:16:55 +000026786 for ac_dir in $ac_x_header_dirs; do
26787 if test -r "$ac_dir/X11/Xlib.h"; then
26788 ac_x_includes=$ac_dir
26789 break
26790 fi
26791done
26792fi
cristyda16f162011-02-19 23:52:17 +000026793rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026794fi # $ac_x_includes = no
26795
26796if test "$ac_x_libraries" = no; then
26797 # Check for the libraries.
26798 # See if we find them without any special options.
26799 # Don't add to $LIBS permanently.
26800 ac_save_LIBS=$LIBS
26801 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026803/* end confdefs.h. */
26804#include <X11/Xlib.h>
26805int
26806main ()
26807{
26808XrmInitialize ()
26809 ;
26810 return 0;
26811}
26812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026813if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026814 LIBS=$ac_save_LIBS
26815# We can link X programs with no special library path.
26816ac_x_libraries=
26817else
cristy8b350f62009-11-15 23:12:43 +000026818 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026819for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26820do
26821 # Don't even attempt the hair of trying to link an X program!
26822 for ac_extension in a so sl dylib la dll; do
26823 if test -r "$ac_dir/libX11.$ac_extension"; then
26824 ac_x_libraries=$ac_dir
26825 break 2
26826 fi
26827 done
26828done
26829fi
cristy8b350f62009-11-15 23:12:43 +000026830rm -f core conftest.err conftest.$ac_objext \
26831 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026832fi # $ac_x_libraries = no
26833
26834case $ac_x_includes,$ac_x_libraries in #(
26835 no,* | *,no | *\'*)
26836 # Didn't find X, or a directory has "'" in its name.
26837 ac_cv_have_x="have_x=no";; #(
26838 *)
26839 # Record where we found X for the cache.
26840 ac_cv_have_x="have_x=yes\
26841 ac_x_includes='$ac_x_includes'\
26842 ac_x_libraries='$ac_x_libraries'"
26843esac
26844fi
26845;; #(
26846 *) have_x=yes;;
26847 esac
26848 eval "$ac_cv_have_x"
26849fi # $with_x != no
26850
26851if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026853$as_echo "$have_x" >&6; }
26854 no_x=yes
26855else
26856 # If each of the values was on the command line, it overrides each guess.
26857 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26858 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26859 # Update the cache value to reflect the command line values.
26860 ac_cv_have_x="have_x=yes\
26861 ac_x_includes='$x_includes'\
26862 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026864$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26865fi
26866
cristy3ed852e2009-09-05 21:47:34 +000026867if test "$no_x" = yes; then
26868 # Not all programs may use this symbol, but it does not hurt to define it.
26869
cristy8b350f62009-11-15 23:12:43 +000026870$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026871
26872 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26873else
26874 if test -n "$x_includes"; then
26875 X_CFLAGS="$X_CFLAGS -I$x_includes"
26876 fi
26877
26878 # It would also be nice to do this for all -L options, not just this one.
26879 if test -n "$x_libraries"; then
26880 X_LIBS="$X_LIBS -L$x_libraries"
26881 # For Solaris; some versions of Sun CC require a space after -R and
26882 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026884$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26885 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26886 ac_xsave_c_werror_flag=$ac_c_werror_flag
26887 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026889/* end confdefs.h. */
26890
26891int
26892main ()
26893{
26894
26895 ;
26896 return 0;
26897}
26898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026899if ac_fn_c_try_link "$LINENO"; then :
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026901$as_echo "no" >&6; }
26902 X_LIBS="$X_LIBS -R$x_libraries"
26903else
cristy8b350f62009-11-15 23:12:43 +000026904 LIBS="$ac_xsave_LIBS -R $x_libraries"
26905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026906/* end confdefs.h. */
26907
26908int
26909main ()
26910{
26911
26912 ;
26913 return 0;
26914}
26915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026916if ac_fn_c_try_link "$LINENO"; then :
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026918$as_echo "yes" >&6; }
26919 X_LIBS="$X_LIBS -R $x_libraries"
26920else
cristy8b350f62009-11-15 23:12:43 +000026921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026922$as_echo "neither works" >&6; }
26923fi
cristy8b350f62009-11-15 23:12:43 +000026924rm -f core conftest.err conftest.$ac_objext \
26925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026926fi
cristy8b350f62009-11-15 23:12:43 +000026927rm -f core conftest.err conftest.$ac_objext \
26928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026929 ac_c_werror_flag=$ac_xsave_c_werror_flag
26930 LIBS=$ac_xsave_LIBS
26931 fi
26932
26933 # Check for system-dependent libraries X programs must link with.
26934 # Do this before checking for the system-independent R6 libraries
26935 # (-lICE), since we may need -lsocket or whatever for X linking.
26936
26937 if test "$ISC" = yes; then
26938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26939 else
26940 # Martyn Johnson says this is needed for Ultrix, if the X
26941 # libraries were built with DECnet support. And Karl Berry says
26942 # the Alpha needs dnet_stub (dnet does not exist).
26943 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026945/* end confdefs.h. */
26946
26947/* Override any GCC internal prototype to avoid an error.
26948 Use char because int might match the return type of a GCC
26949 builtin and then its argument prototype would still apply. */
26950#ifdef __cplusplus
26951extern "C"
26952#endif
26953char XOpenDisplay ();
26954int
26955main ()
26956{
26957return XOpenDisplay ();
26958 ;
26959 return 0;
26960}
26961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026963
cristy8b350f62009-11-15 23:12:43 +000026964else
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026967if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026968 $as_echo_n "(cached) " >&6
26969else
26970 ac_check_lib_save_LIBS=$LIBS
26971LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026973/* end confdefs.h. */
26974
26975/* Override any GCC internal prototype to avoid an error.
26976 Use char because int might match the return type of a GCC
26977 builtin and then its argument prototype would still apply. */
26978#ifdef __cplusplus
26979extern "C"
26980#endif
26981char dnet_ntoa ();
26982int
26983main ()
26984{
26985return dnet_ntoa ();
26986 ;
26987 return 0;
26988}
26989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026990if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026991 ac_cv_lib_dnet_dnet_ntoa=yes
26992else
cristy8b350f62009-11-15 23:12:43 +000026993 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026994fi
cristy8b350f62009-11-15 23:12:43 +000026995rm -f core conftest.err conftest.$ac_objext \
26996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026997LIBS=$ac_check_lib_save_LIBS
26998fi
cristy8b350f62009-11-15 23:12:43 +000026999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027000$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027001if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027002 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27003fi
27004
27005 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027007$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027008if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027009 $as_echo_n "(cached) " >&6
27010else
27011 ac_check_lib_save_LIBS=$LIBS
27012LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027014/* end confdefs.h. */
27015
27016/* Override any GCC internal prototype to avoid an error.
27017 Use char because int might match the return type of a GCC
27018 builtin and then its argument prototype would still apply. */
27019#ifdef __cplusplus
27020extern "C"
27021#endif
27022char dnet_ntoa ();
27023int
27024main ()
27025{
27026return dnet_ntoa ();
27027 ;
27028 return 0;
27029}
27030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027031if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027032 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27033else
cristy8b350f62009-11-15 23:12:43 +000027034 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027035fi
cristy8b350f62009-11-15 23:12:43 +000027036rm -f core conftest.err conftest.$ac_objext \
27037 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027038LIBS=$ac_check_lib_save_LIBS
27039fi
cristy8b350f62009-11-15 23:12:43 +000027040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027041$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027042if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027043 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27044fi
27045
27046 fi
27047fi
cristy8b350f62009-11-15 23:12:43 +000027048rm -f core conftest.err conftest.$ac_objext \
27049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027050 LIBS="$ac_xsave_LIBS"
27051
27052 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27053 # to get the SysV transport functions.
27054 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27055 # needs -lnsl.
27056 # The nsl library prevents programs from opening the X display
27057 # on Irix 5.2, according to T.E. Dickey.
27058 # The functions gethostbyname, getservbyname, and inet_addr are
27059 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027060 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027061if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027062
cristy3ed852e2009-09-05 21:47:34 +000027063fi
27064
cristy3ed852e2009-09-05 21:47:34 +000027065 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027067$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027068if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027069 $as_echo_n "(cached) " >&6
27070else
27071 ac_check_lib_save_LIBS=$LIBS
27072LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027074/* end confdefs.h. */
27075
27076/* Override any GCC internal prototype to avoid an error.
27077 Use char because int might match the return type of a GCC
27078 builtin and then its argument prototype would still apply. */
27079#ifdef __cplusplus
27080extern "C"
27081#endif
27082char gethostbyname ();
27083int
27084main ()
27085{
27086return gethostbyname ();
27087 ;
27088 return 0;
27089}
27090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027091if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027092 ac_cv_lib_nsl_gethostbyname=yes
27093else
cristy8b350f62009-11-15 23:12:43 +000027094 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027095fi
cristy8b350f62009-11-15 23:12:43 +000027096rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027098LIBS=$ac_check_lib_save_LIBS
27099fi
cristy8b350f62009-11-15 23:12:43 +000027100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027101$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027102if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027103 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27104fi
27105
27106 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027108$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027109if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027110 $as_echo_n "(cached) " >&6
27111else
27112 ac_check_lib_save_LIBS=$LIBS
27113LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027115/* end confdefs.h. */
27116
27117/* Override any GCC internal prototype to avoid an error.
27118 Use char because int might match the return type of a GCC
27119 builtin and then its argument prototype would still apply. */
27120#ifdef __cplusplus
27121extern "C"
27122#endif
27123char gethostbyname ();
27124int
27125main ()
27126{
27127return gethostbyname ();
27128 ;
27129 return 0;
27130}
27131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027132if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027133 ac_cv_lib_bsd_gethostbyname=yes
27134else
cristy8b350f62009-11-15 23:12:43 +000027135 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027136fi
cristy8b350f62009-11-15 23:12:43 +000027137rm -f core conftest.err conftest.$ac_objext \
27138 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027139LIBS=$ac_check_lib_save_LIBS
27140fi
cristy8b350f62009-11-15 23:12:43 +000027141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027142$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027143if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027144 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27145fi
27146
27147 fi
27148 fi
27149
27150 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27151 # socket/setsockopt and other routines are undefined under SCO ODT
27152 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27153 # on later versions), says Simon Leinen: it contains gethostby*
27154 # variants that don't use the name server (or something). -lsocket
27155 # must be given before -lnsl if both are needed. We assume that
27156 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027157 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027158if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027159
cristy3ed852e2009-09-05 21:47:34 +000027160fi
27161
cristy3ed852e2009-09-05 21:47:34 +000027162 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027165if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 $as_echo_n "(cached) " >&6
27167else
27168 ac_check_lib_save_LIBS=$LIBS
27169LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027171/* end confdefs.h. */
27172
27173/* Override any GCC internal prototype to avoid an error.
27174 Use char because int might match the return type of a GCC
27175 builtin and then its argument prototype would still apply. */
27176#ifdef __cplusplus
27177extern "C"
27178#endif
27179char connect ();
27180int
27181main ()
27182{
27183return connect ();
27184 ;
27185 return 0;
27186}
27187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027189 ac_cv_lib_socket_connect=yes
27190else
cristy8b350f62009-11-15 23:12:43 +000027191 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027192fi
cristy8b350f62009-11-15 23:12:43 +000027193rm -f core conftest.err conftest.$ac_objext \
27194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027195LIBS=$ac_check_lib_save_LIBS
27196fi
cristy8b350f62009-11-15 23:12:43 +000027197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027198$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027199if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027200 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27201fi
27202
27203 fi
27204
27205 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027206 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027207if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027208
cristy3ed852e2009-09-05 21:47:34 +000027209fi
27210
cristy3ed852e2009-09-05 21:47:34 +000027211 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027213$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027214if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 $as_echo_n "(cached) " >&6
27216else
27217 ac_check_lib_save_LIBS=$LIBS
27218LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027220/* end confdefs.h. */
27221
27222/* Override any GCC internal prototype to avoid an error.
27223 Use char because int might match the return type of a GCC
27224 builtin and then its argument prototype would still apply. */
27225#ifdef __cplusplus
27226extern "C"
27227#endif
27228char remove ();
27229int
27230main ()
27231{
27232return remove ();
27233 ;
27234 return 0;
27235}
27236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027237if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027238 ac_cv_lib_posix_remove=yes
27239else
cristy8b350f62009-11-15 23:12:43 +000027240 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027241fi
cristy8b350f62009-11-15 23:12:43 +000027242rm -f core conftest.err conftest.$ac_objext \
27243 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027244LIBS=$ac_check_lib_save_LIBS
27245fi
cristy8b350f62009-11-15 23:12:43 +000027246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027247$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027248if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27250fi
27251
27252 fi
27253
27254 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027255 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027256if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027257
cristy3ed852e2009-09-05 21:47:34 +000027258fi
27259
cristy3ed852e2009-09-05 21:47:34 +000027260 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027262$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027263if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027264 $as_echo_n "(cached) " >&6
27265else
27266 ac_check_lib_save_LIBS=$LIBS
27267LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027269/* end confdefs.h. */
27270
27271/* Override any GCC internal prototype to avoid an error.
27272 Use char because int might match the return type of a GCC
27273 builtin and then its argument prototype would still apply. */
27274#ifdef __cplusplus
27275extern "C"
27276#endif
27277char shmat ();
27278int
27279main ()
27280{
27281return shmat ();
27282 ;
27283 return 0;
27284}
27285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027287 ac_cv_lib_ipc_shmat=yes
27288else
cristy8b350f62009-11-15 23:12:43 +000027289 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027290fi
cristy8b350f62009-11-15 23:12:43 +000027291rm -f core conftest.err conftest.$ac_objext \
27292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027293LIBS=$ac_check_lib_save_LIBS
27294fi
cristy8b350f62009-11-15 23:12:43 +000027295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027297if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27299fi
27300
27301 fi
27302 fi
27303
27304 # Check for libraries that X11R6 Xt/Xaw programs need.
27305 ac_save_LDFLAGS=$LDFLAGS
27306 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27307 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27308 # check for ICE first), but we must link in the order -lSM -lICE or
27309 # we get undefined symbols. So assume we have SM if we have ICE.
27310 # These have to be linked with before -lX11, unlike the other
27311 # libraries we check for below, so use a different variable.
27312 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027314$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027315if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027316 $as_echo_n "(cached) " >&6
27317else
27318 ac_check_lib_save_LIBS=$LIBS
27319LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027321/* end confdefs.h. */
27322
27323/* Override any GCC internal prototype to avoid an error.
27324 Use char because int might match the return type of a GCC
27325 builtin and then its argument prototype would still apply. */
27326#ifdef __cplusplus
27327extern "C"
27328#endif
27329char IceConnectionNumber ();
27330int
27331main ()
27332{
27333return IceConnectionNumber ();
27334 ;
27335 return 0;
27336}
27337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 ac_cv_lib_ICE_IceConnectionNumber=yes
27340else
cristy8b350f62009-11-15 23:12:43 +000027341 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027342fi
cristy8b350f62009-11-15 23:12:43 +000027343rm -f core conftest.err conftest.$ac_objext \
27344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027345LIBS=$ac_check_lib_save_LIBS
27346fi
cristy8b350f62009-11-15 23:12:43 +000027347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027349if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27351fi
27352
27353 LDFLAGS=$ac_save_LDFLAGS
27354
27355fi
27356
27357if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27359$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27363$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027364 LDFLAGS="$LDFLAGS $X_LIBS"
27365 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27366 LIBS="$X11_LIBS $LIBS"
27367 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27368
27369
cristy8b350f62009-11-15 23:12:43 +000027370$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027371
27372 #
27373 # Check for X11 shared memory extension
27374 #
27375 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027376 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027377if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 have_shmctl='yes'
27379fi
27380
27381 if test "$have_shmctl" != 'yes'; then
27382 PERSIST_LIBS=$LIBS
27383 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027385/* end confdefs.h. */
27386
27387/* Override any GCC internal prototype to avoid an error.
27388 Use char because int might match the return type of a GCC
27389 builtin and then its argument prototype would still apply. */
27390#ifdef __cplusplus
27391extern "C"
27392#endif
27393char shmctl ();
27394int
27395main ()
27396{
27397return shmctl ();
27398 ;
27399 return 0;
27400}
27401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027403 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027404fi
cristy8b350f62009-11-15 23:12:43 +000027405rm -f core conftest.err conftest.$ac_objext \
27406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027407 LIBS=$PERSIST_LIBS
27408 fi
27409
27410 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027413if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027414 $as_echo_n "(cached) " >&6
27415else
27416 ac_check_lib_save_LIBS=$LIBS
27417LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027419/* end confdefs.h. */
27420
27421/* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27424#ifdef __cplusplus
27425extern "C"
27426#endif
27427char XShmAttach ();
27428int
27429main ()
27430{
27431return XShmAttach ();
27432 ;
27433 return 0;
27434}
27435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027437 ac_cv_lib_Xext_XShmAttach=yes
27438else
cristy8b350f62009-11-15 23:12:43 +000027439 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027440fi
cristy8b350f62009-11-15 23:12:43 +000027441rm -f core conftest.err conftest.$ac_objext \
27442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027443LIBS=$ac_check_lib_save_LIBS
27444fi
cristy8b350f62009-11-15 23:12:43 +000027445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027446$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027447if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027448 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027449$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027450
27451fi
27452
27453 fi
27454
27455 #
27456 # Check for X11 shape extension
27457 #
cristy8b350f62009-11-15 23:12:43 +000027458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027459$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027460if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027461 $as_echo_n "(cached) " >&6
27462else
27463 ac_check_lib_save_LIBS=$LIBS
27464LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027466/* end confdefs.h. */
27467
27468/* Override any GCC internal prototype to avoid an error.
27469 Use char because int might match the return type of a GCC
27470 builtin and then its argument prototype would still apply. */
27471#ifdef __cplusplus
27472extern "C"
27473#endif
27474char XShapeCombineMask ();
27475int
27476main ()
27477{
27478return XShapeCombineMask ();
27479 ;
27480 return 0;
27481}
27482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 ac_cv_lib_Xext_XShapeCombineMask=yes
27485else
cristy8b350f62009-11-15 23:12:43 +000027486 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027487fi
cristy8b350f62009-11-15 23:12:43 +000027488rm -f core conftest.err conftest.$ac_objext \
27489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027490LIBS=$ac_check_lib_save_LIBS
27491fi
cristy8b350f62009-11-15 23:12:43 +000027492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027493$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027494if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027495 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027496$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027497
27498fi
27499
cristy8b350f62009-11-15 23:12:43 +000027500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027501$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027502if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027503 $as_echo_n "(cached) " >&6
27504else
27505 ac_check_lib_save_LIBS=$LIBS
27506LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027508/* end confdefs.h. */
27509
27510/* Override any GCC internal prototype to avoid an error.
27511 Use char because int might match the return type of a GCC
27512 builtin and then its argument prototype would still apply. */
27513#ifdef __cplusplus
27514extern "C"
27515#endif
27516char XtSetEventDispatcher ();
27517int
27518main ()
27519{
27520return XtSetEventDispatcher ();
27521 ;
27522 return 0;
27523}
27524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027526 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27527else
cristy8b350f62009-11-15 23:12:43 +000027528 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027529fi
cristy8b350f62009-11-15 23:12:43 +000027530rm -f core conftest.err conftest.$ac_objext \
27531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027532LIBS=$ac_check_lib_save_LIBS
27533fi
cristy8b350f62009-11-15 23:12:43 +000027534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027536if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 XT_LIBS='-lXt'
27538fi
27539
27540 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27541fi
27542if test "$no_x" != 'yes'; then
27543 have_x='yes'
27544else
27545 have_x='no'
27546fi
cristy73bd4a52010-10-05 11:24:23 +000027547 if test "$have_x" = 'yes'; then
27548 X11_DELEGATE_TRUE=
27549 X11_DELEGATE_FALSE='#'
27550else
27551 X11_DELEGATE_TRUE='#'
27552 X11_DELEGATE_FALSE=
27553fi
27554
cristy3ed852e2009-09-05 21:47:34 +000027555
27556
27557
27558
27559#
27560# Check for ZLIB
27561#
27562
27563# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027564if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 withval=$with_zlib; with_zlib=$withval
27566else
27567 with_zlib='yes'
27568fi
27569
27570
27571if test "$with_zlib" != 'yes'; then
27572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27573fi
27574
27575have_zlib='no'
27576ZLIB_LIBS=''
27577if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27579$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027581$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027582 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27583$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027584 ZLIB_LIBS=''
27585 failed=0
27586 passed=0
cristy8b350f62009-11-15 23:12:43 +000027587 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027588if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 passed=`expr $passed + 1`
27590else
27591 failed=`expr $failed + 1`
27592fi
27593
27594
cristy8b350f62009-11-15 23:12:43 +000027595 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027596if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 passed=`expr $passed + 1`
27598else
27599 failed=`expr $failed + 1`
27600fi
27601
27602
cristy8b350f62009-11-15 23:12:43 +000027603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027604$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027605if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027606 $as_echo_n "(cached) " >&6
27607else
27608 ac_check_lib_save_LIBS=$LIBS
27609LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027611/* end confdefs.h. */
27612
27613/* Override any GCC internal prototype to avoid an error.
27614 Use char because int might match the return type of a GCC
27615 builtin and then its argument prototype would still apply. */
27616#ifdef __cplusplus
27617extern "C"
27618#endif
27619char compress ();
27620int
27621main ()
27622{
27623return compress ();
27624 ;
27625 return 0;
27626}
27627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027629 ac_cv_lib_z_compress=yes
27630else
cristy8b350f62009-11-15 23:12:43 +000027631 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027632fi
cristy8b350f62009-11-15 23:12:43 +000027633rm -f core conftest.err conftest.$ac_objext \
27634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027635LIBS=$ac_check_lib_save_LIBS
27636fi
cristy8b350f62009-11-15 23:12:43 +000027637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027638$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027639if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027640 passed=`expr $passed + 1`
27641else
27642 failed=`expr $failed + 1`
27643fi
27644
cristy8b350f62009-11-15 23:12:43 +000027645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027646$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027647if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027648 $as_echo_n "(cached) " >&6
27649else
27650 ac_check_lib_save_LIBS=$LIBS
27651LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027653/* end confdefs.h. */
27654
27655/* Override any GCC internal prototype to avoid an error.
27656 Use char because int might match the return type of a GCC
27657 builtin and then its argument prototype would still apply. */
27658#ifdef __cplusplus
27659extern "C"
27660#endif
27661char uncompress ();
27662int
27663main ()
27664{
27665return uncompress ();
27666 ;
27667 return 0;
27668}
27669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 ac_cv_lib_z_uncompress=yes
27672else
cristy8b350f62009-11-15 23:12:43 +000027673 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027674fi
cristy8b350f62009-11-15 23:12:43 +000027675rm -f core conftest.err conftest.$ac_objext \
27676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027677LIBS=$ac_check_lib_save_LIBS
27678fi
cristy8b350f62009-11-15 23:12:43 +000027679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027681if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 passed=`expr $passed + 1`
27683else
27684 failed=`expr $failed + 1`
27685fi
27686
cristy8b350f62009-11-15 23:12:43 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027689if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027690 $as_echo_n "(cached) " >&6
27691else
27692 ac_check_lib_save_LIBS=$LIBS
27693LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027695/* end confdefs.h. */
27696
27697/* Override any GCC internal prototype to avoid an error.
27698 Use char because int might match the return type of a GCC
27699 builtin and then its argument prototype would still apply. */
27700#ifdef __cplusplus
27701extern "C"
27702#endif
27703char deflate ();
27704int
27705main ()
27706{
27707return deflate ();
27708 ;
27709 return 0;
27710}
27711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027713 ac_cv_lib_z_deflate=yes
27714else
cristy8b350f62009-11-15 23:12:43 +000027715 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027716fi
cristy8b350f62009-11-15 23:12:43 +000027717rm -f core conftest.err conftest.$ac_objext \
27718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027719LIBS=$ac_check_lib_save_LIBS
27720fi
cristy8b350f62009-11-15 23:12:43 +000027721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027723if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027724 passed=`expr $passed + 1`
27725else
27726 failed=`expr $failed + 1`
27727fi
27728
cristy8b350f62009-11-15 23:12:43 +000027729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027730$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027731if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027732 $as_echo_n "(cached) " >&6
27733else
27734 ac_check_lib_save_LIBS=$LIBS
27735LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027737/* end confdefs.h. */
27738
27739/* Override any GCC internal prototype to avoid an error.
27740 Use char because int might match the return type of a GCC
27741 builtin and then its argument prototype would still apply. */
27742#ifdef __cplusplus
27743extern "C"
27744#endif
27745char inflate ();
27746int
27747main ()
27748{
27749return inflate ();
27750 ;
27751 return 0;
27752}
27753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027754if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027755 ac_cv_lib_z_inflate=yes
27756else
cristy8b350f62009-11-15 23:12:43 +000027757 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027758fi
cristy8b350f62009-11-15 23:12:43 +000027759rm -f core conftest.err conftest.$ac_objext \
27760 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027761LIBS=$ac_check_lib_save_LIBS
27762fi
cristy8b350f62009-11-15 23:12:43 +000027763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027764$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027765if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027766 passed=`expr $passed + 1`
27767else
27768 failed=`expr $failed + 1`
27769fi
27770
cristy8b350f62009-11-15 23:12:43 +000027771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027772$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027773if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027774 $as_echo_n "(cached) " >&6
27775else
27776 ac_check_lib_save_LIBS=$LIBS
27777LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027779/* end confdefs.h. */
27780
27781/* Override any GCC internal prototype to avoid an error.
27782 Use char because int might match the return type of a GCC
27783 builtin and then its argument prototype would still apply. */
27784#ifdef __cplusplus
27785extern "C"
27786#endif
27787char gzseek ();
27788int
27789main ()
27790{
27791return gzseek ();
27792 ;
27793 return 0;
27794}
27795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 ac_cv_lib_z_gzseek=yes
27798else
cristy8b350f62009-11-15 23:12:43 +000027799 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027800fi
cristy8b350f62009-11-15 23:12:43 +000027801rm -f core conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027803LIBS=$ac_check_lib_save_LIBS
27804fi
cristy8b350f62009-11-15 23:12:43 +000027805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027806$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027807if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 passed=`expr $passed + 1`
27809else
27810 failed=`expr $failed + 1`
27811fi
27812
cristy8b350f62009-11-15 23:12:43 +000027813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027814$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027815if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 $as_echo_n "(cached) " >&6
27817else
27818 ac_check_lib_save_LIBS=$LIBS
27819LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027821/* end confdefs.h. */
27822
27823/* Override any GCC internal prototype to avoid an error.
27824 Use char because int might match the return type of a GCC
27825 builtin and then its argument prototype would still apply. */
27826#ifdef __cplusplus
27827extern "C"
27828#endif
27829char gztell ();
27830int
27831main ()
27832{
27833return gztell ();
27834 ;
27835 return 0;
27836}
27837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027839 ac_cv_lib_z_gztell=yes
27840else
cristy8b350f62009-11-15 23:12:43 +000027841 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027842fi
cristy8b350f62009-11-15 23:12:43 +000027843rm -f core conftest.err conftest.$ac_objext \
27844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027845LIBS=$ac_check_lib_save_LIBS
27846fi
cristy8b350f62009-11-15 23:12:43 +000027847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027848$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027849if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 passed=`expr $passed + 1`
27851else
27852 failed=`expr $failed + 1`
27853fi
27854
cristy8b350f62009-11-15 23:12:43 +000027855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo_n "checking if ZLIB package is complete... " >&6; }
27857 if test $passed -gt 0; then
27858 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027859 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27860$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027861 have_zlib='no (failed tests)'
27862 else
27863 ZLIB_LIBS='-lz'
27864 LIBS="$ZLIB_LIBS $LIBS"
27865
cristy8b350f62009-11-15 23:12:43 +000027866$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027867
cristy09b53e12011-10-14 12:47:22 +000027868 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27869$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027870 have_zlib='yes'
27871 fi
27872 else
cristy09b53e12011-10-14 12:47:22 +000027873 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27874$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027875 fi
27876fi
cristy73bd4a52010-10-05 11:24:23 +000027877 if test "$have_zlib" = 'yes'; then
27878 ZLIB_DELEGATE_TRUE=
27879 ZLIB_DELEGATE_FALSE='#'
27880else
27881 ZLIB_DELEGATE_TRUE='#'
27882 ZLIB_DELEGATE_FALSE=
27883fi
27884
cristy3ed852e2009-09-05 21:47:34 +000027885
27886
27887#
27888# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27889#
27890LIB_DL=''
27891if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027893$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027894if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 $as_echo_n "(cached) " >&6
27896else
27897 ac_check_lib_save_LIBS=$LIBS
27898LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027900/* end confdefs.h. */
27901
27902/* Override any GCC internal prototype to avoid an error.
27903 Use char because int might match the return type of a GCC
27904 builtin and then its argument prototype would still apply. */
27905#ifdef __cplusplus
27906extern "C"
27907#endif
27908char dlopen ();
27909int
27910main ()
27911{
27912return dlopen ();
27913 ;
27914 return 0;
27915}
27916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027918 ac_cv_lib_dl_dlopen=yes
27919else
cristy8b350f62009-11-15 23:12:43 +000027920 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027921fi
cristy8b350f62009-11-15 23:12:43 +000027922rm -f core conftest.err conftest.$ac_objext \
27923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027924LIBS=$ac_check_lib_save_LIBS
27925fi
cristy8b350f62009-11-15 23:12:43 +000027926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027927$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027928if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027929 LIB_DL='-ldl'
27930fi
27931
27932 LIBS="$LIB_DL $LIBS"
27933fi
27934
27935
27936
27937#
27938# Check for Autotrace delegate library.
27939#
27940
27941# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027942if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027943 withval=$with_autotrace; with_autotrace=$withval
27944else
27945 with_autotrace='no'
27946fi
27947
27948
27949if test "$with_autotrace" != 'yes'; then
27950 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27951fi
27952
27953have_autotrace='no'
27954AUTOTRACE_CFLAGS=""
27955AUTOTRACE_LIBS=""
27956AUTOTRACE_PKG=""
27957if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27959$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027960
27961pkg_failed=no
27962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27963$as_echo_n "checking for AUTOTRACE... " >&6; }
27964
27965if test -n "$AUTOTRACE_CFLAGS"; then
27966 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27967 elif test -n "$PKG_CONFIG"; then
27968 if test -n "$PKG_CONFIG" && \
27969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27970 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27971 ac_status=$?
27972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27973 test $ac_status = 0; }; then
27974 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27975else
27976 pkg_failed=yes
27977fi
27978 else
27979 pkg_failed=untried
27980fi
27981if test -n "$AUTOTRACE_LIBS"; then
27982 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27983 elif test -n "$PKG_CONFIG"; then
27984 if test -n "$PKG_CONFIG" && \
27985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27986 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27987 ac_status=$?
27988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27989 test $ac_status = 0; }; then
27990 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27991else
27992 pkg_failed=yes
27993fi
27994 else
27995 pkg_failed=untried
27996fi
27997
27998
27999
28000if test $pkg_failed = yes; then
28001
28002if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28003 _pkg_short_errors_supported=yes
28004else
28005 _pkg_short_errors_supported=no
28006fi
28007 if test $_pkg_short_errors_supported = yes; then
28008 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28009 else
28010 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28011 fi
28012 # Put the nasty error message in config.log where it belongs
28013 echo "$AUTOTRACE_PKG_ERRORS" >&5
28014
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28016$as_echo "no" >&6; }
28017 have_autotrace=no
28018elif test $pkg_failed = untried; then
28019 have_autotrace=no
28020else
28021 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28022 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28024$as_echo "yes" >&6; }
28025 have_autotrace=yes
28026fi
cristy09b53e12011-10-14 12:47:22 +000028027 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28028$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028029fi
28030
28031if test "$have_autotrace" = 'yes'; then
28032 failed=0
28033
cristy8b350f62009-11-15 23:12:43 +000028034$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028035
28036 if test "$with_modules" = 'no'; then
28037 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28038 fi
28039fi
28040
cristy73bd4a52010-10-05 11:24:23 +000028041 if test "$have_autotrace" = 'yes'; then
28042 AUTOTRACE_DELEGATE_TRUE=
28043 AUTOTRACE_DELEGATE_FALSE='#'
28044else
28045 AUTOTRACE_DELEGATE_TRUE='#'
28046 AUTOTRACE_DELEGATE_FALSE=
28047fi
28048
cristy3ed852e2009-09-05 21:47:34 +000028049
28050
28051
28052
28053#
28054# Check for Display Postscript delegate library.
28055#
28056
28057# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028058if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 withval=$with_dps; with_dps=$withval
28060else
28061 with_dps='yes'
28062fi
28063
28064
28065if test "$with_dps" != 'yes'; then
28066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28067fi
28068
28069have_dps='no'
28070DPS_LIBS=''
28071if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028072 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28073$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028076 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28077$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028078 failed=0
28079 passed=0
28080 PERSIST_CPPFLAGS="$CPPFLAGS"
28081 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028082 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 +000028083if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028084 passed=`expr $passed + 1`
28085else
28086 failed=`expr $failed + 1`
28087fi
28088
28089
28090 # DPS issues:
28091 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28092 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28093 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28094 # ImageMagick itself doesn't use -lXt.
28095 have_libdps='no'
28096 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028098$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028099if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 $as_echo_n "(cached) " >&6
28101else
28102 ac_check_lib_save_LIBS=$LIBS
28103LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028105/* end confdefs.h. */
28106
28107/* Override any GCC internal prototype to avoid an error.
28108 Use char because int might match the return type of a GCC
28109 builtin and then its argument prototype would still apply. */
28110#ifdef __cplusplus
28111extern "C"
28112#endif
28113char DPSInitialize ();
28114int
28115main ()
28116{
28117return DPSInitialize ();
28118 ;
28119 return 0;
28120}
28121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028122if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028123 ac_cv_lib_dps_DPSInitialize=yes
28124else
cristy8b350f62009-11-15 23:12:43 +000028125 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028126fi
cristy8b350f62009-11-15 23:12:43 +000028127rm -f core conftest.err conftest.$ac_objext \
28128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028129LIBS=$ac_check_lib_save_LIBS
28130fi
cristy8b350f62009-11-15 23:12:43 +000028131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028132$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028133if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028134 have_libdps='yes'
28135else
28136 have_libdps='no'
28137fi
28138
28139 if test "$have_libdps" != 'yes'; then
28140 # Unset cache variable so we can try again.
28141 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028144if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 $as_echo_n "(cached) " >&6
28146else
28147 ac_check_lib_save_LIBS=$LIBS
28148LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028150/* end confdefs.h. */
28151
28152/* Override any GCC internal prototype to avoid an error.
28153 Use char because int might match the return type of a GCC
28154 builtin and then its argument prototype would still apply. */
28155#ifdef __cplusplus
28156extern "C"
28157#endif
28158char DPSInitialize ();
28159int
28160main ()
28161{
28162return DPSInitialize ();
28163 ;
28164 return 0;
28165}
28166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028168 ac_cv_lib_dps_DPSInitialize=yes
28169else
cristy8b350f62009-11-15 23:12:43 +000028170 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028171fi
cristy8b350f62009-11-15 23:12:43 +000028172rm -f core conftest.err conftest.$ac_objext \
28173 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028174LIBS=$ac_check_lib_save_LIBS
28175fi
cristy8b350f62009-11-15 23:12:43 +000028176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028177$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028178if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028179 have_libdps='yes'
28180else
28181 have_libdps='no'
28182fi
28183
28184 if test "$have_libdps" = 'yes'; then
28185 LIBDPS_XT='-lXt'
28186 fi
28187 fi
28188 if test "$have_libdps" = 'yes'; then
28189 passed=`expr $passed + 1`
28190 else
28191 failed=`expr $failed + 1`
28192 fi
cristy8b350f62009-11-15 23:12:43 +000028193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028194$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028195if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028196 $as_echo_n "(cached) " >&6
28197else
28198 ac_check_lib_save_LIBS=$LIBS
28199LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028201/* end confdefs.h. */
28202
28203/* Override any GCC internal prototype to avoid an error.
28204 Use char because int might match the return type of a GCC
28205 builtin and then its argument prototype would still apply. */
28206#ifdef __cplusplus
28207extern "C"
28208#endif
28209char XDPSPixelsPerPoint ();
28210int
28211main ()
28212{
28213return XDPSPixelsPerPoint ();
28214 ;
28215 return 0;
28216}
28217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028219 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28220else
cristy8b350f62009-11-15 23:12:43 +000028221 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028222fi
cristy8b350f62009-11-15 23:12:43 +000028223rm -f core conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028225LIBS=$ac_check_lib_save_LIBS
28226fi
cristy8b350f62009-11-15 23:12:43 +000028227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028228$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028229if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028230 passed=`expr $passed + 1`
28231else
28232 failed=`expr $failed + 1`
28233fi
28234
cristy8b350f62009-11-15 23:12:43 +000028235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028236$as_echo_n "checking if DPS package is complete... " >&6; }
28237 if test $passed -gt 0; then
28238 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028239 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28240$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028241 have_dps='no (failed tests)'
28242 CPPFLAGS="$PERSIST_CPPFLAGS"
28243 else
28244 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28245 LIBS="$DPS_LIBS $LIBS"
28246
cristy8b350f62009-11-15 23:12:43 +000028247$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028248
cristy09b53e12011-10-14 12:47:22 +000028249 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28250$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028251 have_dps='yes'
28252 fi
28253 else
cristy09b53e12011-10-14 12:47:22 +000028254 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28255$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028256 CPPFLAGS=$PERSIST_CPPFLAGS
28257 fi
28258fi
cristy73bd4a52010-10-05 11:24:23 +000028259 if test "$have_dps" = 'yes'; then
28260 DPS_DELEGATE_TRUE=
28261 DPS_DELEGATE_FALSE='#'
28262else
28263 DPS_DELEGATE_TRUE='#'
28264 DPS_DELEGATE_FALSE=
28265fi
28266
cristy3ed852e2009-09-05 21:47:34 +000028267
28268
28269
28270#
28271# Check for DJVU delegate library.
28272#
28273
28274# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028275if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028276 withval=$with_djvu; with_djvu=$withval
28277else
28278 with_djvu='yes'
28279fi
28280
28281
28282if test "$with_djvu" != 'yes'; then
28283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28284fi
28285
28286have_djvu='no'
28287DJVU_LIBS=''
28288if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028289 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28290$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028292$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028293 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28294$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028295 failed=0
28296 passed=0
cristy8b350f62009-11-15 23:12:43 +000028297 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 +000028298if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028299 passed=`expr $passed + 1`
28300else
28301 failed=`expr $failed + 1`
28302fi
28303
28304
cristy8b350f62009-11-15 23:12:43 +000028305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028306$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028307if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028308 $as_echo_n "(cached) " >&6
28309else
28310 ac_check_lib_save_LIBS=$LIBS
28311LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028313/* end confdefs.h. */
28314
28315/* Override any GCC internal prototype to avoid an error.
28316 Use char because int might match the return type of a GCC
28317 builtin and then its argument prototype would still apply. */
28318#ifdef __cplusplus
28319extern "C"
28320#endif
28321char ddjvu_context_create ();
28322int
28323main ()
28324{
28325return ddjvu_context_create ();
28326 ;
28327 return 0;
28328}
28329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028330if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028331 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28332else
cristy8b350f62009-11-15 23:12:43 +000028333 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028334fi
cristy8b350f62009-11-15 23:12:43 +000028335rm -f core conftest.err conftest.$ac_objext \
28336 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028337LIBS=$ac_check_lib_save_LIBS
28338fi
cristy8b350f62009-11-15 23:12:43 +000028339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028340$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028341if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028342 passed=`expr $passed + 1`
28343else
28344 failed=`expr $failed + 1`
28345fi
28346
cristy8b350f62009-11-15 23:12:43 +000028347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028348$as_echo_n "checking if DJVU package is complete... " >&6; }
28349 if test $passed -gt 0; then
28350 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028351 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28352$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028353 have_djvu='no (failed tests)'
28354 else
28355 DJVU_LIBS='-ldjvulibre'
28356 LIBS="$DJVU_LIBS $LIBS"
28357
cristy8b350f62009-11-15 23:12:43 +000028358$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028359
cristy09b53e12011-10-14 12:47:22 +000028360 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28361$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028362 have_djvu='yes'
28363 fi
28364 else
cristy09b53e12011-10-14 12:47:22 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28366$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028367 fi
28368fi
cristy73bd4a52010-10-05 11:24:23 +000028369 if test "$have_djvu" = 'yes'; then
28370 DJVU_DELEGATE_TRUE=
28371 DJVU_DELEGATE_FALSE='#'
28372else
28373 DJVU_DELEGATE_TRUE='#'
28374 DJVU_DELEGATE_FALSE=
28375fi
28376
cristy3ed852e2009-09-05 21:47:34 +000028377
28378
28379
28380#
cristy430a7312010-01-21 20:44:04 +000028381# Set DejaVu font directory.
28382#
28383
28384# Check whether --with-dejavu-font-dir was given.
28385if test "${with_dejavu_font_dir+set}" = set; then :
28386 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28387else
28388 with_dejavu_font_dir='default'
28389fi
28390
28391
28392if test "$with_dejavu_font_dir" != 'default'; then
28393 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28394fi
28395
28396
28397#
cristy3ed852e2009-09-05 21:47:34 +000028398# Check for FFTW delegate library.
28399#
28400
28401# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028402if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028403 withval=$with_fftw; with_fftw=$withval
28404else
28405 with_fftw='yes'
28406fi
28407
28408
28409if test "$with_fftw" != 'yes'; then
28410 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28411fi
28412
cristy81beccd2011-10-03 18:17:24 +000028413have_fftw='no'
28414FFTW_LIBS=''
28415if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28417$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28419$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028420 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28421$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028422 failed=0
28423 passed=0
28424 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28425if test "x$ac_cv_header_fftw3_h" = xyes; then :
28426 passed=`expr $passed + 1`
28427else
28428 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028429fi
28430
cristy81beccd2011-10-03 18:17:24 +000028431
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28433$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28434if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28435 $as_echo_n "(cached) " >&6
28436else
28437 ac_check_lib_save_LIBS=$LIBS
28438LIBS="-lfftw3 $LIBS"
28439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440/* end confdefs.h. */
28441
28442/* Override any GCC internal prototype to avoid an error.
28443 Use char because int might match the return type of a GCC
28444 builtin and then its argument prototype would still apply. */
28445#ifdef __cplusplus
28446extern "C"
28447#endif
28448char fftw_execute ();
28449int
28450main ()
28451{
28452return fftw_execute ();
28453 ;
28454 return 0;
28455}
28456_ACEOF
28457if ac_fn_c_try_link "$LINENO"; then :
28458 ac_cv_lib_fftw3_fftw_execute=yes
28459else
28460 ac_cv_lib_fftw3_fftw_execute=no
28461fi
28462rm -f core conftest.err conftest.$ac_objext \
28463 conftest$ac_exeext conftest.$ac_ext
28464LIBS=$ac_check_lib_save_LIBS
28465fi
28466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28467$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28468if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28469 passed=`expr $passed + 1`
28470else
28471 failed=`expr $failed + 1`
28472fi
28473
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28475$as_echo_n "checking if FFTW package is complete... " >&6; }
28476 if test $passed -gt 0; then
28477 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028478 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28479$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028480 have_fftw='no (failed tests)'
28481 else
28482 FFTW_LIBS='-lfftw3'
28483 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028484
cristy8b350f62009-11-15 23:12:43 +000028485$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028486
cristy09b53e12011-10-14 12:47:22 +000028487 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28488$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028489 have_fftw='yes'
28490 fi
28491 else
cristy09b53e12011-10-14 12:47:22 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28493$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028494 fi
28495fi
cristy73bd4a52010-10-05 11:24:23 +000028496 if test "$have_fftw" = 'yes'; then
28497 FFTW_DELEGATE_TRUE=
28498 FFTW_DELEGATE_FALSE='#'
28499else
28500 FFTW_DELEGATE_TRUE='#'
28501 FFTW_DELEGATE_FALSE=
28502fi
28503
cristy3ed852e2009-09-05 21:47:34 +000028504
28505
28506
28507#
28508# Check for FlashPIX delegate library.
28509#
28510
28511# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028512if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028513 withval=$with_fpx; with_fpx=$withval
28514else
28515 with_fpx='yes'
28516fi
28517
28518
28519if test "$with_fpx" != 'yes'; then
28520 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28521fi
28522
28523have_fpx='no'
28524FPX_LIBS=''
28525if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28527$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028530 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28531$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028532 failed=0
28533 passed=0
28534 ac_ext=cpp
28535ac_cpp='$CXXCPP $CPPFLAGS'
28536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28539
28540
cristy8b350f62009-11-15 23:12:43 +000028541ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028542if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028543 passed=`expr $passed + 1`
28544else
28545 failed=`expr $failed + 1`
28546fi
28547
28548
cristy8b350f62009-11-15 23:12:43 +000028549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028550$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028551if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028552 $as_echo_n "(cached) " >&6
28553else
28554 ac_check_lib_save_LIBS=$LIBS
28555LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028557/* end confdefs.h. */
28558
28559/* Override any GCC internal prototype to avoid an error.
28560 Use char because int might match the return type of a GCC
28561 builtin and then its argument prototype would still apply. */
28562#ifdef __cplusplus
28563extern "C"
28564#endif
28565char FPX_OpenImageByFilename ();
28566int
28567main ()
28568{
28569return FPX_OpenImageByFilename ();
28570 ;
28571 return 0;
28572}
28573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028574if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028575 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28576else
cristy8b350f62009-11-15 23:12:43 +000028577 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028578fi
cristy8b350f62009-11-15 23:12:43 +000028579rm -f core conftest.err conftest.$ac_objext \
28580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028581LIBS=$ac_check_lib_save_LIBS
28582fi
cristy8b350f62009-11-15 23:12:43 +000028583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028584$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028585if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028586 passed=`expr $passed + 1`
28587else
28588 failed=`expr $failed + 1`
28589fi
28590
28591 ac_ext=c
28592ac_cpp='$CPP $CPPFLAGS'
28593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28595ac_compiler_gnu=$ac_cv_c_compiler_gnu
28596
cristy8b350f62009-11-15 23:12:43 +000028597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028598$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28599 if test $passed -gt 0; then
28600 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28602$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028603 have_fpx='no (failed tests)'
28604 else
28605 FPX_LIBS='-lfpx'
28606
cristy8b350f62009-11-15 23:12:43 +000028607$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028608
cristy09b53e12011-10-14 12:47:22 +000028609 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28610$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028611 have_fpx='yes'
28612 PERLMAINCC="$CXX"
28613 fi
28614 else
cristy09b53e12011-10-14 12:47:22 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28616$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028617 fi
28618fi
cristy73bd4a52010-10-05 11:24:23 +000028619 if test "$have_fpx" = 'yes'; then
28620 FPX_DELEGATE_TRUE=
28621 FPX_DELEGATE_FALSE='#'
28622else
28623 FPX_DELEGATE_TRUE='#'
28624 FPX_DELEGATE_FALSE=
28625fi
28626
cristy3ed852e2009-09-05 21:47:34 +000028627
28628
28629
28630#
28631# Check for fontconfig delegate library.
28632#
28633
28634# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028635if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028636 withval=$with_fontconfig; with_fontconfig=$withval
28637else
28638 with_fontconfig=$have_x
28639fi
28640
28641
28642if test "$with_fontconfig" != 'yes'; then
28643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28644fi
28645
28646have_fontconfig='no'
28647FONTCONFIG_CFLAGS=""
28648FONTCONFIG_LIBS=""
28649FONTCONFIG_PKG=""
28650if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028651 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28652$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028653
28654pkg_failed=no
28655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28656$as_echo_n "checking for FONTCONFIG... " >&6; }
28657
28658if test -n "$FONTCONFIG_CFLAGS"; then
28659 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28660 elif test -n "$PKG_CONFIG"; then
28661 if test -n "$PKG_CONFIG" && \
28662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28663 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28664 ac_status=$?
28665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28666 test $ac_status = 0; }; then
28667 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28668else
28669 pkg_failed=yes
28670fi
28671 else
28672 pkg_failed=untried
28673fi
28674if test -n "$FONTCONFIG_LIBS"; then
28675 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28676 elif test -n "$PKG_CONFIG"; then
28677 if test -n "$PKG_CONFIG" && \
28678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28679 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28680 ac_status=$?
28681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28682 test $ac_status = 0; }; then
28683 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28684else
28685 pkg_failed=yes
28686fi
28687 else
28688 pkg_failed=untried
28689fi
28690
28691
28692
28693if test $pkg_failed = yes; then
28694
28695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28696 _pkg_short_errors_supported=yes
28697else
28698 _pkg_short_errors_supported=no
28699fi
28700 if test $_pkg_short_errors_supported = yes; then
28701 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28702 else
28703 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28704 fi
28705 # Put the nasty error message in config.log where it belongs
28706 echo "$FONTCONFIG_PKG_ERRORS" >&5
28707
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28709$as_echo "no" >&6; }
28710 have_fontconfig=no
28711elif test $pkg_failed = untried; then
28712 have_fontconfig=no
28713else
28714 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28715 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28717$as_echo "yes" >&6; }
28718 have_fontconfig=yes
28719fi
cristy09b53e12011-10-14 12:47:22 +000028720 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28721$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028722fi
28723
28724if test "$have_fontconfig" = 'yes'; then
28725
cristy8b350f62009-11-15 23:12:43 +000028726$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028727
cristyd09bcf92010-03-25 03:04:45 +000028728 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028729 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028730 fi
cristy3ed852e2009-09-05 21:47:34 +000028731fi
28732
cristy73bd4a52010-10-05 11:24:23 +000028733 if test "$have_fontconfig" = 'yes'; then
28734 FONTCONFIG_DELEGATE_TRUE=
28735 FONTCONFIG_DELEGATE_FALSE='#'
28736else
28737 FONTCONFIG_DELEGATE_TRUE='#'
28738 FONTCONFIG_DELEGATE_FALSE=
28739fi
28740
cristy3ed852e2009-09-05 21:47:34 +000028741
28742
28743
28744
28745#
cristy81beccd2011-10-03 18:17:24 +000028746# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028747#
28748
28749# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028750if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028751 withval=$with_freetype; with_freetype=$withval
28752else
28753 with_freetype='yes'
28754fi
28755
28756
cristy81beccd2011-10-03 18:17:24 +000028757
cristy3ed852e2009-09-05 21:47:34 +000028758if test "$with_freetype" != 'yes'; then
28759 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28760fi
28761
cristy81beccd2011-10-03 18:17:24 +000028762have_freetype='no'
28763FREETYPE_LIBS=''
28764if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028765 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28766$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28768$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028769 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28770$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028771 failed=0
28772 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028773 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028774 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028775 freetype_config=''
28776 # Allow the user to specify the location of freetype.
28777 if test "$with_freetype" != 'yes'; then
28778 if test -x "${with_freetype}/bin/freetype-config"; then
28779 freetype_config="${with_freetype}/bin/freetype-config"
28780 elif test -x "${with_freetype}"; then
28781 freetype_config=${with_freetype}
28782 fi
28783 fi
28784 if test -z "$freetype_config"; then
28785 # Extract the first word of "freetype-config", so it can be a program name with args.
28786set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28788$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028789if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028790 $as_echo_n "(cached) " >&6
28791else
cristy98ca0f52011-10-08 23:19:10 +000028792 case $freetype_config in
28793 [\\/]* | ?:[\\/]*)
28794 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28795 ;;
28796 *)
28797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028798for as_dir in $PATH
28799do
28800 IFS=$as_save_IFS
28801 test -z "$as_dir" && as_dir=.
28802 for ac_exec_ext in '' $ac_executable_extensions; do
28803 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 +000028804 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28806 break 2
28807 fi
28808done
28809 done
28810IFS=$as_save_IFS
28811
cristy98ca0f52011-10-08 23:19:10 +000028812 ;;
28813esac
cristy81beccd2011-10-03 18:17:24 +000028814fi
cristy98ca0f52011-10-08 23:19:10 +000028815freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028816if test -n "$freetype_config"; then
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28818$as_echo "$freetype_config" >&6; }
28819else
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28821$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028822fi
28823
cristy98ca0f52011-10-08 23:19:10 +000028824 fi
28825 if test -n "$freetype_config"; then
28826 freetype_prefix=`${freetype_config} --prefix`
28827 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28828 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28829 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028830 fi
28831
28832 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028834$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28835if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28836 $as_echo_n "(cached) " >&6
28837else
28838 ac_check_lib_save_LIBS=$LIBS
28839LIBS="-lfreetype $LIBS"
28840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28841/* end confdefs.h. */
28842
28843/* Override any GCC internal prototype to avoid an error.
28844 Use char because int might match the return type of a GCC
28845 builtin and then its argument prototype would still apply. */
28846#ifdef __cplusplus
28847extern "C"
28848#endif
28849char FT_Init_FreeType ();
28850int
28851main ()
28852{
28853return FT_Init_FreeType ();
28854 ;
28855 return 0;
28856}
28857_ACEOF
28858if ac_fn_c_try_link "$LINENO"; then :
28859 ac_cv_lib_freetype_FT_Init_FreeType=yes
28860else
28861 ac_cv_lib_freetype_FT_Init_FreeType=no
28862fi
28863rm -f core conftest.err conftest.$ac_objext \
28864 conftest$ac_exeext conftest.$ac_ext
28865LIBS=$ac_check_lib_save_LIBS
28866fi
28867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28868$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28869if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28870 FREETYPE_LIBS='-lfreetype'
28871fi
28872
cristy98ca0f52011-10-08 23:19:10 +000028873 if test "$FREETYPE_LIBS" != ''; then
28874 passed=`expr $passed + 1`
28875 else
28876 failed=`expr $failed + 1`
28877 LDFLAGS="$PERSIST_LDFLAGS"
28878 fi
cristy81beccd2011-10-03 18:17:24 +000028879 fi
28880
28881 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28882if test "x$ac_cv_header_ft2build_h" = xyes; then :
28883 FT2BUILD_H='#include <ft2build.h>'
28884else
28885 ft2build=''
28886fi
28887
28888
28889 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28890"
28891if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28892 have_freetype_h='yes'
28893else
28894 have_freetype_h='no'
28895fi
28896
28897
cristy98ca0f52011-10-08 23:19:10 +000028898 if test "$have_freetype_h" = 'yes'; then
28899 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028900 else
cristy98ca0f52011-10-08 23:19:10 +000028901 failed=`expr $failed + 1`
28902 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028903 fi
28904
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28906$as_echo_n "checking if FreeType package is complete... " >&6; }
28907 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028908 if test $failed -gt 0; then
28909 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028910 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28911$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028912 have_freetype='no (failed tests)'
28913 else
28914 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028915
cristy8b350f62009-11-15 23:12:43 +000028916$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028917
cristy98ca0f52011-10-08 23:19:10 +000028918 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028919
28920$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28921
cristy81beccd2011-10-03 18:17:24 +000028922 fi
cristy09b53e12011-10-14 12:47:22 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28924$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028925 have_freetype='yes'
28926 fi
cristy81beccd2011-10-03 18:17:24 +000028927 else
cristy09b53e12011-10-14 12:47:22 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28929$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028930 fi
28931fi
cristy73bd4a52010-10-05 11:24:23 +000028932 if test "$have_freetype" = 'yes'; then
28933 FREETYPE_DELEGATE_TRUE=
28934 FREETYPE_DELEGATE_FALSE='#'
28935else
28936 FREETYPE_DELEGATE_TRUE='#'
28937 FREETYPE_DELEGATE_FALSE=
28938fi
28939
cristy3ed852e2009-09-05 21:47:34 +000028940
28941
28942
cristy3ed852e2009-09-05 21:47:34 +000028943#
28944# Check for Ghostscript library or framework.
28945#
28946# Test for iapi.h & test for gsapi_new_instance in -lgs
28947# or -framework Ghostscript
28948
28949
28950# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028951if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028952 withval=$with_gslib; with_gslib=$withval
28953else
28954 with_gslib='no'
28955fi
28956
28957
cristyb7931f12009-09-25 10:22:21 +000028958gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028959if test "$with_gslib" != 'yes'; then
28960 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28961fi
28962
28963have_gslib='no'
28964GS_LIBS=''
28965if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028966 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28967$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028969$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28971$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028972 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028973 failed=0
28974 passed=0
cristy8b350f62009-11-15 23:12:43 +000028975 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 +000028976if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028977 passed=`expr $passed + 1`
28978else
28979 failed=`expr $failed + 1`
28980fi
28981
28982
cristy8b350f62009-11-15 23:12:43 +000028983 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 +000028984if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028985 passed=`expr $passed + 1`
28986else
28987 failed=`expr $failed + 1`
28988fi
28989
28990
cristy73bd4a52010-10-05 11:24:23 +000028991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28992$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028993if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028994 $as_echo_n "(cached) " >&6
28995else
28996 ac_check_framework_save_LIBS=$LIBS
28997LIBS="-framework Ghostscript $LIBS"
28998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28999/* end confdefs.h. */
29000
29001/* Override any GCC internal prototype to avoid an error.
29002 Use char because int might match the return type of a GCC
29003 builtin and then its argument prototype would still apply. */
29004#ifdef __cplusplus
29005extern "C"
29006#endif
29007char gsapi_new_instance ();
29008int
29009main ()
29010{
29011return gsapi_new_instance ();
29012 ;
29013 return 0;
29014}
29015_ACEOF
29016if ac_fn_c_try_link "$LINENO"; then :
29017 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29018else
29019 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29020fi
29021rm -f core conftest.err conftest.$ac_objext \
29022 conftest$ac_exeext conftest.$ac_ext
29023LIBS=$ac_check_framework_save_LIBS
29024fi
29025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29026$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29027if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29028 framework=`expr $framework + 1`
29029else
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029031$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029032if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029033 $as_echo_n "(cached) " >&6
29034else
29035 ac_check_lib_save_LIBS=$LIBS
29036LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029038/* end confdefs.h. */
29039
29040/* Override any GCC internal prototype to avoid an error.
29041 Use char because int might match the return type of a GCC
29042 builtin and then its argument prototype would still apply. */
29043#ifdef __cplusplus
29044extern "C"
29045#endif
29046char gsapi_new_instance ();
29047int
29048main ()
29049{
29050return gsapi_new_instance ();
29051 ;
29052 return 0;
29053}
29054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029055if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029056 ac_cv_lib_gs_gsapi_new_instance=yes
29057else
cristy8b350f62009-11-15 23:12:43 +000029058 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029059fi
cristy8b350f62009-11-15 23:12:43 +000029060rm -f core conftest.err conftest.$ac_objext \
29061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029062LIBS=$ac_check_lib_save_LIBS
29063fi
cristy8b350f62009-11-15 23:12:43 +000029064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029065$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029066if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029067 passed=`expr $passed + 1`
29068else
29069 failed=`expr $failed + 1`
29070fi
cristy73bd4a52010-10-05 11:24:23 +000029071
29072fi
cristy8b350f62009-11-15 23:12:43 +000029073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029074$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29075 if test $passed -gt 0; then
29076 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029077 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29078$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029079 have_gslib='no (failed tests)'
29080 else
29081 if test $framework -gt 0; then
29082 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029083 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029084 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29085$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029086 else
cristy09b53e12011-10-14 12:47:22 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29088$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029089 GS_LIBS='-lgs'
29090 fi
29091 LIBS="$GS_LIBS $LIBS"
29092
cristy8b350f62009-11-15 23:12:43 +000029093$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029094
29095 have_gslib='yes'
29096 fi
29097 else
cristy09b53e12011-10-14 12:47:22 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29099$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029100 fi
29101fi
cristy73bd4a52010-10-05 11:24:23 +000029102 if test "$have_gslib" = 'yes'; then
29103 GS_DELEGATE_TRUE=
29104 GS_DELEGATE_FALSE='#'
29105else
29106 GS_DELEGATE_TRUE='#'
29107 GS_DELEGATE_FALSE=
29108fi
29109
cristy3ed852e2009-09-05 21:47:34 +000029110
29111
29112# Set default font search path
29113
29114# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029115if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029116 withval=$with_fontpath; with_fontpath=$withval
29117else
29118 with_fontpath=''
29119fi
29120
29121
29122if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29123 with_fontpath=''
29124else
29125
29126cat >>confdefs.h <<_ACEOF
29127#define MAGICK_FONT_PATH "$with_fontpath"
29128_ACEOF
29129
29130fi
29131if test "$with_fontpath=" != ''; then
29132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29133fi
29134
29135# Set Ghostscript font directory
29136
29137# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029138if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029139 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29140else
29141 with_gs_font_dir='default'
29142fi
29143
29144
29145if test "$with_gs_font_dir" != 'default'; then
29146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29147fi
29148
29149
29150#
29151# Check for GVC delegate library.
29152#
29153
29154# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029155if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029156 withval=$with_gvc; with_gvc=$withval
29157else
29158 with_gvc='yes'
29159fi
29160
29161
29162if test "$with_gvc" != 'yes'; then
29163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29164fi
29165
29166GVC_PKG=""
29167if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029168 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29169$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029170
29171pkg_failed=no
29172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29173$as_echo_n "checking for GVC... " >&6; }
29174
29175if test -n "$GVC_CFLAGS"; then
29176 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29177 elif test -n "$PKG_CONFIG"; then
29178 if test -n "$PKG_CONFIG" && \
29179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29180 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29181 ac_status=$?
29182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29183 test $ac_status = 0; }; then
29184 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29185else
29186 pkg_failed=yes
29187fi
29188 else
29189 pkg_failed=untried
29190fi
29191if test -n "$GVC_LIBS"; then
29192 pkg_cv_GVC_LIBS="$GVC_LIBS"
29193 elif test -n "$PKG_CONFIG"; then
29194 if test -n "$PKG_CONFIG" && \
29195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29196 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29197 ac_status=$?
29198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29199 test $ac_status = 0; }; then
29200 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29201else
29202 pkg_failed=yes
29203fi
29204 else
29205 pkg_failed=untried
29206fi
29207
29208
29209
29210if test $pkg_failed = yes; then
29211
29212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29213 _pkg_short_errors_supported=yes
29214else
29215 _pkg_short_errors_supported=no
29216fi
29217 if test $_pkg_short_errors_supported = yes; then
29218 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29219 else
29220 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29221 fi
29222 # Put the nasty error message in config.log where it belongs
29223 echo "$GVC_PKG_ERRORS" >&5
29224
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29226$as_echo "no" >&6; }
29227 have_gvc=no
29228elif test $pkg_failed = untried; then
29229 have_gvc=no
29230else
29231 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29232 GVC_LIBS=$pkg_cv_GVC_LIBS
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29234$as_echo "yes" >&6; }
29235 have_gvc=yes
29236fi
cristy09b53e12011-10-14 12:47:22 +000029237 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29238$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029239fi
29240
29241if test "$have_gvc" = 'yes'; then
29242
cristy8b350f62009-11-15 23:12:43 +000029243$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029244
29245 if test "$with_modules" = 'no'; then
29246 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29247 fi
29248fi
29249
cristy73bd4a52010-10-05 11:24:23 +000029250 if test "$have_gvc" = 'yes'; then
29251 GVC_DELEGATE_TRUE=
29252 GVC_DELEGATE_FALSE='#'
29253else
29254 GVC_DELEGATE_TRUE='#'
29255 GVC_DELEGATE_FALSE=
29256fi
29257
cristy3ed852e2009-09-05 21:47:34 +000029258
29259
29260
29261
29262#
29263# Check for JBIG delegate library.
29264#
29265
29266
29267# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029268if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029269 withval=$with_jbig; with_jbig=$withval
29270else
29271 with_jbig='yes'
29272fi
29273
29274
29275have_jbig='no'
29276JBIG_LIBS=''
29277if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29279$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029281$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29283$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029284 failed=0
29285 passed=0
cristy8b350f62009-11-15 23:12:43 +000029286 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029287if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029288 passed=`expr $passed + 1`
29289else
29290 failed=`expr $failed + 1`
29291fi
29292
29293
cristy8b350f62009-11-15 23:12:43 +000029294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029295$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029296if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029297 $as_echo_n "(cached) " >&6
29298else
29299 ac_check_lib_save_LIBS=$LIBS
29300LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029302/* end confdefs.h. */
29303
29304/* Override any GCC internal prototype to avoid an error.
29305 Use char because int might match the return type of a GCC
29306 builtin and then its argument prototype would still apply. */
29307#ifdef __cplusplus
29308extern "C"
29309#endif
29310char jbg_dec_init ();
29311int
29312main ()
29313{
29314return jbg_dec_init ();
29315 ;
29316 return 0;
29317}
29318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029320 ac_cv_lib_jbig_jbg_dec_init=yes
29321else
cristy8b350f62009-11-15 23:12:43 +000029322 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029323fi
cristy8b350f62009-11-15 23:12:43 +000029324rm -f core conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029326LIBS=$ac_check_lib_save_LIBS
29327fi
cristy8b350f62009-11-15 23:12:43 +000029328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029329$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029330if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029331 passed=`expr $passed + 1`
29332else
29333 failed=`expr $failed + 1`
29334fi
29335
cristy8b350f62009-11-15 23:12:43 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo_n "checking if JBIG package is complete... " >&6; }
29338 if test $passed -gt 0; then
29339 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029340 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29341$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029342 have_jbig='no (failed tests)'
29343 else
29344 JBIG_LIBS='-ljbig'
29345 LIBS="$JBIG_LIBS $LIBS"
29346
cristy8b350f62009-11-15 23:12:43 +000029347$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029348
cristy09b53e12011-10-14 12:47:22 +000029349 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29350$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029351 have_jbig='yes'
29352 fi
29353 else
cristy09b53e12011-10-14 12:47:22 +000029354 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29355$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029356 fi
29357fi
cristy73bd4a52010-10-05 11:24:23 +000029358 if test "$have_jbig" = 'yes'; then
29359 JBIG_DELEGATE_TRUE=
29360 JBIG_DELEGATE_FALSE='#'
29361else
29362 JBIG_DELEGATE_TRUE='#'
29363 JBIG_DELEGATE_FALSE=
29364fi
29365
cristy3ed852e2009-09-05 21:47:34 +000029366
29367
29368
29369#
29370# Check for JPEG delegate library.
29371#
29372
29373# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029374if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029375 withval=$with_jpeg; with_jpeg=$withval
29376else
29377 with_jpeg='yes'
29378fi
29379
29380
29381if test "$with_jpeg" != 'yes'; then
29382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29383fi
29384
29385have_jpeg='no'
29386JPEG_LIBS=''
29387if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29389$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29393$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029394 failed=0
29395 passed=0
cristy8b350f62009-11-15 23:12:43 +000029396 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029397if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029398 passed=`expr $passed + 1`
29399else
29400 failed=`expr $failed + 1`
29401fi
29402
29403
cristy8b350f62009-11-15 23:12:43 +000029404 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029405if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029406 passed=`expr $passed + 1`
29407else
29408 failed=`expr $failed + 1`
29409fi
29410
29411
cristy8b350f62009-11-15 23:12:43 +000029412 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029413if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029414 passed=`expr $passed + 1`
29415else
29416 failed=`expr $failed + 1`
29417fi
29418
29419
cristy8b350f62009-11-15 23:12:43 +000029420 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029421if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029422 passed=`expr $passed + 1`
29423else
29424 failed=`expr $failed + 1`
29425fi
29426
29427
cristy8b350f62009-11-15 23:12:43 +000029428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029430if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029431 $as_echo_n "(cached) " >&6
29432else
29433 ac_check_lib_save_LIBS=$LIBS
29434LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029436/* end confdefs.h. */
29437
29438/* Override any GCC internal prototype to avoid an error.
29439 Use char because int might match the return type of a GCC
29440 builtin and then its argument prototype would still apply. */
29441#ifdef __cplusplus
29442extern "C"
29443#endif
29444char jpeg_read_header ();
29445int
29446main ()
29447{
29448return jpeg_read_header ();
29449 ;
29450 return 0;
29451}
29452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029454 ac_cv_lib_jpeg_jpeg_read_header=yes
29455else
cristy8b350f62009-11-15 23:12:43 +000029456 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029457fi
cristy8b350f62009-11-15 23:12:43 +000029458rm -f core conftest.err conftest.$ac_objext \
29459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029460LIBS=$ac_check_lib_save_LIBS
29461fi
cristy8b350f62009-11-15 23:12:43 +000029462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029464if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029465 passed=`expr $passed + 1`
29466else
29467 failed=`expr $failed + 1`
29468fi
29469
29470
29471# Test for compatible JPEG library
29472if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029474$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029475if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029476 $as_echo_n "(cached) " >&6
29477else
cristy8b350f62009-11-15 23:12:43 +000029478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029479/* end confdefs.h. */
29480#include <stdio.h>
29481#include <stdlib.h>
29482#include <jpeglib.h>
29483
29484int
29485main ()
29486{
29487
29488#if JPEG_LIB_VERSION < 62
29489#error IJG JPEG library must be version 6b or newer!
29490#endif
29491return 0;
29492
29493 ;
29494 return 0;
29495}
29496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029497if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029498 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29499else
cristy8b350f62009-11-15 23:12:43 +000029500 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029501fi
cristy3ed852e2009-09-05 21:47:34 +000029502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29503fi
cristy8b350f62009-11-15 23:12:43 +000029504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029505$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29506fi
cristy8b350f62009-11-15 23:12:43 +000029507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029508$as_echo_n "checking if JPEG package is complete... " >&6; }
29509 if test $passed -gt 0; then
29510 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29512$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029513 have_jpeg='no (failed tests)'
29514 else
29515 JPEG_LIBS='-ljpeg'
29516 LIBS="$JPEG_LIBS $LIBS"
29517
cristy8b350f62009-11-15 23:12:43 +000029518$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029519
cristy09b53e12011-10-14 12:47:22 +000029520 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29521$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029522 have_jpeg='yes'
29523 fi
29524 else
cristy09b53e12011-10-14 12:47:22 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29526$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029527 fi
29528fi
cristy73bd4a52010-10-05 11:24:23 +000029529 if test "$have_jpeg" = 'yes'; then
29530 JPEG_DELEGATE_TRUE=
29531 JPEG_DELEGATE_FALSE='#'
29532else
29533 JPEG_DELEGATE_TRUE='#'
29534 JPEG_DELEGATE_FALSE=
29535fi
29536
cristy3ed852e2009-09-05 21:47:34 +000029537
29538
29539
29540#
29541# Check for JPEG Version 2 delegate library.
29542#
29543
29544# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029545if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029546 withval=$with_jp2; with_jp2=$withval
29547else
29548 with_jp2='yes'
29549fi
29550
29551
29552if test "$with_jp2" != 'yes'; then
29553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29554fi
29555
29556have_jp2='no'
29557JP2_LIBS=''
29558if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029559 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29560$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029562$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29564$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029565 failed=0
29566 passed=0
cristy8b350f62009-11-15 23:12:43 +000029567 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 +000029568if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029569 passed=`expr $passed + 1`
29570else
29571 failed=`expr $failed + 1`
29572fi
29573
29574
cristy8b350f62009-11-15 23:12:43 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029577if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029578 $as_echo_n "(cached) " >&6
29579else
29580 ac_check_lib_save_LIBS=$LIBS
29581LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029583/* end confdefs.h. */
29584
29585/* Override any GCC internal prototype to avoid an error.
29586 Use char because int might match the return type of a GCC
29587 builtin and then its argument prototype would still apply. */
29588#ifdef __cplusplus
29589extern "C"
29590#endif
29591char jas_stream_fopen ();
29592int
29593main ()
29594{
29595return jas_stream_fopen ();
29596 ;
29597 return 0;
29598}
29599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029601 ac_cv_lib_jasper_jas_stream_fopen=yes
29602else
cristy8b350f62009-11-15 23:12:43 +000029603 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029604fi
cristy8b350f62009-11-15 23:12:43 +000029605rm -f core conftest.err conftest.$ac_objext \
29606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029607LIBS=$ac_check_lib_save_LIBS
29608fi
cristy8b350f62009-11-15 23:12:43 +000029609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029610$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029611if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029612 passed=`expr $passed + 1`
29613else
29614 failed=`expr $failed + 1`
29615fi
29616
cristy8b350f62009-11-15 23:12:43 +000029617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029618$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29619 if test $passed -gt 0; then
29620 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29622$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029623 have_jp2='no (failed tests)'
29624 else
29625 JP2_LIBS='-ljasper'
29626 LIBS="$JP2_LIBS $LIBS"
29627
cristy8b350f62009-11-15 23:12:43 +000029628$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029629
cristy09b53e12011-10-14 12:47:22 +000029630 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29631$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029632 have_jp2='yes'
29633 fi
29634 else
cristy09b53e12011-10-14 12:47:22 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29636$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029637 fi
29638fi
cristy73bd4a52010-10-05 11:24:23 +000029639 if test "$have_jp2" = 'yes'; then
29640 JP2_DELEGATE_TRUE=
29641 JP2_DELEGATE_FALSE='#'
29642else
29643 JP2_DELEGATE_TRUE='#'
29644 JP2_DELEGATE_FALSE=
29645fi
29646
cristy3ed852e2009-09-05 21:47:34 +000029647
29648
29649
29650#
29651# Check for LCMS delegate library.
29652#
cristy71203402010-06-18 13:12:03 +000029653# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029654
29655# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029656if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029657 withval=$with_lcms; with_lcms=$withval
29658else
29659 with_lcms='yes'
29660fi
29661
cristy71203402010-06-18 13:12:03 +000029662if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029663 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29664fi
29665
cristy71203402010-06-18 13:12:03 +000029666# Disable LCMS2.
29667
29668# Check whether --with-lcms2 was given.
29669if test "${with_lcms2+set}" = set; then :
29670 withval=$with_lcms2; with_lcms2=$withval
29671else
29672 with_lcms2='yes'
29673fi
29674
29675if test "$with_lcms2" != 'yes' ; then
29676 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29677fi
29678
29679have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029680LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029681if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29683$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29685$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029686 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29687$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029688 failed=0
29689 passed=0
29690 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029691
29692 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029693 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029694if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029695 have_lcms_header='yes'
29696fi
29697
29698
29699 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029700
29701$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29702
cristy71203402010-06-18 13:12:03 +000029703 passed=`expr $passed + 1`
29704 fi
29705
29706 # Check for <lcms2/lcms2.h)
29707 if test "$have_lcms_header" != 'yes'; then
29708 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 +000029709if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029710 have_lcms_header='yes'
29711fi
29712
29713
cristy71203402010-06-18 13:12:03 +000029714 if test "$have_lcms_header" = 'yes'; then
29715 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029716
cristy71203402010-06-18 13:12:03 +000029717$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029718
cristy71203402010-06-18 13:12:03 +000029719 fi
cristyd09bcf92010-03-25 03:04:45 +000029720 fi
cristy71203402010-06-18 13:12:03 +000029721
29722 # Failed to find lcms header?
29723 if test "$have_lcms_header" != 'yes'; then
29724 failed=`expr $failed + 1`
29725 fi
29726
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29728$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029729if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029730 $as_echo_n "(cached) " >&6
29731else
29732 ac_check_lib_save_LIBS=$LIBS
29733LIBS="-llcms2 $LIBS"
29734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29735/* end confdefs.h. */
29736
29737/* Override any GCC internal prototype to avoid an error.
29738 Use char because int might match the return type of a GCC
29739 builtin and then its argument prototype would still apply. */
29740#ifdef __cplusplus
29741extern "C"
29742#endif
cristy71203402010-06-18 13:12:03 +000029743char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029744int
29745main ()
29746{
cristy71203402010-06-18 13:12:03 +000029747return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029748 ;
29749 return 0;
29750}
29751_ACEOF
29752if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029753 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029754else
cristy71203402010-06-18 13:12:03 +000029755 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029756fi
29757rm -f core conftest.err conftest.$ac_objext \
29758 conftest$ac_exeext conftest.$ac_ext
29759LIBS=$ac_check_lib_save_LIBS
29760fi
cristy71203402010-06-18 13:12:03 +000029761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29762$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029763if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029764 passed=`expr $passed + 1`
29765else
29766 failed=`expr $failed + 1`
29767fi
29768
cristy71203402010-06-18 13:12:03 +000029769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29770$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029771 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029772 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29774$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029775 have_lcms2='no (failed tests)'
29776 else
29777 LCMS_LIBS='-llcms2'
29778 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029779 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29780$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029781 have_lcms2='yes'
29782 fi
cristyd09bcf92010-03-25 03:04:45 +000029783 else
cristy09b53e12011-10-14 12:47:22 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29785$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029786 fi
29787fi
29788
cristy71203402010-06-18 13:12:03 +000029789#
29790# Check for LCMS v1 (1.11 or later)
29791#
29792if test $have_lcms2 = 'yes'; then
29793 with_lcms='no'
29794fi
29795
29796have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029797if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29799$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29801$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29803$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029804 failed=0
29805 passed=0
29806 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029807
29808 # Check for <lcms.h>
29809 if test "$have_lcms_header" != 'yes'; then
29810 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029811if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029812 have_lcms_header='yes'
29813fi
29814
29815
cristy71203402010-06-18 13:12:03 +000029816 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029817 passed=`expr $passed + 1`
29818
cristy8b350f62009-11-15 23:12:43 +000029819$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029820
cristy71203402010-06-18 13:12:03 +000029821 fi
29822 fi
29823
29824 # Check for <lcms/lcms.h>
29825 if test "$have_lcms_header" != 'yes'; then
29826 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 +000029827if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 have_lcms_header='yes'
29829fi
29830
29831
cristy71203402010-06-18 13:12:03 +000029832 if test "$have_lcms_header" = 'yes'; then
29833 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029834
cristy8b350f62009-11-15 23:12:43 +000029835$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029836
cristy71203402010-06-18 13:12:03 +000029837 fi
cristy3ed852e2009-09-05 21:47:34 +000029838 fi
cristy71203402010-06-18 13:12:03 +000029839
29840 # Failed to find lcms header?
29841 if test "$have_lcms_header" != 'yes'; then
29842 failed=`expr $failed + 1`
29843 fi
29844
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29846$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029847if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029848 $as_echo_n "(cached) " >&6
29849else
29850 ac_check_lib_save_LIBS=$LIBS
29851LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029853/* end confdefs.h. */
29854
29855/* Override any GCC internal prototype to avoid an error.
29856 Use char because int might match the return type of a GCC
29857 builtin and then its argument prototype would still apply. */
29858#ifdef __cplusplus
29859extern "C"
29860#endif
cristy71203402010-06-18 13:12:03 +000029861char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029862int
29863main ()
29864{
cristy71203402010-06-18 13:12:03 +000029865return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029866 ;
29867 return 0;
29868}
29869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029870if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029871 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029872else
cristy71203402010-06-18 13:12:03 +000029873 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029874fi
cristy8b350f62009-11-15 23:12:43 +000029875rm -f core conftest.err conftest.$ac_objext \
29876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029877LIBS=$ac_check_lib_save_LIBS
29878fi
cristy71203402010-06-18 13:12:03 +000029879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29880$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029881if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029882 passed=`expr $passed + 1`
29883else
29884 failed=`expr $failed + 1`
29885fi
29886
cristy8b350f62009-11-15 23:12:43 +000029887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029888$as_echo_n "checking if LCMS package is complete... " >&6; }
29889 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029890 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029891 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29892$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029893 have_lcms='no (failed tests)'
29894 else
29895 LCMS_LIBS='-llcms'
29896 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29898$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029899 have_lcms='yes'
29900 fi
cristy3ed852e2009-09-05 21:47:34 +000029901 else
cristy09b53e12011-10-14 12:47:22 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29903$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029904 fi
29905fi
cristy71203402010-06-18 13:12:03 +000029906
cristy73bd4a52010-10-05 11:24:23 +000029907 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29908 LCMS_DELEGATE_TRUE=
29909 LCMS_DELEGATE_FALSE='#'
29910else
29911 LCMS_DELEGATE_TRUE='#'
29912 LCMS_DELEGATE_FALSE=
29913fi
29914
cristy71203402010-06-18 13:12:03 +000029915if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29916
29917$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29918
29919fi
29920
cristy3ed852e2009-09-05 21:47:34 +000029921
29922
29923
29924#
29925# Check for the LQR (Liquid Rescale) delegate library.
29926#
29927
29928# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029929if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029930 withval=$with_lqr; with_lqr=$withval
29931else
29932 with_lqr='yes'
29933fi
29934
29935
29936if test "$with_lqr" != 'yes'; then
29937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29938fi
29939
29940have_lqr='no'
29941LQR_CFLAGS=""
29942LQR_LIBS=""
29943LQR_PKG=""
29944if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029945 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29946$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029947
29948pkg_failed=no
29949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29950$as_echo_n "checking for LQR... " >&6; }
29951
29952if test -n "$LQR_CFLAGS"; then
29953 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29954 elif test -n "$PKG_CONFIG"; then
29955 if test -n "$PKG_CONFIG" && \
29956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29957 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29958 ac_status=$?
29959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29960 test $ac_status = 0; }; then
29961 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29962else
29963 pkg_failed=yes
29964fi
29965 else
29966 pkg_failed=untried
29967fi
29968if test -n "$LQR_LIBS"; then
29969 pkg_cv_LQR_LIBS="$LQR_LIBS"
29970 elif test -n "$PKG_CONFIG"; then
29971 if test -n "$PKG_CONFIG" && \
29972 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29973 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29974 ac_status=$?
29975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29976 test $ac_status = 0; }; then
29977 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29978else
29979 pkg_failed=yes
29980fi
29981 else
29982 pkg_failed=untried
29983fi
29984
29985
29986
29987if test $pkg_failed = yes; then
29988
29989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29990 _pkg_short_errors_supported=yes
29991else
29992 _pkg_short_errors_supported=no
29993fi
29994 if test $_pkg_short_errors_supported = yes; then
29995 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29996 else
29997 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29998 fi
29999 # Put the nasty error message in config.log where it belongs
30000 echo "$LQR_PKG_ERRORS" >&5
30001
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30003$as_echo "no" >&6; }
30004 have_lqr=no
30005elif test $pkg_failed = untried; then
30006 have_lqr=no
30007else
30008 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30009 LQR_LIBS=$pkg_cv_LQR_LIBS
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30011$as_echo "yes" >&6; }
30012 have_lqr=yes
30013fi
cristy09b53e12011-10-14 12:47:22 +000030014 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30015$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030016fi
30017
30018if test "$have_lqr" = 'yes'; then
30019
cristy8b350f62009-11-15 23:12:43 +000030020$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030021
30022 CFLAGS="$LQR_CFLAGS $CFLAGS"
30023fi
30024
cristy73bd4a52010-10-05 11:24:23 +000030025 if test "$have_lqr" = 'yes'; then
30026 LQR_DELEGATE_TRUE=
30027 LQR_DELEGATE_FALSE='#'
30028else
30029 LQR_DELEGATE_TRUE='#'
30030 LQR_DELEGATE_FALSE=
30031fi
30032
cristy3ed852e2009-09-05 21:47:34 +000030033
30034
30035
30036
cristy81beccd2011-10-03 18:17:24 +000030037# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030038
30039# Check whether --with-lzma was given.
30040if test "${with_lzma+set}" = set; then :
30041 withval=$with_lzma; with_lzma=$withval
30042else
30043 with_lzma='yes'
30044fi
30045
cristy81beccd2011-10-03 18:17:24 +000030046if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30048fi
30049
cristy81beccd2011-10-03 18:17:24 +000030050#
30051# Check for LZMA
30052#
30053have_lzma='no'
30054LZMA_LIBS=''
30055if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030056 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30057$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030059$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30061$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030062 failed=0
30063 passed=0
30064 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30065if test "x$ac_cv_header_lzma_h" = xyes; then :
30066 passed=`expr $passed + 1`
30067else
30068 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000030069fi
30070
cristy81beccd2011-10-03 18:17:24 +000030071
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30073$as_echo_n "checking for lzma_code in -llzma... " >&6; }
30074if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30075 $as_echo_n "(cached) " >&6
30076else
30077 ac_check_lib_save_LIBS=$LIBS
30078LIBS="-llzma $LIBS"
30079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30080/* end confdefs.h. */
30081
30082/* Override any GCC internal prototype to avoid an error.
30083 Use char because int might match the return type of a GCC
30084 builtin and then its argument prototype would still apply. */
30085#ifdef __cplusplus
30086extern "C"
30087#endif
30088char lzma_code ();
30089int
30090main ()
30091{
30092return lzma_code ();
30093 ;
30094 return 0;
30095}
30096_ACEOF
30097if ac_fn_c_try_link "$LINENO"; then :
30098 ac_cv_lib_lzma_lzma_code=yes
30099else
30100 ac_cv_lib_lzma_lzma_code=no
30101fi
30102rm -f core conftest.err conftest.$ac_objext \
30103 conftest$ac_exeext conftest.$ac_ext
30104LIBS=$ac_check_lib_save_LIBS
30105fi
30106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30107$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30108if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30109 passed=`expr $passed + 1`
30110else
30111 failed=`expr $failed + 1`
30112fi
30113
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30115$as_echo_n "checking if LZMA package is complete... " >&6; }
30116 if test $passed -gt 0; then
30117 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30119$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030120 have_lzma='no (failed tests)'
30121 else
30122 LZMA_LIBS='-llzma'
30123 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030124
30125$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30126
cristy09b53e12011-10-14 12:47:22 +000030127 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30128$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030129 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030130 fi
cristy81beccd2011-10-03 18:17:24 +000030131 else
cristy09b53e12011-10-14 12:47:22 +000030132 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30133$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030134 fi
cristyfbb0ef02010-12-19 02:32:11 +000030135fi
30136 if test "$have_lzma" = 'yes'; then
30137 LZMA_DELEGATE_TRUE=
30138 LZMA_DELEGATE_FALSE='#'
30139else
30140 LZMA_DELEGATE_TRUE='#'
30141 LZMA_DELEGATE_FALSE=
30142fi
30143
30144
30145
30146
cristy3ed852e2009-09-05 21:47:34 +000030147#
30148# Check for the OpenEXR delegate library.
30149#
30150
30151# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030152if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030153 withval=$with_openexr; with_openexr=$withval
30154else
30155 with_openexr='yes'
30156fi
30157
30158
30159if test "$with_openexr" != 'yes'; then
30160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30161fi
30162
30163have_openexr='no'
30164OPENEXR_CFLAGS=""
30165OPENEXR_LIBS=""
30166OPENEXR_PKG=""
30167if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030168 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30169$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030170
30171pkg_failed=no
30172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30173$as_echo_n "checking for OPENEXR... " >&6; }
30174
30175if test -n "$OPENEXR_CFLAGS"; then
30176 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30177 elif test -n "$PKG_CONFIG"; then
30178 if test -n "$PKG_CONFIG" && \
30179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30180 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30181 ac_status=$?
30182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30183 test $ac_status = 0; }; then
30184 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30185else
30186 pkg_failed=yes
30187fi
30188 else
30189 pkg_failed=untried
30190fi
30191if test -n "$OPENEXR_LIBS"; then
30192 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30193 elif test -n "$PKG_CONFIG"; then
30194 if test -n "$PKG_CONFIG" && \
30195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30196 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30197 ac_status=$?
30198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30199 test $ac_status = 0; }; then
30200 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30201else
30202 pkg_failed=yes
30203fi
30204 else
30205 pkg_failed=untried
30206fi
30207
30208
30209
30210if test $pkg_failed = yes; then
30211
30212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30213 _pkg_short_errors_supported=yes
30214else
30215 _pkg_short_errors_supported=no
30216fi
30217 if test $_pkg_short_errors_supported = yes; then
30218 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30219 else
30220 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30221 fi
30222 # Put the nasty error message in config.log where it belongs
30223 echo "$OPENEXR_PKG_ERRORS" >&5
30224
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30226$as_echo "no" >&6; }
30227 have_openexr=no
30228elif test $pkg_failed = untried; then
30229 have_openexr=no
30230else
30231 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30232 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30234$as_echo "yes" >&6; }
30235 have_openexr=yes
30236fi
cristy09b53e12011-10-14 12:47:22 +000030237 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30238$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030239fi
30240
30241if test "$have_openexr" = 'yes'; then
30242
cristy8b350f62009-11-15 23:12:43 +000030243$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030244
30245 if test "$with_modules" = 'no'; then
30246 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30247 fi
30248fi
30249
cristy73bd4a52010-10-05 11:24:23 +000030250 if test "$have_openexr" = 'yes'; then
30251 OPENEXR_DELEGATE_TRUE=
30252 OPENEXR_DELEGATE_FALSE='#'
30253else
30254 OPENEXR_DELEGATE_TRUE='#'
30255 OPENEXR_DELEGATE_FALSE=
30256fi
30257
cristy3ed852e2009-09-05 21:47:34 +000030258
30259
30260
30261
30262#
cristy41cbe8a2011-10-27 01:35:18 +000030263# Check for PANGO delegate library.
30264#
30265
30266# Check whether --with-pango was given.
30267if test "${with_pango+set}" = set; then :
30268 withval=$with_pango; with_pango=$withval
30269else
30270 with_pango=$have_x
30271fi
30272
30273
30274if test "$with_pango" != 'yes'; then
30275 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30276fi
30277
30278have_pango='no'
30279have_pangoft2='no'
30280PANGO_CFLAGS=""
30281PANGO_LIBS=""
30282PANGO_PKG=""
30283if test "x$with_pango" = "xyes"; then
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30285$as_echo "-------------------------------------------------------------" >&6; }
30286
30287pkg_failed=no
30288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30289$as_echo_n "checking for PANGO... " >&6; }
30290
30291if test -n "$PANGO_CFLAGS"; then
30292 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30293 elif test -n "$PKG_CONFIG"; then
30294 if test -n "$PKG_CONFIG" && \
cristy41cbe8a2011-10-27 01:35:18 +000030295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30296 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30297 ac_status=$?
30298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30299 test $ac_status = 0; }; then
30300 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30301else
30302 pkg_failed=yes
30303fi
30304 else
30305 pkg_failed=untried
30306fi
30307if test -n "$PANGO_LIBS"; then
30308 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30309 elif test -n "$PKG_CONFIG"; then
30310 if test -n "$PKG_CONFIG" && \
30311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30312 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30313 ac_status=$?
30314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30315 test $ac_status = 0; }; then
30316 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30317else
30318 pkg_failed=yes
30319fi
30320 else
30321 pkg_failed=untried
30322fi
30323
30324
30325
30326if test $pkg_failed = yes; then
30327
30328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30329 _pkg_short_errors_supported=yes
30330else
30331 _pkg_short_errors_supported=no
30332fi
30333 if test $_pkg_short_errors_supported = yes; then
30334 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2" 2>&1`
30335 else
30336 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2" 2>&1`
30337 fi
30338 # Put the nasty error message in config.log where it belongs
30339 echo "$PANGO_PKG_ERRORS" >&5
30340
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30342$as_echo "no" >&6; }
30343 have_pangoft2=no
30344elif test $pkg_failed = untried; then
30345 have_pangoft2=no
30346else
30347 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30348 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30350$as_echo "yes" >&6; }
30351 have_pangoft2=yes
30352fi
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30354$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030355
30356pkg_failed=no
30357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30358$as_echo_n "checking for PANGO... " >&6; }
30359
30360if test -n "$PANGO_CFLAGS"; then
30361 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30362 elif test -n "$PKG_CONFIG"; then
30363 if test -n "$PKG_CONFIG" && \
30364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30365 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30366 ac_status=$?
30367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30368 test $ac_status = 0; }; then
30369 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango" 2>/dev/null`
30370else
30371 pkg_failed=yes
30372fi
30373 else
30374 pkg_failed=untried
30375fi
30376if test -n "$PANGO_LIBS"; then
30377 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30378 elif test -n "$PKG_CONFIG"; then
30379 if test -n "$PKG_CONFIG" && \
30380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30381 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30382 ac_status=$?
30383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30384 test $ac_status = 0; }; then
30385 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango" 2>/dev/null`
30386else
30387 pkg_failed=yes
30388fi
30389 else
30390 pkg_failed=untried
30391fi
30392
30393
30394
30395if test $pkg_failed = yes; then
30396
30397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30398 _pkg_short_errors_supported=yes
30399else
30400 _pkg_short_errors_supported=no
30401fi
30402 if test $_pkg_short_errors_supported = yes; then
30403 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango" 2>&1`
30404 else
30405 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango" 2>&1`
30406 fi
30407 # Put the nasty error message in config.log where it belongs
30408 echo "$PANGO_PKG_ERRORS" >&5
30409
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30411$as_echo "no" >&6; }
30412 have_pango=no
30413elif test $pkg_failed = untried; then
30414 have_pango=no
30415else
30416 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30417 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30419$as_echo "yes" >&6; }
30420 have_pango=yes
30421fi
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30423$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030424fi
30425
30426if test "$have_pango" = 'yes'; then
30427
30428$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30429
30430 if test "$with_modules" = 'no'; then
30431 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30432 fi
30433fi
30434
30435if test "$have_pangoft2" = 'yes'; then
30436
30437$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30438
30439 if test "$with_modules" = 'no'; then
30440 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30441 fi
30442fi
30443
30444 if test "$have_pango" = 'yes'; then
30445 PANGO_DELEGATE_TRUE=
30446 PANGO_DELEGATE_FALSE='#'
30447else
30448 PANGO_DELEGATE_TRUE='#'
30449 PANGO_DELEGATE_FALSE=
30450fi
30451
30452 if test "$have_pangoft2" = 'yes'; then
30453 PANGOFT2_DELEGATE_TRUE=
30454 PANGOFT2_DELEGATE_FALSE='#'
30455else
30456 PANGOFT2_DELEGATE_TRUE='#'
30457 PANGOFT2_DELEGATE_FALSE=
30458fi
30459
30460
30461
30462
30463
30464#
cristy3ed852e2009-09-05 21:47:34 +000030465# Check for PNG delegate library.
30466#
30467
30468# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030469if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030470 withval=$with_png; with_png=$withval
30471else
30472 with_png='yes'
30473fi
30474
30475
30476if test "$with_png" != 'yes'; then
30477 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30478fi
30479
cristy81beccd2011-10-03 18:17:24 +000030480have_png='no'
30481PNG_LIBS=''
30482
30483if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30485$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30487$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030488 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30489$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030490 failed=0
30491 passed=0
30492 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30493if test "x$ac_cv_header_png_h" = xyes; then :
30494 passed=`expr $passed + 1`
30495else
30496 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030497fi
30498
cristy81beccd2011-10-03 18:17:24 +000030499
30500
30501 if test $passed -gt 0; then
30502 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030503 if test "$have_png" = 'no' ; then
30504 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030505 pnglib='png'
30506 else
30507 pnglib="png1${var}"
30508 fi
30509
30510# Test for compatible LIBPNG library
30511 failed=0
30512 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030513 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030514 if test "${pnglib}" != 'png' ; then
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30516$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30518/* end confdefs.h. */
30519#include <stdio.h>
30520#include <stdlib.h>
30521#include <png.h>
30522
30523int
30524main ()
30525{
30526
30527#if PNG_LIBPNG_VER_MINOR != ${var}
30528#error LIBPNG library must be version 1${var}!
30529Kaboom, Kaboom
30530#endif
30531return 0;
30532
30533 ;
30534 return 0;
30535}
30536_ACEOF
30537if ac_fn_c_try_compile "$LINENO"; then :
30538 ac_cv_libpng_ok='yes'
30539else
30540 ac_cv_libpng_ok='no'
30541fi
30542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30543 if test "$ac_cv_libpng_ok" = 'yes' ; then
30544 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30546$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030547 else
30548 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30550$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030551 fi
30552 else
30553 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030554 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30555$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030556 fi
30557 fi
30558
30559 if test $passed -gt 0 -a $failed -le 0; then
30560 if test "1${var}" = '15' ; then
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30562$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30563if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30564 $as_echo_n "(cached) " >&6
30565else
30566 ac_check_lib_save_LIBS=$LIBS
30567LIBS="-lpng15 $LIBS"
30568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30569/* end confdefs.h. */
30570
30571/* Override any GCC internal prototype to avoid an error.
30572 Use char because int might match the return type of a GCC
30573 builtin and then its argument prototype would still apply. */
30574#ifdef __cplusplus
30575extern "C"
30576#endif
30577char png_get_io_ptr ();
30578int
30579main ()
30580{
30581return png_get_io_ptr ();
30582 ;
30583 return 0;
30584}
30585_ACEOF
30586if ac_fn_c_try_link "$LINENO"; then :
30587 ac_cv_lib_png15_png_get_io_ptr=yes
30588else
30589 ac_cv_lib_png15_png_get_io_ptr=no
30590fi
30591rm -f core conftest.err conftest.$ac_objext \
30592 conftest$ac_exeext conftest.$ac_ext
30593LIBS=$ac_check_lib_save_LIBS
30594fi
30595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30596$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30597if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30598 passed=`expr $passed + 1`
30599else
30600 failed=`expr $failed + 1`
30601fi
30602
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30604$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30605if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30606 $as_echo_n "(cached) " >&6
30607else
30608 ac_check_lib_save_LIBS=$LIBS
30609LIBS="-lpng15 $LIBS"
30610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30611/* end confdefs.h. */
30612
30613/* Override any GCC internal prototype to avoid an error.
30614 Use char because int might match the return type of a GCC
30615 builtin and then its argument prototype would still apply. */
30616#ifdef __cplusplus
30617extern "C"
30618#endif
30619char png_longjmp ();
30620int
30621main ()
30622{
30623return png_longjmp ();
30624 ;
30625 return 0;
30626}
30627_ACEOF
30628if ac_fn_c_try_link "$LINENO"; then :
30629 ac_cv_lib_png15_png_longjmp=yes
30630else
30631 ac_cv_lib_png15_png_longjmp=no
30632fi
30633rm -f core conftest.err conftest.$ac_objext \
30634 conftest$ac_exeext conftest.$ac_ext
30635LIBS=$ac_check_lib_save_LIBS
30636fi
30637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30638$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30639if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30640 passed=`expr $passed + 1`
30641else
30642 failed=`expr $failed + 1`
30643fi
30644
30645 fi
30646 if test "1${var}" = '14' ; then
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30648$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30649if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30650 $as_echo_n "(cached) " >&6
30651else
30652 ac_check_lib_save_LIBS=$LIBS
30653LIBS="-lpng14 $LIBS"
30654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30655/* end confdefs.h. */
30656
30657/* Override any GCC internal prototype to avoid an error.
30658 Use char because int might match the return type of a GCC
30659 builtin and then its argument prototype would still apply. */
30660#ifdef __cplusplus
30661extern "C"
30662#endif
30663char png_get_io_ptr ();
30664int
30665main ()
30666{
30667return png_get_io_ptr ();
30668 ;
30669 return 0;
30670}
30671_ACEOF
30672if ac_fn_c_try_link "$LINENO"; then :
30673 ac_cv_lib_png14_png_get_io_ptr=yes
30674else
30675 ac_cv_lib_png14_png_get_io_ptr=no
30676fi
30677rm -f core conftest.err conftest.$ac_objext \
30678 conftest$ac_exeext conftest.$ac_ext
30679LIBS=$ac_check_lib_save_LIBS
30680fi
30681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30682$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30683if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30684 passed=`expr $passed + 1`
30685else
30686 failed=`expr $failed + 1`
30687fi
30688
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30690$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30691if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30692 $as_echo_n "(cached) " >&6
30693else
30694 ac_check_lib_save_LIBS=$LIBS
30695LIBS="-lpng14 $LIBS"
30696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30697/* end confdefs.h. */
30698
30699/* Override any GCC internal prototype to avoid an error.
30700 Use char because int might match the return type of a GCC
30701 builtin and then its argument prototype would still apply. */
30702#ifdef __cplusplus
30703extern "C"
30704#endif
30705char png_get_io_state ();
30706int
30707main ()
30708{
30709return png_get_io_state ();
30710 ;
30711 return 0;
30712}
30713_ACEOF
30714if ac_fn_c_try_link "$LINENO"; then :
30715 ac_cv_lib_png14_png_get_io_state=yes
30716else
30717 ac_cv_lib_png14_png_get_io_state=no
30718fi
30719rm -f core conftest.err conftest.$ac_objext \
30720 conftest$ac_exeext conftest.$ac_ext
30721LIBS=$ac_check_lib_save_LIBS
30722fi
30723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30724$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30725if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30726 passed=`expr $passed + 1`
30727else
30728 failed=`expr $failed + 1`
30729fi
30730
30731 fi
30732 if test "1${var}" = '12' ; then
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30734$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30735if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30736 $as_echo_n "(cached) " >&6
30737else
30738 ac_check_lib_save_LIBS=$LIBS
30739LIBS="-lpng12 $LIBS"
30740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30741/* end confdefs.h. */
30742
30743/* Override any GCC internal prototype to avoid an error.
30744 Use char because int might match the return type of a GCC
30745 builtin and then its argument prototype would still apply. */
30746#ifdef __cplusplus
30747extern "C"
30748#endif
30749char png_get_io_ptr ();
30750int
30751main ()
30752{
30753return png_get_io_ptr ();
30754 ;
30755 return 0;
30756}
30757_ACEOF
30758if ac_fn_c_try_link "$LINENO"; then :
30759 ac_cv_lib_png12_png_get_io_ptr=yes
30760else
30761 ac_cv_lib_png12_png_get_io_ptr=no
30762fi
30763rm -f core conftest.err conftest.$ac_objext \
30764 conftest$ac_exeext conftest.$ac_ext
30765LIBS=$ac_check_lib_save_LIBS
30766fi
30767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30768$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30769if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30770 passed=`expr $passed + 1`
30771else
30772 failed=`expr $failed + 1`
30773fi
30774
30775 fi
30776 if test "1${var}" = '1' ; then
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30778$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30779if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30780 $as_echo_n "(cached) " >&6
30781else
30782 ac_check_lib_save_LIBS=$LIBS
30783LIBS="-lpng $LIBS"
30784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30785/* end confdefs.h. */
30786
30787/* Override any GCC internal prototype to avoid an error.
30788 Use char because int might match the return type of a GCC
30789 builtin and then its argument prototype would still apply. */
30790#ifdef __cplusplus
30791extern "C"
30792#endif
30793char png_get_io_ptr ();
30794int
30795main ()
30796{
30797return png_get_io_ptr ();
30798 ;
30799 return 0;
30800}
30801_ACEOF
30802if ac_fn_c_try_link "$LINENO"; then :
30803 ac_cv_lib_png_png_get_io_ptr=yes
30804else
30805 ac_cv_lib_png_png_get_io_ptr=no
30806fi
30807rm -f core conftest.err conftest.$ac_objext \
30808 conftest$ac_exeext conftest.$ac_ext
30809LIBS=$ac_check_lib_save_LIBS
30810fi
30811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30812$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30813if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30814 passed=`expr $passed + 1`
30815else
30816 failed=`expr $failed + 1`
30817fi
30818
30819 fi
30820 if test $passed -gt 0 -a $failed -le 0 ; then
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30822$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30823 if test $passed -gt 0 ; then
30824 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030825 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30826$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030827 have_png='no (failed tests)'
30828 else
30829 PNG_LIBS="-l${pnglib}"
30830 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030831
cristy8b350f62009-11-15 23:12:43 +000030832$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030833
cristy09b53e12011-10-14 12:47:22 +000030834 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30835$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030836 have_png='yes'
30837 fi
30838 fi
30839 fi
30840 fi
30841 fi
30842 done
30843 fi
cristy3ed852e2009-09-05 21:47:34 +000030844fi
cristy64877302011-08-23 19:10:31 +000030845
cristy73bd4a52010-10-05 11:24:23 +000030846 if test "$have_png" = 'yes'; then
30847 PNG_DELEGATE_TRUE=
30848 PNG_DELEGATE_FALSE='#'
30849else
30850 PNG_DELEGATE_TRUE='#'
30851 PNG_DELEGATE_FALSE=
30852fi
30853
cristy3ed852e2009-09-05 21:47:34 +000030854
cristy50d3f5c2011-09-10 20:09:06 +000030855
cristy3ed852e2009-09-05 21:47:34 +000030856
30857
30858#
30859# Check for RSVG delegate library.
30860#
30861
30862# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030863if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030864 withval=$with_rsvg; with_rsvg=$withval
30865else
30866 with_rsvg=$have_x
30867fi
30868
30869
30870if test "$with_rsvg" != 'yes'; then
30871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30872fi
30873
30874have_rsvg='no'
30875have_cairo='no'
30876RSVG_CFLAGS=""
30877RSVG_LIBS=""
30878RSVG_PKG=""
30879if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030880 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30881$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030882
30883pkg_failed=no
30884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30885$as_echo_n "checking for RSVG... " >&6; }
30886
30887if test -n "$RSVG_CFLAGS"; then
30888 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30889 elif test -n "$PKG_CONFIG"; then
30890 if test -n "$PKG_CONFIG" && \
30891 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30892 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30893 ac_status=$?
30894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30895 test $ac_status = 0; }; then
30896 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30897else
30898 pkg_failed=yes
30899fi
30900 else
30901 pkg_failed=untried
30902fi
30903if test -n "$RSVG_LIBS"; then
30904 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30905 elif test -n "$PKG_CONFIG"; then
30906 if test -n "$PKG_CONFIG" && \
30907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30908 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30909 ac_status=$?
30910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30911 test $ac_status = 0; }; then
30912 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30913else
30914 pkg_failed=yes
30915fi
30916 else
30917 pkg_failed=untried
30918fi
30919
30920
30921
30922if test $pkg_failed = yes; then
30923
30924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30925 _pkg_short_errors_supported=yes
30926else
30927 _pkg_short_errors_supported=no
30928fi
30929 if test $_pkg_short_errors_supported = yes; then
30930 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30931 else
30932 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30933 fi
30934 # Put the nasty error message in config.log where it belongs
30935 echo "$RSVG_PKG_ERRORS" >&5
30936
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30938$as_echo "no" >&6; }
30939 have_rsvg=no
30940elif test $pkg_failed = untried; then
30941 have_rsvg=no
30942else
30943 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30944 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30946$as_echo "yes" >&6; }
30947 have_rsvg=yes
30948fi
cristy09b53e12011-10-14 12:47:22 +000030949 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30950$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030951
30952pkg_failed=no
30953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30954$as_echo_n "checking for CAIRO_SVG... " >&6; }
30955
30956if test -n "$CAIRO_SVG_CFLAGS"; then
30957 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30958 elif test -n "$PKG_CONFIG"; then
30959 if test -n "$PKG_CONFIG" && \
30960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30961 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30962 ac_status=$?
30963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30964 test $ac_status = 0; }; then
30965 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30966else
30967 pkg_failed=yes
30968fi
30969 else
30970 pkg_failed=untried
30971fi
30972if test -n "$CAIRO_SVG_LIBS"; then
30973 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30974 elif test -n "$PKG_CONFIG"; then
30975 if test -n "$PKG_CONFIG" && \
30976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30977 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30978 ac_status=$?
30979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30980 test $ac_status = 0; }; then
30981 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30982else
30983 pkg_failed=yes
30984fi
30985 else
30986 pkg_failed=untried
30987fi
30988
30989
30990
30991if test $pkg_failed = yes; then
30992
30993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30994 _pkg_short_errors_supported=yes
30995else
30996 _pkg_short_errors_supported=no
30997fi
30998 if test $_pkg_short_errors_supported = yes; then
30999 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31000 else
31001 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31002 fi
31003 # Put the nasty error message in config.log where it belongs
31004 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31005
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31007$as_echo "no" >&6; }
31008 have_cairo=no
31009elif test $pkg_failed = untried; then
31010 have_cairo=no
31011else
31012 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31013 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31015$as_echo "yes" >&6; }
31016 have_cairo=yes
31017fi
cristy09b53e12011-10-14 12:47:22 +000031018 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31019$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031020fi
31021
31022if test "$have_rsvg" = 'yes'; then
31023
cristy8b350f62009-11-15 23:12:43 +000031024$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031025
31026 if test "$with_modules" = 'no'; then
31027 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31028 fi
31029fi
31030
31031if test "$have_cairo" = 'yes'; then
31032
cristy8b350f62009-11-15 23:12:43 +000031033$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031034
31035 if test "$with_modules" = 'no'; then
31036 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31037 fi
31038fi
31039
cristy73bd4a52010-10-05 11:24:23 +000031040 if test "$have_rsvg" = 'yes'; then
31041 RSVG_DELEGATE_TRUE=
31042 RSVG_DELEGATE_FALSE='#'
31043else
31044 RSVG_DELEGATE_TRUE='#'
31045 RSVG_DELEGATE_FALSE=
31046fi
31047
31048 if test "$have_cairo" = 'yes'; then
31049 CAIRO_DELEGATE_TRUE=
31050 CAIRO_DELEGATE_FALSE='#'
31051else
31052 CAIRO_DELEGATE_TRUE='#'
31053 CAIRO_DELEGATE_FALSE=
31054fi
31055
cristy3ed852e2009-09-05 21:47:34 +000031056
31057
31058
31059
31060#
31061# Check for TIFF delegate library.
31062#
31063
31064# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031065if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031066 withval=$with_tiff; with_tiff=$withval
31067else
31068 with_tiff='yes'
31069fi
31070
31071
31072if test "$with_tiff" != 'yes'; then
31073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31074fi
31075
31076have_tiff='no'
31077TIFF_LIBS=''
31078if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31080$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031082$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31084$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031085 failed=0
31086 passed=0
cristy8b350f62009-11-15 23:12:43 +000031087 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031088if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031089 passed=`expr $passed + 1`
31090else
31091 failed=`expr $failed + 1`
31092fi
31093
31094
cristy8b350f62009-11-15 23:12:43 +000031095 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031096if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031097 passed=`expr $passed + 1`
31098else
31099 failed=`expr $failed + 1`
31100fi
31101
31102
cristy8b350f62009-11-15 23:12:43 +000031103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031104$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031105if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031106 $as_echo_n "(cached) " >&6
31107else
31108 ac_check_lib_save_LIBS=$LIBS
31109LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031111/* end confdefs.h. */
31112
31113/* Override any GCC internal prototype to avoid an error.
31114 Use char because int might match the return type of a GCC
31115 builtin and then its argument prototype would still apply. */
31116#ifdef __cplusplus
31117extern "C"
31118#endif
31119char TIFFOpen ();
31120int
31121main ()
31122{
31123return TIFFOpen ();
31124 ;
31125 return 0;
31126}
31127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031129 ac_cv_lib_tiff_TIFFOpen=yes
31130else
cristy8b350f62009-11-15 23:12:43 +000031131 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031132fi
cristy8b350f62009-11-15 23:12:43 +000031133rm -f core conftest.err conftest.$ac_objext \
31134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031135LIBS=$ac_check_lib_save_LIBS
31136fi
cristy8b350f62009-11-15 23:12:43 +000031137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031138$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031139if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031140 passed=`expr $passed + 1`
31141else
31142 failed=`expr $failed + 1`
31143fi
31144
cristy8b350f62009-11-15 23:12:43 +000031145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031146$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031147if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031148 $as_echo_n "(cached) " >&6
31149else
31150 ac_check_lib_save_LIBS=$LIBS
31151LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031153/* end confdefs.h. */
31154
31155/* Override any GCC internal prototype to avoid an error.
31156 Use char because int might match the return type of a GCC
31157 builtin and then its argument prototype would still apply. */
31158#ifdef __cplusplus
31159extern "C"
31160#endif
31161char TIFFClientOpen ();
31162int
31163main ()
31164{
31165return TIFFClientOpen ();
31166 ;
31167 return 0;
31168}
31169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031170if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031171 ac_cv_lib_tiff_TIFFClientOpen=yes
31172else
cristy8b350f62009-11-15 23:12:43 +000031173 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031174fi
cristy8b350f62009-11-15 23:12:43 +000031175rm -f core conftest.err conftest.$ac_objext \
31176 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031177LIBS=$ac_check_lib_save_LIBS
31178fi
cristy8b350f62009-11-15 23:12:43 +000031179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031181if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031182 passed=`expr $passed + 1`
31183else
31184 failed=`expr $failed + 1`
31185fi
31186
cristyb97f1002010-07-26 14:02:57 +000031187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31188$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031189if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000031190 $as_echo_n "(cached) " >&6
31191else
31192 ac_check_lib_save_LIBS=$LIBS
31193LIBS="-ltiff $LIBS"
31194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31195/* end confdefs.h. */
31196
31197/* Override any GCC internal prototype to avoid an error.
31198 Use char because int might match the return type of a GCC
31199 builtin and then its argument prototype would still apply. */
31200#ifdef __cplusplus
31201extern "C"
31202#endif
31203char TIFFIsBigEndian ();
31204int
31205main ()
31206{
31207return TIFFIsBigEndian ();
31208 ;
31209 return 0;
31210}
31211_ACEOF
31212if ac_fn_c_try_link "$LINENO"; then :
31213 ac_cv_lib_tiff_TIFFIsBigEndian=yes
31214else
31215 ac_cv_lib_tiff_TIFFIsBigEndian=no
31216fi
31217rm -f core conftest.err conftest.$ac_objext \
31218 conftest$ac_exeext conftest.$ac_ext
31219LIBS=$ac_check_lib_save_LIBS
31220fi
31221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31222$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000031223if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000031224 passed=`expr $passed + 1`
31225else
31226 failed=`expr $failed + 1`
31227fi
31228
cristy8b350f62009-11-15 23:12:43 +000031229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031230$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031231if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031232 $as_echo_n "(cached) " >&6
31233else
31234 ac_check_lib_save_LIBS=$LIBS
31235LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031237/* end confdefs.h. */
31238
31239/* Override any GCC internal prototype to avoid an error.
31240 Use char because int might match the return type of a GCC
31241 builtin and then its argument prototype would still apply. */
31242#ifdef __cplusplus
31243extern "C"
31244#endif
31245char TIFFIsByteSwapped ();
31246int
31247main ()
31248{
31249return TIFFIsByteSwapped ();
31250 ;
31251 return 0;
31252}
31253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031255 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31256else
cristy8b350f62009-11-15 23:12:43 +000031257 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031258fi
cristy8b350f62009-11-15 23:12:43 +000031259rm -f core conftest.err conftest.$ac_objext \
31260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031261LIBS=$ac_check_lib_save_LIBS
31262fi
cristy8b350f62009-11-15 23:12:43 +000031263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031264$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031265if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031266 passed=`expr $passed + 1`
31267else
31268 failed=`expr $failed + 1`
31269fi
31270
cristy8b350f62009-11-15 23:12:43 +000031271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031272$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031273if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031274 $as_echo_n "(cached) " >&6
31275else
31276 ac_check_lib_save_LIBS=$LIBS
31277LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031279/* end confdefs.h. */
31280
31281/* Override any GCC internal prototype to avoid an error.
31282 Use char because int might match the return type of a GCC
31283 builtin and then its argument prototype would still apply. */
31284#ifdef __cplusplus
31285extern "C"
31286#endif
31287char TIFFReadRGBATile ();
31288int
31289main ()
31290{
31291return TIFFReadRGBATile ();
31292 ;
31293 return 0;
31294}
31295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031296if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031297 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31298else
cristy8b350f62009-11-15 23:12:43 +000031299 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031300fi
cristy8b350f62009-11-15 23:12:43 +000031301rm -f core conftest.err conftest.$ac_objext \
31302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031303LIBS=$ac_check_lib_save_LIBS
31304fi
cristy8b350f62009-11-15 23:12:43 +000031305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031306$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031307if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031308 passed=`expr $passed + 1`
31309else
31310 failed=`expr $failed + 1`
31311fi
31312
cristy8b350f62009-11-15 23:12:43 +000031313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031314$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031315if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031316 $as_echo_n "(cached) " >&6
31317else
31318 ac_check_lib_save_LIBS=$LIBS
31319LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031321/* end confdefs.h. */
31322
31323/* Override any GCC internal prototype to avoid an error.
31324 Use char because int might match the return type of a GCC
31325 builtin and then its argument prototype would still apply. */
31326#ifdef __cplusplus
31327extern "C"
31328#endif
31329char TIFFReadRGBAStrip ();
31330int
31331main ()
31332{
31333return TIFFReadRGBAStrip ();
31334 ;
31335 return 0;
31336}
31337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031339 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31340else
cristy8b350f62009-11-15 23:12:43 +000031341 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031342fi
cristy8b350f62009-11-15 23:12:43 +000031343rm -f core conftest.err conftest.$ac_objext \
31344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031345LIBS=$ac_check_lib_save_LIBS
31346fi
cristy8b350f62009-11-15 23:12:43 +000031347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031348$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031349if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031350 passed=`expr $passed + 1`
31351else
31352 failed=`expr $failed + 1`
31353fi
31354
cristy8b350f62009-11-15 23:12:43 +000031355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031356$as_echo_n "checking if TIFF package is complete... " >&6; }
31357 if test $passed -gt 0; then
31358 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031359 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31360$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031361 have_tiff='no (failed tests)'
31362 else
31363 TIFF_LIBS='-ltiff'
31364 LIBS="$TIFF_LIBS $LIBS"
31365
cristy8b350f62009-11-15 23:12:43 +000031366$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031367
cristy09b53e12011-10-14 12:47:22 +000031368 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31369$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031370 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031371 for ac_header in tiffconf.h
31372do :
31373 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031374if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031375 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031376#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031377_ACEOF
31378
31379fi
31380
31381done
31382
cristy8b350f62009-11-15 23:12:43 +000031383 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031384 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31385 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031386do :
31387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31388ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031389if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031390 cat >>confdefs.h <<_ACEOF
31391#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31392_ACEOF
31393
31394fi
31395done
31396
31397 fi
31398 else
cristy09b53e12011-10-14 12:47:22 +000031399 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31400$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031401 fi
31402fi
cristy73bd4a52010-10-05 11:24:23 +000031403 if test "$have_tiff" = 'yes'; then
31404 TIFF_DELEGATE_TRUE=
31405 TIFF_DELEGATE_FALSE='#'
31406else
31407 TIFF_DELEGATE_TRUE='#'
31408 TIFF_DELEGATE_FALSE=
31409fi
31410
cristy3ed852e2009-09-05 21:47:34 +000031411
31412
31413
31414#
cristyb1860752011-03-14 00:27:46 +000031415# Check for WEBP delegate library.
31416#
31417
31418# Check whether --with-webp was given.
31419if test "${with_webp+set}" = set; then :
31420 withval=$with_webp; with_webp=$withval
31421else
31422 with_webp='yes'
31423fi
31424
31425
31426if test "$with_webp" != 'yes'; then
31427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31428fi
31429
31430have_webp='no'
31431WEBP_LIBS=''
31432if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031433 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31434$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31436$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031437 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31438$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031439 failed=0
31440 passed=0
31441 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31442if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31443 passed=`expr $passed + 1`
31444else
31445 failed=`expr $failed + 1`
31446fi
31447
31448
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31450$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31451if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31452 $as_echo_n "(cached) " >&6
31453else
31454 ac_check_lib_save_LIBS=$LIBS
31455LIBS="-lwebp $LIBS"
31456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31457/* end confdefs.h. */
31458
31459/* Override any GCC internal prototype to avoid an error.
31460 Use char because int might match the return type of a GCC
31461 builtin and then its argument prototype would still apply. */
31462#ifdef __cplusplus
31463extern "C"
31464#endif
31465char WebPDecodeRGB ();
31466int
31467main ()
31468{
31469return WebPDecodeRGB ();
31470 ;
31471 return 0;
31472}
31473_ACEOF
31474if ac_fn_c_try_link "$LINENO"; then :
31475 ac_cv_lib_webp_WebPDecodeRGB=yes
31476else
31477 ac_cv_lib_webp_WebPDecodeRGB=no
31478fi
31479rm -f core conftest.err conftest.$ac_objext \
31480 conftest$ac_exeext conftest.$ac_ext
31481LIBS=$ac_check_lib_save_LIBS
31482fi
31483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31484$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31485if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31486 passed=`expr $passed + 1`
31487else
31488 failed=`expr $failed + 1`
31489fi
31490
31491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31492$as_echo_n "checking if WEBP package is complete... " >&6; }
31493 if test $passed -gt 0; then
31494 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031495 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31496$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031497 have_webp='no (failed tests)'
31498 else
31499 WEBP_LIBS='-lwebp'
31500 LIBS="$WEBP_LIBS $LIBS"
31501
31502$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31503
cristy09b53e12011-10-14 12:47:22 +000031504 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31505$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031506 have_webp='yes'
31507 fi
31508 else
cristy09b53e12011-10-14 12:47:22 +000031509 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31510$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031511 fi
31512fi
31513 if test "$have_webp" = 'yes'; then
31514 WEBP_DELEGATE_TRUE=
31515 WEBP_DELEGATE_FALSE='#'
31516else
31517 WEBP_DELEGATE_TRUE='#'
31518 WEBP_DELEGATE_FALSE=
31519fi
31520
31521
31522
31523
31524#
cristy3ed852e2009-09-05 21:47:34 +000031525# Set Windows font directory.
31526#
31527
31528# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031529if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031530 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31531else
31532 with_windows_font_dir=''
31533fi
31534
31535if test "$with_windows_font_dir" != '' ; then
31536 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31537fi
31538
31539
31540#
31541# Check for WMF delegate library.
31542#
31543
31544# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031545if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031546 withval=$with_wmf; with_wmf=$withval
31547else
cristy8d63d1d2010-01-06 20:38:37 +000031548 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031549fi
31550
31551
31552if test "$with_wmf" != 'yes'; then
31553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31554fi
31555
31556have_wmf='no'
31557WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031558if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031559 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31560$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031563 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31564$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031565 failed=0
31566 passed=0
31567 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31568if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31569 passed=`expr $passed + 1`
31570else
31571 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031572fi
31573
31574
glennrp33e524b2011-08-24 17:41:57 +000031575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31576$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31577if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031578 $as_echo_n "(cached) " >&6
31579else
31580 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031581LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031583/* end confdefs.h. */
31584
31585/* Override any GCC internal prototype to avoid an error.
31586 Use char because int might match the return type of a GCC
31587 builtin and then its argument prototype would still apply. */
31588#ifdef __cplusplus
31589extern "C"
31590#endif
glennrp33e524b2011-08-24 17:41:57 +000031591char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031592int
31593main ()
31594{
glennrp33e524b2011-08-24 17:41:57 +000031595return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031596 ;
31597 return 0;
31598}
31599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031600if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031601 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031602else
glennrp33e524b2011-08-24 17:41:57 +000031603 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031604fi
cristy8b350f62009-11-15 23:12:43 +000031605rm -f core conftest.err conftest.$ac_objext \
31606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031607LIBS=$ac_check_lib_save_LIBS
31608fi
glennrp33e524b2011-08-24 17:41:57 +000031609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31610$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31611if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31612 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031613else
glennrp33e524b2011-08-24 17:41:57 +000031614 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031615fi
31616
glennrp33e524b2011-08-24 17:41:57 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31618$as_echo_n "checking if WMF package is complete... " >&6; }
31619 if test $passed -gt 0; then
31620 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031621 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31622$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031623 have_wmf='no (failed tests)'
31624 else
31625 WMF_LIBS='-lwmf -lwmflite'
31626 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031627
cristy8b350f62009-11-15 23:12:43 +000031628$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031629
cristy09b53e12011-10-14 12:47:22 +000031630 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31631$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031632 have_wmf='yes'
31633 fi
31634 else
cristy09b53e12011-10-14 12:47:22 +000031635 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31636$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031637 fi
cristy3ed852e2009-09-05 21:47:34 +000031638fi
cristy73bd4a52010-10-05 11:24:23 +000031639 if test "$have_wmf" = 'yes'; then
31640 WMF_DELEGATE_TRUE=
31641 WMF_DELEGATE_FALSE='#'
31642else
31643 WMF_DELEGATE_TRUE='#'
31644 WMF_DELEGATE_FALSE=
31645fi
31646
cristy3ed852e2009-09-05 21:47:34 +000031647
31648
31649
cristy81beccd2011-10-03 18:17:24 +000031650
31651
cristy3ed852e2009-09-05 21:47:34 +000031652#
31653# Check for XML delegate library.
31654#
31655
31656# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031657if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031658 withval=$with_xml; with_xml=$withval
31659else
cristy81beccd2011-10-03 18:17:24 +000031660 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031661fi
31662
31663
cristy81beccd2011-10-03 18:17:24 +000031664if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31666fi
31667
cristy81beccd2011-10-03 18:17:24 +000031668have_xml='no'
31669XML_LIBS=''
31670if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31672$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31674$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031675 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31676$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031677 PERSIST_LDFLAGS=$LDFLAGS
31678 PERSIST_CPPFLAGS=$CPPFLAGS
31679 xml2_config=''
31680 # Extract the first word of "xml2-config", so it can be a program name with args.
31681set dummy xml2-config; ac_word=$2
31682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31683$as_echo_n "checking for $ac_word... " >&6; }
31684if ${ac_cv_path_xml2_config+:} false; then :
31685 $as_echo_n "(cached) " >&6
31686else
31687 case $xml2_config in
31688 [\\/]* | ?:[\\/]*)
31689 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31690 ;;
31691 *)
31692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31693for as_dir in $PATH
31694do
31695 IFS=$as_save_IFS
31696 test -z "$as_dir" && as_dir=.
31697 for ac_exec_ext in '' $ac_executable_extensions; do
31698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31699 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31701 break 2
31702 fi
31703done
31704 done
31705IFS=$as_save_IFS
31706
31707 ;;
31708esac
31709fi
31710xml2_config=$ac_cv_path_xml2_config
31711if test -n "$xml2_config"; then
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31713$as_echo "$xml2_config" >&6; }
31714else
31715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31716$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031717fi
31718
cristy81beccd2011-10-03 18:17:24 +000031719 if test -n "$xml2_config"; then
31720 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31721 # the shared library installed under /usr/lib, whereas the package
31722 # installs itself under $prefix/libxml and $prefix/lib.
31723 xml2_prefix=`xml2-config --prefix`
31724 if test -d "${xml2_prefix}/include/libxml2"; then
31725 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31726 fi
31727 if test "${xml2_prefix}" != '/usr'; then
31728 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31729 fi
31730 fi
31731 failed=0
31732 passed=0
31733 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31734if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31735 passed=`expr $passed + 1`
31736else
31737 failed=`expr $failed + 1`
31738fi
31739
31740
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31742$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31743if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31744 $as_echo_n "(cached) " >&6
31745else
31746 ac_check_lib_save_LIBS=$LIBS
31747LIBS="-lxml2 $LIBS"
31748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31749/* end confdefs.h. */
31750
31751/* Override any GCC internal prototype to avoid an error.
31752 Use char because int might match the return type of a GCC
31753 builtin and then its argument prototype would still apply. */
31754#ifdef __cplusplus
31755extern "C"
31756#endif
31757char xmlSAXVersion ();
31758int
31759main ()
31760{
31761return xmlSAXVersion ();
31762 ;
31763 return 0;
31764}
31765_ACEOF
31766if ac_fn_c_try_link "$LINENO"; then :
31767 ac_cv_lib_xml2_xmlSAXVersion=yes
31768else
31769 ac_cv_lib_xml2_xmlSAXVersion=no
31770fi
31771rm -f core conftest.err conftest.$ac_objext \
31772 conftest$ac_exeext conftest.$ac_ext
31773LIBS=$ac_check_lib_save_LIBS
31774fi
31775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31776$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31777if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31778 passed=`expr $passed + 1`
31779else
31780 failed=`expr $failed + 1`
31781fi
31782
31783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31784$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31785if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31786 $as_echo_n "(cached) " >&6
31787else
31788 ac_check_lib_save_LIBS=$LIBS
31789LIBS="-lxml2 $LIBS"
31790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31791/* end confdefs.h. */
31792
31793/* Override any GCC internal prototype to avoid an error.
31794 Use char because int might match the return type of a GCC
31795 builtin and then its argument prototype would still apply. */
31796#ifdef __cplusplus
31797extern "C"
31798#endif
31799char xmlParseChunk ();
31800int
31801main ()
31802{
31803return xmlParseChunk ();
31804 ;
31805 return 0;
31806}
31807_ACEOF
31808if ac_fn_c_try_link "$LINENO"; then :
31809 ac_cv_lib_xml2_xmlParseChunk=yes
31810else
31811 ac_cv_lib_xml2_xmlParseChunk=no
31812fi
31813rm -f core conftest.err conftest.$ac_objext \
31814 conftest$ac_exeext conftest.$ac_ext
31815LIBS=$ac_check_lib_save_LIBS
31816fi
31817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31818$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31819if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31820 passed=`expr $passed + 1`
31821else
31822 failed=`expr $failed + 1`
31823fi
31824
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31826$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31827if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31828 $as_echo_n "(cached) " >&6
31829else
31830 ac_check_lib_save_LIBS=$LIBS
31831LIBS="-lxml2 $LIBS"
31832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31833/* end confdefs.h. */
31834
31835/* Override any GCC internal prototype to avoid an error.
31836 Use char because int might match the return type of a GCC
31837 builtin and then its argument prototype would still apply. */
31838#ifdef __cplusplus
31839extern "C"
31840#endif
31841char xmlCreatePushParserCtxt ();
31842int
31843main ()
31844{
31845return xmlCreatePushParserCtxt ();
31846 ;
31847 return 0;
31848}
31849_ACEOF
31850if ac_fn_c_try_link "$LINENO"; then :
31851 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31852else
31853 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31854fi
31855rm -f core conftest.err conftest.$ac_objext \
31856 conftest$ac_exeext conftest.$ac_ext
31857LIBS=$ac_check_lib_save_LIBS
31858fi
31859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31860$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31861if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31862 passed=`expr $passed + 1`
31863else
31864 failed=`expr $failed + 1`
31865fi
31866
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31868$as_echo_n "checking if XML package is complete... " >&6; }
31869 if test $passed -gt 0; then
31870 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031871 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31872$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031873 have_xml='no (failed tests)'
31874 LDFLAGS="$PERSIST_LDFLAGS"
31875 CPPFLAGS="$PERSIST_CPPFLAGS"
31876 else
31877 XML_LIBS='-lxml2'
31878 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031879
cristy8b350f62009-11-15 23:12:43 +000031880$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031881
cristy09b53e12011-10-14 12:47:22 +000031882 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31883$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031884 have_xml='yes'
31885 fi
31886 else
cristy09b53e12011-10-14 12:47:22 +000031887 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31888$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031889 fi
31890fi
cristy73bd4a52010-10-05 11:24:23 +000031891 if test "$have_xml" = 'yes'; then
31892 XML_DELEGATE_TRUE=
31893 XML_DELEGATE_FALSE='#'
31894else
31895 XML_DELEGATE_TRUE='#'
31896 XML_DELEGATE_FALSE=
31897fi
31898
cristy3ed852e2009-09-05 21:47:34 +000031899
31900
31901
31902# Substitute compiler name to build/link PerlMagick
31903#
31904
31905
31906#
31907# Configure install Paths
31908#
31909
31910# Subdirectory under lib to place ImageMagick lib files
31911LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31912
31913cat >>confdefs.h <<_ACEOF
31914#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31915_ACEOF
31916
31917
31918# Path to ImageMagick bin directory
31919EXECUTABLE_PATH="${BIN_DIR}"
31920DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31921case "${build_os}" in
31922 mingw* )
31923 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31924 ;;
31925esac
31926
31927cat >>confdefs.h <<_ACEOF
31928#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31929_ACEOF
31930
31931
31932
31933# Path to ImageMagick lib
31934LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31935DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31936case "${build_os}" in
31937 mingw* )
31938 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31939 ;;
31940esac
31941
31942cat >>confdefs.h <<_ACEOF
31943#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31944_ACEOF
31945
31946
31947
cristy3ed852e2009-09-05 21:47:34 +000031948#
31949# Subdirectory under lib to place ImageMagick coder module files
31950CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31951
31952cat >>confdefs.h <<_ACEOF
31953#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31954_ACEOF
31955
31956CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31957DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31958case "${build_os}" in
31959 mingw* )
31960 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31961 ;;
31962esac
31963
31964cat >>confdefs.h <<_ACEOF
31965#define CODER_PATH "$DEFINE_CODER_PATH"
31966_ACEOF
31967
31968
31969
31970#
31971# Subdirectory under lib to place ImageMagick filter module files
31972FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31973
31974cat >>confdefs.h <<_ACEOF
31975#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31976_ACEOF
31977
31978FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31979DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31980case "${build_os}" in
31981 mingw* )
31982 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31983 ;;
31984esac
31985
31986cat >>confdefs.h <<_ACEOF
31987#define FILTER_PATH "$DEFINE_FILTER_PATH"
31988_ACEOF
31989
31990
31991
31992#
31993# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031994DOCUMENTATION_RELATIVE_PATH=""
31995DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31996DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031997case "${build_os}" in
31998 mingw* )
31999 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32000 ;;
32001esac
32002
32003cat >>confdefs.h <<_ACEOF
32004#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32005_ACEOF
32006
32007
32008
cristy3cf8a722011-03-20 23:32:22 +000032009# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000032010CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032011
32012cat >>confdefs.h <<_ACEOF
32013#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32014_ACEOF
32015
32016CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32017DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32018case "${build_os}" in
32019 mingw* )
32020 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32021 ;;
32022esac
32023
32024cat >>confdefs.h <<_ACEOF
32025#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32026_ACEOF
32027
32028
32029
32030# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000032031SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032032
32033cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032034#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032035_ACEOF
32036
cristy4f820712011-04-01 12:35:43 +000032037SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32038DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032039case "${build_os}" in
32040 mingw* )
cristy4f820712011-04-01 12:35:43 +000032041 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032042 ;;
32043esac
32044
32045cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032046#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032047_ACEOF
32048
32049
32050
32051#
32052# program_transform_name is formed for use in a Makefile, so create a
32053# modified version for use in a shell script.
32054configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32055
32056# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032057{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32058$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032060$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032061{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32062$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032063AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032064BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032065BZIPDelegateDefault='bzip2'
32066BrowseDelegateDefault='xdg-open'
32067CGMDecodeDelegateDefault='ralcgm'
32068CatDelegateDefault='cat'
32069DNGDecodeDelegateDefault='ufraw-batch'
32070GVCDecodeDelegateDefault='dot'
32071DVIDecodeDelegateDefault='dvips'
32072EchoDelegateDefault='echo'
32073EditorDelegateDefault='xterm'
32074FIGDecodeDelegateDefault='fig2dev'
32075ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32076DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32077MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32078GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032079HPGLDecodeDelegateDefault='hp2xx'
32080HTMLDecodeDelegateDefault='html2ps'
32081ILBMDecodeDelegateDefault='ilbmtoppm'
32082ILBMEncodeDelegateDefault='ppmtoilbm'
32083LPDelegateDefault='lp'
32084LPRDelegateDefault='lpr'
32085LZWDecodeDelegateDefault='uncompress'
32086LZWEncodeDelegateDefault='compress'
32087LaunchDelegateDefault='gimp'
32088MANDelegateDefault='groff'
32089MPEGDecodeDelegateDefault='ffmpeg'
32090MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032091MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032092MVDelegateDefault='mv'
32093PCLDelegateDefault='pcl6'
32094PGPDecodeDelegateDefault='pgpv'
32095POVDelegateDefault='povray'
32096if test "$native_win32_build" = 'yes'; then
32097 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032098elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032099 PSDelegateDefault='gsc'
32100else
32101 PSDelegateDefault='gs'
32102fi
32103RLEEncodeDelegateDefault='rawtorle'
32104RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032105RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032106SCANDecodeDelegateDefault='scanimage'
32107TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032108UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032109WMFDecodeDelegateDefault='wmf2eps'
32110WWWDecodeDelegateDefault='curl'
32111XPSDelegateDefault='gxps'
32112ZipDelegateDefault='gzip'
32113
32114# Search for delegates
32115# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32116set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032119if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032120 $as_echo_n "(cached) " >&6
32121else
32122 case $AutotraceDecodeDelegate in
32123 [\\/]* | ?:[\\/]*)
32124 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32125 ;;
32126 *)
32127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32128for as_dir in $PATH
32129do
32130 IFS=$as_save_IFS
32131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32134 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032136 break 2
32137 fi
32138done
cristy8b350f62009-11-15 23:12:43 +000032139 done
cristy3ed852e2009-09-05 21:47:34 +000032140IFS=$as_save_IFS
32141
32142 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32143 ;;
32144esac
32145fi
32146AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32147if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032149$as_echo "$AutotraceDecodeDelegate" >&6; }
32150else
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo "no" >&6; }
32153fi
32154
32155
cristy3ed852e2009-09-05 21:47:34 +000032156# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32157set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032159$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032160if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032161 $as_echo_n "(cached) " >&6
32162else
32163 case $BlenderDecodeDelegate in
32164 [\\/]* | ?:[\\/]*)
32165 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32166 ;;
32167 *)
32168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32169for as_dir in $PATH
32170do
32171 IFS=$as_save_IFS
32172 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32175 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032177 break 2
32178 fi
32179done
cristy8b350f62009-11-15 23:12:43 +000032180 done
cristy3ed852e2009-09-05 21:47:34 +000032181IFS=$as_save_IFS
32182
32183 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32184 ;;
32185esac
32186fi
32187BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32188if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032190$as_echo "$BlenderDecodeDelegate" >&6; }
32191else
cristy8b350f62009-11-15 23:12:43 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032193$as_echo "no" >&6; }
32194fi
32195
32196
32197# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32198set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032201if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032202 $as_echo_n "(cached) " >&6
32203else
32204 case $BZIPDelegate in
32205 [\\/]* | ?:[\\/]*)
32206 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32207 ;;
32208 *)
32209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32210for as_dir in $PATH
32211do
32212 IFS=$as_save_IFS
32213 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032214 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32216 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032218 break 2
32219 fi
32220done
cristy8b350f62009-11-15 23:12:43 +000032221 done
cristy3ed852e2009-09-05 21:47:34 +000032222IFS=$as_save_IFS
32223
32224 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32225 ;;
32226esac
32227fi
32228BZIPDelegate=$ac_cv_path_BZIPDelegate
32229if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032231$as_echo "$BZIPDelegate" >&6; }
32232else
cristy8b350f62009-11-15 23:12:43 +000032233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo "no" >&6; }
32235fi
32236
32237
32238# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32239set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032242if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032243 $as_echo_n "(cached) " >&6
32244else
32245 case $BrowseDelegate in
32246 [\\/]* | ?:[\\/]*)
32247 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32248 ;;
32249 *)
32250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32251for as_dir in $PATH
32252do
32253 IFS=$as_save_IFS
32254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32257 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032259 break 2
32260 fi
32261done
cristy8b350f62009-11-15 23:12:43 +000032262 done
cristy3ed852e2009-09-05 21:47:34 +000032263IFS=$as_save_IFS
32264
32265 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32266 ;;
32267esac
32268fi
32269BrowseDelegate=$ac_cv_path_BrowseDelegate
32270if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032272$as_echo "$BrowseDelegate" >&6; }
32273else
cristy8b350f62009-11-15 23:12:43 +000032274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032275$as_echo "no" >&6; }
32276fi
32277
32278
32279# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32280set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032283if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032284 $as_echo_n "(cached) " >&6
32285else
32286 case $CGMDecodeDelegate in
32287 [\\/]* | ?:[\\/]*)
32288 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32289 ;;
32290 *)
32291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32292for as_dir in $PATH
32293do
32294 IFS=$as_save_IFS
32295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32298 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032300 break 2
32301 fi
32302done
cristy8b350f62009-11-15 23:12:43 +000032303 done
cristy3ed852e2009-09-05 21:47:34 +000032304IFS=$as_save_IFS
32305
32306 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32307 ;;
32308esac
32309fi
32310CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32311if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032313$as_echo "$CGMDecodeDelegate" >&6; }
32314else
cristy8b350f62009-11-15 23:12:43 +000032315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032316$as_echo "no" >&6; }
32317fi
32318
32319
32320# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32321set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032324if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032325 $as_echo_n "(cached) " >&6
32326else
32327 case $CatDelegate in
32328 [\\/]* | ?:[\\/]*)
32329 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32330 ;;
32331 *)
32332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32333for as_dir in $PATH
32334do
32335 IFS=$as_save_IFS
32336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32339 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032341 break 2
32342 fi
32343done
cristy8b350f62009-11-15 23:12:43 +000032344 done
cristy3ed852e2009-09-05 21:47:34 +000032345IFS=$as_save_IFS
32346
32347 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32348 ;;
32349esac
32350fi
32351CatDelegate=$ac_cv_path_CatDelegate
32352if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032354$as_echo "$CatDelegate" >&6; }
32355else
cristy8b350f62009-11-15 23:12:43 +000032356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032357$as_echo "no" >&6; }
32358fi
32359
32360
32361# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32362set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032364$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032365if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032366 $as_echo_n "(cached) " >&6
32367else
32368 case $DNGDecodeDelegate in
32369 [\\/]* | ?:[\\/]*)
32370 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32371 ;;
32372 *)
32373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32374for as_dir in $PATH
32375do
32376 IFS=$as_save_IFS
32377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32380 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032382 break 2
32383 fi
32384done
cristy8b350f62009-11-15 23:12:43 +000032385 done
cristy3ed852e2009-09-05 21:47:34 +000032386IFS=$as_save_IFS
32387
32388 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32389 ;;
32390esac
32391fi
32392DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32393if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032395$as_echo "$DNGDecodeDelegate" >&6; }
32396else
cristy8b350f62009-11-15 23:12:43 +000032397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032398$as_echo "no" >&6; }
32399fi
32400
32401
32402# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32403set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032406if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032407 $as_echo_n "(cached) " >&6
32408else
32409 case $GVCDecodeDelegate in
32410 [\\/]* | ?:[\\/]*)
32411 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32412 ;;
32413 *)
32414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32415for as_dir in $PATH
32416do
32417 IFS=$as_save_IFS
32418 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32421 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032423 break 2
32424 fi
32425done
cristy8b350f62009-11-15 23:12:43 +000032426 done
cristy3ed852e2009-09-05 21:47:34 +000032427IFS=$as_save_IFS
32428
32429 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32430 ;;
32431esac
32432fi
32433GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32434if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032436$as_echo "$GVCDecodeDelegate" >&6; }
32437else
cristy8b350f62009-11-15 23:12:43 +000032438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032439$as_echo "no" >&6; }
32440fi
32441
32442
32443# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32444set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032446$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032447if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032448 $as_echo_n "(cached) " >&6
32449else
32450 case $DVIDecodeDelegate in
32451 [\\/]* | ?:[\\/]*)
32452 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32453 ;;
32454 *)
32455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32456for as_dir in $PATH
32457do
32458 IFS=$as_save_IFS
32459 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032460 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32462 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032464 break 2
32465 fi
32466done
cristy8b350f62009-11-15 23:12:43 +000032467 done
cristy3ed852e2009-09-05 21:47:34 +000032468IFS=$as_save_IFS
32469
32470 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32471 ;;
32472esac
32473fi
32474DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32475if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032477$as_echo "$DVIDecodeDelegate" >&6; }
32478else
cristy8b350f62009-11-15 23:12:43 +000032479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032480$as_echo "no" >&6; }
32481fi
32482
32483
32484# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32485set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032488if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032489 $as_echo_n "(cached) " >&6
32490else
32491 case $EchoDelegate in
32492 [\\/]* | ?:[\\/]*)
32493 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32494 ;;
32495 *)
32496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32497for as_dir in $PATH
32498do
32499 IFS=$as_save_IFS
32500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32503 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032505 break 2
32506 fi
32507done
cristy8b350f62009-11-15 23:12:43 +000032508 done
cristy3ed852e2009-09-05 21:47:34 +000032509IFS=$as_save_IFS
32510
32511 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32512 ;;
32513esac
32514fi
32515EchoDelegate=$ac_cv_path_EchoDelegate
32516if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032518$as_echo "$EchoDelegate" >&6; }
32519else
cristy8b350f62009-11-15 23:12:43 +000032520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032521$as_echo "no" >&6; }
32522fi
32523
32524
32525# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32526set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032529if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032530 $as_echo_n "(cached) " >&6
32531else
32532 case $EditorDelegate in
32533 [\\/]* | ?:[\\/]*)
32534 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32535 ;;
32536 *)
32537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32538for as_dir in $PATH
32539do
32540 IFS=$as_save_IFS
32541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32544 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032546 break 2
32547 fi
32548done
cristy8b350f62009-11-15 23:12:43 +000032549 done
cristy3ed852e2009-09-05 21:47:34 +000032550IFS=$as_save_IFS
32551
32552 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32553 ;;
32554esac
32555fi
32556EditorDelegate=$ac_cv_path_EditorDelegate
32557if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032559$as_echo "$EditorDelegate" >&6; }
32560else
cristy8b350f62009-11-15 23:12:43 +000032561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032562$as_echo "no" >&6; }
32563fi
32564
32565
32566# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32567set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032570if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032571 $as_echo_n "(cached) " >&6
32572else
32573 case $FIGDecodeDelegate in
32574 [\\/]* | ?:[\\/]*)
32575 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32576 ;;
32577 *)
32578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32579for as_dir in $PATH
32580do
32581 IFS=$as_save_IFS
32582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32585 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032587 break 2
32588 fi
32589done
cristy8b350f62009-11-15 23:12:43 +000032590 done
cristy3ed852e2009-09-05 21:47:34 +000032591IFS=$as_save_IFS
32592
32593 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32594 ;;
32595esac
32596fi
32597FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32598if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032600$as_echo "$FIGDecodeDelegate" >&6; }
32601else
cristy8b350f62009-11-15 23:12:43 +000032602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032603$as_echo "no" >&6; }
32604fi
32605
32606
32607# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32608set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032611if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032612 $as_echo_n "(cached) " >&6
32613else
32614 case $ConvertDelegate in
32615 [\\/]* | ?:[\\/]*)
32616 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32617 ;;
32618 *)
32619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32620for as_dir in $PATH
32621do
32622 IFS=$as_save_IFS
32623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32626 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032628 break 2
32629 fi
32630done
cristy8b350f62009-11-15 23:12:43 +000032631 done
cristy3ed852e2009-09-05 21:47:34 +000032632IFS=$as_save_IFS
32633
32634 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32635 ;;
32636esac
32637fi
32638ConvertDelegate=$ac_cv_path_ConvertDelegate
32639if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032641$as_echo "$ConvertDelegate" >&6; }
32642else
cristy8b350f62009-11-15 23:12:43 +000032643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032644$as_echo "no" >&6; }
32645fi
32646
32647
32648# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32649set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032652if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032653 $as_echo_n "(cached) " >&6
32654else
32655 case $DisplayDelegate in
32656 [\\/]* | ?:[\\/]*)
32657 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32658 ;;
32659 *)
32660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32661for as_dir in $PATH
32662do
32663 IFS=$as_save_IFS
32664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32667 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032669 break 2
32670 fi
32671done
cristy8b350f62009-11-15 23:12:43 +000032672 done
cristy3ed852e2009-09-05 21:47:34 +000032673IFS=$as_save_IFS
32674
32675 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32676 ;;
32677esac
32678fi
32679DisplayDelegate=$ac_cv_path_DisplayDelegate
32680if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032682$as_echo "$DisplayDelegate" >&6; }
32683else
cristy8b350f62009-11-15 23:12:43 +000032684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032685$as_echo "no" >&6; }
32686fi
32687
32688
32689# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32690set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032693if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032694 $as_echo_n "(cached) " >&6
32695else
32696 case $MogrifyDelegate in
32697 [\\/]* | ?:[\\/]*)
32698 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32699 ;;
32700 *)
32701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32702for as_dir in $PATH
32703do
32704 IFS=$as_save_IFS
32705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32708 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032710 break 2
32711 fi
32712done
cristy8b350f62009-11-15 23:12:43 +000032713 done
cristy3ed852e2009-09-05 21:47:34 +000032714IFS=$as_save_IFS
32715
32716 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32717 ;;
32718esac
32719fi
32720MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32721if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032723$as_echo "$MogrifyDelegate" >&6; }
32724else
cristy8b350f62009-11-15 23:12:43 +000032725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032726$as_echo "no" >&6; }
32727fi
32728
32729
32730# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32731set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032734if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032735 $as_echo_n "(cached) " >&6
32736else
32737 case $GnuplotDecodeDelegate in
32738 [\\/]* | ?:[\\/]*)
32739 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32740 ;;
32741 *)
32742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32743for as_dir in $PATH
32744do
32745 IFS=$as_save_IFS
32746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32749 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032751 break 2
32752 fi
32753done
cristy8b350f62009-11-15 23:12:43 +000032754 done
cristy3ed852e2009-09-05 21:47:34 +000032755IFS=$as_save_IFS
32756
32757 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32758 ;;
32759esac
32760fi
32761GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32762if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032764$as_echo "$GnuplotDecodeDelegate" >&6; }
32765else
cristy8b350f62009-11-15 23:12:43 +000032766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032767$as_echo "no" >&6; }
32768fi
32769
32770
cristy3ed852e2009-09-05 21:47:34 +000032771# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32772set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032775if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032776 $as_echo_n "(cached) " >&6
32777else
32778 case $HPGLDecodeDelegate in
32779 [\\/]* | ?:[\\/]*)
32780 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32781 ;;
32782 *)
32783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32784for as_dir in $PATH
32785do
32786 IFS=$as_save_IFS
32787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32790 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032792 break 2
32793 fi
32794done
cristy8b350f62009-11-15 23:12:43 +000032795 done
cristy3ed852e2009-09-05 21:47:34 +000032796IFS=$as_save_IFS
32797
32798 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32799 ;;
32800esac
32801fi
32802HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32803if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032805$as_echo "$HPGLDecodeDelegate" >&6; }
32806else
cristy8b350f62009-11-15 23:12:43 +000032807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032808$as_echo "no" >&6; }
32809fi
32810
32811
32812# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32813set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032816if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032817 $as_echo_n "(cached) " >&6
32818else
32819 case $HTMLDecodeDelegate in
32820 [\\/]* | ?:[\\/]*)
32821 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32822 ;;
32823 *)
32824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32825for as_dir in $PATH
32826do
32827 IFS=$as_save_IFS
32828 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32831 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032833 break 2
32834 fi
32835done
cristy8b350f62009-11-15 23:12:43 +000032836 done
cristy3ed852e2009-09-05 21:47:34 +000032837IFS=$as_save_IFS
32838
32839 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32840 ;;
32841esac
32842fi
32843HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32844if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032846$as_echo "$HTMLDecodeDelegate" >&6; }
32847else
cristy8b350f62009-11-15 23:12:43 +000032848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032849$as_echo "no" >&6; }
32850fi
32851
32852
32853# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32854set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032857if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032858 $as_echo_n "(cached) " >&6
32859else
32860 case $ILBMDecodeDelegate in
32861 [\\/]* | ?:[\\/]*)
32862 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32863 ;;
32864 *)
32865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32866for as_dir in $PATH
32867do
32868 IFS=$as_save_IFS
32869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32872 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032874 break 2
32875 fi
32876done
cristy8b350f62009-11-15 23:12:43 +000032877 done
cristy3ed852e2009-09-05 21:47:34 +000032878IFS=$as_save_IFS
32879
32880 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32881 ;;
32882esac
32883fi
32884ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32885if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032887$as_echo "$ILBMDecodeDelegate" >&6; }
32888else
cristy8b350f62009-11-15 23:12:43 +000032889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo "no" >&6; }
32891fi
32892
32893
32894# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32895set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032898if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032899 $as_echo_n "(cached) " >&6
32900else
32901 case $ILBMEncodeDelegate in
32902 [\\/]* | ?:[\\/]*)
32903 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32904 ;;
32905 *)
32906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32907for as_dir in $PATH
32908do
32909 IFS=$as_save_IFS
32910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32913 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032915 break 2
32916 fi
32917done
cristy8b350f62009-11-15 23:12:43 +000032918 done
cristy3ed852e2009-09-05 21:47:34 +000032919IFS=$as_save_IFS
32920
32921 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32922 ;;
32923esac
32924fi
32925ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32926if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032928$as_echo "$ILBMEncodeDelegate" >&6; }
32929else
cristy8b350f62009-11-15 23:12:43 +000032930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo "no" >&6; }
32932fi
32933
32934
32935# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32936set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032939if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032940 $as_echo_n "(cached) " >&6
32941else
32942 case $LPDelegate in
32943 [\\/]* | ?:[\\/]*)
32944 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32945 ;;
32946 *)
32947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32948for as_dir in $PATH
32949do
32950 IFS=$as_save_IFS
32951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32954 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032956 break 2
32957 fi
32958done
cristy8b350f62009-11-15 23:12:43 +000032959 done
cristy3ed852e2009-09-05 21:47:34 +000032960IFS=$as_save_IFS
32961
32962 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32963 ;;
32964esac
32965fi
32966LPDelegate=$ac_cv_path_LPDelegate
32967if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969$as_echo "$LPDelegate" >&6; }
32970else
cristy8b350f62009-11-15 23:12:43 +000032971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032972$as_echo "no" >&6; }
32973fi
32974
32975
32976# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32977set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032980if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032981 $as_echo_n "(cached) " >&6
32982else
32983 case $LPRDelegate in
32984 [\\/]* | ?:[\\/]*)
32985 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32986 ;;
32987 *)
32988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32989for as_dir in $PATH
32990do
32991 IFS=$as_save_IFS
32992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32995 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032997 break 2
32998 fi
32999done
cristy8b350f62009-11-15 23:12:43 +000033000 done
cristy3ed852e2009-09-05 21:47:34 +000033001IFS=$as_save_IFS
33002
33003 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33004 ;;
33005esac
33006fi
33007LPRDelegate=$ac_cv_path_LPRDelegate
33008if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010$as_echo "$LPRDelegate" >&6; }
33011else
cristy8b350f62009-11-15 23:12:43 +000033012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033013$as_echo "no" >&6; }
33014fi
33015
33016
33017# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33018set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033021if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033022 $as_echo_n "(cached) " >&6
33023else
33024 case $LZWDecodeDelegate in
33025 [\\/]* | ?:[\\/]*)
33026 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33027 ;;
33028 *)
33029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33030for as_dir in $PATH
33031do
33032 IFS=$as_save_IFS
33033 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33036 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033038 break 2
33039 fi
33040done
cristy8b350f62009-11-15 23:12:43 +000033041 done
cristy3ed852e2009-09-05 21:47:34 +000033042IFS=$as_save_IFS
33043
33044 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33045 ;;
33046esac
33047fi
33048LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33049if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051$as_echo "$LZWDecodeDelegate" >&6; }
33052else
cristy8b350f62009-11-15 23:12:43 +000033053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054$as_echo "no" >&6; }
33055fi
33056
33057
33058# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33059set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033062if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033063 $as_echo_n "(cached) " >&6
33064else
33065 case $LZWEncodeDelegate in
33066 [\\/]* | ?:[\\/]*)
33067 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33068 ;;
33069 *)
33070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33071for as_dir in $PATH
33072do
33073 IFS=$as_save_IFS
33074 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33077 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033079 break 2
33080 fi
33081done
cristy8b350f62009-11-15 23:12:43 +000033082 done
cristy3ed852e2009-09-05 21:47:34 +000033083IFS=$as_save_IFS
33084
33085 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33086 ;;
33087esac
33088fi
33089LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33090if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092$as_echo "$LZWEncodeDelegate" >&6; }
33093else
cristy8b350f62009-11-15 23:12:43 +000033094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo "no" >&6; }
33096fi
33097
33098
33099# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33100set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033103if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033104 $as_echo_n "(cached) " >&6
33105else
33106 case $LaunchDelegate in
33107 [\\/]* | ?:[\\/]*)
33108 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33109 ;;
33110 *)
33111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33112for as_dir in $PATH
33113do
33114 IFS=$as_save_IFS
33115 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033116 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33118 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033120 break 2
33121 fi
33122done
cristy8b350f62009-11-15 23:12:43 +000033123 done
cristy3ed852e2009-09-05 21:47:34 +000033124IFS=$as_save_IFS
33125
33126 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33127 ;;
33128esac
33129fi
33130LaunchDelegate=$ac_cv_path_LaunchDelegate
33131if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo "$LaunchDelegate" >&6; }
33134else
cristy8b350f62009-11-15 23:12:43 +000033135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136$as_echo "no" >&6; }
33137fi
33138
33139
33140# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33141set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033144if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033145 $as_echo_n "(cached) " >&6
33146else
33147 case $MANDelegate in
33148 [\\/]* | ?:[\\/]*)
33149 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33150 ;;
33151 *)
33152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33153for as_dir in $PATH
33154do
33155 IFS=$as_save_IFS
33156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33159 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033161 break 2
33162 fi
33163done
cristy8b350f62009-11-15 23:12:43 +000033164 done
cristy3ed852e2009-09-05 21:47:34 +000033165IFS=$as_save_IFS
33166
33167 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33168 ;;
33169esac
33170fi
33171MANDelegate=$ac_cv_path_MANDelegate
33172if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174$as_echo "$MANDelegate" >&6; }
33175else
cristy8b350f62009-11-15 23:12:43 +000033176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033177$as_echo "no" >&6; }
33178fi
33179
33180
33181# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33182set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033185if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033186 $as_echo_n "(cached) " >&6
33187else
33188 case $MPEGDecodeDelegate in
33189 [\\/]* | ?:[\\/]*)
33190 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33191 ;;
33192 *)
33193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33194for as_dir in $PATH
33195do
33196 IFS=$as_save_IFS
33197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33200 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033202 break 2
33203 fi
33204done
cristy8b350f62009-11-15 23:12:43 +000033205 done
cristy3ed852e2009-09-05 21:47:34 +000033206IFS=$as_save_IFS
33207
33208 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33209 ;;
33210esac
33211fi
33212MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33213if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215$as_echo "$MPEGDecodeDelegate" >&6; }
33216else
cristy8b350f62009-11-15 23:12:43 +000033217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033218$as_echo "no" >&6; }
33219fi
33220
33221
33222# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33223set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033226if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033227 $as_echo_n "(cached) " >&6
33228else
33229 case $MPEGEncodeDelegate in
33230 [\\/]* | ?:[\\/]*)
33231 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33232 ;;
33233 *)
33234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33235for as_dir in $PATH
33236do
33237 IFS=$as_save_IFS
33238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33241 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033243 break 2
33244 fi
33245done
cristy8b350f62009-11-15 23:12:43 +000033246 done
cristy3ed852e2009-09-05 21:47:34 +000033247IFS=$as_save_IFS
33248
33249 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33250 ;;
33251esac
33252fi
33253MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33254if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo "$MPEGEncodeDelegate" >&6; }
33257else
cristy8b350f62009-11-15 23:12:43 +000033258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033259$as_echo "no" >&6; }
33260fi
33261
33262
cristy935c86e2010-06-05 23:50:07 +000033263# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33264set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033267if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033268 $as_echo_n "(cached) " >&6
33269else
33270 case $MrSIDDecodeDelegate in
33271 [\\/]* | ?:[\\/]*)
33272 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33273 ;;
33274 *)
33275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33276for as_dir in $PATH
33277do
33278 IFS=$as_save_IFS
33279 test -z "$as_dir" && as_dir=.
33280 for ac_exec_ext in '' $ac_executable_extensions; do
33281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33282 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33284 break 2
33285 fi
33286done
33287 done
33288IFS=$as_save_IFS
33289
33290 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33291 ;;
33292esac
33293fi
33294MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33295if test -n "$MrSIDDecodeDelegate"; then
33296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33297$as_echo "$MrSIDDecodeDelegate" >&6; }
33298else
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33300$as_echo "no" >&6; }
33301fi
33302
33303
cristy3ed852e2009-09-05 21:47:34 +000033304# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33305set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033308if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033309 $as_echo_n "(cached) " >&6
33310else
33311 case $MVDelegate in
33312 [\\/]* | ?:[\\/]*)
33313 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33314 ;;
33315 *)
33316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33317for as_dir in $PATH
33318do
33319 IFS=$as_save_IFS
33320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33323 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033325 break 2
33326 fi
33327done
cristy8b350f62009-11-15 23:12:43 +000033328 done
cristy3ed852e2009-09-05 21:47:34 +000033329IFS=$as_save_IFS
33330
33331 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33332 ;;
33333esac
33334fi
33335MVDelegate=$ac_cv_path_MVDelegate
33336if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338$as_echo "$MVDelegate" >&6; }
33339else
cristy8b350f62009-11-15 23:12:43 +000033340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033341$as_echo "no" >&6; }
33342fi
33343
33344
33345# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33346set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033349if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033350 $as_echo_n "(cached) " >&6
33351else
33352 case $PCLDelegate in
33353 [\\/]* | ?:[\\/]*)
33354 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33355 ;;
33356 *)
33357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33358for as_dir in $PATH
33359do
33360 IFS=$as_save_IFS
33361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33364 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033366 break 2
33367 fi
33368done
cristy8b350f62009-11-15 23:12:43 +000033369 done
cristy3ed852e2009-09-05 21:47:34 +000033370IFS=$as_save_IFS
33371
33372 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33373 ;;
33374esac
33375fi
33376PCLDelegate=$ac_cv_path_PCLDelegate
33377if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379$as_echo "$PCLDelegate" >&6; }
33380else
cristy8b350f62009-11-15 23:12:43 +000033381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033382$as_echo "no" >&6; }
33383fi
33384
33385
33386# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33387set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033389$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033390if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033391 $as_echo_n "(cached) " >&6
33392else
33393 case $PGPDecodeDelegate in
33394 [\\/]* | ?:[\\/]*)
33395 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33396 ;;
33397 *)
33398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33399for as_dir in $PATH
33400do
33401 IFS=$as_save_IFS
33402 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33405 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033407 break 2
33408 fi
33409done
cristy8b350f62009-11-15 23:12:43 +000033410 done
cristy3ed852e2009-09-05 21:47:34 +000033411IFS=$as_save_IFS
33412
33413 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33414 ;;
33415esac
33416fi
33417PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33418if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420$as_echo "$PGPDecodeDelegate" >&6; }
33421else
cristy8b350f62009-11-15 23:12:43 +000033422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033423$as_echo "no" >&6; }
33424fi
33425
33426
33427# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33428set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033431if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033432 $as_echo_n "(cached) " >&6
33433else
33434 case $POVDelegate in
33435 [\\/]* | ?:[\\/]*)
33436 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33437 ;;
33438 *)
33439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33440for as_dir in $PATH
33441do
33442 IFS=$as_save_IFS
33443 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033444 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33446 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033448 break 2
33449 fi
33450done
cristy8b350f62009-11-15 23:12:43 +000033451 done
cristy3ed852e2009-09-05 21:47:34 +000033452IFS=$as_save_IFS
33453
33454 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33455 ;;
33456esac
33457fi
33458POVDelegate=$ac_cv_path_POVDelegate
33459if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461$as_echo "$POVDelegate" >&6; }
33462else
cristy8b350f62009-11-15 23:12:43 +000033463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033464$as_echo "no" >&6; }
33465fi
33466
33467
33468for ac_prog in gsx gsc "$PSDelegateDefault"
33469do
33470 # Extract the first word of "$ac_prog", so it can be a program name with args.
33471set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033474if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033475 $as_echo_n "(cached) " >&6
33476else
33477 case $PSDelegate in
33478 [\\/]* | ?:[\\/]*)
33479 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33480 ;;
33481 *)
33482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33483for as_dir in $PATH
33484do
33485 IFS=$as_save_IFS
33486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33489 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491 break 2
33492 fi
33493done
cristy8b350f62009-11-15 23:12:43 +000033494 done
cristy3ed852e2009-09-05 21:47:34 +000033495IFS=$as_save_IFS
33496
33497 ;;
33498esac
33499fi
33500PSDelegate=$ac_cv_path_PSDelegate
33501if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "$PSDelegate" >&6; }
33504else
cristy8b350f62009-11-15 23:12:43 +000033505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo "no" >&6; }
33507fi
33508
33509
33510 test -n "$PSDelegate" && break
33511done
33512test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33513
33514# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33515set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033518if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033519 $as_echo_n "(cached) " >&6
33520else
33521 case $RLEEncodeDelegate in
33522 [\\/]* | ?:[\\/]*)
33523 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33524 ;;
33525 *)
33526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33527for as_dir in $PATH
33528do
33529 IFS=$as_save_IFS
33530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33533 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033535 break 2
33536 fi
33537done
cristy8b350f62009-11-15 23:12:43 +000033538 done
cristy3ed852e2009-09-05 21:47:34 +000033539IFS=$as_save_IFS
33540
33541 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33542 ;;
33543esac
33544fi
33545RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33546if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo "$RLEEncodeDelegate" >&6; }
33549else
cristy8b350f62009-11-15 23:12:43 +000033550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033551$as_echo "no" >&6; }
33552fi
33553
33554
33555# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33556set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033559if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033560 $as_echo_n "(cached) " >&6
33561else
33562 case $RMDelegate in
33563 [\\/]* | ?:[\\/]*)
33564 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33565 ;;
33566 *)
33567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33568for as_dir in $PATH
33569do
33570 IFS=$as_save_IFS
33571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33574 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033576 break 2
33577 fi
33578done
cristy8b350f62009-11-15 23:12:43 +000033579 done
cristy3ed852e2009-09-05 21:47:34 +000033580IFS=$as_save_IFS
33581
33582 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33583 ;;
33584esac
33585fi
33586RMDelegate=$ac_cv_path_RMDelegate
33587if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033589$as_echo "$RMDelegate" >&6; }
33590else
cristy8b350f62009-11-15 23:12:43 +000033591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033592$as_echo "no" >&6; }
33593fi
33594
33595
cristy4689cf02010-02-17 21:15:45 +000033596# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33597set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033600if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033601 $as_echo_n "(cached) " >&6
33602else
33603 case $RSVGDecodeDelegate in
33604 [\\/]* | ?:[\\/]*)
33605 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33606 ;;
33607 *)
33608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33609for as_dir in $PATH
33610do
33611 IFS=$as_save_IFS
33612 test -z "$as_dir" && as_dir=.
33613 for ac_exec_ext in '' $ac_executable_extensions; do
33614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33615 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33617 break 2
33618 fi
33619done
33620 done
33621IFS=$as_save_IFS
33622
33623 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33624 ;;
33625esac
33626fi
33627RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33628if test -n "$RSVGDecodeDelegate"; then
33629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33630$as_echo "$RSVGDecodeDelegate" >&6; }
33631else
33632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33633$as_echo "no" >&6; }
33634fi
33635
33636
cristy3ed852e2009-09-05 21:47:34 +000033637# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33638set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033641if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033642 $as_echo_n "(cached) " >&6
33643else
33644 case $SCANDecodeDelegate in
33645 [\\/]* | ?:[\\/]*)
33646 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33647 ;;
33648 *)
33649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33650for as_dir in $PATH
33651do
33652 IFS=$as_save_IFS
33653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33656 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658 break 2
33659 fi
33660done
cristy8b350f62009-11-15 23:12:43 +000033661 done
cristy3ed852e2009-09-05 21:47:34 +000033662IFS=$as_save_IFS
33663
33664 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33665 ;;
33666esac
33667fi
33668SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33669if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo "$SCANDecodeDelegate" >&6; }
33672else
cristy8b350f62009-11-15 23:12:43 +000033673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo "no" >&6; }
33675fi
33676
33677
33678# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33679set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033682if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033683 $as_echo_n "(cached) " >&6
33684else
33685 case $TXTDelegate in
33686 [\\/]* | ?:[\\/]*)
33687 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33688 ;;
33689 *)
33690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33691for as_dir in $PATH
33692do
33693 IFS=$as_save_IFS
33694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33697 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699 break 2
33700 fi
33701done
cristy8b350f62009-11-15 23:12:43 +000033702 done
cristy3ed852e2009-09-05 21:47:34 +000033703IFS=$as_save_IFS
33704
33705 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33706 ;;
33707esac
33708fi
33709TXTDelegate=$ac_cv_path_TXTDelegate
33710if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033712$as_echo "$TXTDelegate" >&6; }
33713else
cristy8b350f62009-11-15 23:12:43 +000033714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033715$as_echo "no" >&6; }
33716fi
33717
33718
cristy5ac9ac82010-07-29 13:24:24 +000033719# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33720set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033723if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033724 $as_echo_n "(cached) " >&6
33725else
33726 case $UniconvertorDelegate in
33727 [\\/]* | ?:[\\/]*)
33728 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33729 ;;
33730 *)
33731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33732for as_dir in $PATH
33733do
33734 IFS=$as_save_IFS
33735 test -z "$as_dir" && as_dir=.
33736 for ac_exec_ext in '' $ac_executable_extensions; do
33737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33738 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33740 break 2
33741 fi
33742done
33743 done
33744IFS=$as_save_IFS
33745
33746 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33747 ;;
33748esac
33749fi
33750UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33751if test -n "$UniconvertorDelegate"; then
33752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33753$as_echo "$UniconvertorDelegate" >&6; }
33754else
33755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33756$as_echo "no" >&6; }
33757fi
33758
33759
cristy3ed852e2009-09-05 21:47:34 +000033760# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33761set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033764if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033765 $as_echo_n "(cached) " >&6
33766else
33767 case $WMFDecodeDelegate in
33768 [\\/]* | ?:[\\/]*)
33769 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33770 ;;
33771 *)
33772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33773for as_dir in $PATH
33774do
33775 IFS=$as_save_IFS
33776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33779 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781 break 2
33782 fi
33783done
cristy8b350f62009-11-15 23:12:43 +000033784 done
cristy3ed852e2009-09-05 21:47:34 +000033785IFS=$as_save_IFS
33786
33787 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33788 ;;
33789esac
33790fi
33791WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33792if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033794$as_echo "$WMFDecodeDelegate" >&6; }
33795else
cristy8b350f62009-11-15 23:12:43 +000033796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033797$as_echo "no" >&6; }
33798fi
33799
33800
33801# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33802set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033805if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033806 $as_echo_n "(cached) " >&6
33807else
33808 case $WWWDecodeDelegate in
33809 [\\/]* | ?:[\\/]*)
33810 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33811 ;;
33812 *)
33813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33814for as_dir in $PATH
33815do
33816 IFS=$as_save_IFS
33817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33820 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033822 break 2
33823 fi
33824done
cristy8b350f62009-11-15 23:12:43 +000033825 done
cristy3ed852e2009-09-05 21:47:34 +000033826IFS=$as_save_IFS
33827
33828 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33829 ;;
33830esac
33831fi
33832WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33833if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033835$as_echo "$WWWDecodeDelegate" >&6; }
33836else
cristy8b350f62009-11-15 23:12:43 +000033837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033838$as_echo "no" >&6; }
33839fi
33840
33841
33842# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33843set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033846if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033847 $as_echo_n "(cached) " >&6
33848else
33849 case $XPSDelegate in
33850 [\\/]* | ?:[\\/]*)
33851 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33852 ;;
33853 *)
33854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33855for as_dir in $PATH
33856do
33857 IFS=$as_save_IFS
33858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33861 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033863 break 2
33864 fi
33865done
cristy8b350f62009-11-15 23:12:43 +000033866 done
cristy3ed852e2009-09-05 21:47:34 +000033867IFS=$as_save_IFS
33868
33869 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33870 ;;
33871esac
33872fi
33873XPSDelegate=$ac_cv_path_XPSDelegate
33874if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033876$as_echo "$XPSDelegate" >&6; }
33877else
cristy8b350f62009-11-15 23:12:43 +000033878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033879$as_echo "no" >&6; }
33880fi
33881
33882
33883# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33884set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033887if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033888 $as_echo_n "(cached) " >&6
33889else
33890 case $ZipDelegate in
33891 [\\/]* | ?:[\\/]*)
33892 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33893 ;;
33894 *)
33895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33896for as_dir in $PATH
33897do
33898 IFS=$as_save_IFS
33899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33902 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033904 break 2
33905 fi
33906done
cristy8b350f62009-11-15 23:12:43 +000033907 done
cristy3ed852e2009-09-05 21:47:34 +000033908IFS=$as_save_IFS
33909
33910 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33911 ;;
33912esac
33913fi
33914ZipDelegate=$ac_cv_path_ZipDelegate
33915if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033917$as_echo "$ZipDelegate" >&6; }
33918else
cristy8b350f62009-11-15 23:12:43 +000033919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033920$as_echo "no" >&6; }
33921fi
33922
33923
33924
33925# Prefer lpr to lp; lp needs options tacked on.
33926if test "$LPRDelegate" != no; then
33927 PrintDelegate="$LPRDelegate"
33928else
33929 PrintDelegate="$LPDelegate -c -s"
33930fi
33931
33932
33933# Installed ImageMagick utiltity paths
33934ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33935DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33936MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33937
33938# Set delegate booleans
33939have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33940have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33941have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33942have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33943have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033944have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033945have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33946have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033947have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33948have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33949
33950#
33951# Test for font directories
33952#
33953type_include_files=''
33954
cristy430a7312010-01-21 20:44:04 +000033955# Dejavu fonts.
33956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33957$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33958dejavu_font_dir=''
33959if test "${with_dejavu_font_dir}" != 'default'; then
33960 dejavu_font_dir="${with_dejavu_font_dir}/"
33961else
33962 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33963 if test -f "${font_dir}DejaVuSerif.ttf"; then
33964 dejavu_font_dir="${font_dir}"
33965 break 1
33966 fi
33967 done
33968fi
33969if test "${dejavu_font_dir}x" != 'x'; then
33970 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033971 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33972$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033973else
cristy09b53e12011-10-14 12:47:22 +000033974 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33975$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033976fi
33977
33978
cristy3ed852e2009-09-05 21:47:34 +000033979# Windows
33980windows_font_dir=''
33981if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33982 windows_font_dir="${with_windows_font_dir}/"
33983fi
cristy430a7312010-01-21 20:44:04 +000033984if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033985 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33986 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33987 fi
33988 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33989 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33990 fi
33991 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33992 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33993 fi
33994fi
cristy430a7312010-01-21 20:44:04 +000033995if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033996 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33997fi
33998
33999
34000# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034002$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34003ghostscript_font_dir=''
34004if test "${with_gs_font_dir}" != 'default'; then
34005 ghostscript_font_dir="${with_gs_font_dir}/"
34006else
34007 if test "${native_win32_build}" = 'yes'; then
34008 # Native Windows Build
34009 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34010 if test -f "${font_dir}a010013l.pfb"; then
34011 ghostscript_font_dir="$font_dir"
34012 break 1
34013 fi
34014 done
34015 if test "${PSDelegate}" != 'gswin32c'; then
34016 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34017 fi
34018 else
34019 # Linux / Mac OS X / Unix Build
34020 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
34021 if test -f "${font_dir}a010013l.pfb"; then
34022 ghostscript_font_dir="${font_dir}"
34023 break 1
34024 fi
34025 done
34026 if test "${ghostscript_font_dir}x" = 'x'; then
34027 if test "$PSDelegate" != 'gs'; then
34028 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34029 fi
34030 fi
34031 fi
34032fi
34033if test "${ghostscript_font_dir}x" != 'x'; then
34034 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034035 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34036$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034037else
cristy09b53e12011-10-14 12:47:22 +000034038 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34039$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034040fi
34041
34042case "${build_os}" in
34043 mingw* )
34044 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34045 ;;
34046esac
34047
34048
34049
34050#
34051# Handle case where user doesn't want frozen paths
34052#
34053if test "$with_frozenpaths" != 'yes'; then
34054 # Re-set delegate definitions to default (no paths)
34055 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034056 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34057 BZIPDelegate="$BZIPDelegateDefault"
34058 BrowseDelegate="$BrowseDelegateDefault"
34059 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34060 CatDelegate="$CatDelegateDefault"
34061 ConvertDelegate="$ConvertDelegateDefault"
34062 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34063 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34064 EchoDelegate="$EchoDelegateDefault"
34065 EditorDelegate="$EditorDelegateDefault"
34066 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34067 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34068 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34069 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34070 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34071 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34072 LPDelegate="$LPDelegateDefault"
34073 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34074 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34075 LaunchDelegate="$LaunchDelegateDefault"
34076 MANDelegate="$MANDelegateDefault"
34077 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34078 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034079 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034080 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34081 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034082 PCLDelegate="$PCLDelegateDefault"
34083 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34084 POVDelegate="$POVDelegateDefault"
34085 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034086 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34087 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034088 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034089 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34090 ShowImageDelegate="$ShowImageDelegateDefault"
34091 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034092 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034093 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34094 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34095 XPSDelegate="$XPSDelegateDefault"
34096 ZipDelegate="$ZipDelegateDefault"
34097fi
34098
34099# Delegate substitutions
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142#
34143# RPM support.
34144#
34145RPM=''
34146for ac_prog in gnutar gtar tar
34147do
34148 # Extract the first word of "$ac_prog", so it can be a program name with args.
34149set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034151$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034152if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034153 $as_echo_n "(cached) " >&6
34154else
34155 if test -n "$TAR"; then
34156 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34157else
34158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34159for as_dir in $PATH
34160do
34161 IFS=$as_save_IFS
34162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34165 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034167 break 2
34168 fi
34169done
cristy8b350f62009-11-15 23:12:43 +000034170 done
cristy3ed852e2009-09-05 21:47:34 +000034171IFS=$as_save_IFS
34172
34173fi
34174fi
34175TAR=$ac_cv_prog_TAR
34176if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034178$as_echo "$TAR" >&6; }
34179else
cristy8b350f62009-11-15 23:12:43 +000034180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034181$as_echo "no" >&6; }
34182fi
34183
34184
34185 test -n "$TAR" && break
34186done
34187
34188for ac_prog in perl
34189do
34190 # Extract the first word of "$ac_prog", so it can be a program name with args.
34191set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034194if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034195 $as_echo_n "(cached) " >&6
34196else
34197 if test -n "$PERL"; then
34198 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34199else
34200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34201for as_dir in $PATH
34202do
34203 IFS=$as_save_IFS
34204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34207 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034209 break 2
34210 fi
34211done
cristy8b350f62009-11-15 23:12:43 +000034212 done
cristy3ed852e2009-09-05 21:47:34 +000034213IFS=$as_save_IFS
34214
34215fi
34216fi
34217PERL=$ac_cv_prog_PERL
34218if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034220$as_echo "$PERL" >&6; }
34221else
cristy8b350f62009-11-15 23:12:43 +000034222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223$as_echo "no" >&6; }
34224fi
34225
34226
34227 test -n "$PERL" && break
34228done
34229
34230for ac_prog in rpmbuild rpm
34231do
34232 # Extract the first word of "$ac_prog", so it can be a program name with args.
34233set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034236if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034237 $as_echo_n "(cached) " >&6
34238else
34239 if test -n "$RPM"; then
34240 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34241else
34242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34243for as_dir in $PATH
34244do
34245 IFS=$as_save_IFS
34246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34249 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034251 break 2
34252 fi
34253done
cristy8b350f62009-11-15 23:12:43 +000034254 done
cristy3ed852e2009-09-05 21:47:34 +000034255IFS=$as_save_IFS
34256
34257fi
34258fi
34259RPM=$ac_cv_prog_RPM
34260if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034262$as_echo "$RPM" >&6; }
34263else
cristy8b350f62009-11-15 23:12:43 +000034264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265$as_echo "no" >&6; }
34266fi
34267
34268
34269 test -n "$RPM" && break
34270done
34271
34272
cristy73bd4a52010-10-05 11:24:23 +000034273ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34274
34275
34276AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34277
34278
34279AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34280
34281
34282AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34283
34284
34285 if test "x$RPM" != "x" ; then
34286 RPM_DELEGATE_TRUE=
34287 RPM_DELEGATE_FALSE='#'
34288else
34289 RPM_DELEGATE_TRUE='#'
34290 RPM_DELEGATE_FALSE=
34291fi
34292
cristy3ed852e2009-09-05 21:47:34 +000034293
34294#
34295# 7ZIP support (http://p7zip.sourceforge.net/)
34296#
34297P7ZIP=''
34298for ac_prog in 7za
34299do
34300 # Extract the first word of "$ac_prog", so it can be a program name with args.
34301set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034304if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034305 $as_echo_n "(cached) " >&6
34306else
34307 if test -n "$P7ZIP"; then
34308 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34309else
34310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34311for as_dir in $PATH
34312do
34313 IFS=$as_save_IFS
34314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34317 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034319 break 2
34320 fi
34321done
cristy8b350f62009-11-15 23:12:43 +000034322 done
cristy3ed852e2009-09-05 21:47:34 +000034323IFS=$as_save_IFS
34324
34325fi
34326fi
34327P7ZIP=$ac_cv_prog_P7ZIP
34328if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034330$as_echo "$P7ZIP" >&6; }
34331else
cristy8b350f62009-11-15 23:12:43 +000034332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034333$as_echo "no" >&6; }
34334fi
34335
34336
34337 test -n "$P7ZIP" && break
34338done
34339
34340
cristy73bd4a52010-10-05 11:24:23 +000034341 if test "x$P7ZIP" != "x" ; then
34342 P7ZIP_DELEGATE_TRUE=
34343 P7ZIP_DELEGATE_FALSE='#'
34344else
34345 P7ZIP_DELEGATE_TRUE='#'
34346 P7ZIP_DELEGATE_FALSE=
34347fi
34348
cristy3ed852e2009-09-05 21:47:34 +000034349
34350#
34351# ZIP support (http://www.info-zip.org/Zip.html)
34352#
34353ZIP=''
34354for ac_prog in zip
34355do
34356 # Extract the first word of "$ac_prog", so it can be a program name with args.
34357set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034360if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034361 $as_echo_n "(cached) " >&6
34362else
34363 if test -n "$ZIP"; then
34364 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34365else
34366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34367for as_dir in $PATH
34368do
34369 IFS=$as_save_IFS
34370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34373 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034375 break 2
34376 fi
34377done
cristy8b350f62009-11-15 23:12:43 +000034378 done
cristy3ed852e2009-09-05 21:47:34 +000034379IFS=$as_save_IFS
34380
34381fi
34382fi
34383ZIP=$ac_cv_prog_ZIP
34384if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034386$as_echo "$ZIP" >&6; }
34387else
cristy8b350f62009-11-15 23:12:43 +000034388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034389$as_echo "no" >&6; }
34390fi
34391
34392
34393 test -n "$ZIP" && break
34394done
34395
34396
cristy73bd4a52010-10-05 11:24:23 +000034397 if test "x$ZIP" != "x" ; then
34398 ZIP_DELEGATE_TRUE=
34399 ZIP_DELEGATE_FALSE='#'
34400else
34401 ZIP_DELEGATE_TRUE='#'
34402 ZIP_DELEGATE_FALSE=
34403fi
34404
cristy3ed852e2009-09-05 21:47:34 +000034405
34406#
34407# GhostPCL related configuration.
34408#
34409PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034410PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034411PCLMonoDevice=pbmraw
34412if test -z "$PCLVersion"; then
34413 PCLVersion='unknown'
34414fi
34415if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034416 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34417$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034420 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34421$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034422 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034424$as_echo_n "checking for pcl color device... " >&6; }
34425 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34426 :
34427 else
34428 PCLColorDevice=ppmraw
34429 fi
cristy09b53e12011-10-14 12:47:22 +000034430 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34431$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034432
34433 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435$as_echo_n "checking for pcl CMYK device... " >&6; }
34436 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34437 :
34438 else
34439 PCLCMYKDevice=$PCLColorDevice
34440 fi
cristy09b53e12011-10-14 12:47:22 +000034441 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34442$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034443
34444 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034446$as_echo_n "checking for pcl mono device... " >&6; }
34447 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34448 :
34449 else
34450 PCLMonoDevice=$PCLColorDevice
34451 fi
cristy09b53e12011-10-14 12:47:22 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34453$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034454fi
34455
34456
34457
34458
34459
34460
34461#
34462# GhostXPS related configuration.
34463#
34464XPSColorDevice=ppmraw
34465XPSCMYKDevice=bmpsep8
34466XPSMonoDevice=pbmraw
34467if test -z "$XPSVersion"; then
34468 XPSVersion='unknown'
34469fi
34470if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034471 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34472$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034474$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034475 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34476$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034477 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479$as_echo_n "checking for xps color device... " >&6; }
34480 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34481 :
34482 else
34483 XPSColorDevice=ppmraw
34484 fi
cristy09b53e12011-10-14 12:47:22 +000034485 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34486$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034487
34488 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034490$as_echo_n "checking for xps CMYK device... " >&6; }
34491 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34492 :
34493 else
34494 XPSCMYKDevice=$XPSColorDevice
34495 fi
cristy09b53e12011-10-14 12:47:22 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34497$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034498
34499 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034501$as_echo_n "checking for xps mono device... " >&6; }
34502 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34503 :
34504 else
34505 XPSMonoDevice=$XPSColorDevice
34506 fi
cristy09b53e12011-10-14 12:47:22 +000034507 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34508$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034509fi
34510
34511
34512
34513
34514
34515
34516#
34517# Ghostscript related configuration.
34518#
cristya97426c2011-02-04 01:41:27 +000034519GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034520GSColorDevice=pnmraw
34521GSCMYKDevice=pam
34522GSMonoDevice=pbmraw
34523GSPDFDevice=pdfwrite
34524GSPSDevice=pswrite
34525GSEPSDevice=epswrite
34526GSVersion='unknown'
34527if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034528 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34529$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034531$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034532 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34533$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034535$as_echo_n "checking for Ghostscript version... " >&6; }
34536 if GSVersion=`$PSDelegate --version`; then
34537 :
34538 else
34539 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34540 fi
cristy09b53e12011-10-14 12:47:22 +000034541 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34542$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034543
34544 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034546$as_echo_n "checking for gs alpha device... " >&6; }
34547 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34548 :
34549 else
34550 GSAlphaDevice=pnmraw
34551 fi
cristy09b53e12011-10-14 12:47:22 +000034552 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34553$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034554
34555 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034557$as_echo_n "checking for gs color device... " >&6; }
34558 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34559 :
34560 else
34561 GSColorDevice=pnmraw
34562 fi
cristy09b53e12011-10-14 12:47:22 +000034563 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34564$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034565
34566 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034568$as_echo_n "checking for gs CMYK device... " >&6; }
34569 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34570 :
34571 else
34572 GSCMYKDevice=bmpsep8
34573 fi
cristy09b53e12011-10-14 12:47:22 +000034574 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34575$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034576
34577 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034579$as_echo_n "checking for gs mono device... " >&6; }
34580 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34581 :
34582 else
34583 GSMonoDevice=$GSColorDevice
34584 fi
cristy09b53e12011-10-14 12:47:22 +000034585 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34586$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034587
34588 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034590$as_echo_n "checking for gs PDF writing device... " >&6; }
34591 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34592 :
34593 else
34594 GSPDFDevice=nodevice
34595 fi
cristy09b53e12011-10-14 12:47:22 +000034596 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34597$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034598
34599 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034601$as_echo_n "checking for gs PS writing device... " >&6; }
34602 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34603 :
34604 else
34605 GSPSDevice=nodevice
34606 fi
cristy09b53e12011-10-14 12:47:22 +000034607 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34608$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034609
34610 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo_n "checking for gs EPS writing device... " >&6; }
34613 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34614 :
34615 else
34616 GSEPSDevice=nodevice
34617 fi
cristy09b53e12011-10-14 12:47:22 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34619$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034620fi
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631#
34632# PerlMagick-related configuration
34633#
34634
34635# Look for PERL if PerlMagick requested
34636# If name/path of desired PERL interpreter is specified, look for that one first
34637have_perl='no'
34638if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034639 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34640$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034642$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034643 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34644$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034645 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034647$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034648if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034649 $as_echo_n "(cached) " >&6
34650else
34651 ac_cv_path_PERL="$with_perl"
34652fi
cristy8b350f62009-11-15 23:12:43 +000034653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034654$as_echo "$ac_cv_path_PERL" >&6; };
34655 PERL=$ac_cv_path_PERL
34656 have_perl="$ac_cv_path_PERL"
34657 else
34658 for ac_prog in perl perl5
34659do
34660 # Extract the first word of "$ac_prog", so it can be a program name with args.
34661set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034664if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034665 $as_echo_n "(cached) " >&6
34666else
34667 case $PERL in
34668 [\\/]* | ?:[\\/]*)
34669 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34670 ;;
34671 *)
34672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34673for as_dir in $PATH
34674do
34675 IFS=$as_save_IFS
34676 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034677 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34679 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034681 break 2
34682 fi
34683done
cristy8b350f62009-11-15 23:12:43 +000034684 done
cristy3ed852e2009-09-05 21:47:34 +000034685IFS=$as_save_IFS
34686
34687 ;;
34688esac
34689fi
34690PERL=$ac_cv_path_PERL
34691if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034693$as_echo "$PERL" >&6; }
34694else
cristy8b350f62009-11-15 23:12:43 +000034695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034696$as_echo "no" >&6; }
34697fi
34698
34699
34700 test -n "$PERL" && break
34701done
34702 if test "$ac_cv_path_PERL"; then
34703 have_perl="$ac_cv_path_PERL"
34704 fi
34705 fi
34706fi
34707
cristy949301e2010-01-06 01:38:40 +000034708if test "$with_perl" != 'yes' ; then
34709 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34710fi
34711
34712PERL_SUPPORTS_DESTDIR='no'
34713
cristy3ed852e2009-09-05 21:47:34 +000034714with_perl_static='no'
34715with_perl_dynamic='no'
34716if test "$have_perl" != 'no'; then
34717 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34718 with_perl_static='yes'
34719 fi
34720 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34721 with_perl_dynamic='yes'
34722 fi
34723 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034724
34725
34726
34727
34728 if test -n "$PERL"; then :
34729
34730 ax_perl_version="5.8.1"
34731
34732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34733$as_echo_n "checking for perl version... " >&6; }
34734
34735 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34736
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34738$as_echo "$perl_version" >&6; }
34739
34740 PERL_VERSION=$perl_version
34741
34742
34743
34744
34745
34746 # Used to indicate true or false condition
34747 ax_compare_version=false
34748
34749 # Convert the two version strings to be compared into a format that
34750 # allows a simple string comparison. The end result is that a version
34751 # string of the form 1.12.5-r617 will be converted to the form
34752 # 0001001200050617. In other words, each number is zero padded to four
34753 # digits, and non digits are removed.
34754
34755 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34756 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34757 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34758 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34759 -e 's/[^0-9]//g'`
34760
34761
34762 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34763 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34764 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34765 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34766 -e 's/[^0-9]//g'`
34767
34768
34769 ax_compare_version=`echo "x$ax_compare_version_A
34770x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34771
34772
34773
34774 if test "$ax_compare_version" = "true" ; then
34775
34776 :
34777 PERL_SUPPORTS_DESTDIR='yes'
34778
34779 else
34780 :
34781 PERL_SUPPORTS_DESTDIR='no'
34782
34783 fi
34784
34785
34786else
34787
34788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34789$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34790 PERL_SUPPORTS_DESTDIR='no'
34791
cristy3ed852e2009-09-05 21:47:34 +000034792fi
cristy73bd4a52010-10-05 11:24:23 +000034793
34794fi
34795 if test "$have_perl" != 'no'; then
34796 WITH_PERL_TRUE=
34797 WITH_PERL_FALSE='#'
34798else
34799 WITH_PERL_TRUE='#'
34800 WITH_PERL_FALSE=
34801fi
34802
34803 if test $with_perl_static = 'yes'; then
34804 WITH_PERL_STATIC_TRUE=
34805 WITH_PERL_STATIC_FALSE='#'
34806else
34807 WITH_PERL_STATIC_TRUE='#'
34808 WITH_PERL_STATIC_FALSE=
34809fi
34810
34811 if test $with_perl_dynamic = 'yes'; then
34812 WITH_PERL_DYNAMIC_TRUE=
34813 WITH_PERL_DYNAMIC_FALSE='#'
34814else
34815 WITH_PERL_DYNAMIC_TRUE='#'
34816 WITH_PERL_DYNAMIC_FALSE=
34817fi
34818
cristy3ed852e2009-09-05 21:47:34 +000034819
34820
34821# Determine path to pick up MagickCore library from for use with building PerlMagick
34822MAGICKCORE_PATH="${LIB_DIR}"
34823if test $with_perl_static = 'yes'; then
34824 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34825 libtool_objdir=$objdir
34826
34827 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034828 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034829fi
34830
34831
34832# Create a simple string containing format names for all delegate libraries
34833DELEGATES=''
34834if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34835if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34836if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34837if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34838if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34839if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34840if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34841if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34842if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34843if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34844if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34845if test "$have_jpeg" = 'yes'; then
34846 DELEGATES="$DELEGATES jpeg";
34847 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34848fi
34849if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034850if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034851if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34852if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034853if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034854if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34855if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34856if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34857if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34858if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34859if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34860if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34861if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34862if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34863
34864
34865
34866#
34867# Handle special compiler flags
34868#
34869
34870# Add '-p' if prof source profiling support enabled
34871if test "$enable_prof" = 'yes'; then
34872 CFLAGS="-p $CFLAGS"
34873 CXXFLAGS="-p $CXXFLAGS"
34874 LDFLAGS="-p $LDFLAGS"
34875fi
34876
34877# Add '-pg' if gprof source profiling support enabled
34878if test "$enable_gprof" = 'yes'; then
34879 CFLAGS="-pg $CFLAGS"
34880 CXXFLAGS="-pg $CXXFLAGS"
34881 LDFLAGS="-pg $LDFLAGS"
34882fi
34883
34884# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34885# This is a gcc-specific feature
34886if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034888$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034889if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034890 $as_echo_n "(cached) " >&6
34891else
34892 ac_check_lib_save_LIBS=$LIBS
34893LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034895/* end confdefs.h. */
34896
34897/* Override any GCC internal prototype to avoid an error.
34898 Use char because int might match the return type of a GCC
34899 builtin and then its argument prototype would still apply. */
34900#ifdef __cplusplus
34901extern "C"
34902#endif
34903char _gcov_init ();
34904int
34905main ()
34906{
34907return _gcov_init ();
34908 ;
34909 return 0;
34910}
34911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034912if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034913 ac_cv_lib_gcov__gcov_init=yes
34914else
cristy8b350f62009-11-15 23:12:43 +000034915 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034916fi
cristy8b350f62009-11-15 23:12:43 +000034917rm -f core conftest.err conftest.$ac_objext \
34918 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034919LIBS=$ac_check_lib_save_LIBS
34920fi
cristy8b350f62009-11-15 23:12:43 +000034921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034922$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034923if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034924 cat >>confdefs.h <<_ACEOF
34925#define HAVE_LIBGCOV 1
34926_ACEOF
34927
34928 LIBS="-lgcov $LIBS"
34929
34930fi
34931
cristy8b350f62009-11-15 23:12:43 +000034932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034934if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034935 $as_echo_n "(cached) " >&6
34936else
34937 ac_check_lib_save_LIBS=$LIBS
34938LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034940/* end confdefs.h. */
34941
34942/* Override any GCC internal prototype to avoid an error.
34943 Use char because int might match the return type of a GCC
34944 builtin and then its argument prototype would still apply. */
34945#ifdef __cplusplus
34946extern "C"
34947#endif
34948char __gcov_init ();
34949int
34950main ()
34951{
34952return __gcov_init ();
34953 ;
34954 return 0;
34955}
34956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034958 ac_cv_lib_gcov___gcov_init=yes
34959else
cristy8b350f62009-11-15 23:12:43 +000034960 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034961fi
cristy8b350f62009-11-15 23:12:43 +000034962rm -f core conftest.err conftest.$ac_objext \
34963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034964LIBS=$ac_check_lib_save_LIBS
34965fi
cristy8b350f62009-11-15 23:12:43 +000034966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034967$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034968if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034969 cat >>confdefs.h <<_ACEOF
34970#define HAVE_LIBGCOV 1
34971_ACEOF
34972
34973 LIBS="-lgcov $LIBS"
34974
34975fi
34976
34977 case "$target_os" in
34978 darwin*)
34979 OSX_GCOV_LDFLAG="-Wl,-single_module"
34980 ;;
34981 *)
34982 OSX_GCOV_LDFLAG=""
34983 ;;
34984 esac
34985
34986 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34987 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34988 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34989fi
34990
34991#
34992# Build library dependency list for libMagickCore
34993#
34994
34995MAGICK_LIBLTDL='' # Libltdl for build
34996MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34997MAGICK_LTDLDEPS='' # extra libltdl dependencies
34998if test "$with_ltdl" != 'no'
34999then
35000 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35001 MAGICK_API_LIBLTDL='-lltdl'
35002 fi
35003 MAGICK_LIBLTDL=${LIBLTDL}
35004 MAGICK_LTDLDEPS=${LTDLDEPS}
35005fi
35006
35007
35008
35009if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035010 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 +000035011else
cristy41cbe8a2011-10-27 01:35:18 +000035012 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 +000035013fi
35014
35015
35016#
35017# Remove extraneous spaces from output variables (asthetic)
35018#
35019X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35020X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35021X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35022X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35023
35024CC=`echo $CC | sed -e 's/ */ /g'`
35025CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35026CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35027CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35028DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35029DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35030LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35031TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35032MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35033#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35034
35035# Pass only user-provided LIBS as "global" libraries
35036LIBS=$USER_LIBS
35037
35038#AC_SUBST(CPPFLAGS)
35039
35040#AC_SUBST(LDFLAGS)
35041#AC_SUBST(X_PRE_LIBS)
35042#AC_SUBST(X_LIBS)
35043#AC_SUBST(X_EXTRA_LIBS)
35044
35045MAGICK_CFLAGS=$CFLAGS
35046MAGICK_CXXFLAGS="$CXXFLAGS"
35047MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35048MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35049MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35050MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35051
35052
35053
35054
35055
35056
35057
35058
cristyfd9dcd42010-08-08 18:07:02 +000035059
cristy3ed852e2009-09-05 21:47:34 +000035060# Set configured scripts to executable.
35061ac_config_commands="$ac_config_commands default"
35062
35063ac_config_commands="$ac_config_commands MagickCore-config.in"
35064
cristy3ed852e2009-09-05 21:47:34 +000035065ac_config_commands="$ac_config_commands MagickWand-config.in"
35066
cristy3ed852e2009-09-05 21:47:34 +000035067ac_config_commands="$ac_config_commands Magick++-config.in"
35068
35069ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35070
35071
cristy09b53e12011-10-14 12:47:22 +000035072{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35073$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35074{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35075$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035076cat >confcache <<\_ACEOF
35077# This file is a shell script that caches the results of configure
35078# tests run on this system so they can be shared between configure
35079# scripts and configure runs, see configure's option --config-cache.
35080# It is not useful on other systems. If it contains results you don't
35081# want to keep, you may remove or edit it.
35082#
35083# config.status only pays attention to the cache file if you give it
35084# the --recheck option to rerun configure.
35085#
35086# `ac_cv_env_foo' variables (set or unset) will be overridden when
35087# loading this file, other *unset* `ac_cv_foo' will be assigned the
35088# following values.
35089
35090_ACEOF
35091
35092# The following way of writing the cache mishandles newlines in values,
35093# but we know of no workaround that is simple, portable, and efficient.
35094# So, we kill variables containing newlines.
35095# Ultrix sh set writes to stderr and can't be redirected directly,
35096# and sets the high bit in the cache file unless we assign to the vars.
35097(
35098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35099 eval ac_val=\$$ac_var
35100 case $ac_val in #(
35101 *${as_nl}*)
35102 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35105 esac
35106 case $ac_var in #(
35107 _ | IFS | as_nl) ;; #(
35108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035109 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035110 esac ;;
35111 esac
35112 done
35113
35114 (set) 2>&1 |
35115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35116 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035117 # `set' does not quote correctly, so add quotes: double-quote
35118 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035119 sed -n \
35120 "s/'/'\\\\''/g;
35121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35122 ;; #(
35123 *)
35124 # `set' quotes correctly as required by POSIX, so do not add quotes.
35125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35126 ;;
35127 esac |
35128 sort
35129) |
35130 sed '
35131 /^ac_cv_env_/b end
35132 t clear
35133 :clear
35134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35135 t end
35136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35137 :end' >>confcache
35138if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35139 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035140 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035142$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035143 if test ! -f "$cache_file" || test -h "$cache_file"; then
35144 cat confcache >"$cache_file"
35145 else
35146 case $cache_file in #(
35147 */* | ?:*)
35148 mv -f confcache "$cache_file"$$ &&
35149 mv -f "$cache_file"$$ "$cache_file" ;; #(
35150 *)
35151 mv -f confcache "$cache_file" ;;
35152 esac
35153 fi
35154 fi
cristy3ed852e2009-09-05 21:47:34 +000035155 else
cristy8b350f62009-11-15 23:12:43 +000035156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035157$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35158 fi
35159fi
35160rm -f confcache
35161
35162test "x$prefix" = xNONE && prefix=$ac_default_prefix
35163# Let make expand exec_prefix.
35164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35165
35166DEFS=-DHAVE_CONFIG_H
35167
35168ac_libobjs=
35169ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035170U=
cristy3ed852e2009-09-05 21:47:34 +000035171for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35172 # 1. Remove the extension, and $U if already installed.
35173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35174 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35176 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035179done
35180LIBOBJS=$ac_libobjs
35181
35182LTLIBOBJS=$ac_ltlibobjs
35183
35184
cristy73bd4a52010-10-05 11:24:23 +000035185 if test -n "$EXEEXT"; then
35186 am__EXEEXT_TRUE=
35187 am__EXEEXT_FALSE='#'
35188else
35189 am__EXEEXT_TRUE='#'
35190 am__EXEEXT_FALSE=
35191fi
cristy3ed852e2009-09-05 21:47:34 +000035192
cristy73bd4a52010-10-05 11:24:23 +000035193if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035194 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035195Usually this means the macro was only invoked conditionally." "$LINENO" 5
35196fi
35197if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035198 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035199Usually this means the macro was only invoked conditionally." "$LINENO" 5
35200fi
35201if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035202 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035203Usually this means the macro was only invoked conditionally." "$LINENO" 5
35204fi
35205if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035206 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035207Usually this means the macro was only invoked conditionally." "$LINENO" 5
35208fi
35209if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035210 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035211Usually this means the macro was only invoked conditionally." "$LINENO" 5
35212fi
35213if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035214 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035215Usually this means the macro was only invoked conditionally." "$LINENO" 5
35216fi
35217if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035218 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035219Usually this means the macro was only invoked conditionally." "$LINENO" 5
35220fi
35221if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035222 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035223Usually this means the macro was only invoked conditionally." "$LINENO" 5
35224fi
cristy73bd4a52010-10-05 11:24:23 +000035225if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035226 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035227Usually this means the macro was only invoked conditionally." "$LINENO" 5
35228fi
35229if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035230 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035231Usually this means the macro was only invoked conditionally." "$LINENO" 5
35232fi
35233LT_CONFIG_H=config/config.h
35234
35235 _ltdl_libobjs=
35236 _ltdl_ltlibobjs=
35237 if test -n "$_LT_LIBOBJS"; then
35238 # Remove the extension.
35239 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35240 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35241 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35242 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35243 done
35244 fi
35245 ltdl_LIBOBJS=$_ltdl_libobjs
35246
35247 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35248
35249
35250if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035251 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035252Usually this means the macro was only invoked conditionally." "$LINENO" 5
35253fi
35254if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035255 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035256Usually this means the macro was only invoked conditionally." "$LINENO" 5
35257fi
35258if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035259 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035260Usually this means the macro was only invoked conditionally." "$LINENO" 5
35261fi
35262if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035263 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035264Usually this means the macro was only invoked conditionally." "$LINENO" 5
35265fi
35266
35267if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035268 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035269Usually this means the macro was only invoked conditionally." "$LINENO" 5
35270fi
35271if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035272 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035273Usually this means the macro was only invoked conditionally." "$LINENO" 5
35274fi
35275if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035276 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035277Usually this means the macro was only invoked conditionally." "$LINENO" 5
35278fi
35279if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035280 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035281Usually this means the macro was only invoked conditionally." "$LINENO" 5
35282fi
35283if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035284 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035285Usually this means the macro was only invoked conditionally." "$LINENO" 5
35286fi
35287if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035288 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035289Usually this means the macro was only invoked conditionally." "$LINENO" 5
35290fi
35291if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035292 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035293Usually this means the macro was only invoked conditionally." "$LINENO" 5
35294fi
35295if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035296 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035297Usually this means the macro was only invoked conditionally." "$LINENO" 5
35298fi
35299if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035300 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035301Usually this means the macro was only invoked conditionally." "$LINENO" 5
35302fi
35303if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035304 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035305Usually this means the macro was only invoked conditionally." "$LINENO" 5
35306fi
35307if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035308 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035309Usually this means the macro was only invoked conditionally." "$LINENO" 5
35310fi
35311if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035312 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035313Usually this means the macro was only invoked conditionally." "$LINENO" 5
35314fi
35315if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035316 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035317Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318fi
35319if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035320 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035321Usually this means the macro was only invoked conditionally." "$LINENO" 5
35322fi
35323if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035324 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035325Usually this means the macro was only invoked conditionally." "$LINENO" 5
35326fi
35327if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035328 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035329Usually this means the macro was only invoked conditionally." "$LINENO" 5
35330fi
35331if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035332 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035333Usually this means the macro was only invoked conditionally." "$LINENO" 5
35334fi
35335if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035336 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035337Usually this means the macro was only invoked conditionally." "$LINENO" 5
35338fi
35339if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035340 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035341Usually this means the macro was only invoked conditionally." "$LINENO" 5
35342fi
35343if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035344 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035345Usually this means the macro was only invoked conditionally." "$LINENO" 5
35346fi
cristyfbb0ef02010-12-19 02:32:11 +000035347if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35348 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35349Usually this means the macro was only invoked conditionally." "$LINENO" 5
35350fi
cristy73bd4a52010-10-05 11:24:23 +000035351if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035352 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035353Usually this means the macro was only invoked conditionally." "$LINENO" 5
35354fi
cristy41cbe8a2011-10-27 01:35:18 +000035355if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35356 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35357Usually this means the macro was only invoked conditionally." "$LINENO" 5
35358fi
35359if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35360 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35361Usually this means the macro was only invoked conditionally." "$LINENO" 5
35362fi
cristy73bd4a52010-10-05 11:24:23 +000035363if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035364 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035365Usually this means the macro was only invoked conditionally." "$LINENO" 5
35366fi
35367if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035368 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035369Usually this means the macro was only invoked conditionally." "$LINENO" 5
35370fi
35371if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035372 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035373Usually this means the macro was only invoked conditionally." "$LINENO" 5
35374fi
35375if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035376 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035377Usually this means the macro was only invoked conditionally." "$LINENO" 5
35378fi
cristyb1860752011-03-14 00:27:46 +000035379if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35380 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35381Usually this means the macro was only invoked conditionally." "$LINENO" 5
35382fi
cristy73bd4a52010-10-05 11:24:23 +000035383if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035384 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035385Usually this means the macro was only invoked conditionally." "$LINENO" 5
35386fi
35387if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035388 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035389Usually this means the macro was only invoked conditionally." "$LINENO" 5
35390fi
35391if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035392 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035393Usually this means the macro was only invoked conditionally." "$LINENO" 5
35394fi
35395if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035396 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035397Usually this means the macro was only invoked conditionally." "$LINENO" 5
35398fi
35399if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035400 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035401Usually this means the macro was only invoked conditionally." "$LINENO" 5
35402fi
35403if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035404 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035405Usually this means the macro was only invoked conditionally." "$LINENO" 5
35406fi
35407if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035408 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035409Usually this means the macro was only invoked conditionally." "$LINENO" 5
35410fi
35411if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035412 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035413Usually this means the macro was only invoked conditionally." "$LINENO" 5
35414fi
cristy3ed852e2009-09-05 21:47:34 +000035415
cristyda16f162011-02-19 23:52:17 +000035416: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035417ac_write_fail=0
35418ac_clean_files_save=$ac_clean_files
35419ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035420{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035421$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035422as_write_fail=0
35423cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035424#! $SHELL
35425# Generated by $as_me.
35426# Run this file to recreate the current configuration.
35427# Compiler output produced by configure, useful for debugging
35428# configure, is in config.log if it exists.
35429
35430debug=false
35431ac_cs_recheck=false
35432ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035433
cristy8b350f62009-11-15 23:12:43 +000035434SHELL=\${CONFIG_SHELL-$SHELL}
35435export SHELL
35436_ASEOF
35437cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35438## -------------------- ##
35439## M4sh Initialization. ##
35440## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035441
35442# Be more Bourne compatible
35443DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035444if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035445 emulate sh
35446 NULLCMD=:
35447 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35448 # is contrary to our usage. Disable this feature.
35449 alias -g '${1+"$@"}'='"$@"'
35450 setopt NO_GLOB_SUBST
35451else
cristy8b350f62009-11-15 23:12:43 +000035452 case `(set -o) 2>/dev/null` in #(
35453 *posix*) :
35454 set -o posix ;; #(
35455 *) :
35456 ;;
cristy3ed852e2009-09-05 21:47:34 +000035457esac
cristy3ed852e2009-09-05 21:47:34 +000035458fi
35459
35460
cristy3ed852e2009-09-05 21:47:34 +000035461as_nl='
35462'
35463export as_nl
35464# Printing a long string crashes Solaris 7 /usr/bin/printf.
35465as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35467as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035468# Prefer a ksh shell builtin over an external printf program on Solaris,
35469# but without wasting forks for bash or zsh.
35470if test -z "$BASH_VERSION$ZSH_VERSION" \
35471 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35472 as_echo='print -r --'
35473 as_echo_n='print -rn --'
35474elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035475 as_echo='printf %s\n'
35476 as_echo_n='printf %s'
35477else
35478 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35479 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35480 as_echo_n='/usr/ucb/echo -n'
35481 else
35482 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35483 as_echo_n_body='eval
35484 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035485 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035486 *"$as_nl"*)
35487 expr "X$arg" : "X\\(.*\\)$as_nl";
35488 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35489 esac;
35490 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35491 '
35492 export as_echo_n_body
35493 as_echo_n='sh -c $as_echo_n_body as_echo'
35494 fi
35495 export as_echo_body
35496 as_echo='sh -c $as_echo_body as_echo'
35497fi
35498
35499# The user is always right.
35500if test "${PATH_SEPARATOR+set}" != set; then
35501 PATH_SEPARATOR=:
35502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35503 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35504 PATH_SEPARATOR=';'
35505 }
35506fi
35507
cristy3ed852e2009-09-05 21:47:34 +000035508
35509# IFS
35510# We need space, tab and new line, in precisely that order. Quoting is
35511# there to prevent editors from complaining about space-tab.
35512# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35513# splitting by setting IFS to empty value.)
35514IFS=" "" $as_nl"
35515
35516# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035517as_myself=
cristy8b350f62009-11-15 23:12:43 +000035518case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035519 *[\\/]* ) as_myself=$0 ;;
35520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35521for as_dir in $PATH
35522do
35523 IFS=$as_save_IFS
35524 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35526 done
cristy3ed852e2009-09-05 21:47:34 +000035527IFS=$as_save_IFS
35528
35529 ;;
35530esac
35531# We did not find ourselves, most probably we were run as `sh COMMAND'
35532# in which case we are not to be found in the path.
35533if test "x$as_myself" = x; then
35534 as_myself=$0
35535fi
35536if test ! -f "$as_myself"; then
35537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035538 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035539fi
35540
cristy8b350f62009-11-15 23:12:43 +000035541# Unset variables that we do not need and which cause bugs (e.g. in
35542# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35543# suppresses any "Segmentation fault" message there. '((' could
35544# trigger a bug in pdksh 5.2.14.
35545for as_var in BASH_ENV ENV MAIL MAILPATH
35546do eval test x\${$as_var+set} = xset \
35547 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035548done
35549PS1='$ '
35550PS2='> '
35551PS4='+ '
35552
35553# NLS nuisances.
35554LC_ALL=C
35555export LC_ALL
35556LANGUAGE=C
35557export LANGUAGE
35558
cristy8b350f62009-11-15 23:12:43 +000035559# CDPATH.
35560(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35561
35562
cristy98dddb52010-11-04 00:30:15 +000035563# as_fn_error STATUS ERROR [LINENO LOG_FD]
35564# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035565# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35566# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035567# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035568as_fn_error ()
35569{
cristy98dddb52010-11-04 00:30:15 +000035570 as_status=$1; test $as_status -eq 0 && as_status=1
35571 if test "$4"; then
35572 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35573 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035574 fi
cristy98dddb52010-11-04 00:30:15 +000035575 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035576 as_fn_exit $as_status
35577} # as_fn_error
35578
35579
35580# as_fn_set_status STATUS
35581# -----------------------
35582# Set $? to STATUS, without forking.
35583as_fn_set_status ()
35584{
35585 return $1
35586} # as_fn_set_status
35587
35588# as_fn_exit STATUS
35589# -----------------
35590# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35591as_fn_exit ()
35592{
35593 set +e
35594 as_fn_set_status $1
35595 exit $1
35596} # as_fn_exit
35597
35598# as_fn_unset VAR
35599# ---------------
35600# Portably unset VAR.
35601as_fn_unset ()
35602{
35603 { eval $1=; unset $1;}
35604}
35605as_unset=as_fn_unset
35606# as_fn_append VAR VALUE
35607# ----------------------
35608# Append the text in VALUE to the end of the definition contained in VAR. Take
35609# advantage of any shell optimizations that allow amortized linear growth over
35610# repeated appends, instead of the typical quadratic growth present in naive
35611# implementations.
35612if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35613 eval 'as_fn_append ()
35614 {
35615 eval $1+=\$2
35616 }'
35617else
35618 as_fn_append ()
35619 {
35620 eval $1=\$$1\$2
35621 }
35622fi # as_fn_append
35623
35624# as_fn_arith ARG...
35625# ------------------
35626# Perform arithmetic evaluation on the ARGs, and store the result in the
35627# global $as_val. Take advantage of shells that can avoid forks. The arguments
35628# must be portable across $(()) and expr.
35629if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35630 eval 'as_fn_arith ()
35631 {
35632 as_val=$(( $* ))
35633 }'
35634else
35635 as_fn_arith ()
35636 {
35637 as_val=`expr "$@" || test $? -eq 1`
35638 }
35639fi # as_fn_arith
35640
35641
cristy3ed852e2009-09-05 21:47:34 +000035642if expr a : '\(a\)' >/dev/null 2>&1 &&
35643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35644 as_expr=expr
35645else
35646 as_expr=false
35647fi
35648
35649if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35650 as_basename=basename
35651else
35652 as_basename=false
35653fi
35654
cristy8b350f62009-11-15 23:12:43 +000035655if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35656 as_dirname=dirname
35657else
35658 as_dirname=false
35659fi
cristy3ed852e2009-09-05 21:47:34 +000035660
cristy3ed852e2009-09-05 21:47:34 +000035661as_me=`$as_basename -- "$0" ||
35662$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35663 X"$0" : 'X\(//\)$' \| \
35664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35665$as_echo X/"$0" |
35666 sed '/^.*\/\([^/][^/]*\)\/*$/{
35667 s//\1/
35668 q
35669 }
35670 /^X\/\(\/\/\)$/{
35671 s//\1/
35672 q
35673 }
35674 /^X\/\(\/\).*/{
35675 s//\1/
35676 q
35677 }
35678 s/.*/./; q'`
35679
cristy8b350f62009-11-15 23:12:43 +000035680# Avoid depending upon Character Ranges.
35681as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35682as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35683as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35684as_cr_digits='0123456789'
35685as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035686
35687ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035688case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035689-n*)
cristy8b350f62009-11-15 23:12:43 +000035690 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035691 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035692 xy) ECHO_C='\c';;
35693 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35694 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035695 esac;;
35696*)
35697 ECHO_N='-n';;
35698esac
cristy3ed852e2009-09-05 21:47:34 +000035699
35700rm -f conf$$ conf$$.exe conf$$.file
35701if test -d conf$$.dir; then
35702 rm -f conf$$.dir/conf$$.file
35703else
35704 rm -f conf$$.dir
35705 mkdir conf$$.dir 2>/dev/null
35706fi
35707if (echo >conf$$.file) 2>/dev/null; then
35708 if ln -s conf$$.file conf$$ 2>/dev/null; then
35709 as_ln_s='ln -s'
35710 # ... but there are two gotchas:
35711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35713 # In both cases, we have to default to `cp -p'.
35714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35715 as_ln_s='cp -p'
35716 elif ln conf$$.file conf$$ 2>/dev/null; then
35717 as_ln_s=ln
35718 else
35719 as_ln_s='cp -p'
35720 fi
35721else
35722 as_ln_s='cp -p'
35723fi
35724rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35725rmdir conf$$.dir 2>/dev/null
35726
cristy8b350f62009-11-15 23:12:43 +000035727
35728# as_fn_mkdir_p
35729# -------------
35730# Create "$as_dir" as a directory, including parents if necessary.
35731as_fn_mkdir_p ()
35732{
35733
35734 case $as_dir in #(
35735 -*) as_dir=./$as_dir;;
35736 esac
35737 test -d "$as_dir" || eval $as_mkdir_p || {
35738 as_dirs=
35739 while :; do
35740 case $as_dir in #(
35741 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35742 *) as_qdir=$as_dir;;
35743 esac
35744 as_dirs="'$as_qdir' $as_dirs"
35745 as_dir=`$as_dirname -- "$as_dir" ||
35746$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35747 X"$as_dir" : 'X\(//\)[^/]' \| \
35748 X"$as_dir" : 'X\(//\)$' \| \
35749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35750$as_echo X"$as_dir" |
35751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35752 s//\1/
35753 q
35754 }
35755 /^X\(\/\/\)[^/].*/{
35756 s//\1/
35757 q
35758 }
35759 /^X\(\/\/\)$/{
35760 s//\1/
35761 q
35762 }
35763 /^X\(\/\).*/{
35764 s//\1/
35765 q
35766 }
35767 s/.*/./; q'`
35768 test -d "$as_dir" && break
35769 done
35770 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035771 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035772
35773
35774} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035775if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035776 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035777else
35778 test -d ./-p && rmdir ./-p
35779 as_mkdir_p=false
35780fi
35781
35782if test -x / >/dev/null 2>&1; then
35783 as_test_x='test -x'
35784else
35785 if ls -dL / >/dev/null 2>&1; then
35786 as_ls_L_option=L
35787 else
35788 as_ls_L_option=
35789 fi
35790 as_test_x='
35791 eval sh -c '\''
35792 if test -d "$1"; then
35793 test -d "$1/.";
35794 else
cristy8b350f62009-11-15 23:12:43 +000035795 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035796 -*)set "./$1";;
35797 esac;
cristy8b350f62009-11-15 23:12:43 +000035798 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035799 ???[sx]*):;;*)false;;esac;fi
35800 '\'' sh
35801 '
35802fi
35803as_executable_p=$as_test_x
35804
35805# Sed expression to map a string onto a valid CPP name.
35806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35807
35808# Sed expression to map a string onto a valid variable name.
35809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35810
35811
35812exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035813## ----------------------------------- ##
35814## Main body of $CONFIG_STATUS script. ##
35815## ----------------------------------- ##
35816_ASEOF
35817test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035818
cristy8b350f62009-11-15 23:12:43 +000035819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35820# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035821# report actual input values of CONFIG_FILES etc. instead of their
35822# values after options handling.
35823ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035824This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035825generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035826
35827 CONFIG_FILES = $CONFIG_FILES
35828 CONFIG_HEADERS = $CONFIG_HEADERS
35829 CONFIG_LINKS = $CONFIG_LINKS
35830 CONFIG_COMMANDS = $CONFIG_COMMANDS
35831 $ $0 $@
35832
35833on `(hostname || uname -n) 2>/dev/null | sed 1q`
35834"
35835
35836_ACEOF
35837
35838case $ac_config_files in *"
35839"*) set x $ac_config_files; shift; ac_config_files=$*;;
35840esac
35841
35842case $ac_config_headers in *"
35843"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35844esac
35845
35846
35847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35848# Files that config.status was made for.
35849config_files="$ac_config_files"
35850config_headers="$ac_config_headers"
35851config_commands="$ac_config_commands"
35852
35853_ACEOF
35854
35855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35856ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035857\`$as_me' instantiates files and other configuration actions
35858from templates according to the current configuration. Unless the files
35859and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035860
cristy8b350f62009-11-15 23:12:43 +000035861Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035862
35863 -h, --help print this help, then exit
35864 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035865 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035866 -q, --quiet, --silent
35867 do not print progress messages
35868 -d, --debug don't remove temporary files
35869 --recheck update $as_me by reconfiguring in the same conditions
35870 --file=FILE[:TEMPLATE]
35871 instantiate the configuration file FILE
35872 --header=FILE[:TEMPLATE]
35873 instantiate the configuration header FILE
35874
35875Configuration files:
35876$config_files
35877
35878Configuration headers:
35879$config_headers
35880
35881Configuration commands:
35882$config_commands
35883
cristy8b350f62009-11-15 23:12:43 +000035884Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035885
35886_ACEOF
35887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035888ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035889ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035890ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035891configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035892 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035893
cristy98dddb52010-11-04 00:30:15 +000035894Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035895This config.status script is free software; the Free Software Foundation
35896gives unlimited permission to copy, distribute and modify it."
35897
35898ac_pwd='$ac_pwd'
35899srcdir='$srcdir'
35900INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035901MKDIR_P='$MKDIR_P'
35902AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035903test -n "\$AWK" || AWK=awk
35904_ACEOF
35905
35906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35907# The default lists apply if the user does not specify any file.
35908ac_need_defaults=:
35909while test $# != 0
35910do
35911 case $1 in
cristyda16f162011-02-19 23:52:17 +000035912 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035913 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35914 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35915 ac_shift=:
35916 ;;
cristyda16f162011-02-19 23:52:17 +000035917 --*=)
35918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35919 ac_optarg=
35920 ac_shift=:
35921 ;;
cristy3ed852e2009-09-05 21:47:34 +000035922 *)
35923 ac_option=$1
35924 ac_optarg=$2
35925 ac_shift=shift
35926 ;;
35927 esac
35928
35929 case $ac_option in
35930 # Handling of the options.
35931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35932 ac_cs_recheck=: ;;
35933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35934 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035935 --config | --confi | --conf | --con | --co | --c )
35936 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035937 --debug | --debu | --deb | --de | --d | -d )
35938 debug=: ;;
35939 --file | --fil | --fi | --f )
35940 $ac_shift
35941 case $ac_optarg in
35942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035943 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035944 esac
cristy8b350f62009-11-15 23:12:43 +000035945 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035946 ac_need_defaults=false;;
35947 --header | --heade | --head | --hea )
35948 $ac_shift
35949 case $ac_optarg in
35950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35951 esac
cristy8b350f62009-11-15 23:12:43 +000035952 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035953 ac_need_defaults=false;;
35954 --he | --h)
35955 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035956 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035957Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035958 --help | --hel | -h )
35959 $as_echo "$ac_cs_usage"; exit ;;
35960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35962 ac_cs_silent=: ;;
35963
35964 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035965 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035966Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035967
cristy8b350f62009-11-15 23:12:43 +000035968 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035969 ac_need_defaults=false ;;
35970
35971 esac
35972 shift
35973done
35974
35975ac_configure_extra_args=
35976
35977if $ac_cs_silent; then
35978 exec 6>/dev/null
35979 ac_configure_extra_args="$ac_configure_extra_args --silent"
35980fi
35981
35982_ACEOF
35983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35984if \$ac_cs_recheck; then
35985 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35986 shift
35987 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35988 CONFIG_SHELL='$SHELL'
35989 export CONFIG_SHELL
35990 exec "\$@"
35991fi
35992
35993_ACEOF
35994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35995exec 5>>config.log
35996{
35997 echo
35998 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35999## Running $as_me. ##
36000_ASBOX
36001 $as_echo "$ac_log"
36002} >&5
36003
36004_ACEOF
36005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036006#
36007# INIT-COMMANDS
36008#
36009PACKAGE="$PACKAGE"
36010AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36011
36012
36013# The HP-UX ksh and POSIX shell print the target directory to stdout
36014# if CDPATH is set.
36015(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36016
36017sed_quote_subst='$sed_quote_subst'
36018double_quote_subst='$double_quote_subst'
36019delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036020SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36021Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36022GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36023EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36024FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36025SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36026ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36027LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36028macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36029macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36030AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36031DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36032OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36033enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36034enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36035pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36036enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36037host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36038host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36039host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36040build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36041build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36042build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36043NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36044LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36045max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36046ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36047exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36048lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36049lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36050lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036051lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36052lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036053reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36054reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36055deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36056file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036057file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36058want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36059sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036060AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36061AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036062archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036063STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36064RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36065old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36066old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36067old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36068lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36069CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36070CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36071compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36072GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36073lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36074lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36075lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36076lt_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 +000036077nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36078lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036079objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36080MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36081lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036082lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036083lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036084lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36085lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36086need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036087MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036088DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36089NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36090LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36091OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36092OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36093libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36094shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36095extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36096archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36097enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36098export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36099whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36100compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36101old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36102old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36103archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36104archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36105module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36106module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36107with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36108allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36109no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36110hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36111hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36112hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36113hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36114hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36115hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36116hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36117hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36118inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36119link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036120always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36121export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36122exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36123include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36124prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036125postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036126file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36127variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36128need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36129need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36130version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36131runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36132shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36133shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36134libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36135library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36136soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36137install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36138postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36139postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36140finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36141finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36142hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36143sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36144sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36145hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36146enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36147enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36148enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36149old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36150striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36151compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36152predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36153postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36154predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36155postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36156compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36157LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36158reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36159reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36160old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36161compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36162GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36163lt_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 +000036164lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036165lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036166lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36167lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36168archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36169enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36170export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36171whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36172compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36173old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36174old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36175archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36176archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36177module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36178module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36179with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36180allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36181no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36182hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36183hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36184hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36185hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36186hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36187hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36188hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36189hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36190inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36191link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036192always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36193export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36194exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36195include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36196prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036197postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036198file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36199hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36200compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36201predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36202postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36203predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36204postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36205compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036206
36207LTCC='$LTCC'
36208LTCFLAGS='$LTCFLAGS'
36209compiler='$compiler_DEFAULT'
36210
cristy0c60a692010-11-04 01:09:47 +000036211# A function that is used when there is no print builtin or printf.
36212func_fallback_echo ()
36213{
36214 eval 'cat <<_LTECHO_EOF
36215\$1
36216_LTECHO_EOF'
36217}
36218
cristy73bd4a52010-10-05 11:24:23 +000036219# Quote evaled strings.
36220for var in SED \
36221GREP \
36222EGREP \
36223FGREP \
cristy0c60a692010-11-04 01:09:47 +000036224SHELL \
36225ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036226LD \
cristy0c60a692010-11-04 01:09:47 +000036227AS \
36228DLLTOOL \
36229OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000036230NM \
36231LN_S \
36232lt_SP2NL \
36233lt_NL2SP \
36234reload_flag \
36235deplibs_check_method \
36236file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036237file_magic_glob \
36238want_nocaseglob \
36239sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036240AR \
36241AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036242archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036243STRIP \
36244RANLIB \
36245CC \
36246CFLAGS \
36247compiler \
36248lt_cv_sys_global_symbol_pipe \
36249lt_cv_sys_global_symbol_to_cdecl \
36250lt_cv_sys_global_symbol_to_c_name_address \
36251lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036252nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036253lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036254lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036255lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036256lt_prog_compiler_static \
36257lt_cv_prog_compiler_c_o \
36258need_locks \
cristyda16f162011-02-19 23:52:17 +000036259MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036260DSYMUTIL \
36261NMEDIT \
36262LIPO \
36263OTOOL \
36264OTOOL64 \
36265shrext_cmds \
36266export_dynamic_flag_spec \
36267whole_archive_flag_spec \
36268compiler_needs_object \
36269with_gnu_ld \
36270allow_undefined_flag \
36271no_undefined_flag \
36272hardcode_libdir_flag_spec \
36273hardcode_libdir_flag_spec_ld \
36274hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036275exclude_expsyms \
36276include_expsyms \
36277file_list_spec \
36278variables_saved_for_relink \
36279libname_spec \
36280library_names_spec \
36281soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036282install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036283finish_eval \
36284old_striplib \
36285striplib \
36286compiler_lib_search_dirs \
36287predep_objects \
36288postdep_objects \
36289predeps \
36290postdeps \
36291compiler_lib_search_path \
36292LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036293reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036294compiler_CXX \
36295lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036296lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036297lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036298lt_prog_compiler_static_CXX \
36299lt_cv_prog_compiler_c_o_CXX \
36300export_dynamic_flag_spec_CXX \
36301whole_archive_flag_spec_CXX \
36302compiler_needs_object_CXX \
36303with_gnu_ld_CXX \
36304allow_undefined_flag_CXX \
36305no_undefined_flag_CXX \
36306hardcode_libdir_flag_spec_CXX \
36307hardcode_libdir_flag_spec_ld_CXX \
36308hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036309exclude_expsyms_CXX \
36310include_expsyms_CXX \
36311file_list_spec_CXX \
36312compiler_lib_search_dirs_CXX \
36313predep_objects_CXX \
36314postdep_objects_CXX \
36315predeps_CXX \
36316postdeps_CXX \
36317compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036318 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036319 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036320 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036321 ;;
36322 *)
36323 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36324 ;;
36325 esac
36326done
36327
36328# Double-quote double-evaled strings.
36329for var in reload_cmds \
36330old_postinstall_cmds \
36331old_postuninstall_cmds \
36332old_archive_cmds \
36333extract_expsyms_cmds \
36334old_archive_from_new_cmds \
36335old_archive_from_expsyms_cmds \
36336archive_cmds \
36337archive_expsym_cmds \
36338module_cmds \
36339module_expsym_cmds \
36340export_symbols_cmds \
36341prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036342postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036343postinstall_cmds \
36344postuninstall_cmds \
36345finish_cmds \
36346sys_lib_search_path_spec \
36347sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036348reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036349old_archive_cmds_CXX \
36350old_archive_from_new_cmds_CXX \
36351old_archive_from_expsyms_cmds_CXX \
36352archive_cmds_CXX \
36353archive_expsym_cmds_CXX \
36354module_cmds_CXX \
36355module_expsym_cmds_CXX \
36356export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036357prelink_cmds_CXX \
36358postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036359 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036360 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036361 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036362 ;;
36363 *)
36364 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36365 ;;
36366 esac
36367done
36368
cristy73bd4a52010-10-05 11:24:23 +000036369ac_aux_dir='$ac_aux_dir'
36370xsi_shell='$xsi_shell'
36371lt_shell_append='$lt_shell_append'
36372
36373# See if we are running on zsh, and set the options which allow our
36374# commands through without removal of \ escapes INIT.
36375if test -n "\${ZSH_VERSION+set}" ; then
36376 setopt NO_GLOB_SUBST
36377fi
36378
36379
36380 PACKAGE='$PACKAGE'
36381 VERSION='$VERSION'
36382 TIMESTAMP='$TIMESTAMP'
36383 RM='$RM'
36384 ofile='$ofile'
36385
36386
36387
36388
36389
36390
cristy3ed852e2009-09-05 21:47:34 +000036391_ACEOF
36392
36393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36394
36395# Handling of arguments.
36396for ac_config_target in $ac_config_targets
36397do
36398 case $ac_config_target in
36399 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036400 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036401 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36402 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36403 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36404 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36405 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036406 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036407 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36408 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36409 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36410 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36411 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036412 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036413 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36414 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036415 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36416 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36417 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036418 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36419 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36420 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36421 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36422 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36423 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36424 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36425 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36426 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36427 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36428 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36429 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36430 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36431 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36432 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36433 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36434 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036435 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36436 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036437 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36438 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036439 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36440 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036441 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036442 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36443 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36444
cristy98dddb52010-11-04 00:30:15 +000036445 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036446 esac
36447done
36448
36449
36450# If the user did not use the arguments to specify the items to instantiate,
36451# then the envvar interface is used. Set only those that are not.
36452# We use the long form for the default assignment because of an extremely
36453# bizarre bug on SunOS 4.1.3.
36454if $ac_need_defaults; then
36455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36458fi
36459
36460# Have a temporary directory for convenience. Make it in the build tree
36461# simply because there is no reason against having it here, and in addition,
36462# creating and moving files from /tmp can sometimes cause problems.
36463# Hook for its removal unless debugging.
36464# Note that there is a small window in which the directory will not be cleaned:
36465# after its creation but before its name has been assigned to `$tmp'.
36466$debug ||
36467{
cristyda16f162011-02-19 23:52:17 +000036468 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036469 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036470 : "${ac_tmp:=$tmp}"
36471 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036472' 0
cristy8b350f62009-11-15 23:12:43 +000036473 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036474}
36475# Create a (secure) tmp directory for tmp files.
36476
36477{
36478 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036479 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036480} ||
36481{
36482 tmp=./conf$$-$RANDOM
36483 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036484} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036485ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036486
36487# Set up the scripts for CONFIG_FILES section.
36488# No need to generate them if there are no CONFIG_FILES.
36489# This happens for instance with `./config.status config.h'.
36490if test -n "$CONFIG_FILES"; then
36491
36492
cristy8b350f62009-11-15 23:12:43 +000036493ac_cr=`echo X | tr X '\015'`
36494# On cygwin, bash can eat \r inside `` if the user requested igncr.
36495# But we know of no other shell where ac_cr would be empty at this
36496# point, so we can use a bashism as a fallback.
36497if test "x$ac_cr" = x; then
36498 eval ac_cr=\$\'\\r\'
36499fi
cristy3ed852e2009-09-05 21:47:34 +000036500ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36501if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036502 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036503else
36504 ac_cs_awk_cr=$ac_cr
36505fi
36506
cristyda16f162011-02-19 23:52:17 +000036507echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036508_ACEOF
36509
36510
36511{
36512 echo "cat >conf$$subs.awk <<_ACEOF" &&
36513 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36514 echo "_ACEOF"
36515} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36517ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036518ac_delim='%!_!# '
36519for ac_last_try in false false false false false :; do
36520 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036522
36523 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36524 if test $ac_delim_n = $ac_delim_num; then
36525 break
36526 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036528 else
36529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36530 fi
36531done
36532rm -f conf$$subs.sh
36533
36534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036535cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036536_ACEOF
36537sed -n '
36538h
36539s/^/S["/; s/!.*/"]=/
36540p
36541g
36542s/^[^!]*!//
36543:repl
36544t repl
36545s/'"$ac_delim"'$//
36546t delim
36547:nl
36548h
cristycd4c5312009-11-22 01:19:08 +000036549s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036550t more1
36551s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36552p
36553n
36554b repl
36555:more1
36556s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36557p
36558g
36559s/.\{148\}//
36560t nl
36561:delim
36562h
cristycd4c5312009-11-22 01:19:08 +000036563s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036564t more2
36565s/["\\]/\\&/g; s/^/"/; s/$/"/
36566p
36567b
36568:more2
36569s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36570p
36571g
36572s/.\{148\}//
36573t delim
36574' <conf$$subs.awk | sed '
36575/^[^""]/{
36576 N
36577 s/\n//
36578}
36579' >>$CONFIG_STATUS || ac_write_fail=1
36580rm -f conf$$subs.awk
36581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36582_ACAWK
cristyda16f162011-02-19 23:52:17 +000036583cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036584 for (key in S) S_is_set[key] = 1
36585 FS = ""
36586
36587}
36588{
36589 line = $ 0
36590 nfields = split(line, field, "@")
36591 substed = 0
36592 len = length(field[1])
36593 for (i = 2; i < nfields; i++) {
36594 key = field[i]
36595 keylen = length(key)
36596 if (S_is_set[key]) {
36597 value = S[key]
36598 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36599 len += length(value) + length(field[++i])
36600 substed = 1
36601 } else
36602 len += 1 + keylen
36603 }
36604
36605 print line
36606}
36607
36608_ACAWK
36609_ACEOF
36610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36611if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36612 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36613else
36614 cat
cristyda16f162011-02-19 23:52:17 +000036615fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036616 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036617_ACEOF
36618
cristy98dddb52010-11-04 00:30:15 +000036619# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36620# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036621# trailing colons and then remove the whole line if VPATH becomes empty
36622# (actually we leave an empty line to preserve line numbers).
36623if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036624 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36625h
36626s///
36627s/^/:/
36628s/[ ]*$/:/
36629s/:\$(srcdir):/:/g
36630s/:\${srcdir}:/:/g
36631s/:@srcdir@:/:/g
36632s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036633s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036634x
36635s/\(=[ ]*\).*/\1/
36636G
36637s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036638s/^[^=]*=[ ]*$//
36639}'
36640fi
36641
36642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36643fi # test -n "$CONFIG_FILES"
36644
36645# Set up the scripts for CONFIG_HEADERS section.
36646# No need to generate them if there are no CONFIG_HEADERS.
36647# This happens for instance with `./config.status Makefile'.
36648if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036649cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036650BEGIN {
36651_ACEOF
36652
36653# Transform confdefs.h into an awk script `defines.awk', embedded as
36654# here-document in config.status, that substitutes the proper values into
36655# config.h.in to produce config.h.
36656
36657# Create a delimiter string that does not exist in confdefs.h, to ease
36658# handling of long lines.
36659ac_delim='%!_!# '
36660for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036661 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36662 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036663 break
36664 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036665 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036666 else
36667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36668 fi
36669done
36670
36671# For the awk script, D is an array of macro values keyed by name,
36672# likewise P contains macro parameters if any. Preserve backslash
36673# newline sequences.
36674
36675ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36676sed -n '
36677s/.\{148\}/&'"$ac_delim"'/g
36678t rset
36679:rset
36680s/^[ ]*#[ ]*define[ ][ ]*/ /
36681t def
36682d
36683:def
36684s/\\$//
36685t bsnl
36686s/["\\]/\\&/g
36687s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36688D["\1"]=" \3"/p
36689s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36690d
36691:bsnl
36692s/["\\]/\\&/g
36693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36694D["\1"]=" \3\\\\\\n"\\/p
36695t cont
36696s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36697t cont
36698d
36699:cont
36700n
36701s/.\{148\}/&'"$ac_delim"'/g
36702t clear
36703:clear
36704s/\\$//
36705t bsnlc
36706s/["\\]/\\&/g; s/^/"/; s/$/"/p
36707d
36708:bsnlc
36709s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36710b cont
36711' <confdefs.h | sed '
36712s/'"$ac_delim"'/"\\\
36713"/g' >>$CONFIG_STATUS || ac_write_fail=1
36714
36715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36716 for (key in D) D_is_set[key] = 1
36717 FS = ""
36718}
36719/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36720 line = \$ 0
36721 split(line, arg, " ")
36722 if (arg[1] == "#") {
36723 defundef = arg[2]
36724 mac1 = arg[3]
36725 } else {
36726 defundef = substr(arg[1], 2)
36727 mac1 = arg[2]
36728 }
36729 split(mac1, mac2, "(") #)
36730 macro = mac2[1]
36731 prefix = substr(line, 1, index(line, defundef) - 1)
36732 if (D_is_set[macro]) {
36733 # Preserve the white space surrounding the "#".
36734 print prefix "define", macro P[macro] D[macro]
36735 next
36736 } else {
36737 # Replace #undef with comments. This is necessary, for example,
36738 # in the case of _POSIX_SOURCE, which is predefined and required
36739 # on some systems where configure will not decide to define it.
36740 if (defundef == "undef") {
36741 print "/*", prefix defundef, macro, "*/"
36742 next
36743 }
36744 }
36745}
36746{ print }
36747_ACAWK
36748_ACEOF
36749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036750 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036751fi # test -n "$CONFIG_HEADERS"
36752
36753
36754eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36755shift
36756for ac_tag
36757do
36758 case $ac_tag in
36759 :[FHLC]) ac_mode=$ac_tag; continue;;
36760 esac
36761 case $ac_mode$ac_tag in
36762 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036763 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036764 :[FH]-) ac_tag=-:-;;
36765 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36766 esac
36767 ac_save_IFS=$IFS
36768 IFS=:
36769 set x $ac_tag
36770 IFS=$ac_save_IFS
36771 shift
36772 ac_file=$1
36773 shift
36774
36775 case $ac_mode in
36776 :L) ac_source=$1;;
36777 :[FH])
36778 ac_file_inputs=
36779 for ac_f
36780 do
36781 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036782 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036783 *) # Look for the file first in the build tree, then in the source tree
36784 # (if the path is not absolute). The absolute path cannot be DOS-style,
36785 # because $ac_f cannot contain `:'.
36786 test -f "$ac_f" ||
36787 case $ac_f in
36788 [\\/$]*) false;;
36789 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36790 esac ||
cristy98dddb52010-11-04 00:30:15 +000036791 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036792 esac
36793 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036794 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036795 done
36796
36797 # Let's still pretend it is `configure' which instantiates (i.e., don't
36798 # use $as_me), people would be surprised to read:
36799 # /* config.h. Generated by config.status. */
36800 configure_input='Generated from '`
36801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36802 `' by configure.'
36803 if test x"$ac_file" != x-; then
36804 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036806$as_echo "$as_me: creating $ac_file" >&6;}
36807 fi
36808 # Neutralize special characters interpreted by sed in replacement strings.
36809 case $configure_input in #(
36810 *\&* | *\|* | *\\* )
36811 ac_sed_conf_input=`$as_echo "$configure_input" |
36812 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36813 *) ac_sed_conf_input=$configure_input;;
36814 esac
36815
36816 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036817 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036819 esac
36820 ;;
36821 esac
36822
36823 ac_dir=`$as_dirname -- "$ac_file" ||
36824$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36825 X"$ac_file" : 'X\(//\)[^/]' \| \
36826 X"$ac_file" : 'X\(//\)$' \| \
36827 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36828$as_echo X"$ac_file" |
36829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36830 s//\1/
36831 q
36832 }
36833 /^X\(\/\/\)[^/].*/{
36834 s//\1/
36835 q
36836 }
36837 /^X\(\/\/\)$/{
36838 s//\1/
36839 q
36840 }
36841 /^X\(\/\).*/{
36842 s//\1/
36843 q
36844 }
36845 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036846 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036847 ac_builddir=.
36848
36849case "$ac_dir" in
36850.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36851*)
36852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36853 # A ".." for each directory in $ac_dir_suffix.
36854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36855 case $ac_top_builddir_sub in
36856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36858 esac ;;
36859esac
36860ac_abs_top_builddir=$ac_pwd
36861ac_abs_builddir=$ac_pwd$ac_dir_suffix
36862# for backward compatibility:
36863ac_top_builddir=$ac_top_build_prefix
36864
36865case $srcdir in
36866 .) # We are building in place.
36867 ac_srcdir=.
36868 ac_top_srcdir=$ac_top_builddir_sub
36869 ac_abs_top_srcdir=$ac_pwd ;;
36870 [\\/]* | ?:[\\/]* ) # Absolute name.
36871 ac_srcdir=$srcdir$ac_dir_suffix;
36872 ac_top_srcdir=$srcdir
36873 ac_abs_top_srcdir=$srcdir ;;
36874 *) # Relative name.
36875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36876 ac_top_srcdir=$ac_top_build_prefix$srcdir
36877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36878esac
36879ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36880
36881
36882 case $ac_mode in
36883 :F)
36884 #
36885 # CONFIG_FILE
36886 #
36887
36888 case $INSTALL in
36889 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36890 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36891 esac
cristy73bd4a52010-10-05 11:24:23 +000036892 ac_MKDIR_P=$MKDIR_P
36893 case $MKDIR_P in
36894 [\\/$]* | ?:[\\/]* ) ;;
36895 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36896 esac
cristy3ed852e2009-09-05 21:47:34 +000036897_ACEOF
36898
36899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36900# If the template does not know about datarootdir, expand it.
36901# FIXME: This hack should be removed a few years after 2.60.
36902ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036903ac_sed_dataroot='
36904/datarootdir/ {
36905 p
36906 q
36907}
36908/@datadir@/p
36909/@docdir@/p
36910/@infodir@/p
36911/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036912/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036913case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36914*datarootdir*) ac_datarootdir_seen=yes;;
36915*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036917$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36918_ACEOF
36919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36920 ac_datarootdir_hack='
36921 s&@datadir@&$datadir&g
36922 s&@docdir@&$docdir&g
36923 s&@infodir@&$infodir&g
36924 s&@localedir@&$localedir&g
36925 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036926 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036927esac
36928_ACEOF
36929
36930# Neutralize VPATH when `$srcdir' = `.'.
36931# Shell code in configure.ac might set extrasub.
36932# FIXME: do we really want to maintain this feature?
36933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36934ac_sed_extra="$ac_vpsub
36935$extrasub
36936_ACEOF
36937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36938:t
36939/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36940s|@configure_input@|$ac_sed_conf_input|;t t
36941s&@top_builddir@&$ac_top_builddir_sub&;t t
36942s&@top_build_prefix@&$ac_top_build_prefix&;t t
36943s&@srcdir@&$ac_srcdir&;t t
36944s&@abs_srcdir@&$ac_abs_srcdir&;t t
36945s&@top_srcdir@&$ac_top_srcdir&;t t
36946s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36947s&@builddir@&$ac_builddir&;t t
36948s&@abs_builddir@&$ac_abs_builddir&;t t
36949s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36950s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036951s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036952$ac_datarootdir_hack
36953"
cristyda16f162011-02-19 23:52:17 +000036954eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36955 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036956
36957test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036958 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36959 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36960 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036962which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036963$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036964which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036965
cristyda16f162011-02-19 23:52:17 +000036966 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036967 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036968 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36969 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036970 esac \
cristy98dddb52010-11-04 00:30:15 +000036971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036972 ;;
36973 :H)
36974 #
36975 # CONFIG_HEADER
36976 #
36977 if test x"$ac_file" != x-; then
36978 {
36979 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036980 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36981 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036983 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036984 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036985$as_echo "$as_me: $ac_file is unchanged" >&6;}
36986 else
36987 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036988 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036990 fi
36991 else
36992 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036994 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036995 fi
cristy73bd4a52010-10-05 11:24:23 +000036996# Compute "$ac_file"'s index in $config_headers.
36997_am_arg="$ac_file"
36998_am_stamp_count=1
36999for _am_header in $config_headers :; do
37000 case $_am_header in
37001 $_am_arg | $_am_arg:* )
37002 break ;;
37003 * )
37004 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37005 esac
37006done
37007echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37008$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37009 X"$_am_arg" : 'X\(//\)[^/]' \| \
37010 X"$_am_arg" : 'X\(//\)$' \| \
37011 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37012$as_echo X"$_am_arg" |
37013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37014 s//\1/
37015 q
37016 }
37017 /^X\(\/\/\)[^/].*/{
37018 s//\1/
37019 q
37020 }
37021 /^X\(\/\/\)$/{
37022 s//\1/
37023 q
37024 }
37025 /^X\(\/\).*/{
37026 s//\1/
37027 q
37028 }
37029 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037030 ;;
37031
cristy8b350f62009-11-15 23:12:43 +000037032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037033$as_echo "$as_me: executing $ac_file commands" >&6;}
37034 ;;
37035 esac
37036
37037
37038 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037039 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037040ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37041ac_prefix_conf_PKG=`echo MagickCore`
37042ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37043ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37044ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37045if test ".$ac_prefix_conf_INP" = "."; then
37046 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37047 case "$ac_file" in
37048 *.h) ac_prefix_conf_INP=$ac_file ;;
37049 *)
37050 esac
37051 test ".$ac_prefix_conf_INP" != "." && break
37052 done
37053fi
37054if test ".$ac_prefix_conf_INP" = "."; then
37055 case "$ac_prefix_conf_OUT" in
37056 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37057 ;;
37058 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37059 ;;
37060 *) ac_prefix_conf_INP=config.h
37061 ;;
37062 esac
37063fi
37064if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037065 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037066else
37067 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37068 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37069 fi fi
37070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37071$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37072 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037073 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37074 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37075 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37076 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37077 $as_echo "#endif/" >> conftest.prefix
37078 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37079 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37080 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037081 # now executing _script on _DEF input to create _OUT output file
37082 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37083 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37084 echo ' ' >>$tmp/pconfig.h
37085 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37086
37087 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37088 echo ' ' >>$tmp/pconfig.h
37089 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37090 echo "#endif" >>$tmp/pconfig.h
37091 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37092 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37093$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37094 else
37095 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37096$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37097 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37098 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37099 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37100$as_echo X"$ac_prefix_conf_OUT" |
37101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37102 s//\1/
37103 q
37104 }
37105 /^X\(\/\/\)[^/].*/{
37106 s//\1/
37107 q
37108 }
37109 /^X\(\/\/\)$/{
37110 s//\1/
37111 q
37112 }
37113 /^X\(\/\).*/{
37114 s//\1/
37115 q
37116 }
37117 s/.*/./; q'`
37118 as_dir="$ac_dir"; as_fn_mkdir_p
37119 rm -f "$ac_prefix_conf_OUT"
37120 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37121 fi
37122 cp conftest.prefix _configs.sed
37123 else
cristy98dddb52010-11-04 00:30:15 +000037124 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 +000037125 fi
37126 rm -f conftest.*
37127fi
37128 ;;
37129 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37130 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37131 # are listed without --file. Let's play safe and only enable the eval
37132 # if we detect the quoting.
37133 case $CONFIG_FILES in
37134 *\'*) eval set x "$CONFIG_FILES" ;;
37135 *) set x $CONFIG_FILES ;;
37136 esac
37137 shift
37138 for mf
37139 do
37140 # Strip MF so we end up with the name of the file.
37141 mf=`echo "$mf" | sed -e 's/:.*$//'`
37142 # Check whether this is an Automake generated Makefile or not.
37143 # We used to match only the files named `Makefile.in', but
37144 # some people rename them; so instead we look at the file content.
37145 # Grep'ing the first line is not enough: some people post-process
37146 # each Makefile.in and add a new line on top of each file to say so.
37147 # Grep'ing the whole file is not good either: AIX grep has a line
37148 # limit of 2048, but all sed's we know have understand at least 4000.
37149 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37150 dirpart=`$as_dirname -- "$mf" ||
37151$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37152 X"$mf" : 'X\(//\)[^/]' \| \
37153 X"$mf" : 'X\(//\)$' \| \
37154 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37155$as_echo X"$mf" |
37156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37157 s//\1/
37158 q
37159 }
37160 /^X\(\/\/\)[^/].*/{
37161 s//\1/
37162 q
37163 }
37164 /^X\(\/\/\)$/{
37165 s//\1/
37166 q
37167 }
37168 /^X\(\/\).*/{
37169 s//\1/
37170 q
37171 }
37172 s/.*/./; q'`
37173 else
37174 continue
37175 fi
37176 # Extract the definition of DEPDIR, am__include, and am__quote
37177 # from the Makefile without running `make'.
37178 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37179 test -z "$DEPDIR" && continue
37180 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37181 test -z "am__include" && continue
37182 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37183 # When using ansi2knr, U may be empty or an underscore; expand it
37184 U=`sed -n 's/^U = //p' < "$mf"`
37185 # Find all dependency output files, they are included files with
37186 # $(DEPDIR) in their names. We invoke sed twice because it is the
37187 # simplest approach to changing $(DEPDIR) to its actual value in the
37188 # expansion.
37189 for file in `sed -n "
37190 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37191 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37192 # Make sure the directory exists.
37193 test -f "$dirpart/$file" && continue
37194 fdir=`$as_dirname -- "$file" ||
37195$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37196 X"$file" : 'X\(//\)[^/]' \| \
37197 X"$file" : 'X\(//\)$' \| \
37198 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37199$as_echo X"$file" |
37200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37201 s//\1/
37202 q
37203 }
37204 /^X\(\/\/\)[^/].*/{
37205 s//\1/
37206 q
37207 }
37208 /^X\(\/\/\)$/{
37209 s//\1/
37210 q
37211 }
37212 /^X\(\/\).*/{
37213 s//\1/
37214 q
37215 }
37216 s/.*/./; q'`
37217 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37218 # echo "creating $dirpart/$file"
37219 echo '# dummy' > "$dirpart/$file"
37220 done
37221 done
37222}
37223 ;;
37224 "libtool":C)
37225
37226 # See if we are running on zsh, and set the options which allow our
37227 # commands through without removal of \ escapes.
37228 if test -n "${ZSH_VERSION+set}" ; then
37229 setopt NO_GLOB_SUBST
37230 fi
37231
37232 cfgfile="${ofile}T"
37233 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37234 $RM "$cfgfile"
37235
37236 cat <<_LT_EOF >> "$cfgfile"
37237#! $SHELL
37238
37239# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37240# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37241# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37242# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37243#
37244# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000037245# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37246# Inc.
cristy73bd4a52010-10-05 11:24:23 +000037247# Written by Gordon Matzigkeit, 1996
37248#
37249# This file is part of GNU Libtool.
37250#
37251# GNU Libtool is free software; you can redistribute it and/or
37252# modify it under the terms of the GNU General Public License as
37253# published by the Free Software Foundation; either version 2 of
37254# the License, or (at your option) any later version.
37255#
37256# As a special exception to the GNU General Public License,
37257# if you distribute this file as part of a program or library that
37258# is built using GNU Libtool, you may include this file under the
37259# same distribution terms that you use for the rest of that program.
37260#
37261# GNU Libtool is distributed in the hope that it will be useful,
37262# but WITHOUT ANY WARRANTY; without even the implied warranty of
37263# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37264# GNU General Public License for more details.
37265#
37266# You should have received a copy of the GNU General Public License
37267# along with GNU Libtool; see the file COPYING. If not, a copy
37268# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37269# obtained by writing to the Free Software Foundation, Inc.,
37270# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37271
37272
37273# The names of the tagged configurations supported by this script.
37274available_tags="CXX "
37275
37276# ### BEGIN LIBTOOL CONFIG
37277
37278# A sed program that does not truncate output.
37279SED=$lt_SED
37280
37281# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37282Xsed="\$SED -e 1s/^X//"
37283
37284# A grep program that handles long lines.
37285GREP=$lt_GREP
37286
37287# An ERE matcher.
37288EGREP=$lt_EGREP
37289
37290# A literal string matcher.
37291FGREP=$lt_FGREP
37292
cristy0c60a692010-11-04 01:09:47 +000037293# Shell to use when invoking shell scripts.
37294SHELL=$lt_SHELL
37295
37296# An echo program that protects backslashes.
37297ECHO=$lt_ECHO
37298
cristy73bd4a52010-10-05 11:24:23 +000037299# Which release of libtool.m4 was used?
37300macro_version=$macro_version
37301macro_revision=$macro_revision
37302
37303# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037304AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037305
37306# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037307DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037308
37309# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037310OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037311
37312# Whether or not to build shared libraries.
37313build_libtool_libs=$enable_shared
37314
37315# Whether or not to build static libraries.
37316build_old_libs=$enable_static
37317
37318# What type of objects to build.
37319pic_mode=$pic_mode
37320
37321# Whether or not to optimize for fast installation.
37322fast_install=$enable_fast_install
37323
37324# The host system.
37325host_alias=$host_alias
37326host=$host
37327host_os=$host_os
37328
37329# The build system.
37330build_alias=$build_alias
37331build=$build
37332build_os=$build_os
37333
37334# A BSD- or MS-compatible name lister.
37335NM=$lt_NM
37336
37337# Whether we need soft or hard links.
37338LN_S=$lt_LN_S
37339
37340# What is the maximum length of a command?
37341max_cmd_len=$max_cmd_len
37342
37343# Object file suffix (normally "o").
37344objext=$ac_objext
37345
37346# Executable file suffix (normally "").
37347exeext=$exeext
37348
37349# whether the shell understands "unset".
37350lt_unset=$lt_unset
37351
37352# turn spaces into newlines.
37353SP2NL=$lt_lt_SP2NL
37354
37355# turn newlines into spaces.
37356NL2SP=$lt_lt_NL2SP
37357
cristyda16f162011-02-19 23:52:17 +000037358# convert \$build file names to \$host format.
37359to_host_file_cmd=$lt_cv_to_host_file_cmd
37360
37361# convert \$build files to toolchain format.
37362to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37363
cristy73bd4a52010-10-05 11:24:23 +000037364# Method to check whether dependent libraries are shared objects.
37365deplibs_check_method=$lt_deplibs_check_method
37366
cristyda16f162011-02-19 23:52:17 +000037367# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037368file_magic_cmd=$lt_file_magic_cmd
37369
cristyda16f162011-02-19 23:52:17 +000037370# How to find potential files when deplibs_check_method = "file_magic".
37371file_magic_glob=$lt_file_magic_glob
37372
37373# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37374want_nocaseglob=$lt_want_nocaseglob
37375
37376# Command to associate shared and link libraries.
37377sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37378
cristy73bd4a52010-10-05 11:24:23 +000037379# The archiver.
37380AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037381
37382# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037383AR_FLAGS=$lt_AR_FLAGS
37384
cristyda16f162011-02-19 23:52:17 +000037385# How to feed a file listing to the archiver.
37386archiver_list_spec=$lt_archiver_list_spec
37387
cristy73bd4a52010-10-05 11:24:23 +000037388# A symbol stripping program.
37389STRIP=$lt_STRIP
37390
37391# Commands used to install an old-style archive.
37392RANLIB=$lt_RANLIB
37393old_postinstall_cmds=$lt_old_postinstall_cmds
37394old_postuninstall_cmds=$lt_old_postuninstall_cmds
37395
cristy0c60a692010-11-04 01:09:47 +000037396# Whether to use a lock for old archive extraction.
37397lock_old_archive_extraction=$lock_old_archive_extraction
37398
cristy73bd4a52010-10-05 11:24:23 +000037399# A C compiler.
37400LTCC=$lt_CC
37401
37402# LTCC compiler flags.
37403LTCFLAGS=$lt_CFLAGS
37404
37405# Take the output of nm and produce a listing of raw symbols and C names.
37406global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37407
37408# Transform the output of nm in a proper C declaration.
37409global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37410
37411# Transform the output of nm in a C name address pair.
37412global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37413
37414# Transform the output of nm in a C name address pair when lib prefix is needed.
37415global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37416
cristyda16f162011-02-19 23:52:17 +000037417# Specify filename containing input files for \$NM.
37418nm_file_list_spec=$lt_nm_file_list_spec
37419
37420# The root where to search for dependent libraries,and in which our libraries should be installed.
37421lt_sysroot=$lt_sysroot
37422
cristy73bd4a52010-10-05 11:24:23 +000037423# The name of the directory that contains temporary libtool files.
37424objdir=$objdir
37425
cristy73bd4a52010-10-05 11:24:23 +000037426# Used to examine libraries when file_magic_cmd begins with "file".
37427MAGIC_CMD=$MAGIC_CMD
37428
37429# Must we lock files when doing compilation?
37430need_locks=$lt_need_locks
37431
cristyda16f162011-02-19 23:52:17 +000037432# Manifest tool.
37433MANIFEST_TOOL=$lt_MANIFEST_TOOL
37434
cristy73bd4a52010-10-05 11:24:23 +000037435# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37436DSYMUTIL=$lt_DSYMUTIL
37437
37438# Tool to change global to local symbols on Mac OS X.
37439NMEDIT=$lt_NMEDIT
37440
37441# Tool to manipulate fat objects and archives on Mac OS X.
37442LIPO=$lt_LIPO
37443
37444# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37445OTOOL=$lt_OTOOL
37446
37447# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37448OTOOL64=$lt_OTOOL64
37449
37450# Old archive suffix (normally "a").
37451libext=$libext
37452
37453# Shared library suffix (normally ".so").
37454shrext_cmds=$lt_shrext_cmds
37455
37456# The commands to extract the exported symbol list from a shared archive.
37457extract_expsyms_cmds=$lt_extract_expsyms_cmds
37458
37459# Variables whose values should be saved in libtool wrapper scripts and
37460# restored at link time.
37461variables_saved_for_relink=$lt_variables_saved_for_relink
37462
37463# Do we need the "lib" prefix for modules?
37464need_lib_prefix=$need_lib_prefix
37465
37466# Do we need a version for libraries?
37467need_version=$need_version
37468
37469# Library versioning type.
37470version_type=$version_type
37471
37472# Shared library runtime path variable.
37473runpath_var=$runpath_var
37474
37475# Shared library path variable.
37476shlibpath_var=$shlibpath_var
37477
37478# Is shlibpath searched before the hard-coded library search path?
37479shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37480
37481# Format of library name prefix.
37482libname_spec=$lt_libname_spec
37483
37484# List of archive names. First name is the real one, the rest are links.
37485# The last name is the one that the linker finds with -lNAME
37486library_names_spec=$lt_library_names_spec
37487
37488# The coded name of the library, if different from the real name.
37489soname_spec=$lt_soname_spec
37490
cristy0c60a692010-11-04 01:09:47 +000037491# Permission mode override for installation of shared libraries.
37492install_override_mode=$lt_install_override_mode
37493
cristy73bd4a52010-10-05 11:24:23 +000037494# Command to use after installation of a shared archive.
37495postinstall_cmds=$lt_postinstall_cmds
37496
37497# Command to use after uninstallation of a shared archive.
37498postuninstall_cmds=$lt_postuninstall_cmds
37499
37500# Commands used to finish a libtool library installation in a directory.
37501finish_cmds=$lt_finish_cmds
37502
37503# As "finish_cmds", except a single script fragment to be evaled but
37504# not shown.
37505finish_eval=$lt_finish_eval
37506
37507# Whether we should hardcode library paths into libraries.
37508hardcode_into_libs=$hardcode_into_libs
37509
37510# Compile-time system search path for libraries.
37511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37512
37513# Run-time system search path for libraries.
37514sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37515
37516# Whether dlopen is supported.
37517dlopen_support=$enable_dlopen
37518
37519# Whether dlopen of programs is supported.
37520dlopen_self=$enable_dlopen_self
37521
37522# Whether dlopen of statically linked programs is supported.
37523dlopen_self_static=$enable_dlopen_self_static
37524
37525# Commands to strip libraries.
37526old_striplib=$lt_old_striplib
37527striplib=$lt_striplib
37528
37529
37530# The linker used to build libraries.
37531LD=$lt_LD
37532
cristy0c60a692010-11-04 01:09:47 +000037533# How to create reloadable object files.
37534reload_flag=$lt_reload_flag
37535reload_cmds=$lt_reload_cmds
37536
cristy73bd4a52010-10-05 11:24:23 +000037537# Commands used to build an old-style archive.
37538old_archive_cmds=$lt_old_archive_cmds
37539
37540# A language specific compiler.
37541CC=$lt_compiler
37542
37543# Is the compiler the GNU compiler?
37544with_gcc=$GCC
37545
37546# Compiler flag to turn off builtin functions.
37547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37548
cristy73bd4a52010-10-05 11:24:23 +000037549# Additional compiler flags for building library objects.
37550pic_flag=$lt_lt_prog_compiler_pic
37551
cristyda16f162011-02-19 23:52:17 +000037552# How to pass a linker flag through the compiler.
37553wl=$lt_lt_prog_compiler_wl
37554
cristy73bd4a52010-10-05 11:24:23 +000037555# Compiler flag to prevent dynamic linking.
37556link_static_flag=$lt_lt_prog_compiler_static
37557
37558# Does compiler simultaneously support -c and -o options?
37559compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37560
37561# Whether or not to add -lc for building shared libraries.
37562build_libtool_need_lc=$archive_cmds_need_lc
37563
37564# Whether or not to disallow shared libs when runtime libs are static.
37565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37566
37567# Compiler flag to allow reflexive dlopens.
37568export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37569
37570# Compiler flag to generate shared objects directly from archives.
37571whole_archive_flag_spec=$lt_whole_archive_flag_spec
37572
37573# Whether the compiler copes with passing no objects directly.
37574compiler_needs_object=$lt_compiler_needs_object
37575
37576# Create an old-style archive from a shared archive.
37577old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37578
37579# Create a temporary old-style archive to link instead of a shared archive.
37580old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37581
37582# Commands used to build a shared archive.
37583archive_cmds=$lt_archive_cmds
37584archive_expsym_cmds=$lt_archive_expsym_cmds
37585
37586# Commands used to build a loadable module if different from building
37587# a shared archive.
37588module_cmds=$lt_module_cmds
37589module_expsym_cmds=$lt_module_expsym_cmds
37590
37591# Whether we are building with GNU ld or not.
37592with_gnu_ld=$lt_with_gnu_ld
37593
37594# Flag that allows shared libraries with undefined symbols to be built.
37595allow_undefined_flag=$lt_allow_undefined_flag
37596
37597# Flag that enforces no undefined symbols.
37598no_undefined_flag=$lt_no_undefined_flag
37599
37600# Flag to hardcode \$libdir into a binary during linking.
37601# This must work even if \$libdir does not exist
37602hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37603
37604# If ld is used when linking, flag to hardcode \$libdir into a binary
37605# during linking. This must work even if \$libdir does not exist.
37606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37607
37608# Whether we need a single "-rpath" flag with a separated argument.
37609hardcode_libdir_separator=$lt_hardcode_libdir_separator
37610
37611# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37612# DIR into the resulting binary.
37613hardcode_direct=$hardcode_direct
37614
37615# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37616# DIR into the resulting binary and the resulting library dependency is
37617# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37618# library is relocated.
37619hardcode_direct_absolute=$hardcode_direct_absolute
37620
37621# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37622# into the resulting binary.
37623hardcode_minus_L=$hardcode_minus_L
37624
37625# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37626# into the resulting binary.
37627hardcode_shlibpath_var=$hardcode_shlibpath_var
37628
37629# Set to "yes" if building a shared library automatically hardcodes DIR
37630# into the library and all subsequent libraries and executables linked
37631# against it.
37632hardcode_automatic=$hardcode_automatic
37633
37634# Set to yes if linker adds runtime paths of dependent libraries
37635# to runtime path list.
37636inherit_rpath=$inherit_rpath
37637
37638# Whether libtool must link a program against all its dependency libraries.
37639link_all_deplibs=$link_all_deplibs
37640
cristy73bd4a52010-10-05 11:24:23 +000037641# Set to "yes" if exported symbols are required.
37642always_export_symbols=$always_export_symbols
37643
37644# The commands to list exported symbols.
37645export_symbols_cmds=$lt_export_symbols_cmds
37646
37647# Symbols that should not be listed in the preloaded symbols.
37648exclude_expsyms=$lt_exclude_expsyms
37649
37650# Symbols that must always be exported.
37651include_expsyms=$lt_include_expsyms
37652
37653# Commands necessary for linking programs (against libraries) with templates.
37654prelink_cmds=$lt_prelink_cmds
37655
cristyda16f162011-02-19 23:52:17 +000037656# Commands necessary for finishing linking programs.
37657postlink_cmds=$lt_postlink_cmds
37658
cristy73bd4a52010-10-05 11:24:23 +000037659# Specify filename containing input files.
37660file_list_spec=$lt_file_list_spec
37661
37662# How to hardcode a shared library path into an executable.
37663hardcode_action=$hardcode_action
37664
37665# The directories searched by this compiler when creating a shared library.
37666compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37667
37668# Dependencies to place before and after the objects being linked to
37669# create a shared library.
37670predep_objects=$lt_predep_objects
37671postdep_objects=$lt_postdep_objects
37672predeps=$lt_predeps
37673postdeps=$lt_postdeps
37674
37675# The library search path used internally by the compiler when linking
37676# a shared library.
37677compiler_lib_search_path=$lt_compiler_lib_search_path
37678
37679# ### END LIBTOOL CONFIG
37680
37681_LT_EOF
37682
37683 case $host_os in
37684 aix3*)
37685 cat <<\_LT_EOF >> "$cfgfile"
37686# AIX sometimes has problems with the GCC collect2 program. For some
37687# reason, if we set the COLLECT_NAMES environment variable, the problems
37688# vanish in a puff of smoke.
37689if test "X${COLLECT_NAMES+set}" != Xset; then
37690 COLLECT_NAMES=
37691 export COLLECT_NAMES
37692fi
37693_LT_EOF
37694 ;;
37695 esac
37696
37697
37698ltmain="$ac_aux_dir/ltmain.sh"
37699
37700
37701 # We use sed instead of cat because bash on DJGPP gets confused if
37702 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37703 # text mode, it properly converts lines to CR/LF. This bash problem
37704 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037705 sed '$q' "$ltmain" >> "$cfgfile" \
37706 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037707
cristyda16f162011-02-19 23:52:17 +000037708 if test x"$xsi_shell" = xyes; then
37709 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37710func_dirname ()\
37711{\
37712\ case ${1} in\
37713\ */*) func_dirname_result="${1%/*}${2}" ;;\
37714\ * ) func_dirname_result="${3}" ;;\
37715\ esac\
37716} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37717 && mv -f "$cfgfile.tmp" "$cfgfile" \
37718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37719test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037720
37721
cristyda16f162011-02-19 23:52:17 +000037722 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37723func_basename ()\
37724{\
37725\ func_basename_result="${1##*/}"\
37726} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37727 && mv -f "$cfgfile.tmp" "$cfgfile" \
37728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37729test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037730
37731
cristyda16f162011-02-19 23:52:17 +000037732 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37733func_dirname_and_basename ()\
37734{\
37735\ case ${1} in\
37736\ */*) func_dirname_result="${1%/*}${2}" ;;\
37737\ * ) func_dirname_result="${3}" ;;\
37738\ esac\
37739\ func_basename_result="${1##*/}"\
37740} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37741 && mv -f "$cfgfile.tmp" "$cfgfile" \
37742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37743test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037744
cristyda16f162011-02-19 23:52:17 +000037745
37746 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37747func_stripname ()\
37748{\
37749\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37750\ # positional parameters, so assign one to ordinary parameter first.\
37751\ func_stripname_result=${3}\
37752\ func_stripname_result=${func_stripname_result#"${1}"}\
37753\ func_stripname_result=${func_stripname_result%"${2}"}\
37754} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37755 && mv -f "$cfgfile.tmp" "$cfgfile" \
37756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37757test 0 -eq $? || _lt_function_replace_fail=:
37758
37759
37760 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37761func_split_long_opt ()\
37762{\
37763\ func_split_long_opt_name=${1%%=*}\
37764\ func_split_long_opt_arg=${1#*=}\
37765} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37766 && mv -f "$cfgfile.tmp" "$cfgfile" \
37767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37768test 0 -eq $? || _lt_function_replace_fail=:
37769
37770
37771 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37772func_split_short_opt ()\
37773{\
37774\ func_split_short_opt_arg=${1#??}\
37775\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37776} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37777 && mv -f "$cfgfile.tmp" "$cfgfile" \
37778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37779test 0 -eq $? || _lt_function_replace_fail=:
37780
37781
37782 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37783func_lo2o ()\
37784{\
37785\ case ${1} in\
37786\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37787\ *) func_lo2o_result=${1} ;;\
37788\ esac\
37789} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37790 && mv -f "$cfgfile.tmp" "$cfgfile" \
37791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37792test 0 -eq $? || _lt_function_replace_fail=:
37793
37794
37795 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37796func_xform ()\
37797{\
37798 func_xform_result=${1%.*}.lo\
37799} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37800 && mv -f "$cfgfile.tmp" "$cfgfile" \
37801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37802test 0 -eq $? || _lt_function_replace_fail=:
37803
37804
37805 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37806func_arith ()\
37807{\
37808 func_arith_result=$(( $* ))\
37809} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37810 && mv -f "$cfgfile.tmp" "$cfgfile" \
37811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37812test 0 -eq $? || _lt_function_replace_fail=:
37813
37814
37815 sed -e '/^func_len ()$/,/^} # func_len /c\
37816func_len ()\
37817{\
37818 func_len_result=${#1}\
37819} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37820 && mv -f "$cfgfile.tmp" "$cfgfile" \
37821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37822test 0 -eq $? || _lt_function_replace_fail=:
37823
37824fi
37825
37826if test x"$lt_shell_append" = xyes; then
37827 sed -e '/^func_append ()$/,/^} # func_append /c\
37828func_append ()\
37829{\
37830 eval "${1}+=\\${2}"\
37831} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37832 && mv -f "$cfgfile.tmp" "$cfgfile" \
37833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37834test 0 -eq $? || _lt_function_replace_fail=:
37835
37836
37837 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37838func_append_quoted ()\
37839{\
37840\ func_quote_for_eval "${2}"\
37841\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37842} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37843 && mv -f "$cfgfile.tmp" "$cfgfile" \
37844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37845test 0 -eq $? || _lt_function_replace_fail=:
37846
37847
37848 # Save a `func_append' function call where possible by direct use of '+='
37849 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37850 && mv -f "$cfgfile.tmp" "$cfgfile" \
37851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37852 test 0 -eq $? || _lt_function_replace_fail=:
37853else
37854 # Save a `func_append' function call even when '+=' is not available
37855 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37856 && mv -f "$cfgfile.tmp" "$cfgfile" \
37857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37858 test 0 -eq $? || _lt_function_replace_fail=:
37859fi
37860
37861if test x"$_lt_function_replace_fail" = x":"; then
37862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37863$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37864fi
37865
37866
37867 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037868 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37869 chmod +x "$ofile"
37870
37871
37872 cat <<_LT_EOF >> "$ofile"
37873
37874# ### BEGIN LIBTOOL TAG CONFIG: CXX
37875
37876# The linker used to build libraries.
37877LD=$lt_LD_CXX
37878
cristy0c60a692010-11-04 01:09:47 +000037879# How to create reloadable object files.
37880reload_flag=$lt_reload_flag_CXX
37881reload_cmds=$lt_reload_cmds_CXX
37882
cristy73bd4a52010-10-05 11:24:23 +000037883# Commands used to build an old-style archive.
37884old_archive_cmds=$lt_old_archive_cmds_CXX
37885
37886# A language specific compiler.
37887CC=$lt_compiler_CXX
37888
37889# Is the compiler the GNU compiler?
37890with_gcc=$GCC_CXX
37891
37892# Compiler flag to turn off builtin functions.
37893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37894
cristy73bd4a52010-10-05 11:24:23 +000037895# Additional compiler flags for building library objects.
37896pic_flag=$lt_lt_prog_compiler_pic_CXX
37897
cristyda16f162011-02-19 23:52:17 +000037898# How to pass a linker flag through the compiler.
37899wl=$lt_lt_prog_compiler_wl_CXX
37900
cristy73bd4a52010-10-05 11:24:23 +000037901# Compiler flag to prevent dynamic linking.
37902link_static_flag=$lt_lt_prog_compiler_static_CXX
37903
37904# Does compiler simultaneously support -c and -o options?
37905compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37906
37907# Whether or not to add -lc for building shared libraries.
37908build_libtool_need_lc=$archive_cmds_need_lc_CXX
37909
37910# Whether or not to disallow shared libs when runtime libs are static.
37911allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37912
37913# Compiler flag to allow reflexive dlopens.
37914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37915
37916# Compiler flag to generate shared objects directly from archives.
37917whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37918
37919# Whether the compiler copes with passing no objects directly.
37920compiler_needs_object=$lt_compiler_needs_object_CXX
37921
37922# Create an old-style archive from a shared archive.
37923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37924
37925# Create a temporary old-style archive to link instead of a shared archive.
37926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37927
37928# Commands used to build a shared archive.
37929archive_cmds=$lt_archive_cmds_CXX
37930archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37931
37932# Commands used to build a loadable module if different from building
37933# a shared archive.
37934module_cmds=$lt_module_cmds_CXX
37935module_expsym_cmds=$lt_module_expsym_cmds_CXX
37936
37937# Whether we are building with GNU ld or not.
37938with_gnu_ld=$lt_with_gnu_ld_CXX
37939
37940# Flag that allows shared libraries with undefined symbols to be built.
37941allow_undefined_flag=$lt_allow_undefined_flag_CXX
37942
37943# Flag that enforces no undefined symbols.
37944no_undefined_flag=$lt_no_undefined_flag_CXX
37945
37946# Flag to hardcode \$libdir into a binary during linking.
37947# This must work even if \$libdir does not exist
37948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37949
37950# If ld is used when linking, flag to hardcode \$libdir into a binary
37951# during linking. This must work even if \$libdir does not exist.
37952hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37953
37954# Whether we need a single "-rpath" flag with a separated argument.
37955hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37956
37957# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37958# DIR into the resulting binary.
37959hardcode_direct=$hardcode_direct_CXX
37960
37961# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37962# DIR into the resulting binary and the resulting library dependency is
37963# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37964# library is relocated.
37965hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37966
37967# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37968# into the resulting binary.
37969hardcode_minus_L=$hardcode_minus_L_CXX
37970
37971# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37972# into the resulting binary.
37973hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37974
37975# Set to "yes" if building a shared library automatically hardcodes DIR
37976# into the library and all subsequent libraries and executables linked
37977# against it.
37978hardcode_automatic=$hardcode_automatic_CXX
37979
37980# Set to yes if linker adds runtime paths of dependent libraries
37981# to runtime path list.
37982inherit_rpath=$inherit_rpath_CXX
37983
37984# Whether libtool must link a program against all its dependency libraries.
37985link_all_deplibs=$link_all_deplibs_CXX
37986
cristy73bd4a52010-10-05 11:24:23 +000037987# Set to "yes" if exported symbols are required.
37988always_export_symbols=$always_export_symbols_CXX
37989
37990# The commands to list exported symbols.
37991export_symbols_cmds=$lt_export_symbols_cmds_CXX
37992
37993# Symbols that should not be listed in the preloaded symbols.
37994exclude_expsyms=$lt_exclude_expsyms_CXX
37995
37996# Symbols that must always be exported.
37997include_expsyms=$lt_include_expsyms_CXX
37998
37999# Commands necessary for linking programs (against libraries) with templates.
38000prelink_cmds=$lt_prelink_cmds_CXX
38001
cristyda16f162011-02-19 23:52:17 +000038002# Commands necessary for finishing linking programs.
38003postlink_cmds=$lt_postlink_cmds_CXX
38004
cristy73bd4a52010-10-05 11:24:23 +000038005# Specify filename containing input files.
38006file_list_spec=$lt_file_list_spec_CXX
38007
38008# How to hardcode a shared library path into an executable.
38009hardcode_action=$hardcode_action_CXX
38010
38011# The directories searched by this compiler when creating a shared library.
38012compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38013
38014# Dependencies to place before and after the objects being linked to
38015# create a shared library.
38016predep_objects=$lt_predep_objects_CXX
38017postdep_objects=$lt_postdep_objects_CXX
38018predeps=$lt_predeps_CXX
38019postdeps=$lt_postdeps_CXX
38020
38021# The library search path used internally by the compiler when linking
38022# a shared library.
38023compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38024
38025# ### END LIBTOOL TAG CONFIG: CXX
38026_LT_EOF
38027
38028 ;;
cristy4c08aed2011-07-01 19:47:50 +000038029 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038030 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038031 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38032 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38033
38034 esac
38035done # for ac_tag
38036
38037
cristy8b350f62009-11-15 23:12:43 +000038038as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038039_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038040ac_clean_files=$ac_clean_files_save
38041
38042test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038043 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038044
38045
38046# configure is writing to config.log, and then calls config.status.
38047# config.status does its own redirection, appending to config.log.
38048# Unfortunately, on DOS this fails, as config.log is still kept open
38049# by configure, so config.status won't be able to write to it; its
38050# output is simply discarded. So we exec the FD to /dev/null,
38051# effectively closing config.log, so it can be properly (re)opened and
38052# appended to by config.status. When coming back to configure, we
38053# need to make the FD available again.
38054if test "$no_create" != yes; then
38055 ac_cs_success=:
38056 ac_config_status_args=
38057 test "$silent" = yes &&
38058 ac_config_status_args="$ac_config_status_args --quiet"
38059 exec 5>/dev/null
38060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38061 exec 5>>config.log
38062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38063 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038064 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038065fi
38066if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038068$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38069fi
38070
38071
38072rm -f magick-version
38073
cristy430a7312010-01-21 20:44:04 +000038074result_dejavu_font_dir='none'
38075if test "${dejavu_font_dir}x" != 'x'; then
38076 result_dejavu_font_dir=$dejavu_font_dir
38077fi
38078
cristy3ed852e2009-09-05 21:47:34 +000038079result_ghostscript_font_dir='none'
38080if test "${ghostscript_font_dir}x" != 'x'; then
38081 result_ghostscript_font_dir=$ghostscript_font_dir
38082fi
38083
38084result_windows_font_dir='none'
38085if test "${windows_font_dir}x" != 'x'; then
38086 result_windows_font_dir=${windows_font_dir}
38087fi
38088
cristy09b53e12011-10-14 12:47:22 +000038089{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038090ImageMagick is configured as follows. Please verify that this configuration
38091matches your expectations.
38092
38093Host system type: $host
38094Build system type: $build
38095
38096 Option Value
38097-------------------------------------------------------------------------------
38098Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38099Static libraries --enable-static=$enable_static $libtool_build_static_libs
38100Module support --with-modules=$with_modules $with_modules
38101GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38102Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38103High Dynamic Range Imagery
38104 --enable-hdri=$enable_hdri $enable_hdri
38105
38106Delegate Configuration:
38107BZLIB --with-bzlib=$with_bzlib $have_bzlib
38108Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038109Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038110DJVU --with-djvu=$with_djvu $have_djvu
38111DPS --with-dps=$with_dps $have_dps
38112FFTW --with-fftw=$with_fftw $have_fftw
38113FlashPIX --with-fpx=$with_fpx $have_fpx
38114FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38115FreeType --with-freetype=$with_freetype $have_freetype
38116GhostPCL None $PCLDelegate ($PCLVersion)
38117GhostXPS None $XPSDelegate ($XPSVersion)
38118Ghostscript None $PSDelegate ($GSVersion)
38119Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38120Ghostscript lib --with-gslib=$with_gslib $have_gslib
38121Graphviz --with-gvc=$with_gvc $have_gvc
38122JBIG --with-jbig=$with_jbig $have_jbig
38123JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38124JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038125LCMS v1 --with-lcms=$with_lcms $have_lcms
38126LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038127LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038128LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038129Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38130OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038131PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038132PERL --with-perl=$with_perl $have_perl
38133PNG --with-png=$with_png $have_png
38134RSVG --with-rsvg=$with_rsvg $have_rsvg
38135TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038136WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038137Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38138WMF --with-wmf=$with_wmf $have_wmf
38139X11 --with-x=$with_x $have_x
38140XML --with-xml=$with_xml $have_xml
38141ZLIB --with-zlib=$with_zlib $have_zlib
38142
38143X11 Configuration:
38144 X_CFLAGS = $X_CFLAGS
38145 X_PRE_LIBS = $X_PRE_LIBS
38146 X_LIBS = $X_LIBS
38147 X_EXTRA_LIBS = $X_EXTRA_LIBS
38148
38149Options used to compile and link:
38150 PREFIX = $PREFIX_DIR
38151 EXEC-PREFIX = $EXEC_PREFIX_DIR
38152 VERSION = $PACKAGE_VERSION
38153 CC = $CC
38154 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038155 CPPFLAGS = $MAGICK_CPPFLAGS
38156 PCFLAGS = $MAGICK_PCFLAGS
38157 DEFS = $DEFS
38158 LDFLAGS = $LDFLAGS
38159 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38160 LIBS = $MAGICK_LIBS
38161 CXX = $CXX
38162 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038163 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038164" >&5
cristy09b53e12011-10-14 12:47:22 +000038165$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038166ImageMagick is configured as follows. Please verify that this configuration
38167matches your expectations.
38168
38169Host system type: $host
38170Build system type: $build
38171
38172 Option Value
38173-------------------------------------------------------------------------------
38174Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38175Static libraries --enable-static=$enable_static $libtool_build_static_libs
38176Module support --with-modules=$with_modules $with_modules
38177GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38178Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38179High Dynamic Range Imagery
38180 --enable-hdri=$enable_hdri $enable_hdri
38181
38182Delegate Configuration:
38183BZLIB --with-bzlib=$with_bzlib $have_bzlib
38184Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038185Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038186DJVU --with-djvu=$with_djvu $have_djvu
38187DPS --with-dps=$with_dps $have_dps
38188FFTW --with-fftw=$with_fftw $have_fftw
38189FlashPIX --with-fpx=$with_fpx $have_fpx
38190FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38191FreeType --with-freetype=$with_freetype $have_freetype
38192GhostPCL None $PCLDelegate ($PCLVersion)
38193GhostXPS None $XPSDelegate ($XPSVersion)
38194Ghostscript None $PSDelegate ($GSVersion)
38195Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38196Ghostscript lib --with-gslib=$with_gslib $have_gslib
38197Graphviz --with-gvc=$with_gvc $have_gvc
38198JBIG --with-jbig=$with_jbig $have_jbig
38199JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38200JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038201LCMS v1 --with-lcms=$with_lcms $have_lcms
38202LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038203LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038204LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038205Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38206OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038207PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038208PERL --with-perl=$with_perl $have_perl
38209PNG --with-png=$with_png $have_png
38210RSVG --with-rsvg=$with_rsvg $have_rsvg
38211TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038212WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038213Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38214WMF --with-wmf=$with_wmf $have_wmf
38215X11 --with-x=$with_x $have_x
38216XML --with-xml=$with_xml $have_xml
38217ZLIB --with-zlib=$with_zlib $have_zlib
38218
38219X11 Configuration:
38220 X_CFLAGS = $X_CFLAGS
38221 X_PRE_LIBS = $X_PRE_LIBS
38222 X_LIBS = $X_LIBS
38223 X_EXTRA_LIBS = $X_EXTRA_LIBS
38224
38225Options used to compile and link:
38226 PREFIX = $PREFIX_DIR
38227 EXEC-PREFIX = $EXEC_PREFIX_DIR
38228 VERSION = $PACKAGE_VERSION
38229 CC = $CC
38230 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038231 CPPFLAGS = $MAGICK_CPPFLAGS
38232 PCFLAGS = $MAGICK_PCFLAGS
38233 DEFS = $DEFS
38234 LDFLAGS = $LDFLAGS
38235 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38236 LIBS = $MAGICK_LIBS
38237 CXX = $CXX
38238 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038239 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038240" >&6;}