blob: b17826b8a4da9686c0b903b29fe4dc6b2c34fb1c [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 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#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $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 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy73bd4a52010-10-05 11:24:23 +0000569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
cristy0c60a692010-11-04 01:09:47 +0000573
cristycd4c5312009-11-22 01:19:08 +0000574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000576
577# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000596PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000599PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000600PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000601
cristy4c08aed2011-07-01 19:47:50 +0000602ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618# include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
cristycd4c5312009-11-22 01:19:08 +0000640ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000646MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000685ZIP
cristy73bd4a52010-10-05 11:24:23 +0000686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000688P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000698dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000704UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000705TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000706SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000707SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000708RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000709RMDelegate
710RLEEncodeDelegate
711PSDelegate
712POVDelegate
713PGPDecodeDelegate
714PCLDelegate
715MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000716MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717MPEGEncodeDelegate
718MPEGDecodeDelegate
719MANDelegate
720LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000721LPRDelegate
722LPDelegate
723ILBMEncodeDelegate
724ILBMDecodeDelegate
725HTMLDecodeDelegate
726HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000727GnuplotDecodeDelegate
728MogrifyDelegate
729DisplayDelegate
730ConvertDelegate
731FIGDecodeDelegate
732EditorDelegate
733EchoDelegate
734DVIDecodeDelegate
735GVCDecodeDelegate
736DNGDecodeDelegate
737CatDelegate
738CGMDecodeDelegate
739BrowseDelegate
740BZIPDelegate
741BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000742AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000743SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000746DOCUMENTATION_PATH
747FILTER_PATH
748CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000751INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000752PERLMAINCC
753XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754XML_DELEGATE_FALSE
755XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000756xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000757WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000758WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000773RSVG_LIBS
774RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000775PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776PNG_DELEGATE_FALSE
777PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000778PANGOCAIRO_DELEGATE_FALSE
779PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000780PANGO_DELEGATE_FALSE
781PANGO_DELEGATE_TRUE
782PANGO_LIBS
783PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000784OPENEXR_DELEGATE_FALSE
785OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786OPENEXR_LIBS
787OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000788LZMA_DELEGATE_FALSE
789LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000790LZMA_LIBS
791LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000792LQR_DELEGATE_FALSE
793LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000794LQR_LIBS
795LQR_CFLAGS
796LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797LCMS_DELEGATE_FALSE
798LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800JP2_DELEGATE_FALSE
801JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803JPEG_DELEGATE_FALSE
804JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000805JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806JBIG_DELEGATE_FALSE
807JBIG_DELEGATE_TRUE
808GVC_DELEGATE_FALSE
809GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810GVC_LIBS
811GVC_CFLAGS
812GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813GS_DELEGATE_FALSE
814GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000818freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000819FONTCONFIG_DELEGATE_FALSE
820FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821FONTCONFIG_LIBS
822FONTCONFIG_CFLAGS
823FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824FPX_DELEGATE_FALSE
825FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827FFTW_DELEGATE_FALSE
828FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830DJVU_DELEGATE_FALSE
831DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833DPS_DELEGATE_FALSE
834DPS_DELEGATE_TRUE
835AUTOTRACE_DELEGATE_FALSE
836AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837AUTOTRACE_LIBS
838AUTOTRACE_CFLAGS
839LIB_DL
840ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841ZLIB_DELEGATE_FALSE
842ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843XEXT_LIBS
844X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000845X11_DELEGATE_FALSE
846X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847X_EXTRA_LIBS
848X_LIBS
849X_PRE_LIBS
850X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000851XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000852BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853BZLIB_DELEGATE_FALSE
854BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855CCMALLOCDelegate
856UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857HasUMEM_FALSE
858HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859THREAD_LIBS
860GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861WITH_MAGICK_PLUS_PLUS_FALSE
862WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000864MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000865POW_LIB
866LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000867UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000868UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000869UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000870UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000871UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000872UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000873INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000874INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000875UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000876UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000877INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000878INT32_T
879UINT16_T
880INT16_T
881UINT8_T
882INT8_T
883LIBRARY_EXTRA_CPPFLAGS
884MODULE_EXTRA_CPPFLAGS
885LIBSTDCLDFLAGS
886PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000887MAGICK_LT_RELEASE_OPTS
cristy3ed852e2009-09-05 21:47:34 +0000888QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894MAGICK_HDRI
895DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000896WITH_LTDL_FALSE
897WITH_LTDL_TRUE
898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
902LTDLOPEN
903LT_CONFIG_H
904CONVENIENCE_LTDL_FALSE
905CONVENIENCE_LTDL_TRUE
906INSTALL_LTDL_FALSE
907INSTALL_LTDL_TRUE
908ARGZ_H
909sys_symbol_underscore
910LIBADD_DL
911LT_DLPREOPEN
912LIBADD_DLD_LINK
913LIBADD_SHL_LOAD
914LIBADD_DLOPEN
915LT_DLLOADERS
916INCLTDL
917LTDLINCL
918LTDLDEPS
919LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000920LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000921CXXCPP
922OTOOL64
923OTOOL
924LIPO
925NMEDIT
926DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000927MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000928RANLIB
cristyda16f162011-02-19 23:52:17 +0000929ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000930AR
931NM
932ac_ct_DUMPBIN
933DUMPBIN
934LIBTOOL
935OBJDUMP
936DLLTOOL
937AS
cristy3ed852e2009-09-05 21:47:34 +0000938LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000939CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000940CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000941OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000942PTHREAD_CFLAGS
943PTHREAD_LIBS
944PTHREAD_CC
945ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000946SHAREARCH_DIR
947INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000948WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000957GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristya0b81c32010-01-22 02:54:33 +0000970EGREP
971GREP
972CPP
cristy73bd4a52010-10-05 11:24:23 +0000973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000976am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001003DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
1011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001048MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001057target_os
1058target_vendor
1059target_cpu
1060target
1061host_os
1062host_vendor
1063host_cpu
1064host
1065build_os
1066build_vendor
1067build_cpu
1068build
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071target_alias
1072host_alias
1073build_alias
1074LIBS
1075ECHO_T
1076ECHO_N
1077ECHO_C
1078DEFS
1079mandir
1080localedir
1081libdir
1082psdir
1083pdfdir
1084dvidir
1085htmldir
1086infodir
1087docdir
1088oldincludedir
1089includedir
1090localstatedir
1091sharedstatedir
1092sysconfdir
1093datadir
1094datarootdir
1095libexecdir
1096sbindir
1097bindir
1098program_transform_name
1099prefix
1100exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001101PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001102PACKAGE_BUGREPORT
1103PACKAGE_STRING
1104PACKAGE_VERSION
1105PACKAGE_TARNAME
1106PACKAGE_NAME
1107PATH_SEPARATOR
1108SHELL'
1109ac_subst_files=''
1110ac_user_opts='
1111enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001112enable_silent_rules
1113enable_dependency_tracking
1114with_gnu_ld
1115with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001116with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001117enable_bounds_checking
1118enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001119with_includearch_dir
1120with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001121with_threads
1122enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001123enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001124enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001125enable_shared
1126enable_static
1127with_pic
1128enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001129with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001130enable_libtool_lock
1131with_included_ltdl
1132with_ltdl_include
1133with_ltdl_lib
1134enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001135with_modules
1136enable_delegate_build
1137enable_deprecated
1138enable_installed
1139enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001140enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001141enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001142enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001143enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001144enable_ccmalloc
1145enable_efence
1146enable_prof
1147enable_gprof
1148enable_gcov
1149with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001150enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001151with_quantum_depth
1152with_cache
1153with_frozenpaths
1154with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001155with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001156with_perl
1157with_perl_options
1158with_umem
1159with_libstdc
1160with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001161with_x
cristy3ed852e2009-09-05 21:47:34 +00001162with_zlib
1163with_autotrace
1164with_dps
1165with_djvu
cristy430a7312010-01-21 20:44:04 +00001166with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001167with_fftw
1168with_fpx
1169with_fontconfig
1170with_freetype
1171with_gslib
1172with_fontpath
1173with_gs_font_dir
1174with_gvc
1175with_jbig
1176with_jpeg
1177with_jp2
1178with_lcms
cristy71203402010-06-18 13:12:03 +00001179with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001180with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001181with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001182with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001183with_pango
cristy3ed852e2009-09-05 21:47:34 +00001184with_png
1185with_rsvg
1186with_tiff
cristyb1860752011-03-14 00:27:46 +00001187with_webp
cristy3ed852e2009-09-05 21:47:34 +00001188with_windows_font_dir
1189with_wmf
1190with_xml
1191'
1192 ac_precious_vars='build_alias
1193host_alias
1194target_alias
1195CC
1196CFLAGS
1197LDFLAGS
1198LIBS
1199CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001200CPP
cristy3ed852e2009-09-05 21:47:34 +00001201CXX
1202CXXFLAGS
1203CCC
cristy73bd4a52010-10-05 11:24:23 +00001204PKG_CONFIG
1205CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001206XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001207AUTOTRACE_CFLAGS
1208AUTOTRACE_LIBS
1209FONTCONFIG_CFLAGS
1210FONTCONFIG_LIBS
1211GVC_CFLAGS
1212GVC_LIBS
1213LQR_CFLAGS
1214LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001215LZMA_CFLAGS
1216LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001217OPENEXR_CFLAGS
1218OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001219PANGO_CFLAGS
1220PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001221RSVG_CFLAGS
1222RSVG_LIBS
1223CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001224CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001225
1226
1227# Initialize some variables set by options.
1228ac_init_help=
1229ac_init_version=false
1230ac_unrecognized_opts=
1231ac_unrecognized_sep=
1232# The variables have the same names as the options, with
1233# dashes changed to underlines.
1234cache_file=/dev/null
1235exec_prefix=NONE
1236no_create=
1237no_recursion=
1238prefix=NONE
1239program_prefix=NONE
1240program_suffix=NONE
1241program_transform_name=s,x,x,
1242silent=
1243site=
1244srcdir=
1245verbose=
1246x_includes=NONE
1247x_libraries=NONE
1248
1249# Installation directory options.
1250# These are left unexpanded so users can "make install exec_prefix=/foo"
1251# and all the variables that are supposed to be based on exec_prefix
1252# by default will actually change.
1253# Use braces instead of parens because sh, perl, etc. also accept them.
1254# (The list follows the same order as the GNU Coding Standards.)
1255bindir='${exec_prefix}/bin'
1256sbindir='${exec_prefix}/sbin'
1257libexecdir='${exec_prefix}/libexec'
1258datarootdir='${prefix}/share'
1259datadir='${datarootdir}'
1260sysconfdir='${prefix}/etc'
1261sharedstatedir='${prefix}/com'
1262localstatedir='${prefix}/var'
1263includedir='${prefix}/include'
1264oldincludedir='/usr/include'
1265docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1266infodir='${datarootdir}/info'
1267htmldir='${docdir}'
1268dvidir='${docdir}'
1269pdfdir='${docdir}'
1270psdir='${docdir}'
1271libdir='${exec_prefix}/lib'
1272localedir='${datarootdir}/locale'
1273mandir='${datarootdir}/man'
1274
1275ac_prev=
1276ac_dashdash=
1277for ac_option
1278do
1279 # If the previous option needs an argument, assign it.
1280 if test -n "$ac_prev"; then
1281 eval $ac_prev=\$ac_option
1282 ac_prev=
1283 continue
1284 fi
1285
1286 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001287 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1288 *=) ac_optarg= ;;
1289 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001290 esac
1291
1292 # Accept the important Cygnus configure options, so we can diagnose typos.
1293
1294 case $ac_dashdash$ac_option in
1295 --)
1296 ac_dashdash=yes ;;
1297
1298 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1299 ac_prev=bindir ;;
1300 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1301 bindir=$ac_optarg ;;
1302
1303 -build | --build | --buil | --bui | --bu)
1304 ac_prev=build_alias ;;
1305 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1306 build_alias=$ac_optarg ;;
1307
1308 -cache-file | --cache-file | --cache-fil | --cache-fi \
1309 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1310 ac_prev=cache_file ;;
1311 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1312 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1313 cache_file=$ac_optarg ;;
1314
1315 --config-cache | -C)
1316 cache_file=config.cache ;;
1317
1318 -datadir | --datadir | --datadi | --datad)
1319 ac_prev=datadir ;;
1320 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1321 datadir=$ac_optarg ;;
1322
1323 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1324 | --dataroo | --dataro | --datar)
1325 ac_prev=datarootdir ;;
1326 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1327 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1328 datarootdir=$ac_optarg ;;
1329
1330 -disable-* | --disable-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001334 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339"enable_$ac_useropt"
1340"*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval enable_$ac_useropt=no ;;
1345
1346 -docdir | --docdir | --docdi | --doc | --do)
1347 ac_prev=docdir ;;
1348 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1349 docdir=$ac_optarg ;;
1350
1351 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1352 ac_prev=dvidir ;;
1353 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1354 dvidir=$ac_optarg ;;
1355
1356 -enable-* | --enable-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001360 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1364 *"
1365"enable_$ac_useropt"
1366"*) ;;
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1369 esac
1370 eval enable_$ac_useropt=\$ac_optarg ;;
1371
1372 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1373 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1374 | --exec | --exe | --ex)
1375 ac_prev=exec_prefix ;;
1376 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1377 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1378 | --exec=* | --exe=* | --ex=*)
1379 exec_prefix=$ac_optarg ;;
1380
1381 -gas | --gas | --ga | --g)
1382 # Obsolete; use --with-gas.
1383 with_gas=yes ;;
1384
1385 -help | --help | --hel | --he | -h)
1386 ac_init_help=long ;;
1387 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1388 ac_init_help=recursive ;;
1389 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1390 ac_init_help=short ;;
1391
1392 -host | --host | --hos | --ho)
1393 ac_prev=host_alias ;;
1394 -host=* | --host=* | --hos=* | --ho=*)
1395 host_alias=$ac_optarg ;;
1396
1397 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1398 ac_prev=htmldir ;;
1399 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1400 | --ht=*)
1401 htmldir=$ac_optarg ;;
1402
1403 -includedir | --includedir | --includedi | --included | --include \
1404 | --includ | --inclu | --incl | --inc)
1405 ac_prev=includedir ;;
1406 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1407 | --includ=* | --inclu=* | --incl=* | --inc=*)
1408 includedir=$ac_optarg ;;
1409
1410 -infodir | --infodir | --infodi | --infod | --info | --inf)
1411 ac_prev=infodir ;;
1412 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1413 infodir=$ac_optarg ;;
1414
1415 -libdir | --libdir | --libdi | --libd)
1416 ac_prev=libdir ;;
1417 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1418 libdir=$ac_optarg ;;
1419
1420 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1421 | --libexe | --libex | --libe)
1422 ac_prev=libexecdir ;;
1423 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1424 | --libexe=* | --libex=* | --libe=*)
1425 libexecdir=$ac_optarg ;;
1426
1427 -localedir | --localedir | --localedi | --localed | --locale)
1428 ac_prev=localedir ;;
1429 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1430 localedir=$ac_optarg ;;
1431
1432 -localstatedir | --localstatedir | --localstatedi | --localstated \
1433 | --localstate | --localstat | --localsta | --localst | --locals)
1434 ac_prev=localstatedir ;;
1435 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1436 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1437 localstatedir=$ac_optarg ;;
1438
1439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1440 ac_prev=mandir ;;
1441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1442 mandir=$ac_optarg ;;
1443
1444 -nfp | --nfp | --nf)
1445 # Obsolete; use --without-fp.
1446 with_fp=no ;;
1447
1448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1449 | --no-cr | --no-c | -n)
1450 no_create=yes ;;
1451
1452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1454 no_recursion=yes ;;
1455
1456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1458 | --oldin | --oldi | --old | --ol | --o)
1459 ac_prev=oldincludedir ;;
1460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1463 oldincludedir=$ac_optarg ;;
1464
1465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1466 ac_prev=prefix ;;
1467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1468 prefix=$ac_optarg ;;
1469
1470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1471 | --program-pre | --program-pr | --program-p)
1472 ac_prev=program_prefix ;;
1473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1475 program_prefix=$ac_optarg ;;
1476
1477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1478 | --program-suf | --program-su | --program-s)
1479 ac_prev=program_suffix ;;
1480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1482 program_suffix=$ac_optarg ;;
1483
1484 -program-transform-name | --program-transform-name \
1485 | --program-transform-nam | --program-transform-na \
1486 | --program-transform-n | --program-transform- \
1487 | --program-transform | --program-transfor \
1488 | --program-transfo | --program-transf \
1489 | --program-trans | --program-tran \
1490 | --progr-tra | --program-tr | --program-t)
1491 ac_prev=program_transform_name ;;
1492 -program-transform-name=* | --program-transform-name=* \
1493 | --program-transform-nam=* | --program-transform-na=* \
1494 | --program-transform-n=* | --program-transform-=* \
1495 | --program-transform=* | --program-transfor=* \
1496 | --program-transfo=* | --program-transf=* \
1497 | --program-trans=* | --program-tran=* \
1498 | --progr-tra=* | --program-tr=* | --program-t=*)
1499 program_transform_name=$ac_optarg ;;
1500
1501 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1502 ac_prev=pdfdir ;;
1503 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1504 pdfdir=$ac_optarg ;;
1505
1506 -psdir | --psdir | --psdi | --psd | --ps)
1507 ac_prev=psdir ;;
1508 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1509 psdir=$ac_optarg ;;
1510
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1513 silent=yes ;;
1514
1515 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1516 ac_prev=sbindir ;;
1517 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1518 | --sbi=* | --sb=*)
1519 sbindir=$ac_optarg ;;
1520
1521 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1522 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1523 | --sharedst | --shareds | --shared | --share | --shar \
1524 | --sha | --sh)
1525 ac_prev=sharedstatedir ;;
1526 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1527 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1528 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1529 | --sha=* | --sh=*)
1530 sharedstatedir=$ac_optarg ;;
1531
1532 -site | --site | --sit)
1533 ac_prev=site ;;
1534 -site=* | --site=* | --sit=*)
1535 site=$ac_optarg ;;
1536
1537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1538 ac_prev=srcdir ;;
1539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1540 srcdir=$ac_optarg ;;
1541
1542 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1543 | --syscon | --sysco | --sysc | --sys | --sy)
1544 ac_prev=sysconfdir ;;
1545 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1546 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1547 sysconfdir=$ac_optarg ;;
1548
1549 -target | --target | --targe | --targ | --tar | --ta | --t)
1550 ac_prev=target_alias ;;
1551 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1552 target_alias=$ac_optarg ;;
1553
1554 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1555 verbose=yes ;;
1556
1557 -version | --version | --versio | --versi | --vers | -V)
1558 ac_init_version=: ;;
1559
1560 -with-* | --with-*)
1561 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1562 # Reject names that are not valid shell variable names.
1563 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001565 ac_useropt_orig=$ac_useropt
1566 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567 case $ac_user_opts in
1568 *"
1569"with_$ac_useropt"
1570"*) ;;
1571 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1572 ac_unrecognized_sep=', ';;
1573 esac
1574 eval with_$ac_useropt=\$ac_optarg ;;
1575
1576 -without-* | --without-*)
1577 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1578 # Reject names that are not valid shell variable names.
1579 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001580 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001581 ac_useropt_orig=$ac_useropt
1582 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1583 case $ac_user_opts in
1584 *"
1585"with_$ac_useropt"
1586"*) ;;
1587 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1588 ac_unrecognized_sep=', ';;
1589 esac
1590 eval with_$ac_useropt=no ;;
1591
1592 --x)
1593 # Obsolete; use --with-x.
1594 with_x=yes ;;
1595
1596 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1597 | --x-incl | --x-inc | --x-in | --x-i)
1598 ac_prev=x_includes ;;
1599 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1600 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1601 x_includes=$ac_optarg ;;
1602
1603 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1604 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1605 ac_prev=x_libraries ;;
1606 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1607 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1608 x_libraries=$ac_optarg ;;
1609
cristy98dddb52010-11-04 00:30:15 +00001610 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1611Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001612 ;;
1613
1614 *=*)
1615 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1616 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001617 case $ac_envvar in #(
1618 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001619 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001620 esac
cristy3ed852e2009-09-05 21:47:34 +00001621 eval $ac_envvar=\$ac_optarg
1622 export $ac_envvar ;;
1623
1624 *)
1625 # FIXME: should be removed in autoconf 3.0.
1626 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1627 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1628 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001629 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001630 ;;
1631
1632 esac
1633done
1634
1635if test -n "$ac_prev"; then
1636 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001638fi
1639
1640if test -n "$ac_unrecognized_opts"; then
1641 case $enable_option_checking in
1642 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001643 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001644 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1645 esac
1646fi
1647
1648# Check all directory arguments for consistency.
1649for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1650 datadir sysconfdir sharedstatedir localstatedir includedir \
1651 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1652 libdir localedir mandir
1653do
1654 eval ac_val=\$$ac_var
1655 # Remove trailing slashes.
1656 case $ac_val in
1657 */ )
1658 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1659 eval $ac_var=\$ac_val;;
1660 esac
1661 # Be sure to have absolute directory names.
1662 case $ac_val in
1663 [\\/$]* | ?:[\\/]* ) continue;;
1664 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1665 esac
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001667done
1668
1669# There might be people who depend on the old broken behavior: `$host'
1670# used to hold the argument of --host etc.
1671# FIXME: To remove some day.
1672build=$build_alias
1673host=$host_alias
1674target=$target_alias
1675
1676# FIXME: To remove some day.
1677if test "x$host_alias" != x; then
1678 if test "x$build_alias" = x; then
1679 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001680 elif test "x$build_alias" != "x$host_alias"; then
1681 cross_compiling=yes
1682 fi
1683fi
1684
1685ac_tool_prefix=
1686test -n "$host_alias" && ac_tool_prefix=$host_alias-
1687
1688test "$silent" = yes && exec 6>/dev/null
1689
1690
1691ac_pwd=`pwd` && test -n "$ac_pwd" &&
1692ac_ls_di=`ls -di .` &&
1693ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001694 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001695test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001696 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001697
1698
1699# Find the source files, if location was not specified.
1700if test -z "$srcdir"; then
1701 ac_srcdir_defaulted=yes
1702 # Try the directory containing this script, then the parent directory.
1703 ac_confdir=`$as_dirname -- "$as_myself" ||
1704$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1705 X"$as_myself" : 'X\(//\)[^/]' \| \
1706 X"$as_myself" : 'X\(//\)$' \| \
1707 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1708$as_echo X"$as_myself" |
1709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1710 s//\1/
1711 q
1712 }
1713 /^X\(\/\/\)[^/].*/{
1714 s//\1/
1715 q
1716 }
1717 /^X\(\/\/\)$/{
1718 s//\1/
1719 q
1720 }
1721 /^X\(\/\).*/{
1722 s//\1/
1723 q
1724 }
1725 s/.*/./; q'`
1726 srcdir=$ac_confdir
1727 if test ! -r "$srcdir/$ac_unique_file"; then
1728 srcdir=..
1729 fi
1730else
1731 ac_srcdir_defaulted=no
1732fi
1733if test ! -r "$srcdir/$ac_unique_file"; then
1734 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001735 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001736fi
1737ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1738ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001739 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001740 pwd)`
1741# When building in place, set srcdir=.
1742if test "$ac_abs_confdir" = "$ac_pwd"; then
1743 srcdir=.
1744fi
1745# Remove unnecessary trailing slashes from srcdir.
1746# Double slashes in file names in object file debugging info
1747# mess up M-x gdb in Emacs.
1748case $srcdir in
1749*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1750esac
1751for ac_var in $ac_precious_vars; do
1752 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_env_${ac_var}_value=\$${ac_var}
1754 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1755 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1756done
1757
1758#
1759# Report the --help message.
1760#
1761if test "$ac_init_help" = "long"; then
1762 # Omit some internal or obsolete options to make the list less imposing.
1763 # This message is too long to be a string in the A/UX 3.1 sh.
1764 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001765\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001766
1767Usage: $0 [OPTION]... [VAR=VALUE]...
1768
1769To assign environment variables (e.g., CC, CFLAGS...), specify them as
1770VAR=VALUE. See below for descriptions of some of the useful variables.
1771
1772Defaults for the options are specified in brackets.
1773
1774Configuration:
1775 -h, --help display this help and exit
1776 --help=short display options specific to this package
1777 --help=recursive display the short help of all the included packages
1778 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001779 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001780 --cache-file=FILE cache test results in FILE [disabled]
1781 -C, --config-cache alias for \`--cache-file=config.cache'
1782 -n, --no-create do not create output files
1783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1784
1785Installation directories:
1786 --prefix=PREFIX install architecture-independent files in PREFIX
1787 [$ac_default_prefix]
1788 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1789 [PREFIX]
1790
1791By default, \`make install' will install all the files in
1792\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1793an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1794for instance \`--prefix=\$HOME'.
1795
1796For better control, use the options below.
1797
1798Fine tuning of the installation directories:
1799 --bindir=DIR user executables [EPREFIX/bin]
1800 --sbindir=DIR system admin executables [EPREFIX/sbin]
1801 --libexecdir=DIR program executables [EPREFIX/libexec]
1802 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1803 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1804 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1805 --libdir=DIR object code libraries [EPREFIX/lib]
1806 --includedir=DIR C header files [PREFIX/include]
1807 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1808 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1809 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1810 --infodir=DIR info documentation [DATAROOTDIR/info]
1811 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1812 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001813 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001814 --htmldir=DIR html documentation [DOCDIR]
1815 --dvidir=DIR dvi documentation [DOCDIR]
1816 --pdfdir=DIR pdf documentation [DOCDIR]
1817 --psdir=DIR ps documentation [DOCDIR]
1818_ACEOF
1819
1820 cat <<\_ACEOF
1821
cristy73bd4a52010-10-05 11:24:23 +00001822Program names:
1823 --program-prefix=PREFIX prepend PREFIX to installed program names
1824 --program-suffix=SUFFIX append SUFFIX to installed program names
1825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1826
cristy3ed852e2009-09-05 21:47:34 +00001827X features:
1828 --x-includes=DIR X include files are in DIR
1829 --x-libraries=DIR X library files are in DIR
1830
1831System types:
1832 --build=BUILD configure for building on BUILD [guessed]
1833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1834 --target=TARGET configure for building compilers for TARGET [HOST]
1835_ACEOF
1836fi
1837
1838if test -n "$ac_init_help"; then
1839 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001840 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001841 esac
1842 cat <<\_ACEOF
1843
1844Optional Features:
1845 --disable-option-checking ignore unrecognized --enable/--with options
1846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001848 --enable-silent-rules less verbose build output (undo: "make V=1")
1849 --disable-silent-rules verbose build output (undo: "make V=0")
1850 --enable-dependency-tracking
1851 do not reject slow dependency extractors
1852 --disable-dependency-tracking
1853 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001854 --enable-bounds-checking
1855 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001856 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001857 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001858 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001859 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001860 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001861 --enable-shared[=PKGS] build shared libraries [default=yes]
1862 --enable-static[=PKGS] build static libraries [default=yes]
1863 --enable-fast-install[=PKGS]
1864 optimize for fast installation [default=yes]
1865 --disable-libtool-lock avoid locking (might break parallel builds)
1866 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001867 --enable-delegate-build look for delegate libraries in build directory
1868 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001869 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-installed Formally install ImageMagick under PREFIX
1871 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001872 --enable-zero-configuration
1873 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001874 zero-configuration ImageMagick
cristy191c0b72012-08-12 16:29:52 +00001875 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001876 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001878 --enable-maintainer-mode
1879 enable make rules and dependencies not useful (and
1880 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001881 --enable-ccmalloc enable 'ccmalloc' memory debug support
1882 --enable-efence enable 'efence' memory debug support
1883 --enable-prof enable 'prof' profiling support
1884 --enable-gprof enable 'gprof' profiling support
1885 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001886 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001887 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001888
1889Optional Packages:
1890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001892 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001893 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001894 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1895 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001896 --includearch-dir=DIR ARCH specific include directory
1897 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001898 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001899 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001900 both]
cristyda16f162011-02-19 23:52:17 +00001901 --with-sysroot=DIR Search for dependent libraries within DIR
1902 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001903 --with-included-ltdl use the GNU ltdl sources included here
1904 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1905 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001906 --with-modules enable building dynamically loadable modules
1907 --with-method-prefix=PREFIX
1908 prefix MagickCore API methods
1909 --with-quantum-depth=DEPTH
1910 number of bits in a pixel quantum (default 16)
1911 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1912 memory)
1913 --with-frozenpaths freeze delegate paths
1914 --without-magick-plus-plus
1915 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001916 --with-package-release-name=NAME
1917 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-perl enable build/install of PerlMagick
1919 --with-perl-options=OPTIONS
1920 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001921 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001922 --with-umem enable umem memory allocation library support
1923 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1924 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001925 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-zlib disable ZLIB support
1927 --with-autotrace enable autotrace support
1928 --without-dps disable Display Postscript support
1929 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001930 --with-dejavu-font-dir=DIR
1931 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-fftw disable FFTW support
1933 --without-fpx disable FlashPIX support
1934 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001935 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001936 --without-gslib enable Ghostscript library support
1937 --with-fontpath=DIR prepend to default font search path
1938 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001939 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001940 --without-jbig disable JBIG support
1941 --without-jpeg disable JPEG support
1942 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001943 --without-lcms disable lcms (v1.1X) support
1944 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001945 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001946 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001947 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001948 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001949 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001950 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001951 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001952 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001953 --with-windows-font-dir=DIR
1954 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001955 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-xml disable XML support
1957
1958Some influential environment variables:
1959 CC C compiler command
1960 CFLAGS C compiler flags
1961 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1962 nonstandard directory <lib dir>
1963 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001964 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001965 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001966 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001967 CXX C++ compiler command
1968 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001969 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001970 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001971 XMKMF Path to xmkmf, Makefile generator for X Window System
1972 AUTOTRACE_CFLAGS
1973 C compiler flags for AUTOTRACE, overriding pkg-config
1974 AUTOTRACE_LIBS
1975 linker flags for AUTOTRACE, overriding pkg-config
1976 FONTCONFIG_CFLAGS
1977 C compiler flags for FONTCONFIG, overriding pkg-config
1978 FONTCONFIG_LIBS
1979 linker flags for FONTCONFIG, overriding pkg-config
1980 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1981 GVC_LIBS linker flags for GVC, overriding pkg-config
1982 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1983 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001984 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1985 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001986 OPENEXR_CFLAGS
1987 C compiler flags for OPENEXR, overriding pkg-config
1988 OPENEXR_LIBS
1989 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001990 PANGO_CFLAGS
1991 C compiler flags for PANGO, overriding pkg-config
1992 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001993 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1994 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1995 CAIRO_SVG_CFLAGS
1996 C compiler flags for CAIRO_SVG, overriding pkg-config
1997 CAIRO_SVG_LIBS
1998 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001999
2000Use these variables to override the choices made by `configure' or to help
2001it to find libraries and programs with nonstandard names/locations.
2002
2003Report bugs to <http://www.imagemagick.org>.
2004_ACEOF
2005ac_status=$?
2006fi
2007
2008if test "$ac_init_help" = "recursive"; then
2009 # If there are subdirs, report their specific --help.
2010 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2011 test -d "$ac_dir" ||
2012 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2013 continue
2014 ac_builddir=.
2015
2016case "$ac_dir" in
2017.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2018*)
2019 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2020 # A ".." for each directory in $ac_dir_suffix.
2021 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2022 case $ac_top_builddir_sub in
2023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2025 esac ;;
2026esac
2027ac_abs_top_builddir=$ac_pwd
2028ac_abs_builddir=$ac_pwd$ac_dir_suffix
2029# for backward compatibility:
2030ac_top_builddir=$ac_top_build_prefix
2031
2032case $srcdir in
2033 .) # We are building in place.
2034 ac_srcdir=.
2035 ac_top_srcdir=$ac_top_builddir_sub
2036 ac_abs_top_srcdir=$ac_pwd ;;
2037 [\\/]* | ?:[\\/]* ) # Absolute name.
2038 ac_srcdir=$srcdir$ac_dir_suffix;
2039 ac_top_srcdir=$srcdir
2040 ac_abs_top_srcdir=$srcdir ;;
2041 *) # Relative name.
2042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2043 ac_top_srcdir=$ac_top_build_prefix$srcdir
2044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2045esac
2046ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2047
2048 cd "$ac_dir" || { ac_status=$?; continue; }
2049 # Check for guested configure.
2050 if test -f "$ac_srcdir/configure.gnu"; then
2051 echo &&
2052 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2053 elif test -f "$ac_srcdir/configure"; then
2054 echo &&
2055 $SHELL "$ac_srcdir/configure" --help=recursive
2056 else
2057 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2058 fi || ac_status=$?
2059 cd "$ac_pwd" || { ac_status=$?; break; }
2060 done
2061fi
2062
2063test -n "$ac_init_help" && exit $ac_status
2064if $ac_init_version; then
2065 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002066ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002067generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002068
cristy14fefe52012-05-21 00:59:18 +00002069Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002070This configure script is free software; the Free Software Foundation
2071gives unlimited permission to copy, distribute and modify it.
2072_ACEOF
2073 exit
2074fi
cristy8b350f62009-11-15 23:12:43 +00002075
2076## ------------------------ ##
2077## Autoconf initialization. ##
2078## ------------------------ ##
2079
2080# ac_fn_c_try_compile LINENO
2081# --------------------------
2082# Try to compile conftest.$ac_ext, and return whether this succeeded.
2083ac_fn_c_try_compile ()
2084{
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 rm -f conftest.$ac_objext
2087 if { { ac_try="$ac_compile"
2088case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091esac
2092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093$as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_compile") 2>conftest.err
2095 ac_status=$?
2096 if test -s conftest.err; then
2097 grep -v '^ *+' conftest.err >conftest.er1
2098 cat conftest.er1 >&5
2099 mv -f conftest.er1 conftest.err
2100 fi
2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102 test $ac_status = 0; } && {
2103 test -z "$ac_c_werror_flag" ||
2104 test ! -s conftest.err
2105 } && test -s conftest.$ac_objext; then :
2106 ac_retval=0
2107else
2108 $as_echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_retval=1
2112fi
cristyda16f162011-02-19 23:52:17 +00002113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002114 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002115
2116} # ac_fn_c_try_compile
2117
cristy95646052009-11-28 23:05:30 +00002118# ac_fn_c_try_cpp LINENO
2119# ----------------------
2120# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2121ac_fn_c_try_cpp ()
2122{
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if { { ac_try="$ac_cpp conftest.$ac_ext"
2125case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128esac
2129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130$as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2132 ac_status=$?
2133 if test -s conftest.err; then
2134 grep -v '^ *+' conftest.err >conftest.er1
2135 cat conftest.er1 >&5
2136 mv -f conftest.er1 conftest.err
2137 fi
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002139 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2141 test ! -s conftest.err
2142 }; then :
2143 ac_retval=0
2144else
2145 $as_echo "$as_me: failed program was:" >&5
2146sed 's/^/| /' conftest.$ac_ext >&5
2147
2148 ac_retval=1
2149fi
cristyda16f162011-02-19 23:52:17 +00002150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002151 as_fn_set_status $ac_retval
2152
2153} # ac_fn_c_try_cpp
2154
cristy8b350f62009-11-15 23:12:43 +00002155# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2156# -------------------------------------------------------
2157# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2158# the include files in INCLUDES and setting the cache variable VAR
2159# accordingly.
2160ac_fn_c_check_header_mongrel ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002163 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002166if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002167 $as_echo_n "(cached) " >&6
2168fi
2169eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172else
2173 # Is the header compilable?
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2175$as_echo_n "checking $2 usability... " >&6; }
2176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179#include <$2>
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_header_compiler=yes
2183else
2184 ac_header_compiler=no
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2188$as_echo "$ac_header_compiler" >&6; }
2189
2190# Is the header present?
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2192$as_echo_n "checking $2 presence... " >&6; }
2193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195#include <$2>
2196_ACEOF
2197if ac_fn_c_try_cpp "$LINENO"; then :
2198 ac_header_preproc=yes
2199else
2200 ac_header_preproc=no
2201fi
cristyda16f162011-02-19 23:52:17 +00002202rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2204$as_echo "$ac_header_preproc" >&6; }
2205
2206# So? What about this header?
2207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2208 yes:no: )
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2210$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2212$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213 ;;
2214 no:yes:* )
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2216$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2218$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2220$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2222$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002225( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002226## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002227## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002228 ) | sed "s/^/$as_me: WARNING: /" >&2
2229 ;;
2230esac
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002233if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002234 $as_echo_n "(cached) " >&6
2235else
2236 eval "$3=\$ac_header_compiler"
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241fi
cristyda16f162011-02-19 23:52:17 +00002242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002243
2244} # ac_fn_c_check_header_mongrel
2245
2246# ac_fn_c_try_run LINENO
2247# ----------------------
2248# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249# that executables *can* be run.
2250ac_fn_c_try_run ()
2251{
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_link"
2254case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257esac
2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259$as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>&5
2261 ac_status=$?
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2264 { { case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_try") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; }; }; then :
2274 ac_retval=0
2275else
2276 $as_echo "$as_me: program exited with status $ac_status" >&5
2277 $as_echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_retval=$ac_status
2281fi
2282 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002284 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002285
2286} # ac_fn_c_try_run
2287
2288# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289# -------------------------------------------------------
2290# Tests whether HEADER exists and can be compiled using the include files in
2291# INCLUDES, setting the cache variable VAR accordingly.
2292ac_fn_c_check_header_compile ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002297if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002298 $as_echo_n "(cached) " >&6
2299else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h. */
2302$4
2303#include <$2>
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307else
2308 eval "$3=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311fi
2312eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002316
2317} # ac_fn_c_check_header_compile
2318
cristya0b81c32010-01-22 02:54:33 +00002319# ac_fn_cxx_try_compile LINENO
2320# ----------------------------
2321# Try to compile conftest.$ac_ext, and return whether this succeeded.
2322ac_fn_cxx_try_compile ()
2323{
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext
2326 if { { ac_try="$ac_compile"
2327case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_compile") 2>conftest.err
2334 ac_status=$?
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2339 fi
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_cxx_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest.$ac_objext; then :
2345 ac_retval=0
2346else
2347 $as_echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_retval=1
2351fi
cristyda16f162011-02-19 23:52:17 +00002352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002353 as_fn_set_status $ac_retval
2354
2355} # ac_fn_cxx_try_compile
2356
cristy8b350f62009-11-15 23:12:43 +00002357# ac_fn_c_try_link LINENO
2358# -----------------------
2359# Try to link conftest.$ac_ext, and return whether this succeeded.
2360ac_fn_c_try_link ()
2361{
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 rm -f conftest.$ac_objext conftest$ac_exeext
2364 if { { ac_try="$ac_link"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370$as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_link") 2>conftest.err
2372 ac_status=$?
2373 if test -s conftest.err; then
2374 grep -v '^ *+' conftest.err >conftest.er1
2375 cat conftest.er1 >&5
2376 mv -f conftest.er1 conftest.err
2377 fi
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest$ac_exeext && {
2383 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002384 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002385 }; then :
2386 ac_retval=0
2387else
2388 $as_echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 ac_retval=1
2392fi
2393 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395 # interfere with the next link command; also delete a directory that is
2396 # left behind by Apple's compiler. We do this before executing the actions.
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002399 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002400
2401} # ac_fn_c_try_link
2402
cristy73bd4a52010-10-05 11:24:23 +00002403# ac_fn_c_check_func LINENO FUNC VAR
2404# ----------------------------------
2405# Tests whether FUNC exists, setting the cache variable VAR accordingly
2406ac_fn_c_check_func ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002411if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002412 $as_echo_n "(cached) " >&6
2413else
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415/* end confdefs.h. */
2416/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2418#define $2 innocuous_$2
2419
2420/* System header to define __stub macros and hopefully few prototypes,
2421 which can conflict with char $2 (); below.
2422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2423 <limits.h> exists even on freestanding compilers. */
2424
2425#ifdef __STDC__
2426# include <limits.h>
2427#else
2428# include <assert.h>
2429#endif
2430
2431#undef $2
2432
2433/* Override any GCC internal prototype to avoid an error.
2434 Use char because int might match the return type of a GCC
2435 builtin and then its argument prototype would still apply. */
2436#ifdef __cplusplus
2437extern "C"
2438#endif
2439char $2 ();
2440/* The GNU C library defines this for functions which it implements
2441 to always fail with ENOSYS. Some functions are actually named
2442 something starting with __ and the normal name is an alias. */
2443#if defined __stub_$2 || defined __stub___$2
2444choke me
2445#endif
2446
2447int
2448main ()
2449{
2450return $2 ();
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455if ac_fn_c_try_link "$LINENO"; then :
2456 eval "$3=yes"
2457else
2458 eval "$3=no"
2459fi
2460rm -f core conftest.err conftest.$ac_objext \
2461 conftest$ac_exeext conftest.$ac_ext
2462fi
2463eval ac_res=\$$3
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002467
2468} # ac_fn_c_check_func
2469
2470# ac_fn_cxx_try_cpp LINENO
2471# ------------------------
2472# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2473ac_fn_cxx_try_cpp ()
2474{
2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476 if { { ac_try="$ac_cpp conftest.$ac_ext"
2477case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480esac
2481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482$as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2484 ac_status=$?
2485 if test -s conftest.err; then
2486 grep -v '^ *+' conftest.err >conftest.er1
2487 cat conftest.er1 >&5
2488 mv -f conftest.er1 conftest.err
2489 fi
2490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002491 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002492 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2493 test ! -s conftest.err
2494 }; then :
2495 ac_retval=0
2496else
2497 $as_echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 ac_retval=1
2501fi
cristyda16f162011-02-19 23:52:17 +00002502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002503 as_fn_set_status $ac_retval
2504
2505} # ac_fn_cxx_try_cpp
2506
2507# ac_fn_cxx_try_link LINENO
2508# -------------------------
2509# Try to link conftest.$ac_ext, and return whether this succeeded.
2510ac_fn_cxx_try_link ()
2511{
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 rm -f conftest.$ac_objext conftest$ac_exeext
2514 if { { ac_try="$ac_link"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520$as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_link") 2>conftest.err
2522 ac_status=$?
2523 if test -s conftest.err; then
2524 grep -v '^ *+' conftest.err >conftest.er1
2525 cat conftest.er1 >&5
2526 mv -f conftest.er1 conftest.err
2527 fi
2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529 test $ac_status = 0; } && {
2530 test -z "$ac_cxx_werror_flag" ||
2531 test ! -s conftest.err
2532 } && test -s conftest$ac_exeext && {
2533 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002534 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002535 }; then :
2536 ac_retval=0
2537else
2538 $as_echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_retval=1
2542fi
2543 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2544 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2545 # interfere with the next link command; also delete a directory that is
2546 # left behind by Apple's compiler. We do this before executing the actions.
2547 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002549 as_fn_set_status $ac_retval
2550
2551} # ac_fn_cxx_try_link
2552
cristy98dddb52010-11-04 00:30:15 +00002553# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2554# ---------------------------------------------
2555# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2556# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002557ac_fn_c_check_decl ()
2558{
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002560 as_decl_name=`echo $2|sed 's/ *(.*//'`
2561 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2563$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002564if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002565 $as_echo_n "(cached) " >&6
2566else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h. */
2569$4
2570int
2571main ()
2572{
cristy98dddb52010-11-04 00:30:15 +00002573#ifndef $as_decl_name
2574#ifdef __cplusplus
2575 (void) $as_decl_use;
2576#else
2577 (void) $as_decl_name;
2578#endif
cristy73bd4a52010-10-05 11:24:23 +00002579#endif
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$3=yes"
2587else
2588 eval "$3=no"
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002596
2597} # ac_fn_c_check_decl
2598
cristy8b350f62009-11-15 23:12:43 +00002599# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2600# -------------------------------------------
2601# Tests whether TYPE exists after having included INCLUDES, setting cache
2602# variable VAR accordingly.
2603ac_fn_c_check_type ()
2604{
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002608if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002609 $as_echo_n "(cached) " >&6
2610else
2611 eval "$3=no"
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$4
2615int
2616main ()
2617{
2618if (sizeof ($2))
2619 return 0;
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624if ac_fn_c_try_compile "$LINENO"; then :
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626/* end confdefs.h. */
2627$4
2628int
2629main ()
2630{
2631if (sizeof (($2)))
2632 return 0;
2633 ;
2634 return 0;
2635}
2636_ACEOF
2637if ac_fn_c_try_compile "$LINENO"; then :
2638
2639else
2640 eval "$3=yes"
2641fi
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643fi
2644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645fi
2646eval ac_res=\$$3
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002650
2651} # ac_fn_c_check_type
2652
cristy92703d82010-04-26 00:18:18 +00002653# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2654# ----------------------------------------------------
2655# Tries to find if the field MEMBER exists in type AGGR, after including
2656# INCLUDES, setting cache variable VAR accordingly.
2657ac_fn_c_check_member ()
2658{
2659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2661$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002662if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002663 $as_echo_n "(cached) " >&6
2664else
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$5
2668int
2669main ()
2670{
2671static $2 ac_aggr;
2672if (ac_aggr.$3)
2673return 0;
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679 eval "$4=yes"
2680else
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683$5
2684int
2685main ()
2686{
2687static $2 ac_aggr;
2688if (sizeof ac_aggr.$3)
2689return 0;
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694if ac_fn_c_try_compile "$LINENO"; then :
2695 eval "$4=yes"
2696else
2697 eval "$4=no"
2698fi
2699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702fi
2703eval ac_res=\$$4
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002707
2708} # ac_fn_c_check_member
2709
cristy501c8042011-05-26 17:46:28 +00002710# ac_fn_c_find_intX_t LINENO BITS VAR
2711# -----------------------------------
2712# Finds a signed integer type with width BITS, setting cache variable VAR
2713# accordingly.
2714ac_fn_c_find_intX_t ()
2715{
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2718$as_echo_n "checking for int$2_t... " >&6; }
2719if eval \${$3+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721else
2722 eval "$3=no"
2723 # Order is important - never check a type that is potentially smaller
2724 # than half of the expected target width.
2725 for ac_type in int$2_t 'int' 'long int' \
2726 'long long int' 'short int' 'signed char'; do
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728/* end confdefs.h. */
2729$ac_includes_default
2730 enum { N = $2 / 2 - 1 };
2731int
2732main ()
2733{
2734static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002735test_array [0] = 0;
2736return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002737
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742if ac_fn_c_try_compile "$LINENO"; then :
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h. */
2745$ac_includes_default
2746 enum { N = $2 / 2 - 1 };
2747int
2748main ()
2749{
2750static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2751 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002752test_array [0] = 0;
2753return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759if ac_fn_c_try_compile "$LINENO"; then :
2760
2761else
2762 case $ac_type in #(
2763 int$2_t) :
2764 eval "$3=yes" ;; #(
2765 *) :
2766 eval "$3=\$ac_type" ;;
2767esac
2768fi
2769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770fi
2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 if eval test \"x\$"$3"\" = x"no"; then :
2773
2774else
2775 break
2776fi
2777 done
2778fi
2779eval ac_res=\$$3
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781$as_echo "$ac_res" >&6; }
2782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2783
2784} # ac_fn_c_find_intX_t
2785
2786# ac_fn_c_find_uintX_t LINENO BITS VAR
2787# ------------------------------------
2788# Finds an unsigned integer type with width BITS, setting cache variable VAR
2789# accordingly.
2790ac_fn_c_find_uintX_t ()
2791{
2792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2794$as_echo_n "checking for uint$2_t... " >&6; }
2795if eval \${$3+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797else
2798 eval "$3=no"
2799 # Order is important - never check a type that is potentially smaller
2800 # than half of the expected target width.
2801 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2802 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804/* end confdefs.h. */
2805$ac_includes_default
2806int
2807main ()
2808{
2809static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002810test_array [0] = 0;
2811return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817if ac_fn_c_try_compile "$LINENO"; then :
2818 case $ac_type in #(
2819 uint$2_t) :
2820 eval "$3=yes" ;; #(
2821 *) :
2822 eval "$3=\$ac_type" ;;
2823esac
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 if eval test \"x\$"$3"\" = x"no"; then :
2827
2828else
2829 break
2830fi
2831 done
2832fi
2833eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835$as_echo "$ac_res" >&6; }
2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837
2838} # ac_fn_c_find_uintX_t
2839
cristy8b350f62009-11-15 23:12:43 +00002840# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2841# --------------------------------------------
2842# Tries to find the compile-time value of EXPR in a program that includes
2843# INCLUDES, setting VAR accordingly. Returns whether the value could be
2844# computed
2845ac_fn_c_compute_int ()
2846{
2847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848 if test "$cross_compiling" = yes; then
2849 # Depending upon the size, compute the lo and hi bounds.
2850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851/* end confdefs.h. */
2852$4
2853int
2854main ()
2855{
2856static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002857test_array [0] = 0;
2858return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_lo=0 ac_mid=0
2866 while :; do
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h. */
2869$4
2870int
2871main ()
2872{
2873static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002874test_array [0] = 0;
2875return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002876
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882 ac_hi=$ac_mid; break
2883else
2884 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2885 if test $ac_lo -le $ac_mid; then
2886 ac_lo= ac_hi=
2887 break
2888 fi
2889 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2890fi
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 done
2893else
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896$4
2897int
2898main ()
2899{
2900static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002901test_array [0] = 0;
2902return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002903
2904 ;
2905 return 0;
2906}
2907_ACEOF
2908if ac_fn_c_try_compile "$LINENO"; then :
2909 ac_hi=-1 ac_mid=-1
2910 while :; do
2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912/* end confdefs.h. */
2913$4
2914int
2915main ()
2916{
2917static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002918test_array [0] = 0;
2919return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_lo=$ac_mid; break
2927else
2928 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2929 if test $ac_mid -le $ac_hi; then
2930 ac_lo= ac_hi=
2931 break
2932 fi
2933 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2934fi
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 done
2937else
2938 ac_lo= ac_hi=
2939fi
2940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941fi
2942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943# Binary search between lo and hi bounds.
2944while test "x$ac_lo" != "x$ac_hi"; do
2945 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$4
2949int
2950main ()
2951{
2952static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002953test_array [0] = 0;
2954return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961 ac_hi=$ac_mid
2962else
2963 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966done
2967case $ac_lo in #((
2968?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2969'') ac_retval=1 ;;
2970esac
2971 else
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973/* end confdefs.h. */
2974$4
2975static long int longval () { return $2; }
2976static unsigned long int ulongval () { return $2; }
2977#include <stdio.h>
2978#include <stdlib.h>
2979int
2980main ()
2981{
2982
2983 FILE *f = fopen ("conftest.val", "w");
2984 if (! f)
2985 return 1;
2986 if (($2) < 0)
2987 {
2988 long int i = longval ();
2989 if (i != ($2))
2990 return 1;
2991 fprintf (f, "%ld", i);
2992 }
2993 else
2994 {
2995 unsigned long int i = ulongval ();
2996 if (i != ($2))
2997 return 1;
2998 fprintf (f, "%lu", i);
2999 }
3000 /* Do not output a trailing newline, as this causes \r\n confusion
3001 on some platforms. */
3002 return ferror (f) || fclose (f) != 0;
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008if ac_fn_c_try_run "$LINENO"; then :
3009 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3010else
3011 ac_retval=1
3012fi
3013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3014 conftest.$ac_objext conftest.beam conftest.$ac_ext
3015rm -f conftest.val
3016
3017 fi
cristyda16f162011-02-19 23:52:17 +00003018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003019 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003020
3021} # ac_fn_c_compute_int
3022
3023# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3024# ---------------------------------------------------------
3025# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3026# the include files in INCLUDES and setting the cache variable VAR
3027# accordingly.
3028ac_fn_cxx_check_header_mongrel ()
3029{
3030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003031 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3033$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003034if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003035 $as_echo_n "(cached) " >&6
3036fi
3037eval ac_res=\$$3
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039$as_echo "$ac_res" >&6; }
3040else
3041 # Is the header compilable?
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3043$as_echo_n "checking $2 usability... " >&6; }
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h. */
3046$4
3047#include <$2>
3048_ACEOF
3049if ac_fn_cxx_try_compile "$LINENO"; then :
3050 ac_header_compiler=yes
3051else
3052 ac_header_compiler=no
3053fi
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3056$as_echo "$ac_header_compiler" >&6; }
3057
3058# Is the header present?
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3060$as_echo_n "checking $2 presence... " >&6; }
3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062/* end confdefs.h. */
3063#include <$2>
3064_ACEOF
3065if ac_fn_cxx_try_cpp "$LINENO"; then :
3066 ac_header_preproc=yes
3067else
3068 ac_header_preproc=no
3069fi
cristyda16f162011-02-19 23:52:17 +00003070rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3072$as_echo "$ac_header_preproc" >&6; }
3073
3074# So? What about this header?
3075case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3076 yes:no: )
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3078$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3080$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3081 ;;
3082 no:yes:* )
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3084$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3086$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3088$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3090$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003093( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003094## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003095## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003096 ) | sed "s/^/$as_me: WARNING: /" >&2
3097 ;;
3098esac
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3100$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003101if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003102 $as_echo_n "(cached) " >&6
3103else
3104 eval "$3=\$ac_header_compiler"
3105fi
3106eval ac_res=\$$3
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3108$as_echo "$ac_res" >&6; }
3109fi
cristyda16f162011-02-19 23:52:17 +00003110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003111
3112} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003113cat >config.log <<_ACEOF
3114This file contains any messages produced by compilers while
3115running configure, to aid debugging if configure makes a mistake.
3116
cristy29eb34e2011-10-16 00:46:08 +00003117It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003118generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003119
3120 $ $0 $@
3121
3122_ACEOF
3123exec 5>>config.log
3124{
3125cat <<_ASUNAME
3126## --------- ##
3127## Platform. ##
3128## --------- ##
3129
3130hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3131uname -m = `(uname -m) 2>/dev/null || echo unknown`
3132uname -r = `(uname -r) 2>/dev/null || echo unknown`
3133uname -s = `(uname -s) 2>/dev/null || echo unknown`
3134uname -v = `(uname -v) 2>/dev/null || echo unknown`
3135
3136/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3137/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3138
3139/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3140/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3141/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3142/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3143/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3144/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3145/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3146
3147_ASUNAME
3148
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003154 $as_echo "PATH: $as_dir"
3155 done
cristy3ed852e2009-09-05 21:47:34 +00003156IFS=$as_save_IFS
3157
3158} >&5
3159
3160cat >&5 <<_ACEOF
3161
3162
3163## ----------- ##
3164## Core tests. ##
3165## ----------- ##
3166
3167_ACEOF
3168
3169
3170# Keep a trace of the command line.
3171# Strip out --no-create and --no-recursion so they do not pile up.
3172# Strip out --silent because we don't want to record it for future runs.
3173# Also quote any args containing shell meta-characters.
3174# Make two passes to allow for proper duplicate-argument suppression.
3175ac_configure_args=
3176ac_configure_args0=
3177ac_configure_args1=
3178ac_must_keep_next=false
3179for ac_pass in 1 2
3180do
3181 for ac_arg
3182 do
3183 case $ac_arg in
3184 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3186 | -silent | --silent | --silen | --sile | --sil)
3187 continue ;;
3188 *\'*)
3189 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3190 esac
3191 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003192 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003193 2)
cristy8b350f62009-11-15 23:12:43 +00003194 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003195 if test $ac_must_keep_next = true; then
3196 ac_must_keep_next=false # Got value, back to normal.
3197 else
3198 case $ac_arg in
3199 *=* | --config-cache | -C | -disable-* | --disable-* \
3200 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3201 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3202 | -with-* | --with-* | -without-* | --without-* | --x)
3203 case "$ac_configure_args0 " in
3204 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3205 esac
3206 ;;
3207 -* ) ac_must_keep_next=true ;;
3208 esac
3209 fi
cristy8b350f62009-11-15 23:12:43 +00003210 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003211 ;;
3212 esac
3213 done
3214done
cristy8b350f62009-11-15 23:12:43 +00003215{ ac_configure_args0=; unset ac_configure_args0;}
3216{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003217
3218# When interrupted or exit'd, cleanup temporary files, and complete
3219# config.log. We remove comments because anyway the quotes in there
3220# would cause problems or look ugly.
3221# WARNING: Use '\'' to represent an apostrophe within the trap.
3222# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3223trap 'exit_status=$?
3224 # Save into config.log some information that might help in debugging.
3225 {
3226 echo
3227
cristy98dddb52010-11-04 00:30:15 +00003228 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003229## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003230## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003231 echo
3232 # The following way of writing the cache mishandles newlines in values,
3233(
3234 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3235 eval ac_val=\$$ac_var
3236 case $ac_val in #(
3237 *${as_nl}*)
3238 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003240$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3241 esac
3242 case $ac_var in #(
3243 _ | IFS | as_nl) ;; #(
3244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003245 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003246 esac ;;
3247 esac
3248 done
3249 (set) 2>&1 |
3250 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3251 *${as_nl}ac_space=\ *)
3252 sed -n \
3253 "s/'\''/'\''\\\\'\'''\''/g;
3254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3255 ;; #(
3256 *)
3257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3258 ;;
3259 esac |
3260 sort
3261)
3262 echo
3263
cristy98dddb52010-11-04 00:30:15 +00003264 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003265## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003266## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003267 echo
3268 for ac_var in $ac_subst_vars
3269 do
3270 eval ac_val=\$$ac_var
3271 case $ac_val in
3272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3273 esac
3274 $as_echo "$ac_var='\''$ac_val'\''"
3275 done | sort
3276 echo
3277
3278 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003279 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003280## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003281## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003282 echo
3283 for ac_var in $ac_subst_files
3284 do
3285 eval ac_val=\$$ac_var
3286 case $ac_val in
3287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3288 esac
3289 $as_echo "$ac_var='\''$ac_val'\''"
3290 done | sort
3291 echo
3292 fi
3293
3294 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003295 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003296## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003297## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003298 echo
3299 cat confdefs.h
3300 echo
3301 fi
3302 test "$ac_signal" != 0 &&
3303 $as_echo "$as_me: caught signal $ac_signal"
3304 $as_echo "$as_me: exit $exit_status"
3305 } >&5
3306 rm -f core *.core core.conftest.* &&
3307 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3308 exit $exit_status
3309' 0
3310for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003311 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003312done
3313ac_signal=0
3314
3315# confdefs.h avoids OS command line length limits that DEFS can exceed.
3316rm -f -r conftest* confdefs.h
3317
cristy8b350f62009-11-15 23:12:43 +00003318$as_echo "/* confdefs.h */" > confdefs.h
3319
cristy3ed852e2009-09-05 21:47:34 +00003320# Predefined preprocessor variables.
3321
3322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_NAME "$PACKAGE_NAME"
3324_ACEOF
3325
cristy3ed852e2009-09-05 21:47:34 +00003326cat >>confdefs.h <<_ACEOF
3327#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3328_ACEOF
3329
cristy3ed852e2009-09-05 21:47:34 +00003330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_VERSION "$PACKAGE_VERSION"
3332_ACEOF
3333
cristy3ed852e2009-09-05 21:47:34 +00003334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_STRING "$PACKAGE_STRING"
3336_ACEOF
3337
cristy3ed852e2009-09-05 21:47:34 +00003338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3340_ACEOF
3341
cristy8b350f62009-11-15 23:12:43 +00003342cat >>confdefs.h <<_ACEOF
3343#define PACKAGE_URL "$PACKAGE_URL"
3344_ACEOF
3345
cristy3ed852e2009-09-05 21:47:34 +00003346
3347# Let the site file select an alternate cache file if it wants to.
3348# Prefer an explicitly selected file to automatically selected ones.
3349ac_site_file1=NONE
3350ac_site_file2=NONE
3351if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003352 # We do not want a PATH search for config.site.
3353 case $CONFIG_SITE in #((
3354 -*) ac_site_file1=./$CONFIG_SITE;;
3355 */*) ac_site_file1=$CONFIG_SITE;;
3356 *) ac_site_file1=./$CONFIG_SITE;;
3357 esac
cristy3ed852e2009-09-05 21:47:34 +00003358elif test "x$prefix" != xNONE; then
3359 ac_site_file1=$prefix/share/config.site
3360 ac_site_file2=$prefix/etc/config.site
3361else
3362 ac_site_file1=$ac_default_prefix/share/config.site
3363 ac_site_file2=$ac_default_prefix/etc/config.site
3364fi
3365for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3366do
3367 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003368 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003370$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3371 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003372 . "$ac_site_file" \
3373 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error $? "failed to load site script $ac_site_file
3376See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003377 fi
3378done
3379
3380if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003381 # Some versions of bash will fail to source /dev/null (special files
3382 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3383 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: loading cache $cache_file" >&6;}
3386 case $cache_file in
3387 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3388 *) . "./$cache_file";;
3389 esac
3390 fi
3391else
cristy8b350f62009-11-15 23:12:43 +00003392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003393$as_echo "$as_me: creating cache $cache_file" >&6;}
3394 >$cache_file
3395fi
3396
cristycd4c5312009-11-22 01:19:08 +00003397as_fn_append ac_header_list " stdlib.h"
3398as_fn_append ac_header_list " unistd.h"
3399as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003400# Check that the precious variables saved in the cache have kept the same
3401# value.
3402ac_cache_corrupted=false
3403for ac_var in $ac_precious_vars; do
3404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3405 eval ac_new_set=\$ac_env_${ac_var}_set
3406 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3407 eval ac_new_val=\$ac_env_${ac_var}_value
3408 case $ac_old_set,$ac_new_set in
3409 set,)
cristy8b350f62009-11-15 23:12:43 +00003410 { $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 +00003411$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3412 ac_cache_corrupted=: ;;
3413 ,set)
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3416 ac_cache_corrupted=: ;;
3417 ,);;
3418 *)
3419 if test "x$ac_old_val" != "x$ac_new_val"; then
3420 # differences in whitespace do not lead to failure.
3421 ac_old_val_w=`echo x $ac_old_val`
3422 ac_new_val_w=`echo x $ac_new_val`
3423 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003425$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3426 ac_cache_corrupted=:
3427 else
cristy8b350f62009-11-15 23:12:43 +00003428 { $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 +00003429$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3430 eval $ac_var=\$ac_old_val
3431 fi
cristy8b350f62009-11-15 23:12:43 +00003432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003433$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3436 fi;;
3437 esac
3438 # Pass precious variables to config.status.
3439 if test "$ac_new_set" = set; then
3440 case $ac_new_val in
3441 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3442 *) ac_arg=$ac_var=$ac_new_val ;;
3443 esac
3444 case " $ac_configure_args " in
3445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003446 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003447 esac
3448 fi
3449done
3450if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003454$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003455 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003456fi
cristy8b350f62009-11-15 23:12:43 +00003457## -------------------- ##
3458## Main body of script. ##
3459## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468
3469ac_aux_dir=
3470for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003471 if test -f "$ac_dir/install-sh"; then
3472 ac_aux_dir=$ac_dir
3473 ac_install_sh="$ac_aux_dir/install-sh -c"
3474 break
3475 elif test -f "$ac_dir/install.sh"; then
3476 ac_aux_dir=$ac_dir
3477 ac_install_sh="$ac_aux_dir/install.sh -c"
3478 break
3479 elif test -f "$ac_dir/shtool"; then
3480 ac_aux_dir=$ac_dir
3481 ac_install_sh="$ac_aux_dir/shtool install -c"
3482 break
3483 fi
cristy3ed852e2009-09-05 21:47:34 +00003484done
3485if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003487fi
3488
3489# These three variables are undocumented and unsupported,
3490# and are intended to be withdrawn in a future Autoconf release.
3491# They can cause serious problems if a builder's source tree is in a directory
3492# whose full name contains unusual characters.
3493ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3494ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3495ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3496
3497
3498
3499
cristybc556452012-08-17 19:44:03 +00003500
cristy3ed852e2009-09-05 21:47:34 +00003501ac_config_headers="$ac_config_headers config/config.h"
3502
cristy24fc1fe2010-10-23 21:13:01 +00003503
cristy4c08aed2011-07-01 19:47:50 +00003504ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003505
cristy0cf6da52012-08-25 00:35:24 +00003506ac_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 tests/common.shi 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 +00003507
3508
3509#
3510# Save initial user-tunable values
3511#
3512USER_LIBS=$LIBS
3513for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3514 eval isset=\${$var+set}
3515 if test "$isset" = 'set'; then
3516 eval val=$`echo $var`
3517 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3518 fi
3519done
3520
3521
3522CONFIGURE_ARGS="$0 ${ac_configure_args}"
3523
3524
3525# Source file containing package/library versioning information.
3526. ${srcdir}/version.sh
3527
cristy15a88782010-01-31 23:24:49 +00003528echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003529# Make sure we can run config.sub.
3530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003531 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003532
cristy8b350f62009-11-15 23:12:43 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003534$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003535if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003536 $as_echo_n "(cached) " >&6
3537else
3538 ac_build_alias=$build_alias
3539test "x$ac_build_alias" = x &&
3540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3541test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003545
3546fi
cristy8b350f62009-11-15 23:12:43 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003548$as_echo "$ac_cv_build" >&6; }
3549case $ac_cv_build in
3550*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003552esac
3553build=$ac_cv_build
3554ac_save_IFS=$IFS; IFS='-'
3555set x $ac_cv_build
3556shift
3557build_cpu=$1
3558build_vendor=$2
3559shift; shift
3560# Remember, the first character of IFS is used to create $*,
3561# except with old shells:
3562build_os=$*
3563IFS=$ac_save_IFS
3564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3565
3566
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003569if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003570 $as_echo_n "(cached) " >&6
3571else
3572 if test "x$host_alias" = x; then
3573 ac_cv_host=$ac_cv_build
3574else
3575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003577fi
3578
3579fi
cristy8b350f62009-11-15 23:12:43 +00003580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003581$as_echo "$ac_cv_host" >&6; }
3582case $ac_cv_host in
3583*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003585esac
3586host=$ac_cv_host
3587ac_save_IFS=$IFS; IFS='-'
3588set x $ac_cv_host
3589shift
3590host_cpu=$1
3591host_vendor=$2
3592shift; shift
3593# Remember, the first character of IFS is used to create $*,
3594# except with old shells:
3595host_os=$*
3596IFS=$ac_save_IFS
3597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3598
3599
cristy8b350f62009-11-15 23:12:43 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003601$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003602if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003603 $as_echo_n "(cached) " >&6
3604else
3605 if test "x$target_alias" = x; then
3606 ac_cv_target=$ac_cv_host
3607else
3608 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003610fi
3611
3612fi
cristy8b350f62009-11-15 23:12:43 +00003613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003614$as_echo "$ac_cv_target" >&6; }
3615case $ac_cv_target in
3616*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003617*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003618esac
3619target=$ac_cv_target
3620ac_save_IFS=$IFS; IFS='-'
3621set x $ac_cv_target
3622shift
3623target_cpu=$1
3624target_vendor=$2
3625shift; shift
3626# Remember, the first character of IFS is used to create $*,
3627# except with old shells:
3628target_os=$*
3629IFS=$ac_save_IFS
3630case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3631
3632
3633# The aliases save the names the user supplied, while $host etc.
3634# will get canonicalized.
3635test -n "$target_alias" &&
3636 test "$program_prefix$program_suffix$program_transform_name" = \
3637 NONENONEs,x,x, &&
3638 program_prefix=${target_alias}-
3639
cristy837d6dc2010-02-27 01:16:57 +00003640
3641
3642
cristy8be34142012-06-17 14:07:18 +00003643
cristy19615b82011-04-13 20:02:01 +00003644MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003645
3646
cristy27d53d62012-07-29 23:30:07 +00003647cat >>confdefs.h <<_ACEOF
3648#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3649_ACEOF
3650
3651
cristy19615b82011-04-13 20:02:01 +00003652MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003653
3654
cristy27d53d62012-07-29 23:30:07 +00003655cat >>confdefs.h <<_ACEOF
3656#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3657_ACEOF
3658
3659
cristy19615b82011-04-13 20:02:01 +00003660MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003661
3662
cristy27d53d62012-07-29 23:30:07 +00003663cat >>confdefs.h <<_ACEOF
3664#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3665_ACEOF
3666
3667
cristy3ed852e2009-09-05 21:47:34 +00003668# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003669MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3670
3671MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3672
cristy3a75f062012-09-08 23:29:40 +00003673MAGICK_SVN_REVISION=9270:9275M
cristyd694ca32011-03-27 21:42:54 +00003674
cristy3ed852e2009-09-05 21:47:34 +00003675
3676
3677# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3679$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003680# Reject unsafe characters in $srcdir or the absolute working directory
3681# name. Accept space and tab only in the latter.
3682am_lf='
3683'
3684case `pwd` in
3685 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003686 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003687esac
3688case $srcdir in
3689 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003690 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003691esac
cristy3ed852e2009-09-05 21:47:34 +00003692
cristyc0890a62012-07-19 00:18:20 +00003693# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003694# arguments. Must try -L first in case configure is actually a
3695# symlink; some systems play weird games with the mod time of symlinks
3696# (eg FreeBSD returns the mod time of the symlink's containing
3697# directory).
3698if (
cristyc0890a62012-07-19 00:18:20 +00003699 am_has_slept=no
3700 for am_try in 1 2; do
3701 echo "timestamp, slept: $am_has_slept" > conftest.file
3702 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3703 if test "$*" = "X"; then
3704 # -L didn't work.
3705 set X `ls -t "$srcdir/configure" conftest.file`
3706 fi
3707 if test "$*" != "X $srcdir/configure conftest.file" \
3708 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003709
cristyc0890a62012-07-19 00:18:20 +00003710 # If neither matched, then we have a broken ls. This can happen
3711 # if, for instance, CONFIG_SHELL is bash and it inherits a
3712 # broken ls alias from the environment. This has actually
3713 # happened. Such a system could not be considered "sane".
3714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3715 alias in your environment" "$LINENO" 5
3716 fi
3717 if test "$2" = conftest.file || test $am_try -eq 2; then
3718 break
3719 fi
3720 # Just in case.
3721 sleep 1
3722 am_has_slept=yes
3723 done
cristy73bd4a52010-10-05 11:24:23 +00003724 test "$2" = conftest.file
3725 )
3726then
3727 # Ok.
3728 :
3729else
cristy98dddb52010-11-04 00:30:15 +00003730 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003731Check your system clock" "$LINENO" 5
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003735# If we didn't sleep, we still need to ensure time stamps of config.status and
3736# generated files are strictly newer.
3737am_sleep_pid=
3738if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3739 ( sleep 1 ) &
3740 am_sleep_pid=$!
3741fi
cristy73bd4a52010-10-05 11:24:23 +00003742
cristyc0890a62012-07-19 00:18:20 +00003743rm -f conftest.file
3744
3745
3746am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003747
3748# Find a good install program. We prefer a C program (faster),
3749# so one script is as good as another. But avoid the broken or
3750# incompatible versions:
3751# SysV /etc/install, /usr/sbin/install
3752# SunOS /usr/etc/install
3753# IRIX /sbin/install
3754# AIX /bin/install
3755# AmigaOS /C/install, which installs bootblocks on floppy discs
3756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3759# OS/2's system install, which has a completely different semantic
3760# ./install, which can be erroneously created by make from ./install.sh.
3761# Reject install programs that cannot install multiple files.
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3763$as_echo_n "checking for a BSD-compatible install... " >&6; }
3764if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003765if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003766 $as_echo_n "(cached) " >&6
3767else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 # Account for people who put trailing slashes in PATH elements.
3774case $as_dir/ in #((
3775 ./ | .// | /[cC]/* | \
3776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3778 /usr/ucb/* ) ;;
3779 *)
3780 # OSF1 and SCO ODT 3.0 have their own names for install.
3781 # Don't use installbsd from OSF since it installs stuff as root
3782 # by default.
3783 for ac_prog in ginstall scoinst install; do
3784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003785 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003786 if test $ac_prog = install &&
3787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # AIX install. It has an incompatible calling convention.
3789 :
3790 elif test $ac_prog = install &&
3791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792 # program-specific install script used by HP pwplus--don't use.
3793 :
3794 else
3795 rm -rf conftest.one conftest.two conftest.dir
3796 echo one > conftest.one
3797 echo two > conftest.two
3798 mkdir conftest.dir
3799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3800 test -s conftest.one && test -s conftest.two &&
3801 test -s conftest.dir/conftest.one &&
3802 test -s conftest.dir/conftest.two
3803 then
3804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3805 break 3
3806 fi
3807 fi
3808 fi
3809 done
3810 done
3811 ;;
3812esac
3813
3814 done
3815IFS=$as_save_IFS
3816
3817rm -rf conftest.one conftest.two conftest.dir
3818
3819fi
3820 if test "${ac_cv_path_install+set}" = set; then
3821 INSTALL=$ac_cv_path_install
3822 else
3823 # As a last resort, use the slow shell script. Don't cache a
3824 # value for INSTALL within a source directory, because that will
3825 # break other packages using the cache if that directory is
3826 # removed, or if the value is a relative name.
3827 INSTALL=$ac_install_sh
3828 fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3831$as_echo "$INSTALL" >&6; }
3832
3833# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3834# It thinks the first close brace ends the variable substitution.
3835test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3836
3837test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3838
3839test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3840
3841test "$program_prefix" != NONE &&
3842 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3843# Use a double $ so make ignores it.
3844test "$program_suffix" != NONE &&
3845 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3846# Double any \ or $.
3847# By default was `s,x,x', remove it if useless.
3848ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3849program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3850
3851# expand $ac_aux_dir to an absolute path
3852am_aux_dir=`cd $ac_aux_dir && pwd`
3853
3854if test x"${MISSING+set}" != xset; then
3855 case $am_aux_dir in
3856 *\ * | *\ *)
3857 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3858 *)
3859 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3860 esac
3861fi
3862# Use eval to expand $SHELL
3863if eval "$MISSING --run true"; then
3864 am_missing_run="$MISSING --run "
3865else
3866 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3868$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003869fi
3870
3871if test x"${install_sh}" != xset; then
3872 case $am_aux_dir in
3873 *\ * | *\ *)
3874 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3875 *)
3876 install_sh="\${SHELL} $am_aux_dir/install-sh"
3877 esac
3878fi
3879
cristyc0890a62012-07-19 00:18:20 +00003880# Installed binaries are usually stripped using 'strip' when the user
3881# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003882# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003883# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003884if test "$cross_compiling" != no; then
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3887set dummy ${ac_tool_prefix}strip; ac_word=$2
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003890if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003891 $as_echo_n "(cached) " >&6
3892else
3893 if test -n "$STRIP"; then
3894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003903 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908 done
3909IFS=$as_save_IFS
3910
3911fi
3912fi
3913STRIP=$ac_cv_prog_STRIP
3914if test -n "$STRIP"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3916$as_echo "$STRIP" >&6; }
3917else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919$as_echo "no" >&6; }
3920fi
3921
3922
3923fi
3924if test -z "$ac_cv_prog_STRIP"; then
3925 ac_ct_STRIP=$STRIP
3926 # Extract the first word of "strip", so it can be a program name with args.
3927set dummy strip; ac_word=$2
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003930if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003931 $as_echo_n "(cached) " >&6
3932else
3933 if test -n "$ac_ct_STRIP"; then
3934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003943 ac_cv_prog_ac_ct_STRIP="strip"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947done
3948 done
3949IFS=$as_save_IFS
3950
3951fi
3952fi
3953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3954if test -n "$ac_ct_STRIP"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3956$as_echo "$ac_ct_STRIP" >&6; }
3957else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
3960fi
3961
3962 if test "x$ac_ct_STRIP" = x; then
3963 STRIP=":"
3964 else
3965 case $cross_compiling:$ac_tool_warned in
3966yes:)
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969ac_tool_warned=yes ;;
3970esac
3971 STRIP=$ac_ct_STRIP
3972 fi
3973else
3974 STRIP="$ac_cv_prog_STRIP"
3975fi
3976
3977fi
3978INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3981$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3982if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003983 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003984 $as_echo_n "(cached) " >&6
3985else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in mkdir gmkdir; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003993 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003994 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3995 'mkdir (GNU coreutils) '* | \
3996 'mkdir (coreutils) '* | \
3997 'mkdir (fileutils) '4.1*)
3998 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3999 break 3;;
4000 esac
4001 done
4002 done
4003 done
4004IFS=$as_save_IFS
4005
4006fi
4007
4008 test -d ./--version && rmdir ./--version
4009 if test "${ac_cv_path_mkdir+set}" = set; then
4010 MKDIR_P="$ac_cv_path_mkdir -p"
4011 else
4012 # As a last resort, use the slow shell script. Don't cache a
4013 # value for MKDIR_P within a source directory, because that will
4014 # break other packages using the cache if that directory is
4015 # removed, or if the value is a relative name.
4016 MKDIR_P="$ac_install_sh -d"
4017 fi
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4020$as_echo "$MKDIR_P" >&6; }
4021
cristy73bd4a52010-10-05 11:24:23 +00004022for ac_prog in gawk mawk nawk awk
4023do
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025set dummy $ac_prog; ac_word=$2
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004028if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004029 $as_echo_n "(cached) " >&6
4030else
4031 if test -n "$AWK"; then
4032 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4033else
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004041 ac_cv_prog_AWK="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4044 fi
4045done
4046 done
4047IFS=$as_save_IFS
4048
4049fi
4050fi
4051AWK=$ac_cv_prog_AWK
4052if test -n "$AWK"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4054$as_echo "$AWK" >&6; }
4055else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057$as_echo "no" >&6; }
4058fi
4059
4060
4061 test -n "$AWK" && break
4062done
4063
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4065$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4066set x ${MAKE-make}
4067ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004068if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004069 $as_echo_n "(cached) " >&6
4070else
4071 cat >conftest.make <<\_ACEOF
4072SHELL = /bin/sh
4073all:
4074 @echo '@@@%%%=$(MAKE)=@@@%%%'
4075_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004076# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004077case `${MAKE-make} -f conftest.make 2>/dev/null` in
4078 *@@@%%%=?*=@@@%%%*)
4079 eval ac_cv_prog_make_${ac_make}_set=yes;;
4080 *)
4081 eval ac_cv_prog_make_${ac_make}_set=no;;
4082esac
4083rm -f conftest.make
4084fi
4085if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087$as_echo "yes" >&6; }
4088 SET_MAKE=
4089else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092 SET_MAKE="MAKE=${MAKE-make}"
4093fi
4094
4095rm -rf .tst 2>/dev/null
4096mkdir .tst 2>/dev/null
4097if test -d .tst; then
4098 am__leading_dot=.
4099else
4100 am__leading_dot=_
4101fi
4102rmdir .tst 2>/dev/null
4103
cristya448bd22011-10-14 12:38:13 +00004104# Check whether --enable-silent-rules was given.
4105if test "${enable_silent_rules+set}" = set; then :
4106 enableval=$enable_silent_rules;
4107fi
4108
cristyc0890a62012-07-19 00:18:20 +00004109case $enable_silent_rules in # (((
4110 yes) AM_DEFAULT_VERBOSITY=0;;
4111 no) AM_DEFAULT_VERBOSITY=1;;
4112 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004113esac
cristyc3fb77b2012-02-06 01:49:41 +00004114am_make=${MAKE-make}
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4116$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4117if ${am_cv_make_support_nested_variables+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119else
4120 if $as_echo 'TRUE=$(BAR$(V))
4121BAR0=false
4122BAR1=true
4123V=1
4124am__doit:
4125 @$(TRUE)
4126.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4127 am_cv_make_support_nested_variables=yes
4128else
4129 am_cv_make_support_nested_variables=no
4130fi
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4133$as_echo "$am_cv_make_support_nested_variables" >&6; }
4134if test $am_cv_make_support_nested_variables = yes; then
4135 AM_V='$(V)'
4136 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4137else
4138 AM_V=$AM_DEFAULT_VERBOSITY
4139 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4140fi
cristya448bd22011-10-14 12:38:13 +00004141AM_BACKSLASH='\'
4142
cristy73bd4a52010-10-05 11:24:23 +00004143if test "`cd $srcdir && pwd`" != "`pwd`"; then
4144 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4145 # is not polluted with repeated "-I."
4146 am__isrc=' -I$(srcdir)'
4147 # test to see if srcdir already configured
4148 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004149 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004150 fi
4151fi
4152
4153# test whether we have cygpath
4154if test -z "$CYGPATH_W"; then
4155 if (cygpath --version) >/dev/null 2>/dev/null; then
4156 CYGPATH_W='cygpath -w'
4157 else
4158 CYGPATH_W=echo
4159 fi
4160fi
4161
4162
4163# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004164 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004165 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004166
4167
cristya448bd22011-10-14 12:38:13 +00004168cat >>confdefs.h <<_ACEOF
4169#define PACKAGE "$PACKAGE"
4170_ACEOF
4171
4172
4173cat >>confdefs.h <<_ACEOF
4174#define VERSION "$VERSION"
4175_ACEOF
4176
cristy73bd4a52010-10-05 11:24:23 +00004177# Some tools Automake needs.
4178
4179ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4180
4181
4182AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4183
4184
4185AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4186
4187
4188AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4189
4190
4191MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4192
cristyc0890a62012-07-19 00:18:20 +00004193# For better backward compatibility. To be removed once Automake 1.9.x
4194# dies out for good. For more background, see:
4195# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4196# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4197mkdir_p='$(MKDIR_P)'
4198
cristy73bd4a52010-10-05 11:24:23 +00004199# We need awk for the "check" target. The system "awk" is bad on
4200# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004201# Always define AMTAR for backward compatibility. Yes, it's still used
4202# in the wild :-( We should find a proper way to deprecate it ...
4203AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004204
cristyc3fb77b2012-02-06 01:49:41 +00004205am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004206
4207
4208
4209
4210
cristy3ed852e2009-09-05 21:47:34 +00004211
4212# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004213# Check whether --enable-silent-rules was given.
4214if test "${enable_silent_rules+set}" = set; then :
4215 enableval=$enable_silent_rules;
4216fi
4217
cristyc0890a62012-07-19 00:18:20 +00004218case $enable_silent_rules in # (((
4219 yes) AM_DEFAULT_VERBOSITY=0;;
4220 no) AM_DEFAULT_VERBOSITY=1;;
4221 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004222esac
cristyc3fb77b2012-02-06 01:49:41 +00004223am_make=${MAKE-make}
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4225$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4226if ${am_cv_make_support_nested_variables+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228else
4229 if $as_echo 'TRUE=$(BAR$(V))
4230BAR0=false
4231BAR1=true
4232V=1
4233am__doit:
4234 @$(TRUE)
4235.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4236 am_cv_make_support_nested_variables=yes
4237else
4238 am_cv_make_support_nested_variables=no
4239fi
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4242$as_echo "$am_cv_make_support_nested_variables" >&6; }
4243if test $am_cv_make_support_nested_variables = yes; then
4244 AM_V='$(V)'
4245 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4246else
4247 AM_V=$AM_DEFAULT_VERBOSITY
4248 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4249fi
cristy73bd4a52010-10-05 11:24:23 +00004250AM_BACKSLASH='\'
4251
cristy3ed852e2009-09-05 21:47:34 +00004252
4253MAGICK_LIB_VERSION="0x"
4254if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4255 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4256fi
4257MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4258if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4259 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4260fi
4261MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4262if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4263 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4264fi
4265MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4266
4267
4268# Definition used to define MagickLibVersionText in version.h
4269MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4270
4271
4272# Definition used to define MagickLibVersionNumber in version.h
4273MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4274
4275
4276# Regenerate config.status if ChangeLog or version.sh is updated.
4277CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4278
4279
4280PERLMAINCC=$CC
4281
4282MAGICK_CFLAGS=''
4283MAGICK_CPPFLAGS=$CPPFLAGS_USER
4284MAGICK_PCFLAGS=$CPPFLAGS_USER
4285MAGICK_LDFLAGS=''
4286MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004287MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004288
4289#
4290# Evaluate shell variable equivalents to Makefile directory variables
4291#
4292if test "x$prefix" = xNONE; then
4293 prefix=$ac_default_prefix
4294fi
4295# Let make expand exec_prefix.
4296if test "x$exec_prefix" = xNONE; then
4297 exec_prefix='${prefix}'
4298fi
4299
4300#
4301eval "eval PREFIX_DIR=${prefix}"
4302
4303eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4304
4305eval "eval BIN_DIR=$bindir"
4306
4307eval "eval SBIN_DIR=$sbindir"
4308
4309eval "eval LIBEXEC_DIR=$libexecdir"
4310
4311eval "eval DATA_DIR=$datadir"
4312
cristy4e65ec22012-04-08 01:33:27 +00004313eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004314
cristy3ed852e2009-09-05 21:47:34 +00004315eval "eval SYSCONF_DIR=$sysconfdir"
4316
4317eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4318
4319eval "eval LOCALSTATE_DIR=$localstatedir"
4320
4321eval "eval LIB_DIR=$libdir"
4322
4323eval "eval INCLUDE_DIR=$includedir"
4324
4325eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4326
4327eval "eval INFO_DIR=$infodir"
4328
4329eval "eval MAN_DIR=$mandir"
4330
4331
4332# Get full paths to source and build directories
4333srcdirfull="`cd $srcdir && pwd`"
4334builddir="`pwd`"
4335
4336#
4337# Compute variables useful for running uninstalled software.
4338#
4339MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4340MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4341MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4342MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4343DIRSEP=':'
4344case "${build_os}" in
4345 mingw* )
4346 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4347 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4348 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4349 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4350 DIRSEP=';'
4351 ;;
4352esac
4353case "${host_os}" in
4354 mingw* )
4355 DIRSEP=';'
4356 ;;
4357esac
4358
4359
4360
4361
4362
4363
cristya0b81c32010-01-22 02:54:33 +00004364
4365#
4366# Enable OS features.
4367#
cristy73bd4a52010-10-05 11:24:23 +00004368DEPDIR="${am__leading_dot}deps"
4369
4370ac_config_commands="$ac_config_commands depfiles"
4371
4372
4373am_make=${MAKE-make}
4374cat > confinc << 'END'
4375am__doit:
4376 @echo this is the am__doit target
4377.PHONY: am__doit
4378END
4379# If we don't find an include directive, just comment out the code.
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4381$as_echo_n "checking for style of include used by $am_make... " >&6; }
4382am__include="#"
4383am__quote=
4384_am_result=none
4385# First try GNU make style include.
4386echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004387# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004388case `$am_make -s -f confmf 2> /dev/null` in #(
4389*the\ am__doit\ target*)
4390 am__include=include
4391 am__quote=
4392 _am_result=GNU
4393 ;;
4394esac
4395# Now try BSD make style include.
4396if test "$am__include" = "#"; then
4397 echo '.include "confinc"' > confmf
4398 case `$am_make -s -f confmf 2> /dev/null` in #(
4399 *the\ am__doit\ target*)
4400 am__include=.include
4401 am__quote="\""
4402 _am_result=BSD
4403 ;;
4404 esac
4405fi
4406
4407
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4409$as_echo "$_am_result" >&6; }
4410rm -f confinc confmf
4411
4412# Check whether --enable-dependency-tracking was given.
4413if test "${enable_dependency_tracking+set}" = set; then :
4414 enableval=$enable_dependency_tracking;
4415fi
4416
4417if test "x$enable_dependency_tracking" != xno; then
4418 am_depcomp="$ac_aux_dir/depcomp"
4419 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004420 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004421fi
4422 if test "x$enable_dependency_tracking" != xno; then
4423 AMDEP_TRUE=
4424 AMDEP_FALSE='#'
4425else
4426 AMDEP_TRUE='#'
4427 AMDEP_FALSE=
4428fi
4429
4430
cristy3ed852e2009-09-05 21:47:34 +00004431ac_ext=c
4432ac_cpp='$CPP $CPPFLAGS'
4433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436if test -n "$ac_tool_prefix"; then
4437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4438set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004440$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004441if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004442 $as_echo_n "(cached) " >&6
4443else
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC="$CC" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004456 break 2
4457 fi
4458done
cristy8b350f62009-11-15 23:12:43 +00004459 done
cristy3ed852e2009-09-05 21:47:34 +00004460IFS=$as_save_IFS
4461
4462fi
4463fi
4464CC=$ac_cv_prog_CC
4465if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467$as_echo "$CC" >&6; }
4468else
cristy8b350f62009-11-15 23:12:43 +00004469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470$as_echo "no" >&6; }
4471fi
4472
4473
4474fi
4475if test -z "$ac_cv_prog_CC"; then
4476 ac_ct_CC=$CC
4477 # Extract the first word of "gcc", so it can be a program name with args.
4478set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004481if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004482 $as_echo_n "(cached) " >&6
4483else
4484 if test -n "$ac_ct_CC"; then
4485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4486else
4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004494 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496 break 2
4497 fi
4498done
cristy8b350f62009-11-15 23:12:43 +00004499 done
cristy3ed852e2009-09-05 21:47:34 +00004500IFS=$as_save_IFS
4501
4502fi
4503fi
4504ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507$as_echo "$ac_ct_CC" >&6; }
4508else
cristy8b350f62009-11-15 23:12:43 +00004509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004510$as_echo "no" >&6; }
4511fi
4512
4513 if test "x$ac_ct_CC" = x; then
4514 CC=""
4515 else
4516 case $cross_compiling:$ac_tool_warned in
4517yes:)
cristy8b350f62009-11-15 23:12:43 +00004518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520ac_tool_warned=yes ;;
4521esac
4522 CC=$ac_ct_CC
4523 fi
4524else
4525 CC="$ac_cv_prog_CC"
4526fi
4527
4528if test -z "$CC"; then
4529 if test -n "$ac_tool_prefix"; then
4530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4531set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004534if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004535 $as_echo_n "(cached) " >&6
4536else
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC="$CC" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004547 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549 break 2
4550 fi
4551done
cristy8b350f62009-11-15 23:12:43 +00004552 done
cristy3ed852e2009-09-05 21:47:34 +00004553IFS=$as_save_IFS
4554
4555fi
4556fi
4557CC=$ac_cv_prog_CC
4558if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo "$CC" >&6; }
4561else
cristy8b350f62009-11-15 23:12:43 +00004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo "no" >&6; }
4564fi
4565
4566
4567 fi
4568fi
4569if test -z "$CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004574if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004575 $as_echo_n "(cached) " >&6
4576else
4577 if test -n "$CC"; then
4578 ac_cv_prog_CC="$CC" # Let the user override the test.
4579else
4580 ac_prog_rejected=no
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4590 continue
4591 fi
4592 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004594 break 2
4595 fi
4596done
cristy8b350f62009-11-15 23:12:43 +00004597 done
cristy3ed852e2009-09-05 21:47:34 +00004598IFS=$as_save_IFS
4599
4600if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4610 fi
4611fi
4612fi
4613fi
4614CC=$ac_cv_prog_CC
4615if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004617$as_echo "$CC" >&6; }
4618else
cristy8b350f62009-11-15 23:12:43 +00004619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620$as_echo "no" >&6; }
4621fi
4622
4623
4624fi
4625if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog in cl.exe
4628 do
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004633if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004634 $as_echo_n "(cached) " >&6
4635else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648 break 2
4649 fi
4650done
cristy8b350f62009-11-15 23:12:43 +00004651 done
cristy3ed852e2009-09-05 21:47:34 +00004652IFS=$as_save_IFS
4653
4654fi
4655fi
4656CC=$ac_cv_prog_CC
4657if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "$CC" >&6; }
4660else
cristy8b350f62009-11-15 23:12:43 +00004661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004662$as_echo "no" >&6; }
4663fi
4664
4665
4666 test -n "$CC" && break
4667 done
4668fi
4669if test -z "$CC"; then
4670 ac_ct_CC=$CC
4671 for ac_prog in cl.exe
4672do
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004677if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004678 $as_echo_n "(cached) " >&6
4679else
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004690 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692 break 2
4693 fi
4694done
cristy8b350f62009-11-15 23:12:43 +00004695 done
cristy3ed852e2009-09-05 21:47:34 +00004696IFS=$as_save_IFS
4697
4698fi
4699fi
4700ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703$as_echo "$ac_ct_CC" >&6; }
4704else
cristy8b350f62009-11-15 23:12:43 +00004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "no" >&6; }
4707fi
4708
4709
4710 test -n "$ac_ct_CC" && break
4711done
4712
4713 if test "x$ac_ct_CC" = x; then
4714 CC=""
4715 else
4716 case $cross_compiling:$ac_tool_warned in
4717yes:)
cristy8b350f62009-11-15 23:12:43 +00004718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720ac_tool_warned=yes ;;
4721esac
4722 CC=$ac_ct_CC
4723 fi
4724fi
4725
4726fi
4727
4728
cristy8b350f62009-11-15 23:12:43 +00004729test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004731as_fn_error $? "no acceptable C compiler found in \$PATH
4732See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004733
4734# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736set X $ac_compile
4737ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004738for ac_option in --version -v -V -qversion; do
4739 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
cristy8b350f62009-11-15 23:12:43 +00004744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745$as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004747 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004748 if test -s conftest.err; then
4749 sed '10a\
4750... rest of stderr output deleted ...
4751 10q' conftest.err >conftest.er1
4752 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004753 fi
cristycd4c5312009-11-22 01:19:08 +00004754 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4757done
cristy3ed852e2009-09-05 21:47:34 +00004758
cristy8b350f62009-11-15 23:12:43 +00004759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004760/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004761
cristy3ed852e2009-09-05 21:47:34 +00004762int
4763main ()
4764{
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004771ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004772# Try to create an executable without -o first, disregard a.out.
4773# It will help us diagnose broken compilers, and finding out an intuition
4774# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4776$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004777ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4778
4779# The possible output files:
4780ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4781
4782ac_rmfiles=
4783for ac_file in $ac_files
4784do
4785 case $ac_file in
4786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4787 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4788 esac
4789done
4790rm -f $ac_rmfiles
4791
cristy8b350f62009-11-15 23:12:43 +00004792if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004793case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796esac
cristy8b350f62009-11-15 23:12:43 +00004797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4798$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004799 (eval "$ac_link_default") 2>&5
4800 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4804# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4805# in a Makefile. We should not override ac_cv_exeext if it was cached,
4806# so that the user can short-circuit this test for compilers unknown to
4807# Autoconf.
4808for ac_file in $ac_files ''
4809do
4810 test -f "$ac_file" || continue
4811 case $ac_file in
4812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4813 ;;
4814 [ab].out )
4815 # We found the default executable, but exeext='' is most
4816 # certainly right.
4817 break;;
4818 *.* )
cristy8b350f62009-11-15 23:12:43 +00004819 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004820 then :; else
4821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4822 fi
4823 # We set ac_cv_exeext here because the later test for it is not
4824 # safe: cross compilers may not add the suffix if given an `-o'
4825 # argument, so we may need to know it at that point already.
4826 # Even if this section looks crufty: it has the advantage of
4827 # actually working.
4828 break;;
4829 * )
4830 break;;
4831 esac
4832done
4833test "$ac_cv_exeext" = no && ac_cv_exeext=
4834
4835else
4836 ac_file=''
4837fi
cristy8b350f62009-11-15 23:12:43 +00004838if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840$as_echo "no" >&6; }
4841$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004842sed 's/^/| /' conftest.$ac_ext >&5
4843
cristy8b350f62009-11-15 23:12:43 +00004844{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004846as_fn_error 77 "C compiler cannot create executables
4847See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004848else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004851fi
cristycd4c5312009-11-22 01:19:08 +00004852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4853$as_echo_n "checking for C compiler default output file name... " >&6; }
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4855$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004856ac_exeext=$ac_cv_exeext
4857
cristycd4c5312009-11-22 01:19:08 +00004858rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004859ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004861$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004862if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
cristy8b350f62009-11-15 23:12:43 +00004867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4868$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004869 (eval "$ac_link") 2>&5
4870 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004873 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4874# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4875# work properly (i.e., refer to `conftest.exe'), while it won't with
4876# `rm'.
4877for ac_file in conftest.exe conftest conftest.*; do
4878 test -f "$ac_file" || continue
4879 case $ac_file in
4880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4882 break;;
4883 * ) break;;
4884 esac
4885done
4886else
cristy8b350f62009-11-15 23:12:43 +00004887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004889as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4890See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004891fi
cristycd4c5312009-11-22 01:19:08 +00004892rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "$ac_cv_exeext" >&6; }
4895
4896rm -f conftest.$ac_ext
4897EXEEXT=$ac_cv_exeext
4898ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h. */
4901#include <stdio.h>
4902int
4903main ()
4904{
4905FILE *f = fopen ("conftest.out", "w");
4906 return ferror (f) || fclose (f) != 0;
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
4912ac_clean_files="$ac_clean_files conftest.out"
4913# Check that the compiler produces executables we can run. If not, either
4914# the compiler is broken, or we cross compile.
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4916$as_echo_n "checking whether we are cross compiling... " >&6; }
4917if test "$cross_compiling" != yes; then
4918 { { ac_try="$ac_link"
4919case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922esac
4923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4924$as_echo "$ac_try_echo"; } >&5
4925 (eval "$ac_link") 2>&5
4926 ac_status=$?
4927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928 test $ac_status = 0; }
4929 if { ac_try='./conftest$ac_cv_exeext'
4930 { { case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935$as_echo "$ac_try_echo"; } >&5
4936 (eval "$ac_try") 2>&5
4937 ac_status=$?
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }; }; then
4940 cross_compiling=no
4941 else
4942 if test "$cross_compiling" = maybe; then
4943 cross_compiling=yes
4944 else
4945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004947as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004948If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004949See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004950 fi
4951 fi
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4954$as_echo "$cross_compiling" >&6; }
4955
4956rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4957ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004959$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004960if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004961 $as_echo_n "(cached) " >&6
4962else
cristy8b350f62009-11-15 23:12:43 +00004963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004964/* end confdefs.h. */
4965
4966int
4967main ()
4968{
4969
4970 ;
4971 return 0;
4972}
4973_ACEOF
4974rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004975if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004976case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979esac
cristy8b350f62009-11-15 23:12:43 +00004980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4981$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004982 (eval "$ac_compile") 2>&5
4983 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004986 for ac_file in conftest.o conftest.obj conftest.*; do
4987 test -f "$ac_file" || continue;
4988 case $ac_file in
4989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4990 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4991 break;;
4992 esac
4993done
4994else
4995 $as_echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
cristy8b350f62009-11-15 23:12:43 +00004998{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005000as_fn_error $? "cannot compute suffix of object files: cannot compile
5001See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005002fi
cristy3ed852e2009-09-05 21:47:34 +00005003rm -f conftest.$ac_cv_objext conftest.$ac_ext
5004fi
cristy8b350f62009-11-15 23:12:43 +00005005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005006$as_echo "$ac_cv_objext" >&6; }
5007OBJEXT=$ac_cv_objext
5008ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005011if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005012 $as_echo_n "(cached) " >&6
5013else
cristy8b350f62009-11-15 23:12:43 +00005014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005015/* end confdefs.h. */
5016
5017int
5018main ()
5019{
5020#ifndef __GNUC__
5021 choke me
5022#endif
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005028if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005029 ac_compiler_gnu=yes
5030else
cristy8b350f62009-11-15 23:12:43 +00005031 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005032fi
cristy3ed852e2009-09-05 21:47:34 +00005033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034ac_cv_c_compiler_gnu=$ac_compiler_gnu
5035
5036fi
cristy8b350f62009-11-15 23:12:43 +00005037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005038$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5039if test $ac_compiler_gnu = yes; then
5040 GCC=yes
5041else
5042 GCC=
5043fi
5044ac_test_CFLAGS=${CFLAGS+set}
5045ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005047$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005048if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005049 $as_echo_n "(cached) " >&6
5050else
5051 ac_save_c_werror_flag=$ac_c_werror_flag
5052 ac_c_werror_flag=yes
5053 ac_cv_prog_cc_g=no
5054 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005056/* end confdefs.h. */
5057
5058int
5059main ()
5060{
5061
5062 ;
5063 return 0;
5064}
5065_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005066if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005067 ac_cv_prog_cc_g=yes
5068else
cristy8b350f62009-11-15 23:12:43 +00005069 CFLAGS=""
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005071/* end confdefs.h. */
5072
5073int
5074main ()
5075{
5076
5077 ;
5078 return 0;
5079}
5080_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005081if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005082
cristy8b350f62009-11-15 23:12:43 +00005083else
5084 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005085 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005087/* end confdefs.h. */
5088
5089int
5090main ()
5091{
5092
5093 ;
5094 return 0;
5095}
5096_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005097if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005098 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005099fi
cristy3ed852e2009-09-05 21:47:34 +00005100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
cristy3ed852e2009-09-05 21:47:34 +00005102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
cristy3ed852e2009-09-05 21:47:34 +00005104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_c_werror_flag=$ac_save_c_werror_flag
5106fi
cristy8b350f62009-11-15 23:12:43 +00005107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005108$as_echo "$ac_cv_prog_cc_g" >&6; }
5109if test "$ac_test_CFLAGS" = set; then
5110 CFLAGS=$ac_save_CFLAGS
5111elif test $ac_cv_prog_cc_g = yes; then
5112 if test "$GCC" = yes; then
5113 CFLAGS="-g -O2"
5114 else
5115 CFLAGS="-g"
5116 fi
5117else
5118 if test "$GCC" = yes; then
5119 CFLAGS="-O2"
5120 else
5121 CFLAGS=
5122 fi
5123fi
cristy8b350f62009-11-15 23:12:43 +00005124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005125$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005126if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005127 $as_echo_n "(cached) " >&6
5128else
5129 ac_cv_prog_cc_c89=no
5130ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005132/* end confdefs.h. */
5133#include <stdarg.h>
5134#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005135struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005136/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5137struct buf { int x; };
5138FILE * (*rcsopen) (struct buf *, struct stat *, int);
5139static char *e (p, i)
5140 char **p;
5141 int i;
5142{
5143 return p[i];
5144}
5145static char *f (char * (*g) (char **, int), char **p, ...)
5146{
5147 char *s;
5148 va_list v;
5149 va_start (v,p);
5150 s = g (p, va_arg (v,int));
5151 va_end (v);
5152 return s;
5153}
5154
5155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5156 function prototypes and stuff, but not '\xHH' hex character constants.
5157 These don't provoke an error unfortunately, instead are silently treated
5158 as 'x'. The following induces an error, until -std is added to get
5159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5160 array size at least. It's necessary to write '\x00'==0 to get something
5161 that's true only with -std. */
5162int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5163
5164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5165 inside strings and character constants. */
5166#define FOO(x) 'x'
5167int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5168
5169int test (int i, double x);
5170struct s1 {int (*f) (int a);};
5171struct s2 {int (*f) (double a);};
5172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5173int argc;
5174char **argv;
5175int
5176main ()
5177{
5178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5179 ;
5180 return 0;
5181}
5182_ACEOF
5183for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5185do
5186 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005187 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005188 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005189fi
cristy3ed852e2009-09-05 21:47:34 +00005190rm -f core conftest.err conftest.$ac_objext
5191 test "x$ac_cv_prog_cc_c89" != "xno" && break
5192done
5193rm -f conftest.$ac_ext
5194CC=$ac_save_CC
5195
5196fi
5197# AC_CACHE_VAL
5198case "x$ac_cv_prog_cc_c89" in
5199 x)
cristy8b350f62009-11-15 23:12:43 +00005200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005201$as_echo "none needed" >&6; } ;;
5202 xno)
cristy8b350f62009-11-15 23:12:43 +00005203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005204$as_echo "unsupported" >&6; } ;;
5205 *)
5206 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5209esac
cristy8b350f62009-11-15 23:12:43 +00005210if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005211
cristy8b350f62009-11-15 23:12:43 +00005212fi
cristy3ed852e2009-09-05 21:47:34 +00005213
5214ac_ext=c
5215ac_cpp='$CPP $CPPFLAGS'
5216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005219
cristy73bd4a52010-10-05 11:24:23 +00005220depcc="$CC" am_compiler_list=
5221
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5223$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005224if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005225 $as_echo_n "(cached) " >&6
5226else
5227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5228 # We make a subdir and do the tests there. Otherwise we can end up
5229 # making bogus files that we don't know about and never remove. For
5230 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005231 # making a dummy file named 'D' -- because '-MD' means "put the output
5232 # in D".
cristy7247bba2012-02-05 16:37:27 +00005233 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005234 mkdir conftest.dir
5235 # Copy depcomp to subdir because otherwise we won't find it if we're
5236 # using a relative directory.
5237 cp "$am_depcomp" conftest.dir
5238 cd conftest.dir
5239 # We will build objects and dependencies in a subdirectory because
5240 # it helps to detect inapplicable dependency modes. For instance
5241 # both Tru64's cc and ICC support -MD to output dependencies as a
5242 # side effect of compilation, but ICC will put the dependencies in
5243 # the current directory while Tru64 will put them in the object
5244 # directory.
5245 mkdir sub
5246
5247 am_cv_CC_dependencies_compiler_type=none
5248 if test "$am_compiler_list" = ""; then
5249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5250 fi
5251 am__universal=false
5252 case " $depcc " in #(
5253 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5254 esac
5255
5256 for depmode in $am_compiler_list; do
5257 # Setup a source with many dependencies, because some compilers
5258 # like to wrap large dependency lists on column 80 (with \), and
5259 # we should not choose a depcomp mode which is confused by this.
5260 #
5261 # We need to recreate these files for each test, as the compiler may
5262 # overwrite some of them when testing with obscure command lines.
5263 # This happens at least with the AIX C compiler.
5264 : > sub/conftest.c
5265 for i in 1 2 3 4 5 6; do
5266 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005267 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5268 # Solaris 10 /bin/sh.
5269 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005270 done
5271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5272
cristyc0890a62012-07-19 00:18:20 +00005273 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005274 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005275 # handle '-M -o', and we need to detect this. Also, some Intel
5276 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005277 am__obj=sub/conftest.${OBJEXT-o}
5278 am__minus_obj="-o $am__obj"
5279 case $depmode in
5280 gcc)
5281 # This depmode causes a compiler race in universal mode.
5282 test "$am__universal" = false || continue
5283 ;;
5284 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005285 # After this tag, mechanisms are not by side-effect, so they'll
5286 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005287 if test "x$enable_dependency_tracking" = xyes; then
5288 continue
5289 else
5290 break
5291 fi
5292 ;;
cristy7247bba2012-02-05 16:37:27 +00005293 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005294 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005295 # not run yet. These depmodes are late enough in the game, and
5296 # so weak that their functioning should not be impacted.
5297 am__obj=conftest.${OBJEXT-o}
5298 am__minus_obj=
5299 ;;
5300 none) break ;;
5301 esac
5302 if depmode=$depmode \
5303 source=sub/conftest.c object=$am__obj \
5304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5306 >/dev/null 2>conftest.err &&
5307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5311 # icc doesn't choke on unknown options, it will just issue warnings
5312 # or remarks (even with -Werror). So we grep stderr for any message
5313 # that says an option was ignored or not supported.
5314 # When given -MP, icc 7.0 and 7.1 complain thusly:
5315 # icc: Command line warning: ignoring option '-M'; no argument required
5316 # The diagnosis changed in icc 8.0:
5317 # icc: Command line remark: option '-MP' not supported
5318 if (grep 'ignoring option' conftest.err ||
5319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5320 am_cv_CC_dependencies_compiler_type=$depmode
5321 break
5322 fi
5323 fi
5324 done
5325
5326 cd ..
5327 rm -rf conftest.dir
5328else
5329 am_cv_CC_dependencies_compiler_type=none
5330fi
5331
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5334$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5335CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5336
5337 if
5338 test "x$enable_dependency_tracking" != xno \
5339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5340 am__fastdepCC_TRUE=
5341 am__fastdepCC_FALSE='#'
5342else
5343 am__fastdepCC_TRUE='#'
5344 am__fastdepCC_FALSE=
5345fi
5346
5347
cristy3ed852e2009-09-05 21:47:34 +00005348
cristya0b81c32010-01-22 02:54:33 +00005349ac_ext=c
5350ac_cpp='$CPP $CPPFLAGS'
5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5355$as_echo_n "checking how to run the C preprocessor... " >&6; }
5356# On Suns, sometimes $CPP names a directory.
5357if test -n "$CPP" && test -d "$CPP"; then
5358 CPP=
5359fi
5360if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005361 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005362 $as_echo_n "(cached) " >&6
5363else
5364 # Double quotes because CPP needs to be expanded
5365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5366 do
5367 ac_preproc_ok=false
5368for ac_c_preproc_warn_flag in '' yes
5369do
5370 # Use a header file that comes with gcc, so configuring glibc
5371 # with a fresh cross-compiler works.
5372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5373 # <limits.h> exists even on freestanding compilers.
5374 # On the NeXT, cc -E runs the code through the compiler's parser,
5375 # not just through cpp. "Syntax error" is here to catch this case.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h. */
5378#ifdef __STDC__
5379# include <limits.h>
5380#else
5381# include <assert.h>
5382#endif
5383 Syntax error
5384_ACEOF
5385if ac_fn_c_try_cpp "$LINENO"; then :
5386
5387else
5388 # Broken: fails on valid input.
5389continue
5390fi
cristyda16f162011-02-19 23:52:17 +00005391rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005392
5393 # OK, works on sane cases. Now check whether nonexistent headers
5394 # can be detected and how.
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h. */
5397#include <ac_nonexistent.h>
5398_ACEOF
5399if ac_fn_c_try_cpp "$LINENO"; then :
5400 # Broken: success on invalid input.
5401continue
5402else
5403 # Passes both tests.
5404ac_preproc_ok=:
5405break
5406fi
cristyda16f162011-02-19 23:52:17 +00005407rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005408
5409done
5410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005411rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005412if $ac_preproc_ok; then :
5413 break
5414fi
5415
5416 done
5417 ac_cv_prog_CPP=$CPP
5418
5419fi
5420 CPP=$ac_cv_prog_CPP
5421else
5422 ac_cv_prog_CPP=$CPP
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5425$as_echo "$CPP" >&6; }
5426ac_preproc_ok=false
5427for ac_c_preproc_warn_flag in '' yes
5428do
5429 # Use a header file that comes with gcc, so configuring glibc
5430 # with a fresh cross-compiler works.
5431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432 # <limits.h> exists even on freestanding compilers.
5433 # On the NeXT, cc -E runs the code through the compiler's parser,
5434 # not just through cpp. "Syntax error" is here to catch this case.
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437#ifdef __STDC__
5438# include <limits.h>
5439#else
5440# include <assert.h>
5441#endif
5442 Syntax error
5443_ACEOF
5444if ac_fn_c_try_cpp "$LINENO"; then :
5445
5446else
5447 # Broken: fails on valid input.
5448continue
5449fi
cristyda16f162011-02-19 23:52:17 +00005450rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005451
5452 # OK, works on sane cases. Now check whether nonexistent headers
5453 # can be detected and how.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h. */
5456#include <ac_nonexistent.h>
5457_ACEOF
5458if ac_fn_c_try_cpp "$LINENO"; then :
5459 # Broken: success on invalid input.
5460continue
5461else
5462 # Passes both tests.
5463ac_preproc_ok=:
5464break
5465fi
cristyda16f162011-02-19 23:52:17 +00005466rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005467
5468done
5469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005470rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005471if $ac_preproc_ok; then :
5472
5473else
5474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005476as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5477See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005478fi
5479
5480ac_ext=c
5481ac_cpp='$CPP $CPPFLAGS'
5482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5488$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005489if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005490 $as_echo_n "(cached) " >&6
5491else
5492 if test -z "$GREP"; then
5493 ac_path_GREP_found=false
5494 # Loop through the user's path and test for each of PROGNAME-LIST
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_prog in grep ggrep; do
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005503 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005504# Check for GNU ac_path_GREP and select it if it is found.
5505 # Check for GNU $ac_path_GREP
5506case `"$ac_path_GREP" --version 2>&1` in
5507*GNU*)
5508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5509*)
5510 ac_count=0
5511 $as_echo_n 0123456789 >"conftest.in"
5512 while :
5513 do
5514 cat "conftest.in" "conftest.in" >"conftest.tmp"
5515 mv "conftest.tmp" "conftest.in"
5516 cp "conftest.in" "conftest.nl"
5517 $as_echo 'GREP' >> "conftest.nl"
5518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5520 as_fn_arith $ac_count + 1 && ac_count=$as_val
5521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5522 # Best one so far, save it but keep looking for a better one
5523 ac_cv_path_GREP="$ac_path_GREP"
5524 ac_path_GREP_max=$ac_count
5525 fi
5526 # 10*(2^10) chars as input seems more than enough
5527 test $ac_count -gt 10 && break
5528 done
5529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5530esac
5531
5532 $ac_path_GREP_found && break 3
5533 done
5534 done
5535 done
5536IFS=$as_save_IFS
5537 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005538 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005539 fi
5540else
5541 ac_cv_path_GREP=$GREP
5542fi
5543
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5546$as_echo "$ac_cv_path_GREP" >&6; }
5547 GREP="$ac_cv_path_GREP"
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5551$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005552if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005553 $as_echo_n "(cached) " >&6
5554else
5555 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5556 then ac_cv_path_EGREP="$GREP -E"
5557 else
5558 if test -z "$EGREP"; then
5559 ac_path_EGREP_found=false
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5563do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_prog in egrep; do
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005569 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005570# Check for GNU ac_path_EGREP and select it if it is found.
5571 # Check for GNU $ac_path_EGREP
5572case `"$ac_path_EGREP" --version 2>&1` in
5573*GNU*)
5574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5575*)
5576 ac_count=0
5577 $as_echo_n 0123456789 >"conftest.in"
5578 while :
5579 do
5580 cat "conftest.in" "conftest.in" >"conftest.tmp"
5581 mv "conftest.tmp" "conftest.in"
5582 cp "conftest.in" "conftest.nl"
5583 $as_echo 'EGREP' >> "conftest.nl"
5584 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586 as_fn_arith $ac_count + 1 && ac_count=$as_val
5587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5588 # Best one so far, save it but keep looking for a better one
5589 ac_cv_path_EGREP="$ac_path_EGREP"
5590 ac_path_EGREP_max=$ac_count
5591 fi
5592 # 10*(2^10) chars as input seems more than enough
5593 test $ac_count -gt 10 && break
5594 done
5595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596esac
5597
5598 $ac_path_EGREP_found && break 3
5599 done
5600 done
5601 done
5602IFS=$as_save_IFS
5603 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005604 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005605 fi
5606else
5607 ac_cv_path_EGREP=$EGREP
5608fi
5609
5610 fi
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5613$as_echo "$ac_cv_path_EGREP" >&6; }
5614 EGREP="$ac_cv_path_EGREP"
5615
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5618$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005619if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005620 $as_echo_n "(cached) " >&6
5621else
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h. */
5624#include <stdlib.h>
5625#include <stdarg.h>
5626#include <string.h>
5627#include <float.h>
5628
5629int
5630main ()
5631{
5632
5633 ;
5634 return 0;
5635}
5636_ACEOF
5637if ac_fn_c_try_compile "$LINENO"; then :
5638 ac_cv_header_stdc=yes
5639else
5640 ac_cv_header_stdc=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643
5644if test $ac_cv_header_stdc = yes; then
5645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648#include <string.h>
5649
5650_ACEOF
5651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "memchr" >/dev/null 2>&1; then :
5653
5654else
5655 ac_cv_header_stdc=no
5656fi
5657rm -f conftest*
5658
5659fi
5660
5661if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h. */
5665#include <stdlib.h>
5666
5667_ACEOF
5668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5669 $EGREP "free" >/dev/null 2>&1; then :
5670
5671else
5672 ac_cv_header_stdc=no
5673fi
5674rm -f conftest*
5675
5676fi
5677
5678if test $ac_cv_header_stdc = yes; then
5679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5680 if test "$cross_compiling" = yes; then :
5681 :
5682else
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685#include <ctype.h>
5686#include <stdlib.h>
5687#if ((' ' & 0x0FF) == 0x020)
5688# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5689# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5690#else
5691# define ISLOWER(c) \
5692 (('a' <= (c) && (c) <= 'i') \
5693 || ('j' <= (c) && (c) <= 'r') \
5694 || ('s' <= (c) && (c) <= 'z'))
5695# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5696#endif
5697
5698#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699int
5700main ()
5701{
5702 int i;
5703 for (i = 0; i < 256; i++)
5704 if (XOR (islower (i), ISLOWER (i))
5705 || toupper (i) != TOUPPER (i))
5706 return 2;
5707 return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_run "$LINENO"; then :
5711
5712else
5713 ac_cv_header_stdc=no
5714fi
5715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5716 conftest.$ac_objext conftest.beam conftest.$ac_ext
5717fi
5718
5719fi
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5722$as_echo "$ac_cv_header_stdc" >&6; }
5723if test $ac_cv_header_stdc = yes; then
5724
5725$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5726
5727fi
5728
5729# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5731 inttypes.h stdint.h unistd.h
5732do :
5733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5735"
cristy98dddb52010-11-04 00:30:15 +00005736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005737 cat >>confdefs.h <<_ACEOF
5738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5739_ACEOF
5740
5741fi
5742
5743done
5744
5745
5746
5747 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 +00005748if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005749 MINIX=yes
5750else
5751 MINIX=
5752fi
5753
5754
5755 if test "$MINIX" = yes; then
5756
5757$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5758
5759
5760$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5761
5762
5763$as_echo "#define _MINIX 1" >>confdefs.h
5764
5765 fi
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5769$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005770if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005771 $as_echo_n "(cached) " >&6
5772else
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h. */
5775
cristy14fefe52012-05-21 00:59:18 +00005776# define __EXTENSIONS__ 1
5777 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005778int
5779main ()
5780{
5781
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_cv_safe_to_define___extensions__=yes
5788else
5789 ac_cv_safe_to_define___extensions__=no
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5794$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5795 test $ac_cv_safe_to_define___extensions__ = yes &&
5796 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5797
5798 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5799
5800 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5801
5802 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5803
5804 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5805
5806
5807
5808# Check for programs
5809ac_ext=c
5810ac_cpp='$CPP $CPPFLAGS'
5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5816set dummy ${ac_tool_prefix}gcc; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005819if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$CC"; then
5823 ac_cv_prog_CC="$CC" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837 done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842CC=$ac_cv_prog_CC
5843if test -n "$CC"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5845$as_echo "$CC" >&6; }
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852fi
5853if test -z "$ac_cv_prog_CC"; then
5854 ac_ct_CC=$CC
5855 # Extract the first word of "gcc", so it can be a program name with args.
5856set dummy gcc; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005859if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$ac_ct_CC"; then
5863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005872 ac_cv_prog_ac_ct_CC="gcc"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877 done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_CC=$ac_cv_prog_ac_ct_CC
5883if test -n "$ac_ct_CC"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5885$as_echo "$ac_ct_CC" >&6; }
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891 if test "x$ac_ct_CC" = x; then
5892 CC=""
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895yes:)
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898ac_tool_warned=yes ;;
5899esac
5900 CC=$ac_ct_CC
5901 fi
5902else
5903 CC="$ac_cv_prog_CC"
5904fi
5905
5906if test -z "$CC"; then
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}cc; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005912if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$CC"; then
5916 ac_cv_prog_CC="$CC" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005925 ac_cv_prog_CC="${ac_tool_prefix}cc"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935CC=$ac_cv_prog_CC
5936if test -n "$CC"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5938$as_echo "$CC" >&6; }
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945 fi
5946fi
5947if test -z "$CC"; then
5948 # Extract the first word of "cc", so it can be a program name with args.
5949set dummy cc; ac_word=$2
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005952if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005953 $as_echo_n "(cached) " >&6
5954else
5955 if test -n "$CC"; then
5956 ac_cv_prog_CC="$CC" # Let the user override the test.
5957else
5958 ac_prog_rejected=no
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5967 ac_prog_rejected=yes
5968 continue
5969 fi
5970 ac_cv_prog_CC="cc"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974done
5975 done
5976IFS=$as_save_IFS
5977
5978if test $ac_prog_rejected = yes; then
5979 # We found a bogon in the path, so make sure we never use it.
5980 set dummy $ac_cv_prog_CC
5981 shift
5982 if test $# != 0; then
5983 # We chose a different compiler from the bogus one.
5984 # However, it has the same basename, so the bogon will be chosen
5985 # first if we set CC to just the basename; use the full file name.
5986 shift
5987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5988 fi
5989fi
5990fi
5991fi
5992CC=$ac_cv_prog_CC
5993if test -n "$CC"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5995$as_echo "$CC" >&6; }
5996else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001
6002fi
6003if test -z "$CC"; then
6004 if test -n "$ac_tool_prefix"; then
6005 for ac_prog in cl.exe
6006 do
6007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006011if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006012 $as_echo_n "(cached) " >&6
6013else
6014 if test -n "$CC"; then
6015 ac_cv_prog_CC="$CC" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028done
6029 done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034CC=$ac_cv_prog_CC
6035if test -n "$CC"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6037$as_echo "$CC" >&6; }
6038else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044 test -n "$CC" && break
6045 done
6046fi
6047if test -z "$CC"; then
6048 ac_ct_CC=$CC
6049 for ac_prog in cl.exe
6050do
6051 # Extract the first word of "$ac_prog", so it can be a program name with args.
6052set dummy $ac_prog; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006055if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006056 $as_echo_n "(cached) " >&6
6057else
6058 if test -n "$ac_ct_CC"; then
6059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006068 ac_cv_prog_ac_ct_CC="$ac_prog"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073 done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078ac_ct_CC=$ac_cv_prog_ac_ct_CC
6079if test -n "$ac_ct_CC"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6081$as_echo "$ac_ct_CC" >&6; }
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088 test -n "$ac_ct_CC" && break
6089done
6090
6091 if test "x$ac_ct_CC" = x; then
6092 CC=""
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095yes:)
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100 CC=$ac_ct_CC
6101 fi
6102fi
6103
6104fi
6105
6106
6107test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006109as_fn_error $? "no acceptable C compiler found in \$PATH
6110See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006111
6112# Provide some information about the compiler.
6113$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6114set X $ac_compile
6115ac_compiler=$2
6116for ac_option in --version -v -V -qversion; do
6117 { { ac_try="$ac_compiler $ac_option >&5"
6118case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
6122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6123$as_echo "$ac_try_echo"; } >&5
6124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6125 ac_status=$?
6126 if test -s conftest.err; then
6127 sed '10a\
6128... rest of stderr output deleted ...
6129 10q' conftest.err >conftest.er1
6130 cat conftest.er1 >&5
6131 fi
6132 rm -f conftest.er1 conftest.err
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; }
6135done
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6138$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006139if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006140 $as_echo_n "(cached) " >&6
6141else
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h. */
6144
6145int
6146main ()
6147{
6148#ifndef __GNUC__
6149 choke me
6150#endif
6151
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156if ac_fn_c_try_compile "$LINENO"; then :
6157 ac_compiler_gnu=yes
6158else
6159 ac_compiler_gnu=no
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162ac_cv_c_compiler_gnu=$ac_compiler_gnu
6163
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6166$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6167if test $ac_compiler_gnu = yes; then
6168 GCC=yes
6169else
6170 GCC=
6171fi
6172ac_test_CFLAGS=${CFLAGS+set}
6173ac_save_CFLAGS=$CFLAGS
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6175$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006176if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006177 $as_echo_n "(cached) " >&6
6178else
6179 ac_save_c_werror_flag=$ac_c_werror_flag
6180 ac_c_werror_flag=yes
6181 ac_cv_prog_cc_g=no
6182 CFLAGS="-g"
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185
6186int
6187main ()
6188{
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"; then :
6195 ac_cv_prog_cc_g=yes
6196else
6197 CFLAGS=""
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h. */
6200
6201int
6202main ()
6203{
6204
6205 ;
6206 return 0;
6207}
6208_ACEOF
6209if ac_fn_c_try_compile "$LINENO"; then :
6210
6211else
6212 ac_c_werror_flag=$ac_save_c_werror_flag
6213 CFLAGS="-g"
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h. */
6216
6217int
6218main ()
6219{
6220
6221 ;
6222 return 0;
6223}
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"; then :
6226 ac_cv_prog_cc_g=yes
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 ac_c_werror_flag=$ac_save_c_werror_flag
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6236$as_echo "$ac_cv_prog_cc_g" >&6; }
6237if test "$ac_test_CFLAGS" = set; then
6238 CFLAGS=$ac_save_CFLAGS
6239elif test $ac_cv_prog_cc_g = yes; then
6240 if test "$GCC" = yes; then
6241 CFLAGS="-g -O2"
6242 else
6243 CFLAGS="-g"
6244 fi
6245else
6246 if test "$GCC" = yes; then
6247 CFLAGS="-O2"
6248 else
6249 CFLAGS=
6250 fi
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6253$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006254if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006255 $as_echo_n "(cached) " >&6
6256else
6257 ac_cv_prog_cc_c89=no
6258ac_save_CC=$CC
6259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h. */
6261#include <stdarg.h>
6262#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006263struct stat;
cristya0b81c32010-01-22 02:54:33 +00006264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6265struct buf { int x; };
6266FILE * (*rcsopen) (struct buf *, struct stat *, int);
6267static char *e (p, i)
6268 char **p;
6269 int i;
6270{
6271 return p[i];
6272}
6273static char *f (char * (*g) (char **, int), char **p, ...)
6274{
6275 char *s;
6276 va_list v;
6277 va_start (v,p);
6278 s = g (p, va_arg (v,int));
6279 va_end (v);
6280 return s;
6281}
6282
6283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6284 function prototypes and stuff, but not '\xHH' hex character constants.
6285 These don't provoke an error unfortunately, instead are silently treated
6286 as 'x'. The following induces an error, until -std is added to get
6287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6288 array size at least. It's necessary to write '\x00'==0 to get something
6289 that's true only with -std. */
6290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6291
6292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6293 inside strings and character constants. */
6294#define FOO(x) 'x'
6295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6296
6297int test (int i, double x);
6298struct s1 {int (*f) (int a);};
6299struct s2 {int (*f) (double a);};
6300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6301int argc;
6302char **argv;
6303int
6304main ()
6305{
6306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6313do
6314 CC="$ac_save_CC $ac_arg"
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316 ac_cv_prog_cc_c89=$ac_arg
6317fi
6318rm -f core conftest.err conftest.$ac_objext
6319 test "x$ac_cv_prog_cc_c89" != "xno" && break
6320done
6321rm -f conftest.$ac_ext
6322CC=$ac_save_CC
6323
6324fi
6325# AC_CACHE_VAL
6326case "x$ac_cv_prog_cc_c89" in
6327 x)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6329$as_echo "none needed" >&6; } ;;
6330 xno)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6332$as_echo "unsupported" >&6; } ;;
6333 *)
6334 CC="$CC $ac_cv_prog_cc_c89"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6336$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6337esac
6338if test "x$ac_cv_prog_cc_c89" != xno; then :
6339
6340fi
6341
6342ac_ext=c
6343ac_cpp='$CPP $CPPFLAGS'
6344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346ac_compiler_gnu=$ac_cv_c_compiler_gnu
6347
cristy73bd4a52010-10-05 11:24:23 +00006348depcc="$CC" am_compiler_list=
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6351$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006352if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006353 $as_echo_n "(cached) " >&6
6354else
6355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6356 # We make a subdir and do the tests there. Otherwise we can end up
6357 # making bogus files that we don't know about and never remove. For
6358 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006359 # making a dummy file named 'D' -- because '-MD' means "put the output
6360 # in D".
cristy7247bba2012-02-05 16:37:27 +00006361 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006362 mkdir conftest.dir
6363 # Copy depcomp to subdir because otherwise we won't find it if we're
6364 # using a relative directory.
6365 cp "$am_depcomp" conftest.dir
6366 cd conftest.dir
6367 # We will build objects and dependencies in a subdirectory because
6368 # it helps to detect inapplicable dependency modes. For instance
6369 # both Tru64's cc and ICC support -MD to output dependencies as a
6370 # side effect of compilation, but ICC will put the dependencies in
6371 # the current directory while Tru64 will put them in the object
6372 # directory.
6373 mkdir sub
6374
6375 am_cv_CC_dependencies_compiler_type=none
6376 if test "$am_compiler_list" = ""; then
6377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6378 fi
6379 am__universal=false
6380 case " $depcc " in #(
6381 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6382 esac
6383
6384 for depmode in $am_compiler_list; do
6385 # Setup a source with many dependencies, because some compilers
6386 # like to wrap large dependency lists on column 80 (with \), and
6387 # we should not choose a depcomp mode which is confused by this.
6388 #
6389 # We need to recreate these files for each test, as the compiler may
6390 # overwrite some of them when testing with obscure command lines.
6391 # This happens at least with the AIX C compiler.
6392 : > sub/conftest.c
6393 for i in 1 2 3 4 5 6; do
6394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006395 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6396 # Solaris 10 /bin/sh.
6397 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006398 done
6399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6400
cristyc0890a62012-07-19 00:18:20 +00006401 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006402 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006403 # handle '-M -o', and we need to detect this. Also, some Intel
6404 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006405 am__obj=sub/conftest.${OBJEXT-o}
6406 am__minus_obj="-o $am__obj"
6407 case $depmode in
6408 gcc)
6409 # This depmode causes a compiler race in universal mode.
6410 test "$am__universal" = false || continue
6411 ;;
6412 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006413 # After this tag, mechanisms are not by side-effect, so they'll
6414 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006415 if test "x$enable_dependency_tracking" = xyes; then
6416 continue
6417 else
6418 break
6419 fi
6420 ;;
cristy7247bba2012-02-05 16:37:27 +00006421 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006422 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006423 # not run yet. These depmodes are late enough in the game, and
6424 # so weak that their functioning should not be impacted.
6425 am__obj=conftest.${OBJEXT-o}
6426 am__minus_obj=
6427 ;;
6428 none) break ;;
6429 esac
6430 if depmode=$depmode \
6431 source=sub/conftest.c object=$am__obj \
6432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6433 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6434 >/dev/null 2>conftest.err &&
6435 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6436 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6437 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6438 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6439 # icc doesn't choke on unknown options, it will just issue warnings
6440 # or remarks (even with -Werror). So we grep stderr for any message
6441 # that says an option was ignored or not supported.
6442 # When given -MP, icc 7.0 and 7.1 complain thusly:
6443 # icc: Command line warning: ignoring option '-M'; no argument required
6444 # The diagnosis changed in icc 8.0:
6445 # icc: Command line remark: option '-MP' not supported
6446 if (grep 'ignoring option' conftest.err ||
6447 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6448 am_cv_CC_dependencies_compiler_type=$depmode
6449 break
6450 fi
6451 fi
6452 done
6453
6454 cd ..
6455 rm -rf conftest.dir
6456else
6457 am_cv_CC_dependencies_compiler_type=none
6458fi
6459
6460fi
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6462$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6463CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6464
6465 if
6466 test "x$enable_dependency_tracking" != xno \
6467 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6468 am__fastdepCC_TRUE=
6469 am__fastdepCC_FALSE='#'
6470else
6471 am__fastdepCC_TRUE='#'
6472 am__fastdepCC_FALSE=
6473fi
6474
6475
cristy95646052009-11-28 23:05:30 +00006476ac_ext=cpp
6477ac_cpp='$CXXCPP $CPPFLAGS'
6478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6481if test -z "$CXX"; then
6482 if test -n "$CCC"; then
6483 CXX=$CCC
6484 else
6485 if test -n "$ac_tool_prefix"; then
6486 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6487 do
6488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006492if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006493 $as_echo_n "(cached) " >&6
6494else
6495 if test -n "$CXX"; then
6496 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509done
6510 done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515CXX=$ac_cv_prog_CXX
6516if test -n "$CXX"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6518$as_echo "$CXX" >&6; }
6519else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525 test -n "$CXX" && break
6526 done
6527fi
6528if test -z "$CXX"; then
6529 ac_ct_CXX=$CXX
6530 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6531do
6532 # Extract the first word of "$ac_prog", so it can be a program name with args.
6533set dummy $ac_prog; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006536if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006537 $as_echo_n "(cached) " >&6
6538else
6539 if test -n "$ac_ct_CXX"; then
6540 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006549 ac_cv_prog_ac_ct_CXX="$ac_prog"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554 done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6560if test -n "$ac_ct_CXX"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6562$as_echo "$ac_ct_CXX" >&6; }
6563else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568
6569 test -n "$ac_ct_CXX" && break
6570done
6571
6572 if test "x$ac_ct_CXX" = x; then
6573 CXX="g++"
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576yes:)
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579ac_tool_warned=yes ;;
6580esac
6581 CXX=$ac_ct_CXX
6582 fi
6583fi
6584
6585 fi
6586fi
6587# Provide some information about the compiler.
6588$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6589set X $ac_compile
6590ac_compiler=$2
6591for ac_option in --version -v -V -qversion; do
6592 { { ac_try="$ac_compiler $ac_option >&5"
6593case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596esac
6597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6598$as_echo "$ac_try_echo"; } >&5
6599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6600 ac_status=$?
6601 if test -s conftest.err; then
6602 sed '10a\
6603... rest of stderr output deleted ...
6604 10q' conftest.err >conftest.er1
6605 cat conftest.er1 >&5
6606 fi
6607 rm -f conftest.er1 conftest.err
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }
6610done
6611
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6613$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006614if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006615 $as_echo_n "(cached) " >&6
6616else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h. */
6619
6620int
6621main ()
6622{
6623#ifndef __GNUC__
6624 choke me
6625#endif
6626
6627 ;
6628 return 0;
6629}
6630_ACEOF
6631if ac_fn_cxx_try_compile "$LINENO"; then :
6632 ac_compiler_gnu=yes
6633else
6634 ac_compiler_gnu=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6638
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6641$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6642if test $ac_compiler_gnu = yes; then
6643 GXX=yes
6644else
6645 GXX=
6646fi
6647ac_test_CXXFLAGS=${CXXFLAGS+set}
6648ac_save_CXXFLAGS=$CXXFLAGS
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6650$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006651if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006652 $as_echo_n "(cached) " >&6
6653else
6654 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6655 ac_cxx_werror_flag=yes
6656 ac_cv_prog_cxx_g=no
6657 CXXFLAGS="-g"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h. */
6660
6661int
6662main ()
6663{
6664
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669if ac_fn_cxx_try_compile "$LINENO"; then :
6670 ac_cv_prog_cxx_g=yes
6671else
6672 CXXFLAGS=""
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675
6676int
6677main ()
6678{
6679
6680 ;
6681 return 0;
6682}
6683_ACEOF
6684if ac_fn_cxx_try_compile "$LINENO"; then :
6685
6686else
6687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6688 CXXFLAGS="-g"
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h. */
6691
6692int
6693main ()
6694{
6695
6696 ;
6697 return 0;
6698}
6699_ACEOF
6700if ac_fn_cxx_try_compile "$LINENO"; then :
6701 ac_cv_prog_cxx_g=yes
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6709fi
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6711$as_echo "$ac_cv_prog_cxx_g" >&6; }
6712if test "$ac_test_CXXFLAGS" = set; then
6713 CXXFLAGS=$ac_save_CXXFLAGS
6714elif test $ac_cv_prog_cxx_g = yes; then
6715 if test "$GXX" = yes; then
6716 CXXFLAGS="-g -O2"
6717 else
6718 CXXFLAGS="-g"
6719 fi
6720else
6721 if test "$GXX" = yes; then
6722 CXXFLAGS="-O2"
6723 else
6724 CXXFLAGS=
6725 fi
6726fi
6727ac_ext=c
6728ac_cpp='$CPP $CPPFLAGS'
6729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731ac_compiler_gnu=$ac_cv_c_compiler_gnu
6732
cristy73bd4a52010-10-05 11:24:23 +00006733depcc="$CXX" am_compiler_list=
6734
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6736$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006737if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006738 $as_echo_n "(cached) " >&6
6739else
6740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6741 # We make a subdir and do the tests there. Otherwise we can end up
6742 # making bogus files that we don't know about and never remove. For
6743 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006744 # making a dummy file named 'D' -- because '-MD' means "put the output
6745 # in D".
cristy7247bba2012-02-05 16:37:27 +00006746 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006747 mkdir conftest.dir
6748 # Copy depcomp to subdir because otherwise we won't find it if we're
6749 # using a relative directory.
6750 cp "$am_depcomp" conftest.dir
6751 cd conftest.dir
6752 # We will build objects and dependencies in a subdirectory because
6753 # it helps to detect inapplicable dependency modes. For instance
6754 # both Tru64's cc and ICC support -MD to output dependencies as a
6755 # side effect of compilation, but ICC will put the dependencies in
6756 # the current directory while Tru64 will put them in the object
6757 # directory.
6758 mkdir sub
6759
6760 am_cv_CXX_dependencies_compiler_type=none
6761 if test "$am_compiler_list" = ""; then
6762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6763 fi
6764 am__universal=false
6765 case " $depcc " in #(
6766 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6767 esac
6768
6769 for depmode in $am_compiler_list; do
6770 # Setup a source with many dependencies, because some compilers
6771 # like to wrap large dependency lists on column 80 (with \), and
6772 # we should not choose a depcomp mode which is confused by this.
6773 #
6774 # We need to recreate these files for each test, as the compiler may
6775 # overwrite some of them when testing with obscure command lines.
6776 # This happens at least with the AIX C compiler.
6777 : > sub/conftest.c
6778 for i in 1 2 3 4 5 6; do
6779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006780 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6781 # Solaris 10 /bin/sh.
6782 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006783 done
6784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6785
cristyc0890a62012-07-19 00:18:20 +00006786 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006787 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006788 # handle '-M -o', and we need to detect this. Also, some Intel
6789 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006790 am__obj=sub/conftest.${OBJEXT-o}
6791 am__minus_obj="-o $am__obj"
6792 case $depmode in
6793 gcc)
6794 # This depmode causes a compiler race in universal mode.
6795 test "$am__universal" = false || continue
6796 ;;
6797 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006798 # After this tag, mechanisms are not by side-effect, so they'll
6799 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006800 if test "x$enable_dependency_tracking" = xyes; then
6801 continue
6802 else
6803 break
6804 fi
6805 ;;
cristy7247bba2012-02-05 16:37:27 +00006806 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006807 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006808 # not run yet. These depmodes are late enough in the game, and
6809 # so weak that their functioning should not be impacted.
6810 am__obj=conftest.${OBJEXT-o}
6811 am__minus_obj=
6812 ;;
6813 none) break ;;
6814 esac
6815 if depmode=$depmode \
6816 source=sub/conftest.c object=$am__obj \
6817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6819 >/dev/null 2>conftest.err &&
6820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6824 # icc doesn't choke on unknown options, it will just issue warnings
6825 # or remarks (even with -Werror). So we grep stderr for any message
6826 # that says an option was ignored or not supported.
6827 # When given -MP, icc 7.0 and 7.1 complain thusly:
6828 # icc: Command line warning: ignoring option '-M'; no argument required
6829 # The diagnosis changed in icc 8.0:
6830 # icc: Command line remark: option '-MP' not supported
6831 if (grep 'ignoring option' conftest.err ||
6832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6833 am_cv_CXX_dependencies_compiler_type=$depmode
6834 break
6835 fi
6836 fi
6837 done
6838
6839 cd ..
6840 rm -rf conftest.dir
6841else
6842 am_cv_CXX_dependencies_compiler_type=none
6843fi
6844
6845fi
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6847$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6848CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6849
6850 if
6851 test "x$enable_dependency_tracking" != xno \
6852 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6853 am__fastdepCXX_TRUE=
6854 am__fastdepCXX_FALSE='#'
6855else
6856 am__fastdepCXX_TRUE='#'
6857 am__fastdepCXX_FALSE=
6858fi
6859
6860
cristy8b350f62009-11-15 23:12:43 +00006861 case $ac_cv_prog_cc_stdc in #(
6862 no) :
6863 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6864 *) :
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006866$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006867if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006868 $as_echo_n "(cached) " >&6
6869else
6870 ac_cv_prog_cc_c99=no
6871ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006873/* end confdefs.h. */
6874#include <stdarg.h>
6875#include <stdbool.h>
6876#include <stdlib.h>
6877#include <wchar.h>
6878#include <stdio.h>
6879
6880// Check varargs macros. These examples are taken from C99 6.10.3.5.
6881#define debug(...) fprintf (stderr, __VA_ARGS__)
6882#define showlist(...) puts (#__VA_ARGS__)
6883#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6884static void
6885test_varargs_macros (void)
6886{
6887 int x = 1234;
6888 int y = 5678;
6889 debug ("Flag");
6890 debug ("X = %d\n", x);
6891 showlist (The first, second, and third items.);
6892 report (x>y, "x is %d but y is %d", x, y);
6893}
6894
6895// Check long long types.
6896#define BIG64 18446744073709551615ull
6897#define BIG32 4294967295ul
6898#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6899#if !BIG_OK
6900 your preprocessor is broken;
6901#endif
6902#if BIG_OK
6903#else
6904 your preprocessor is broken;
6905#endif
6906static long long int bignum = -9223372036854775807LL;
6907static unsigned long long int ubignum = BIG64;
6908
6909struct incomplete_array
6910{
6911 int datasize;
6912 double data[];
6913};
6914
6915struct named_init {
6916 int number;
6917 const wchar_t *name;
6918 double average;
6919};
6920
6921typedef const char *ccp;
6922
6923static inline int
6924test_restrict (ccp restrict text)
6925{
6926 // See if C++-style comments work.
6927 // Iterate through items via the restricted pointer.
6928 // Also check for declarations in for loops.
6929 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6930 continue;
6931 return 0;
6932}
6933
6934// Check varargs and va_copy.
6935static void
6936test_varargs (const char *format, ...)
6937{
6938 va_list args;
6939 va_start (args, format);
6940 va_list args_copy;
6941 va_copy (args_copy, args);
6942
6943 const char *str;
6944 int number;
6945 float fnumber;
6946
6947 while (*format)
6948 {
6949 switch (*format++)
6950 {
6951 case 's': // string
6952 str = va_arg (args_copy, const char *);
6953 break;
6954 case 'd': // int
6955 number = va_arg (args_copy, int);
6956 break;
6957 case 'f': // float
6958 fnumber = va_arg (args_copy, double);
6959 break;
6960 default:
6961 break;
6962 }
6963 }
6964 va_end (args_copy);
6965 va_end (args);
6966}
6967
6968int
6969main ()
6970{
6971
6972 // Check bool.
6973 _Bool success = false;
6974
6975 // Check restrict.
6976 if (test_restrict ("String literal") == 0)
6977 success = true;
6978 char *restrict newvar = "Another string";
6979
6980 // Check varargs.
6981 test_varargs ("s, d' f .", "string", 65, 34.234);
6982 test_varargs_macros ();
6983
6984 // Check flexible array members.
6985 struct incomplete_array *ia =
6986 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6987 ia->datasize = 10;
6988 for (int i = 0; i < ia->datasize; ++i)
6989 ia->data[i] = i * 1.234;
6990
6991 // Check named initializers.
6992 struct named_init ni = {
6993 .number = 34,
6994 .name = L"Test wide string",
6995 .average = 543.34343,
6996 };
6997
6998 ni.number = 58;
6999
7000 int dynamic_array[ni.number];
7001 dynamic_array[ni.number - 1] = 543;
7002
7003 // work around unused variable warnings
7004 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7005 || dynamic_array[ni.number - 1] != 543);
7006
7007 ;
7008 return 0;
7009}
7010_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007011for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007012do
7013 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007014 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007015 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007016fi
cristy3ed852e2009-09-05 21:47:34 +00007017rm -f core conftest.err conftest.$ac_objext
7018 test "x$ac_cv_prog_cc_c99" != "xno" && break
7019done
7020rm -f conftest.$ac_ext
7021CC=$ac_save_CC
7022
7023fi
7024# AC_CACHE_VAL
7025case "x$ac_cv_prog_cc_c99" in
7026 x)
cristy8b350f62009-11-15 23:12:43 +00007027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007028$as_echo "none needed" >&6; } ;;
7029 xno)
cristy8b350f62009-11-15 23:12:43 +00007030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007031$as_echo "unsupported" >&6; } ;;
7032 *)
7033 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007035$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7036esac
cristy8b350f62009-11-15 23:12:43 +00007037if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007038 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7039else
cristy8b350f62009-11-15 23:12:43 +00007040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007041$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007042if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007043 $as_echo_n "(cached) " >&6
7044else
7045 ac_cv_prog_cc_c89=no
7046ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007048/* end confdefs.h. */
7049#include <stdarg.h>
7050#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007051struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7053struct buf { int x; };
7054FILE * (*rcsopen) (struct buf *, struct stat *, int);
7055static char *e (p, i)
7056 char **p;
7057 int i;
7058{
7059 return p[i];
7060}
7061static char *f (char * (*g) (char **, int), char **p, ...)
7062{
7063 char *s;
7064 va_list v;
7065 va_start (v,p);
7066 s = g (p, va_arg (v,int));
7067 va_end (v);
7068 return s;
7069}
7070
7071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7072 function prototypes and stuff, but not '\xHH' hex character constants.
7073 These don't provoke an error unfortunately, instead are silently treated
7074 as 'x'. The following induces an error, until -std is added to get
7075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7076 array size at least. It's necessary to write '\x00'==0 to get something
7077 that's true only with -std. */
7078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7079
7080/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7081 inside strings and character constants. */
7082#define FOO(x) 'x'
7083int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7084
7085int test (int i, double x);
7086struct s1 {int (*f) (int a);};
7087struct s2 {int (*f) (double a);};
7088int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7089int argc;
7090char **argv;
7091int
7092main ()
7093{
7094return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7095 ;
7096 return 0;
7097}
7098_ACEOF
7099for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7101do
7102 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007103 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007104 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007105fi
cristy3ed852e2009-09-05 21:47:34 +00007106rm -f core conftest.err conftest.$ac_objext
7107 test "x$ac_cv_prog_cc_c89" != "xno" && break
7108done
7109rm -f conftest.$ac_ext
7110CC=$ac_save_CC
7111
7112fi
7113# AC_CACHE_VAL
7114case "x$ac_cv_prog_cc_c89" in
7115 x)
cristy8b350f62009-11-15 23:12:43 +00007116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007117$as_echo "none needed" >&6; } ;;
7118 xno)
cristy8b350f62009-11-15 23:12:43 +00007119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007120$as_echo "unsupported" >&6; } ;;
7121 *)
7122 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7125esac
cristy8b350f62009-11-15 23:12:43 +00007126if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7128else
7129 ac_cv_prog_cc_stdc=no
7130fi
7131
cristy3ed852e2009-09-05 21:47:34 +00007132fi
cristy3ed852e2009-09-05 21:47:34 +00007133 ;;
7134esac
cristy8b350f62009-11-15 23:12:43 +00007135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007136$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007137 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007138 $as_echo_n "(cached) " >&6
7139fi
7140
cristy8b350f62009-11-15 23:12:43 +00007141 case $ac_cv_prog_cc_stdc in #(
7142 no) :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7144$as_echo "unsupported" >&6; } ;; #(
7145 '') :
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7147$as_echo "none needed" >&6; } ;; #(
7148 *) :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007150$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7151esac
7152
cristy3ed852e2009-09-05 21:47:34 +00007153ac_ext=c
7154ac_cpp='$CPP $CPPFLAGS'
7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007159$as_echo_n "checking how to run the C preprocessor... " >&6; }
7160# On Suns, sometimes $CPP names a directory.
7161if test -n "$CPP" && test -d "$CPP"; then
7162 CPP=
7163fi
7164if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007165 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007166 $as_echo_n "(cached) " >&6
7167else
7168 # Double quotes because CPP needs to be expanded
7169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7170 do
7171 ac_preproc_ok=false
7172for ac_c_preproc_warn_flag in '' yes
7173do
7174 # Use a header file that comes with gcc, so configuring glibc
7175 # with a fresh cross-compiler works.
7176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7177 # <limits.h> exists even on freestanding compilers.
7178 # On the NeXT, cc -E runs the code through the compiler's parser,
7179 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007181/* end confdefs.h. */
7182#ifdef __STDC__
7183# include <limits.h>
7184#else
7185# include <assert.h>
7186#endif
7187 Syntax error
7188_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007189if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007190
cristy8b350f62009-11-15 23:12:43 +00007191else
cristy3ed852e2009-09-05 21:47:34 +00007192 # Broken: fails on valid input.
7193continue
7194fi
cristyda16f162011-02-19 23:52:17 +00007195rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007196
7197 # OK, works on sane cases. Now check whether nonexistent headers
7198 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007200/* end confdefs.h. */
7201#include <ac_nonexistent.h>
7202_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007203if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007204 # Broken: success on invalid input.
7205continue
7206else
cristy3ed852e2009-09-05 21:47:34 +00007207 # Passes both tests.
7208ac_preproc_ok=:
7209break
7210fi
cristyda16f162011-02-19 23:52:17 +00007211rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007212
7213done
7214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007215rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007216if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007217 break
7218fi
7219
7220 done
7221 ac_cv_prog_CPP=$CPP
7222
7223fi
7224 CPP=$ac_cv_prog_CPP
7225else
7226 ac_cv_prog_CPP=$CPP
7227fi
cristy8b350f62009-11-15 23:12:43 +00007228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007229$as_echo "$CPP" >&6; }
7230ac_preproc_ok=false
7231for ac_c_preproc_warn_flag in '' yes
7232do
7233 # Use a header file that comes with gcc, so configuring glibc
7234 # with a fresh cross-compiler works.
7235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236 # <limits.h> exists even on freestanding compilers.
7237 # On the NeXT, cc -E runs the code through the compiler's parser,
7238 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007240/* end confdefs.h. */
7241#ifdef __STDC__
7242# include <limits.h>
7243#else
7244# include <assert.h>
7245#endif
7246 Syntax error
7247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007248if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007249
cristy8b350f62009-11-15 23:12:43 +00007250else
cristy3ed852e2009-09-05 21:47:34 +00007251 # Broken: fails on valid input.
7252continue
7253fi
cristyda16f162011-02-19 23:52:17 +00007254rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007255
7256 # OK, works on sane cases. Now check whether nonexistent headers
7257 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007259/* end confdefs.h. */
7260#include <ac_nonexistent.h>
7261_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007262if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007263 # Broken: success on invalid input.
7264continue
7265else
cristy3ed852e2009-09-05 21:47:34 +00007266 # Passes both tests.
7267ac_preproc_ok=:
7268break
7269fi
cristyda16f162011-02-19 23:52:17 +00007270rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007271
7272done
7273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007274rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007275if $ac_preproc_ok; then :
7276
cristy3ed852e2009-09-05 21:47:34 +00007277else
cristy8b350f62009-11-15 23:12:43 +00007278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007280as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7281See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007282fi
7283
7284ac_ext=c
7285ac_cpp='$CPP $CPPFLAGS'
7286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289
cristy73bd4a52010-10-05 11:24:23 +00007290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7291$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007292if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007293 $as_echo_n "(cached) " >&6
7294else
7295 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7296 for ac_i in 1 2 3 4 5 6 7; do
7297 ac_script="$ac_script$as_nl$ac_script"
7298 done
7299 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7300 { ac_script=; unset ac_script;}
7301 if test -z "$SED"; then
7302 ac_path_SED_found=false
7303 # Loop through the user's path and test for each of PROGNAME-LIST
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_prog in sed gsed; do
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007312 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007313# Check for GNU ac_path_SED and select it if it is found.
7314 # Check for GNU $ac_path_SED
7315case `"$ac_path_SED" --version 2>&1` in
7316*GNU*)
7317 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7318*)
7319 ac_count=0
7320 $as_echo_n 0123456789 >"conftest.in"
7321 while :
7322 do
7323 cat "conftest.in" "conftest.in" >"conftest.tmp"
7324 mv "conftest.tmp" "conftest.in"
7325 cp "conftest.in" "conftest.nl"
7326 $as_echo '' >> "conftest.nl"
7327 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7329 as_fn_arith $ac_count + 1 && ac_count=$as_val
7330 if test $ac_count -gt ${ac_path_SED_max-0}; then
7331 # Best one so far, save it but keep looking for a better one
7332 ac_cv_path_SED="$ac_path_SED"
7333 ac_path_SED_max=$ac_count
7334 fi
7335 # 10*(2^10) chars as input seems more than enough
7336 test $ac_count -gt 10 && break
7337 done
7338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7339esac
7340
7341 $ac_path_SED_found && break 3
7342 done
7343 done
7344 done
7345IFS=$as_save_IFS
7346 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007347 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007348 fi
7349else
7350 ac_cv_path_SED=$SED
7351fi
7352
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7355$as_echo "$ac_cv_path_SED" >&6; }
7356 SED="$ac_cv_path_SED"
7357 rm -f conftest.sed
7358
7359test -z "$SED" && SED=sed
7360Xsed="$SED -e 1s/^X//"
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7373$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007374if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007375 $as_echo_n "(cached) " >&6
7376else
7377 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7378 then ac_cv_path_FGREP="$GREP -F"
7379 else
7380 if test -z "$FGREP"; then
7381 ac_path_FGREP_found=false
7382 # Loop through the user's path and test for each of PROGNAME-LIST
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_prog in fgrep; do
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007391 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007392# Check for GNU ac_path_FGREP and select it if it is found.
7393 # Check for GNU $ac_path_FGREP
7394case `"$ac_path_FGREP" --version 2>&1` in
7395*GNU*)
7396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7397*)
7398 ac_count=0
7399 $as_echo_n 0123456789 >"conftest.in"
7400 while :
7401 do
7402 cat "conftest.in" "conftest.in" >"conftest.tmp"
7403 mv "conftest.tmp" "conftest.in"
7404 cp "conftest.in" "conftest.nl"
7405 $as_echo 'FGREP' >> "conftest.nl"
7406 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7408 as_fn_arith $ac_count + 1 && ac_count=$as_val
7409 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7410 # Best one so far, save it but keep looking for a better one
7411 ac_cv_path_FGREP="$ac_path_FGREP"
7412 ac_path_FGREP_max=$ac_count
7413 fi
7414 # 10*(2^10) chars as input seems more than enough
7415 test $ac_count -gt 10 && break
7416 done
7417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7418esac
7419
7420 $ac_path_FGREP_found && break 3
7421 done
7422 done
7423 done
7424IFS=$as_save_IFS
7425 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007426 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007427 fi
7428else
7429 ac_cv_path_FGREP=$FGREP
7430fi
7431
7432 fi
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7435$as_echo "$ac_cv_path_FGREP" >&6; }
7436 FGREP="$ac_cv_path_FGREP"
7437
7438
7439test -z "$GREP" && GREP=grep
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
cristy0c60a692010-11-04 01:09:47 +00007457ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7459ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7460
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7462$as_echo_n "checking how to print strings... " >&6; }
7463# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007464if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007465 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7466 ECHO='print -r --'
7467elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7468 ECHO='printf %s\n'
7469else
7470 # Use this function as a fallback that always works.
7471 func_fallback_echo ()
7472 {
7473 eval 'cat <<_LTECHO_EOF
7474$1
7475_LTECHO_EOF'
7476 }
7477 ECHO='func_fallback_echo'
7478fi
7479
7480# func_echo_all arg...
7481# Invoke $ECHO with all args, space-separated.
7482func_echo_all ()
7483{
7484 $ECHO ""
7485}
7486
7487case "$ECHO" in
7488 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7489$as_echo "printf" >&6; } ;;
7490 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7491$as_echo "print -r" >&6; } ;;
7492 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7493$as_echo "cat" >&6; } ;;
7494esac
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
cristy73bd4a52010-10-05 11:24:23 +00007509
7510
7511# Check whether --with-gnu-ld was given.
7512if test "${with_gnu_ld+set}" = set; then :
7513 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7514else
7515 with_gnu_ld=no
7516fi
7517
7518ac_prog=ld
7519if test "$GCC" = yes; then
7520 # Check if gcc -print-prog-name=ld gives a path.
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7522$as_echo_n "checking for ld used by $CC... " >&6; }
7523 case $host in
7524 *-*-mingw*)
7525 # gcc leaves a trailing carriage return which upsets mingw
7526 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7527 *)
7528 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7529 esac
7530 case $ac_prog in
7531 # Accept absolute paths.
7532 [\\/]* | ?:[\\/]*)
7533 re_direlt='/[^/][^/]*/\.\./'
7534 # Canonicalize the pathname of ld
7535 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7536 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7537 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7538 done
7539 test -z "$LD" && LD="$ac_prog"
7540 ;;
7541 "")
7542 # If it fails, then pretend we aren't using GCC.
7543 ac_prog=ld
7544 ;;
7545 *)
7546 # If it is relative, then search for the first ld in PATH.
7547 with_gnu_ld=unknown
7548 ;;
7549 esac
7550elif test "$with_gnu_ld" = yes; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7552$as_echo_n "checking for GNU ld... " >&6; }
7553else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7555$as_echo_n "checking for non-GNU ld... " >&6; }
7556fi
cristyda16f162011-02-19 23:52:17 +00007557if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007558 $as_echo_n "(cached) " >&6
7559else
7560 if test -z "$LD"; then
7561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7562 for ac_dir in $PATH; do
7563 IFS="$lt_save_ifs"
7564 test -z "$ac_dir" && ac_dir=.
7565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7566 lt_cv_path_LD="$ac_dir/$ac_prog"
7567 # Check to see if the program is GNU ld. I'd rather use --version,
7568 # but apparently some variants of GNU ld only accept -v.
7569 # Break only if it was the GNU/non-GNU ld that we prefer.
7570 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7571 *GNU* | *'with BFD'*)
7572 test "$with_gnu_ld" != no && break
7573 ;;
7574 *)
7575 test "$with_gnu_ld" != yes && break
7576 ;;
7577 esac
7578 fi
7579 done
7580 IFS="$lt_save_ifs"
7581else
7582 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7583fi
7584fi
7585
7586LD="$lt_cv_path_LD"
7587if test -n "$LD"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7589$as_echo "$LD" >&6; }
7590else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592$as_echo "no" >&6; }
7593fi
cristy98dddb52010-11-04 00:30:15 +00007594test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7596$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007597if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007598 $as_echo_n "(cached) " >&6
7599else
7600 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7601case `$LD -v 2>&1 </dev/null` in
7602*GNU* | *'with BFD'*)
7603 lt_cv_prog_gnu_ld=yes
7604 ;;
7605*)
7606 lt_cv_prog_gnu_ld=no
7607 ;;
7608esac
7609fi
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7611$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7612with_gnu_ld=$lt_cv_prog_gnu_ld
7613
7614
7615
7616
7617
7618
7619
7620
7621
cristy3ed852e2009-09-05 21:47:34 +00007622
cristy837d6dc2010-02-27 01:16:57 +00007623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7624$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007625if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007626 $as_echo_n "(cached) " >&6
7627else
7628 ac_cv_prog_cc_c99=no
7629ac_save_CC=$CC
7630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h. */
7632#include <stdarg.h>
7633#include <stdbool.h>
7634#include <stdlib.h>
7635#include <wchar.h>
7636#include <stdio.h>
7637
7638// Check varargs macros. These examples are taken from C99 6.10.3.5.
7639#define debug(...) fprintf (stderr, __VA_ARGS__)
7640#define showlist(...) puts (#__VA_ARGS__)
7641#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7642static void
7643test_varargs_macros (void)
7644{
7645 int x = 1234;
7646 int y = 5678;
7647 debug ("Flag");
7648 debug ("X = %d\n", x);
7649 showlist (The first, second, and third items.);
7650 report (x>y, "x is %d but y is %d", x, y);
7651}
7652
7653// Check long long types.
7654#define BIG64 18446744073709551615ull
7655#define BIG32 4294967295ul
7656#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7657#if !BIG_OK
7658 your preprocessor is broken;
7659#endif
7660#if BIG_OK
7661#else
7662 your preprocessor is broken;
7663#endif
7664static long long int bignum = -9223372036854775807LL;
7665static unsigned long long int ubignum = BIG64;
7666
7667struct incomplete_array
7668{
7669 int datasize;
7670 double data[];
7671};
7672
7673struct named_init {
7674 int number;
7675 const wchar_t *name;
7676 double average;
7677};
7678
7679typedef const char *ccp;
7680
7681static inline int
7682test_restrict (ccp restrict text)
7683{
7684 // See if C++-style comments work.
7685 // Iterate through items via the restricted pointer.
7686 // Also check for declarations in for loops.
7687 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7688 continue;
7689 return 0;
7690}
7691
7692// Check varargs and va_copy.
7693static void
7694test_varargs (const char *format, ...)
7695{
7696 va_list args;
7697 va_start (args, format);
7698 va_list args_copy;
7699 va_copy (args_copy, args);
7700
7701 const char *str;
7702 int number;
7703 float fnumber;
7704
7705 while (*format)
7706 {
7707 switch (*format++)
7708 {
7709 case 's': // string
7710 str = va_arg (args_copy, const char *);
7711 break;
7712 case 'd': // int
7713 number = va_arg (args_copy, int);
7714 break;
7715 case 'f': // float
7716 fnumber = va_arg (args_copy, double);
7717 break;
7718 default:
7719 break;
7720 }
7721 }
7722 va_end (args_copy);
7723 va_end (args);
7724}
7725
7726int
7727main ()
7728{
7729
7730 // Check bool.
7731 _Bool success = false;
7732
7733 // Check restrict.
7734 if (test_restrict ("String literal") == 0)
7735 success = true;
7736 char *restrict newvar = "Another string";
7737
7738 // Check varargs.
7739 test_varargs ("s, d' f .", "string", 65, 34.234);
7740 test_varargs_macros ();
7741
7742 // Check flexible array members.
7743 struct incomplete_array *ia =
7744 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7745 ia->datasize = 10;
7746 for (int i = 0; i < ia->datasize; ++i)
7747 ia->data[i] = i * 1.234;
7748
7749 // Check named initializers.
7750 struct named_init ni = {
7751 .number = 34,
7752 .name = L"Test wide string",
7753 .average = 543.34343,
7754 };
7755
7756 ni.number = 58;
7757
7758 int dynamic_array[ni.number];
7759 dynamic_array[ni.number - 1] = 543;
7760
7761 // work around unused variable warnings
7762 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7763 || dynamic_array[ni.number - 1] != 543);
7764
7765 ;
7766 return 0;
7767}
7768_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007769for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007770do
7771 CC="$ac_save_CC $ac_arg"
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_prog_cc_c99=$ac_arg
7774fi
7775rm -f core conftest.err conftest.$ac_objext
7776 test "x$ac_cv_prog_cc_c99" != "xno" && break
7777done
7778rm -f conftest.$ac_ext
7779CC=$ac_save_CC
7780
7781fi
7782# AC_CACHE_VAL
7783case "x$ac_cv_prog_cc_c99" in
7784 x)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7786$as_echo "none needed" >&6; } ;;
7787 xno)
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7789$as_echo "unsupported" >&6; } ;;
7790 *)
7791 CC="$CC $ac_cv_prog_cc_c99"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7793$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7794esac
7795if test "x$ac_cv_prog_cc_c99" != xno; then :
7796
7797fi
7798
7799
cristy73bd4a52010-10-05 11:24:23 +00007800if test "x$CC" != xcc; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7802$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7803else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7805$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7806fi
7807set dummy $CC; ac_cc=`$as_echo "$2" |
7808 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007809if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007810 $as_echo_n "(cached) " >&6
7811else
cristy73bd4a52010-10-05 11:24:23 +00007812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814
7815int
7816main ()
7817{
7818
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823# Make sure it works both with $CC and with simple cc.
7824# We do the test twice because some compilers refuse to overwrite an
7825# existing .o file with -o, though they will create one.
7826ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7827rm -f conftest2.*
7828if { { case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831esac
7832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7833$as_echo "$ac_try_echo"; } >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7837 test $ac_status = 0; } &&
7838 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841esac
7842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7843$as_echo "$ac_try_echo"; } >&5
7844 (eval "$ac_try") 2>&5
7845 ac_status=$?
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; };
7848then
7849 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7850 if test "x$CC" != xcc; then
7851 # Test first that cc exists at all.
7852 if { ac_try='cc -c conftest.$ac_ext >&5'
7853 { { case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7858$as_echo "$ac_try_echo"; } >&5
7859 (eval "$ac_try") 2>&5
7860 ac_status=$?
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; }; }; then
7863 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7864 rm -f conftest2.*
7865 if { { case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7870$as_echo "$ac_try_echo"; } >&5
7871 (eval "$ac_try") 2>&5
7872 ac_status=$?
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; } &&
7875 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878esac
7879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7880$as_echo "$ac_try_echo"; } >&5
7881 (eval "$ac_try") 2>&5
7882 ac_status=$?
7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; };
7885 then
7886 # cc works too.
7887 :
7888 else
7889 # cc exists but doesn't like -o.
7890 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7891 fi
7892 fi
7893 fi
7894else
7895 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7896fi
7897rm -f core conftest*
7898
7899fi
7900if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902$as_echo "yes" >&6; }
7903else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905$as_echo "no" >&6; }
7906
7907$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7908
7909fi
7910
7911# FIXME: we rely on the cache variable name because
7912# there is no other way.
7913set dummy $CC
7914am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7915eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7916if test "$am_t" != yes; then
7917 # Losing compiler, so override with the script.
7918 # FIXME: It is wrong to rewrite CC.
7919 # But if we don't then we get into trouble of one sort or another.
7920 # A longer-term fix would be to have automake use am__CC in this case,
7921 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7922 CC="$am_aux_dir/compile $CC"
7923fi
7924
7925
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7927$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007928if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007929 $as_echo_n "(cached) " >&6
7930else
7931 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007932 ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938 ac_save_CFLAGS="$CFLAGS"
7939for 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" #
7940do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h. */
7943
7944int
7945main ()
7946{
cristy24fc1fe2010-10-23 21:13:01 +00007947
cristy73bd4a52010-10-05 11:24:23 +00007948 ;
7949 return 0;
7950}
7951_ACEOF
7952if ac_fn_c_try_compile "$LINENO"; then :
7953 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956done
7957 CFLAGS="$ac_save_CFLAGS"
7958 ac_ext=c
7959ac_cpp='$CPP $CPPFLAGS'
7960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7967$as_echo "$ac_cv_cflags_warn_all" >&6; }
7968case ".$ac_cv_cflags_warn_all" in
7969 .ok|.ok,*) ;;
7970 .|.no|.no,*)
7971 ;;
7972 *)
7973 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7974 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7975 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }
7979 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7980 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7981 ac_status=$?
7982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7983 test $ac_status = 0; }
7984 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7985 fi
7986 ;;
nicolas6237c462010-10-05 06:11:49 +00007987esac
cristy3ed852e2009-09-05 21:47:34 +00007988
cristy568c2d42012-07-27 01:41:20 +00007989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7990$as_echo_n "checking for C compiler vendor... " >&6; }
7991if ${ax_cv_c_compiler_vendor+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993else
7994 # note: don't check for gcc first since some other compilers define __GNUC__
7995 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7996 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7997 pathscale: __PATHCC__,__PATHSCALE__
7998 clang: __clang__
7999 gnu: __GNUC__
8000 sun: __SUNPRO_C,__SUNPRO_CC
8001 hp: __HP_cc,__HP_aCC
8002 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8003 borland: __BORLANDC__,__TURBOC__
8004 comeau: __COMO__
8005 cray: _CRAYC
8006 kai: __KCC
8007 lcc: __LCC__
8008 sgi: __sgi,sgi
8009 microsoft: _MSC_VER
8010 metrowerks: __MWERKS__
8011 watcom: __WATCOMC__
8012 portland: __PGI
8013 unknown: UNKNOWN"
8014 for ventest in $vendors; do
8015 case $ventest in
8016 *:) vendor=$ventest; continue ;;
8017 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8018 esac
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h. */
8021
8022int
8023main ()
8024{
8025
8026 #if !($vencpp)
8027 thisisanerror;
8028 #endif
8029
8030 ;
8031 return 0;
8032}
8033_ACEOF
8034if ac_fn_c_try_compile "$LINENO"; then :
8035 break
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 done
8039 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8040
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8043$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8044
cristya0b81c32010-01-22 02:54:33 +00008045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8047$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8048set x ${MAKE-make}
8049ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008050if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008051 $as_echo_n "(cached) " >&6
8052else
8053 cat >conftest.make <<\_ACEOF
8054SHELL = /bin/sh
8055all:
8056 @echo '@@@%%%=$(MAKE)=@@@%%%'
8057_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008058# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008059case `${MAKE-make} -f conftest.make 2>/dev/null` in
8060 *@@@%%%=?*=@@@%%%*)
8061 eval ac_cv_prog_make_${ac_make}_set=yes;;
8062 *)
8063 eval ac_cv_prog_make_${ac_make}_set=no;;
8064esac
8065rm -f conftest.make
8066fi
8067if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069$as_echo "yes" >&6; }
8070 SET_MAKE=
8071else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074 SET_MAKE="MAKE=${MAKE-make}"
8075fi
8076
cristy8b350f62009-11-15 23:12:43 +00008077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008078$as_echo_n "checking whether ln -s works... " >&6; }
8079LN_S=$as_ln_s
8080if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008082$as_echo "yes" >&6; }
8083else
cristy8b350f62009-11-15 23:12:43 +00008084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008085$as_echo "no, using $LN_S" >&6; }
8086fi
8087
cristybc556452012-08-17 19:44:03 +00008088for ac_prog in gawk mawk nawk awk
8089do
8090 # Extract the first word of "$ac_prog", so it can be a program name with args.
8091set dummy $ac_prog; ac_word=$2
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093$as_echo_n "checking for $ac_word... " >&6; }
8094if ${ac_cv_prog_AWK+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096else
8097 if test -n "$AWK"; then
8098 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_AWK="$ac_prog"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111done
8112 done
8113IFS=$as_save_IFS
8114
8115fi
8116fi
8117AWK=$ac_cv_prog_AWK
8118if test -n "$AWK"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8120$as_echo "$AWK" >&6; }
8121else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127 test -n "$AWK" && break
8128done
8129
cristy73bd4a52010-10-05 11:24:23 +00008130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8131$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8132
8133# Check whether --with-dmalloc was given.
8134if test "${with_dmalloc+set}" = set; then :
8135 withval=$with_dmalloc; if test "$withval" = yes; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137$as_echo "yes" >&6; }
8138
8139$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8140
8141 LIBS="$LIBS -ldmalloc"
8142 LDFLAGS="$LDFLAGS -g"
8143else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
8150fi
8151
8152
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8155$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008156if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008157 $as_echo_n "(cached) " >&6
8158else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h. */
8161#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008162 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008163 static void
8164 foo(void) {
8165 exit(1);
8166 }
8167
8168int
8169main ()
8170{
8171
8172 ;
8173 return 0;
8174}
8175_ACEOF
8176if ac_fn_c_try_compile "$LINENO"; then :
8177 ax_cv___attribute__=yes
8178else
8179 ax_cv___attribute__=no
8180
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183
8184fi
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8186$as_echo "$ax_cv___attribute__" >&6; }
8187 if test "$ax_cv___attribute__" = "yes"; then
8188
8189$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8190
8191 fi
8192
8193
8194
cristy37110d62012-03-01 18:38:20 +00008195
8196
8197# Check whether --with-gcc-arch was given.
8198if test "${with_gcc_arch+set}" = set; then :
8199 withval=$with_gcc_arch; ax_gcc_arch=$withval
8200else
cristya32d1812012-03-02 19:24:21 +00008201 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008202fi
8203
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8206$as_echo_n "checking for gcc architecture flag... " >&6; }
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8208$as_echo "" >&6; }
8209if ${ax_cv_gcc_archflag+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211else
8212
8213ax_cv_gcc_archflag="unknown"
8214
8215if test "$GCC" = yes; then
8216
8217if test "x$ax_gcc_arch" = xyes; then
8218ax_gcc_arch=""
8219if test "$cross_compiling" = no; then
8220case $host_cpu in
8221 i[3456]86*|x86_64*) # use cpuid codes
8222
8223ac_ext=c
8224ac_cpp='$CPP $CPPFLAGS'
8225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8227ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8230$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8231if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233else
8234 if test "$cross_compiling" = yes; then :
8235 ax_cv_gcc_x86_cpuid_0=unknown
8236else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h. */
8239#include <stdio.h>
8240int
8241main ()
8242{
8243
8244 int op = 0, eax, ebx, ecx, edx;
8245 FILE *f;
8246 __asm__("cpuid"
8247 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8248 : "a" (op));
8249 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8250 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8251 fclose(f);
8252 return 0;
8253
8254 ;
8255 return 0;
8256}
8257_ACEOF
8258if ac_fn_c_try_run "$LINENO"; then :
8259 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8260else
8261 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8262fi
8263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8264 conftest.$ac_objext conftest.beam conftest.$ac_ext
8265fi
8266
8267fi
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8269$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8270ac_ext=c
8271ac_cpp='$CPP $CPPFLAGS'
8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276
8277
8278ac_ext=c
8279ac_cpp='$CPP $CPPFLAGS'
8280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8282ac_compiler_gnu=$ac_cv_c_compiler_gnu
8283
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8285$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8286if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288else
8289 if test "$cross_compiling" = yes; then :
8290 ax_cv_gcc_x86_cpuid_1=unknown
8291else
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h. */
8294#include <stdio.h>
8295int
8296main ()
8297{
8298
8299 int op = 1, eax, ebx, ecx, edx;
8300 FILE *f;
8301 __asm__("cpuid"
8302 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8303 : "a" (op));
8304 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8305 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8306 fclose(f);
8307 return 0;
8308
8309 ;
8310 return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_run "$LINENO"; then :
8314 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8315else
8316 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8317fi
8318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8319 conftest.$ac_objext conftest.beam conftest.$ac_ext
8320fi
8321
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8324$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8325ac_ext=c
8326ac_cpp='$CPP $CPPFLAGS'
8327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8329ac_compiler_gnu=$ac_cv_c_compiler_gnu
8330
8331
8332 case $ax_cv_gcc_x86_cpuid_0 in
8333 *:756e6547:*:*) # Intel
8334 case $ax_cv_gcc_x86_cpuid_1 in
8335 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8336 *5??:*:*:*) ax_gcc_arch=pentium ;;
8337 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8338 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8339 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8340 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8341 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8342 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8343 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8344 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8345 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8346 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8347 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8348 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8349 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8350 case $host_cpu in
8351 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8352 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8353 esac ;;
8354 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8355 esac ;;
8356 *:68747541:*:*) # AMD
8357 case $ax_cv_gcc_x86_cpuid_1 in
8358 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8359 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8360 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8361 *60?:*:*:*) ax_gcc_arch=k7 ;;
8362 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8363 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8364 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8365 *6[68a]?:*:*:*)
8366
8367ac_ext=c
8368ac_cpp='$CPP $CPPFLAGS'
8369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8374$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8375if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377else
8378 if test "$cross_compiling" = yes; then :
8379 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8380else
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h. */
8383#include <stdio.h>
8384int
8385main ()
8386{
8387
8388 int op = 0x80000006, eax, ebx, ecx, edx;
8389 FILE *f;
8390 __asm__("cpuid"
8391 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8392 : "a" (op));
8393 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8394 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8395 fclose(f);
8396 return 0;
8397
8398 ;
8399 return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_run "$LINENO"; then :
8403 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8404else
8405 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8406fi
8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8408 conftest.$ac_objext conftest.beam conftest.$ac_ext
8409fi
8410
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8413$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8414ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420 # L2 cache size
8421 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8422 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8423 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8424 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8425 esac ;;
8426 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8427 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8428 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8429 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8430 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8431 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8432 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8433 esac ;;
8434 *:746e6543:*:*) # IDT
8435 case $ax_cv_gcc_x86_cpuid_1 in
8436 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8437 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8438 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8439 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8440 esac ;;
8441 esac
8442 if test x"$ax_gcc_arch" = x; then # fallback
8443 case $host_cpu in
8444 i586*) ax_gcc_arch=pentium ;;
8445 i686*) ax_gcc_arch=pentiumpro ;;
8446 esac
8447 fi
8448 ;;
8449
8450 sparc*)
8451 # Extract the first word of "prtdiag", so it can be a program name with args.
8452set dummy prtdiag; ac_word=$2
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if ${ac_cv_path_PRTDIAG+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458 case $PRTDIAG in
8459 [\\/]* | ?:[\\/]*)
8460 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8461 ;;
8462 *)
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8465for as_dir in $as_dummy
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008471 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 break 2
8474 fi
8475done
8476 done
8477IFS=$as_save_IFS
8478
8479 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8480 ;;
8481esac
8482fi
8483PRTDIAG=$ac_cv_path_PRTDIAG
8484if test -n "$PRTDIAG"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8486$as_echo "$PRTDIAG" >&6; }
8487else
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
8490fi
8491
8492
8493 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8494 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8495 case $cputype in
8496 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8497 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8498 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8499 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8500 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8501 *cypress*) ax_gcc_arch=cypress ;;
8502 esac ;;
8503
8504 alphaev5) ax_gcc_arch=ev5 ;;
8505 alphaev56) ax_gcc_arch=ev56 ;;
8506 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8507 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8508 alphaev6) ax_gcc_arch=ev6 ;;
8509 alphaev67) ax_gcc_arch=ev67 ;;
8510 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8511 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8512 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8513 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8514
8515 powerpc*)
8516 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8517 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8518 case $cputype in
8519 *750*) ax_gcc_arch="750 G3" ;;
8520 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8521 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8522 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8523 *970*) ax_gcc_arch="970 G5 power4";;
8524 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8525 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8526 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8527 *) ax_gcc_arch=$cputype ;;
8528 esac
8529 ax_gcc_arch="$ax_gcc_arch powerpc"
8530 ;;
8531esac
8532fi # not cross-compiling
8533fi # guess arch
8534
8535if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8536for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008537 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008538 flags="-mtune=$arch"
8539 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8540 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8541 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8542 else
8543 flags="-march=$arch -mcpu=$arch -m$arch"
8544 fi
8545 for flag in $flags; do
8546 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8548$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8549if eval \${$as_CACHEVAR+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551else
8552
8553 ax_check_save_flags=$CFLAGS
8554 CFLAGS="$CFLAGS $flag"
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h. */
8557
8558int
8559main ()
8560{
8561
8562 ;
8563 return 0;
8564}
8565_ACEOF
8566if ac_fn_c_try_compile "$LINENO"; then :
8567 eval "$as_CACHEVAR=yes"
8568else
8569 eval "$as_CACHEVAR=no"
8570fi
8571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 CFLAGS=$ax_check_save_flags
8573fi
8574eval ac_res=\$$as_CACHEVAR
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8576$as_echo "$ac_res" >&6; }
8577if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8578 ax_cv_gcc_archflag=$flag; break
8579else
8580 :
8581fi
8582
8583 done
8584 test "x$ax_cv_gcc_archflag" = xunknown || break
8585done
8586fi
8587
8588fi # $GCC=yes
8589
8590fi
8591
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8593$as_echo_n "checking for gcc architecture flag... " >&6; }
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8595$as_echo "$ax_cv_gcc_archflag" >&6; }
8596if test "x$ax_cv_gcc_archflag" = xunknown; then
8597 :
8598else
8599 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8600fi
8601
8602
8603
cristy73bd4a52010-10-05 11:24:23 +00008604if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8605 if test -n "$ac_tool_prefix"; then
8606 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8607set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008610if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008611 $as_echo_n "(cached) " >&6
8612else
8613 case $PKG_CONFIG in
8614 [\\/]* | ?:[\\/]*)
8615 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8616 ;;
8617 *)
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619for as_dir in $PATH
8620do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008625 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8628 fi
8629done
8630 done
8631IFS=$as_save_IFS
8632
8633 ;;
8634esac
8635fi
8636PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8637if test -n "$PKG_CONFIG"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8639$as_echo "$PKG_CONFIG" >&6; }
8640else
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
8643fi
8644
8645
8646fi
8647if test -z "$ac_cv_path_PKG_CONFIG"; then
8648 ac_pt_PKG_CONFIG=$PKG_CONFIG
8649 # Extract the first word of "pkg-config", so it can be a program name with args.
8650set dummy pkg-config; ac_word=$2
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008653if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008654 $as_echo_n "(cached) " >&6
8655else
8656 case $ac_pt_PKG_CONFIG in
8657 [\\/]* | ?:[\\/]*)
8658 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8659 ;;
8660 *)
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008668 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 break 2
8671 fi
8672done
8673 done
8674IFS=$as_save_IFS
8675
8676 ;;
8677esac
8678fi
8679ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8680if test -n "$ac_pt_PKG_CONFIG"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8682$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8683else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685$as_echo "no" >&6; }
8686fi
8687
8688 if test "x$ac_pt_PKG_CONFIG" = x; then
8689 PKG_CONFIG=""
8690 else
8691 case $cross_compiling:$ac_tool_warned in
8692yes:)
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695ac_tool_warned=yes ;;
8696esac
8697 PKG_CONFIG=$ac_pt_PKG_CONFIG
8698 fi
8699else
8700 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8701fi
8702
8703fi
8704if test -n "$PKG_CONFIG"; then
8705 _pkg_min_version=0.9.0
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8707$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8708 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8710$as_echo "yes" >&6; }
8711 else
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
8714 PKG_CONFIG=""
8715 fi
8716
8717fi
cristy3ed852e2009-09-05 21:47:34 +00008718
8719#
cristy3ed852e2009-09-05 21:47:34 +00008720# Enable run-time checking.
8721#
8722# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008723if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008724 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8725else
8726 enable_bounds_checking='no'
8727fi
8728
8729
8730if test "$enable_bounds_checking" = yes; then
8731
cristy8b350f62009-11-15 23:12:43 +00008732$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008733
8734fi
8735
8736#
8737# Tests for Windows
8738#
8739
8740
8741
8742GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008743native_win32_build='no'
8744cygwin_build='no'
8745case "${host_os}" in
8746 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008747 cygwin_build='yes'
8748 GDI32_LIBS='-lgdi32'
8749 ;;
8750 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008751 native_win32_build='yes'
8752 GDI32_LIBS='-lgdi32'
8753 ;;
8754esac
8755if test "${GDI32_LIBS}x" != 'x'; then
8756
cristy8b350f62009-11-15 23:12:43 +00008757$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008758
8759fi
8760
cristy73bd4a52010-10-05 11:24:23 +00008761 if test "${GDI32_LIBS}x" != 'x' ; then
8762 WINGDI32_DELEGATE_TRUE=
8763 WINGDI32_DELEGATE_FALSE='#'
8764else
8765 WINGDI32_DELEGATE_TRUE='#'
8766 WINGDI32_DELEGATE_FALSE=
8767fi
8768
8769 if test "${native_win32_build}" = 'yes' ; then
8770 WIN32_NATIVE_BUILD_TRUE=
8771 WIN32_NATIVE_BUILD_FALSE='#'
8772else
8773 WIN32_NATIVE_BUILD_TRUE='#'
8774 WIN32_NATIVE_BUILD_FALSE=
8775fi
8776
8777 if test "${cygwin_build}" = 'yes' ; then
8778 CYGWIN_BUILD_TRUE=
8779 CYGWIN_BUILD_FALSE='#'
8780else
8781 CYGWIN_BUILD_TRUE='#'
8782 CYGWIN_BUILD_FALSE=
8783fi
8784
8785 if test "x${CC}" = 'xcl.exe' ; then
8786 USING_CL_TRUE=
8787 USING_CL_FALSE='#'
8788else
8789 USING_CL_TRUE='#'
8790 USING_CL_FALSE=
8791fi
8792
cristy3ed852e2009-09-05 21:47:34 +00008793
8794WinPathScript="${srcdirfull}/winpath.sh"
8795
8796
8797#
8798# Compiler flags tweaks
8799#
8800if test "${GCC}" != "yes"; then
8801 case "${host}" in
8802 *-*-hpux* )
8803 # aCC: HP ANSI C++ B3910B A.03.34
8804 CFLAGS="${CFLAGS} -Wp,-H30000"
8805 if test -n "${CXXFLAGS}"; then
8806 CXXFLAGS='-AA'
8807 else
8808 CXXFLAGS="${CXXFLAGS} -AA"
8809 fi
8810 ;;
8811 *-dec-osf5.* )
8812 # Compaq alphaev68-dec-osf5.1 compiler
8813 if test -n "${CXXFLAGS}"; then
8814 CXXFLAGS='-std strict_ansi -noimplicit_include'
8815 else
8816 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8817 fi
8818 esac
8819fi
8820
8821# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008823$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008824if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008825 $as_echo_n "(cached) " >&6
8826else
8827
8828im_cv_ld_lazyload='none'
8829case "${host}" in
8830 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8831 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8832 im_cv_ld_lazyload='-Wl,-zlazyload'
8833 fi
8834 ;;
8835esac
8836
8837fi
cristy8b350f62009-11-15 23:12:43 +00008838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008839$as_echo "$im_cv_ld_lazyload" >&6; }
8840if test "${im_cv_ld_lazyload}" != 'none' ; then
8841 if test -z "${LDFLAGS}" ; then
8842 LDFLAGS="${im_cv_ld_lazyload}"
8843 else
8844 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8845 fi
8846fi
8847
8848case "$host" in
8849*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008850 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008851if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008852 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8853else
8854 build_osxuniversal=no
8855fi
8856
8857
8858 if test "${build_osxuniversal}" != no ; then
8859 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008860 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008861Please re-run configure with these options:
8862 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008863 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008864 fi
8865 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8866 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8867 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8868 fi
8869 ;;
8870esac
8871
cristy0151ae12011-10-28 16:32:29 +00008872#
8873# ARCH specific include directory
8874#
8875
cristy670aa3c2011-11-03 00:54:00 +00008876# Check whether --with-includearch-dir was given.
8877if test "${with_includearch_dir+set}" = set; then :
8878 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008879else
cristy670aa3c2011-11-03 00:54:00 +00008880 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008881fi
8882
8883
cristy670aa3c2011-11-03 00:54:00 +00008884eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008885
cristy0151ae12011-10-28 16:32:29 +00008886
8887#
8888# ARCH specific configuration directory
8889#
8890
cristy670aa3c2011-11-03 00:54:00 +00008891# Check whether --with-sharearch-dir was given.
8892if test "${with_sharearch_dir+set}" = set; then :
8893 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008894else
cristy408ebcd2011-11-14 01:36:57 +00008895 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008896fi
8897
8898
cristy670aa3c2011-11-03 00:54:00 +00008899eval "eval SHAREARCH_DIR=$sharearch_dir"
8900SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008901
cristy0151ae12011-10-28 16:32:29 +00008902
8903#
cristy3ed852e2009-09-05 21:47:34 +00008904# Enable support for threads
8905
8906# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008907if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008908 withval=$with_threads; with_threads=$withval
8909else
8910 with_threads='yes'
8911fi
8912
8913
8914have_threads=no
8915if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008916
8917
cristy73bd4a52010-10-05 11:24:23 +00008918ac_ext=c
8919ac_cpp='$CPP $CPPFLAGS'
8920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922ac_compiler_gnu=$ac_cv_c_compiler_gnu
8923
8924ax_pthread_ok=no
8925
8926# We used to check for pthread.h first, but this fails if pthread.h
8927# requires special compiler flags (e.g. on True64 or Sequent).
8928# It gets checked for in the link test anyway.
8929
8930# First of all, check if the user has set any of the PTHREAD_LIBS,
8931# etcetera environment variables, and if threads linking works using
8932# them:
8933if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8934 save_CFLAGS="$CFLAGS"
8935 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8936 save_LIBS="$LIBS"
8937 LIBS="$PTHREAD_LIBS $LIBS"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8939$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h. */
8942
8943/* Override any GCC internal prototype to avoid an error.
8944 Use char because int might match the return type of a GCC
8945 builtin and then its argument prototype would still apply. */
8946#ifdef __cplusplus
8947extern "C"
8948#endif
8949char pthread_join ();
8950int
8951main ()
8952{
8953return pthread_join ();
8954 ;
8955 return 0;
8956}
8957_ACEOF
8958if ac_fn_c_try_link "$LINENO"; then :
8959 ax_pthread_ok=yes
8960fi
8961rm -f core conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8964$as_echo "$ax_pthread_ok" >&6; }
8965 if test x"$ax_pthread_ok" = xno; then
8966 PTHREAD_LIBS=""
8967 PTHREAD_CFLAGS=""
8968 fi
8969 LIBS="$save_LIBS"
8970 CFLAGS="$save_CFLAGS"
8971fi
8972
8973# We must check for the threads library under a number of different
8974# names; the ordering is very important because some systems
8975# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8976# libraries is broken (non-POSIX).
8977
8978# Create a list of thread flags to try. Items starting with a "-" are
8979# C compiler flags, and other items are library names, except for "none"
8980# which indicates that we try without any flags at all, and "pthread-config"
8981# which is a program returning the flags for the Pth emulation library.
8982
cristy18307f12011-12-30 01:20:16 +00008983ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008984
8985# The ordering *is* (sometimes) important. Some notes on the
8986# individual items follow:
8987
8988# pthreads: AIX (must check this before -lpthread)
8989# none: in case threads are in libc; should be tried before -Kthread and
8990# other compiler flags to prevent continual compiler warnings
8991# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8992# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8993# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8994# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8995# -pthreads: Solaris/gcc
8996# -mthreads: Mingw32/gcc, Lynx/gcc
8997# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8998# doesn't hurt to check since this sometimes defines pthreads too;
8999# also defines -D_REENTRANT)
9000# ... -mt is also the pthreads flag for HP/aCC
9001# pthread: Linux, etcetera
9002# --thread-safe: KAI C++
9003# pthread-config: use pthread-config program (for GNU Pth library)
9004
9005case "${host_cpu}-${host_os}" in
9006 *solaris*)
9007
9008 # On Solaris (at least, for some versions), libc contains stubbed
9009 # (non-functional) versions of the pthreads routines, so link-based
9010 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9011 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9012 # a function called by this macro, so we could check for that, but
9013 # who knows whether they'll stub that too in a future libc.) So,
9014 # we'll just look for -pthreads and -lpthread first:
9015
9016 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9017 ;;
9018
cristya316db12011-10-24 00:49:45 +00009019 *-darwin*)
9020 ax_pthread_flags="-pthread $ax_pthread_flags"
9021 ;;
cristy73bd4a52010-10-05 11:24:23 +00009022esac
9023
9024if test x"$ax_pthread_ok" = xno; then
9025for flag in $ax_pthread_flags; do
9026
9027 case $flag in
9028 none)
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9030$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9031 ;;
9032
9033 -*)
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9035$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9036 PTHREAD_CFLAGS="$flag"
9037 ;;
9038
cristya316db12011-10-24 00:49:45 +00009039 pthread-config)
9040 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009041set dummy pthread-config; ac_word=$2
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009044if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009045 $as_echo_n "(cached) " >&6
9046else
9047 if test -n "$ax_pthread_config"; then
9048 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9049else
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009057 ac_cv_prog_ax_pthread_config="yes"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9060 fi
9061done
9062 done
9063IFS=$as_save_IFS
9064
9065 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9066fi
9067fi
9068ax_pthread_config=$ac_cv_prog_ax_pthread_config
9069if test -n "$ax_pthread_config"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9071$as_echo "$ax_pthread_config" >&6; }
9072else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
9075fi
9076
9077
cristya316db12011-10-24 00:49:45 +00009078 if test x"$ax_pthread_config" = xno; then continue; fi
9079 PTHREAD_CFLAGS="`pthread-config --cflags`"
9080 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9081 ;;
cristy73bd4a52010-10-05 11:24:23 +00009082
9083 *)
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9085$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9086 PTHREAD_LIBS="-l$flag"
9087 ;;
9088 esac
9089
9090 save_LIBS="$LIBS"
9091 save_CFLAGS="$CFLAGS"
9092 LIBS="$PTHREAD_LIBS $LIBS"
9093 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9094
9095 # Check for various functions. We must include pthread.h,
9096 # since some functions may be macros. (On the Sequent, we
9097 # need a special flag -Kthread to make this header compile.)
9098 # We check for pthread_join because it is in -lpthread on IRIX
9099 # while pthread_create is in libc. We check for pthread_attr_init
9100 # due to DEC craziness with -lpthreads. We check for
9101 # pthread_cleanup_push because it is one of the few pthread
9102 # functions on Solaris that doesn't have a non-functional libc stub.
9103 # We try pthread_create on general principles.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h. */
9106#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009107 static void routine(void *a) { a = 0; }
9108 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009109int
9110main ()
9111{
9112pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009113 pthread_create(&th, 0, start_routine, 0);
9114 pthread_join(th, 0);
9115 pthread_attr_init(&attr);
9116 pthread_cleanup_push(routine, 0);
9117 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009118 ;
9119 return 0;
9120}
9121_ACEOF
9122if ac_fn_c_try_link "$LINENO"; then :
9123 ax_pthread_ok=yes
9124fi
9125rm -f core conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127
9128 LIBS="$save_LIBS"
9129 CFLAGS="$save_CFLAGS"
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9132$as_echo "$ax_pthread_ok" >&6; }
9133 if test "x$ax_pthread_ok" = xyes; then
9134 break;
9135 fi
9136
9137 PTHREAD_LIBS=""
9138 PTHREAD_CFLAGS=""
9139done
9140fi
9141
9142# Various other checks:
9143if test "x$ax_pthread_ok" = xyes; then
9144 save_LIBS="$LIBS"
9145 LIBS="$PTHREAD_LIBS $LIBS"
9146 save_CFLAGS="$CFLAGS"
9147 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9148
9149 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009151$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009152 attr_name=unknown
9153 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009155/* end confdefs.h. */
9156#include <pthread.h>
9157int
9158main ()
9159{
cristya316db12011-10-24 00:49:45 +00009160int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009161 ;
9162 return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"; then :
9166 attr_name=$attr; break
9167fi
9168rm -f core conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009170 done
cristy73bd4a52010-10-05 11:24:23 +00009171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9172$as_echo "$attr_name" >&6; }
9173 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9174
9175cat >>confdefs.h <<_ACEOF
9176#define PTHREAD_CREATE_JOINABLE $attr_name
9177_ACEOF
9178
9179 fi
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9182$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9183 flag=no
9184 case "${host_cpu}-${host_os}" in
9185 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9186 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9187 esac
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9189$as_echo "${flag}" >&6; }
9190 if test "x$flag" != xno; then
9191 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9192 fi
9193
cristya316db12011-10-24 00:49:45 +00009194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9195$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9196if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198else
9199
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h. */
9202
9203 #include <pthread.h>
9204int
9205main ()
9206{
9207int i = PTHREAD_PRIO_INHERIT;
9208 ;
9209 return 0;
9210}
9211_ACEOF
9212if ac_fn_c_try_link "$LINENO"; then :
9213 ax_cv_PTHREAD_PRIO_INHERIT=yes
9214else
9215 ax_cv_PTHREAD_PRIO_INHERIT=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219
9220fi
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9222$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9223 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9224
9225$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9226
9227fi
9228
cristy73bd4a52010-10-05 11:24:23 +00009229 LIBS="$save_LIBS"
9230 CFLAGS="$save_CFLAGS"
9231
9232 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009233 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009234 for ac_prog in xlc_r cc_r
9235do
9236 # Extract the first word of "$ac_prog", so it can be a program name with args.
9237set dummy $ac_prog; ac_word=$2
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009240if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009241 $as_echo_n "(cached) " >&6
9242else
9243 if test -n "$PTHREAD_CC"; then
9244 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9245else
9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009253 ac_cv_prog_PTHREAD_CC="$ac_prog"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257done
9258 done
9259IFS=$as_save_IFS
9260
9261fi
9262fi
9263PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9264if test -n "$PTHREAD_CC"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9266$as_echo "$PTHREAD_CC" >&6; }
9267else
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
9270fi
9271
9272
9273 test -n "$PTHREAD_CC" && break
9274done
9275test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9276
9277 else
9278 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009279 fi
cristy73bd4a52010-10-05 11:24:23 +00009280else
9281 PTHREAD_CC="$CC"
9282fi
9283
9284
9285
9286
9287
9288# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9289if test x"$ax_pthread_ok" = xyes; then
9290
9291$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9292
9293 :
9294else
9295 ax_pthread_ok=no
9296
9297fi
9298ac_ext=c
9299ac_cpp='$CPP $CPPFLAGS'
9300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304
cristy7acf8fb2010-09-23 19:58:53 +00009305 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009306 have_threads=yes
9307 DEF_THREAD="$PTHREAD_CFLAGS"
9308 CFLAGS="$CFLAGS $DEF_THREAD"
9309 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9310 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009311 { $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 +00009312$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9313 CC="$PTHREAD_CC"
9314 fi
cristy55bf91c2010-09-24 00:29:41 +00009315
9316$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9317
cristy3ed852e2009-09-05 21:47:34 +00009318 fi
9319fi
9320
9321# Enable support for OpenMP
9322if test "$have_threads" != 'yes'; then
9323 ac_cv_prog_c_openmp=unsupported
9324fi
9325
9326 OPENMP_CFLAGS=
9327 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009328if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009329 enableval=$enable_openmp;
9330fi
9331
9332 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009334$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009335if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009336 $as_echo_n "(cached) " >&6
9337else
cristy8b350f62009-11-15 23:12:43 +00009338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009340
9341#ifndef _OPENMP
9342 choke me
9343#endif
9344#include <omp.h>
9345int main () { return omp_get_num_threads (); }
9346
9347_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009349 ac_cv_prog_c_openmp='none needed'
9350else
cristy8b350f62009-11-15 23:12:43 +00009351 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009352 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9353 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009354 ac_save_CFLAGS=$CFLAGS
9355 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009358
9359#ifndef _OPENMP
9360 choke me
9361#endif
9362#include <omp.h>
9363int main () { return omp_get_num_threads (); }
9364
9365_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009367 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009368fi
cristy8b350f62009-11-15 23:12:43 +00009369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009371 CFLAGS=$ac_save_CFLAGS
9372 if test "$ac_cv_prog_c_openmp" != unsupported; then
9373 break
9374 fi
9375 done
9376fi
cristy8b350f62009-11-15 23:12:43 +00009377rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009379fi
cristy8b350f62009-11-15 23:12:43 +00009380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009381$as_echo "$ac_cv_prog_c_openmp" >&6; }
9382 case $ac_cv_prog_c_openmp in #(
9383 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009384 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009385 *)
cristy8b350f62009-11-15 23:12:43 +00009386 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009387 esac
9388 fi
9389
9390
9391CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9392MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9393
cristy391f1ce2010-09-09 17:23:28 +00009394if test "$enable_openmp" != no; then
9395 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9396 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9397 fi
9398fi
cristy3ed852e2009-09-05 21:47:34 +00009399
cristy736173a2009-09-20 21:18:22 +00009400# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009401
9402
cristy73bd4a52010-10-05 11:24:23 +00009403ac_ext=c
9404ac_cpp='$CPP $CPPFLAGS'
9405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9407ac_compiler_gnu=$ac_cv_c_compiler_gnu
9408
9409ax_pthread_ok=no
9410
9411# We used to check for pthread.h first, but this fails if pthread.h
9412# requires special compiler flags (e.g. on True64 or Sequent).
9413# It gets checked for in the link test anyway.
9414
9415# First of all, check if the user has set any of the PTHREAD_LIBS,
9416# etcetera environment variables, and if threads linking works using
9417# them:
9418if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9419 save_CFLAGS="$CFLAGS"
9420 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9421 save_LIBS="$LIBS"
9422 LIBS="$PTHREAD_LIBS $LIBS"
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9424$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h. */
9427
9428/* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431#ifdef __cplusplus
9432extern "C"
9433#endif
9434char pthread_join ();
9435int
9436main ()
9437{
9438return pthread_join ();
9439 ;
9440 return 0;
9441}
9442_ACEOF
9443if ac_fn_c_try_link "$LINENO"; then :
9444 ax_pthread_ok=yes
9445fi
9446rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9449$as_echo "$ax_pthread_ok" >&6; }
9450 if test x"$ax_pthread_ok" = xno; then
9451 PTHREAD_LIBS=""
9452 PTHREAD_CFLAGS=""
9453 fi
9454 LIBS="$save_LIBS"
9455 CFLAGS="$save_CFLAGS"
9456fi
9457
9458# We must check for the threads library under a number of different
9459# names; the ordering is very important because some systems
9460# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9461# libraries is broken (non-POSIX).
9462
9463# Create a list of thread flags to try. Items starting with a "-" are
9464# C compiler flags, and other items are library names, except for "none"
9465# which indicates that we try without any flags at all, and "pthread-config"
9466# which is a program returning the flags for the Pth emulation library.
9467
cristy18307f12011-12-30 01:20:16 +00009468ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009469
9470# The ordering *is* (sometimes) important. Some notes on the
9471# individual items follow:
9472
9473# pthreads: AIX (must check this before -lpthread)
9474# none: in case threads are in libc; should be tried before -Kthread and
9475# other compiler flags to prevent continual compiler warnings
9476# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9477# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9478# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9479# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9480# -pthreads: Solaris/gcc
9481# -mthreads: Mingw32/gcc, Lynx/gcc
9482# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9483# doesn't hurt to check since this sometimes defines pthreads too;
9484# also defines -D_REENTRANT)
9485# ... -mt is also the pthreads flag for HP/aCC
9486# pthread: Linux, etcetera
9487# --thread-safe: KAI C++
9488# pthread-config: use pthread-config program (for GNU Pth library)
9489
9490case "${host_cpu}-${host_os}" in
9491 *solaris*)
9492
9493 # On Solaris (at least, for some versions), libc contains stubbed
9494 # (non-functional) versions of the pthreads routines, so link-based
9495 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9496 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9497 # a function called by this macro, so we could check for that, but
9498 # who knows whether they'll stub that too in a future libc.) So,
9499 # we'll just look for -pthreads and -lpthread first:
9500
9501 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9502 ;;
9503
cristya316db12011-10-24 00:49:45 +00009504 *-darwin*)
9505 ax_pthread_flags="-pthread $ax_pthread_flags"
9506 ;;
cristy73bd4a52010-10-05 11:24:23 +00009507esac
9508
9509if test x"$ax_pthread_ok" = xno; then
9510for flag in $ax_pthread_flags; do
9511
9512 case $flag in
9513 none)
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9515$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9516 ;;
9517
9518 -*)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9520$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9521 PTHREAD_CFLAGS="$flag"
9522 ;;
9523
cristya316db12011-10-24 00:49:45 +00009524 pthread-config)
9525 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009526set dummy pthread-config; ac_word=$2
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009529if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009530 $as_echo_n "(cached) " >&6
9531else
9532 if test -n "$ax_pthread_config"; then
9533 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9534else
9535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009542 ac_cv_prog_ax_pthread_config="yes"
9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547 done
9548IFS=$as_save_IFS
9549
9550 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9551fi
9552fi
9553ax_pthread_config=$ac_cv_prog_ax_pthread_config
9554if test -n "$ax_pthread_config"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9556$as_echo "$ax_pthread_config" >&6; }
9557else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559$as_echo "no" >&6; }
9560fi
9561
9562
cristya316db12011-10-24 00:49:45 +00009563 if test x"$ax_pthread_config" = xno; then continue; fi
9564 PTHREAD_CFLAGS="`pthread-config --cflags`"
9565 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9566 ;;
cristy73bd4a52010-10-05 11:24:23 +00009567
9568 *)
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9570$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9571 PTHREAD_LIBS="-l$flag"
9572 ;;
9573 esac
9574
9575 save_LIBS="$LIBS"
9576 save_CFLAGS="$CFLAGS"
9577 LIBS="$PTHREAD_LIBS $LIBS"
9578 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9579
9580 # Check for various functions. We must include pthread.h,
9581 # since some functions may be macros. (On the Sequent, we
9582 # need a special flag -Kthread to make this header compile.)
9583 # We check for pthread_join because it is in -lpthread on IRIX
9584 # while pthread_create is in libc. We check for pthread_attr_init
9585 # due to DEC craziness with -lpthreads. We check for
9586 # pthread_cleanup_push because it is one of the few pthread
9587 # functions on Solaris that doesn't have a non-functional libc stub.
9588 # We try pthread_create on general principles.
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h. */
9591#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009592 static void routine(void *a) { a = 0; }
9593 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009594int
9595main ()
9596{
9597pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009598 pthread_create(&th, 0, start_routine, 0);
9599 pthread_join(th, 0);
9600 pthread_attr_init(&attr);
9601 pthread_cleanup_push(routine, 0);
9602 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009603 ;
9604 return 0;
9605}
9606_ACEOF
9607if ac_fn_c_try_link "$LINENO"; then :
9608 ax_pthread_ok=yes
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612
9613 LIBS="$save_LIBS"
9614 CFLAGS="$save_CFLAGS"
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9617$as_echo "$ax_pthread_ok" >&6; }
9618 if test "x$ax_pthread_ok" = xyes; then
9619 break;
9620 fi
9621
9622 PTHREAD_LIBS=""
9623 PTHREAD_CFLAGS=""
9624done
9625fi
9626
9627# Various other checks:
9628if test "x$ax_pthread_ok" = xyes; then
9629 save_LIBS="$LIBS"
9630 LIBS="$PTHREAD_LIBS $LIBS"
9631 save_CFLAGS="$CFLAGS"
9632 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9633
9634 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009636$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009637 attr_name=unknown
9638 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009640/* end confdefs.h. */
9641#include <pthread.h>
9642int
9643main ()
9644{
cristya316db12011-10-24 00:49:45 +00009645int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009646 ;
9647 return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"; then :
9651 attr_name=$attr; break
9652fi
9653rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009655 done
cristy73bd4a52010-10-05 11:24:23 +00009656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9657$as_echo "$attr_name" >&6; }
9658 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9659
9660cat >>confdefs.h <<_ACEOF
9661#define PTHREAD_CREATE_JOINABLE $attr_name
9662_ACEOF
9663
9664 fi
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9667$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9668 flag=no
9669 case "${host_cpu}-${host_os}" in
9670 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9671 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9672 esac
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9674$as_echo "${flag}" >&6; }
9675 if test "x$flag" != xno; then
9676 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9677 fi
9678
cristya316db12011-10-24 00:49:45 +00009679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9680$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9681if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683else
9684
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h. */
9687
9688 #include <pthread.h>
9689int
9690main ()
9691{
9692int i = PTHREAD_PRIO_INHERIT;
9693 ;
9694 return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"; then :
9698 ax_cv_PTHREAD_PRIO_INHERIT=yes
9699else
9700 ax_cv_PTHREAD_PRIO_INHERIT=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704
9705fi
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9707$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9708 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9709
9710$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9711
9712fi
9713
cristy73bd4a52010-10-05 11:24:23 +00009714 LIBS="$save_LIBS"
9715 CFLAGS="$save_CFLAGS"
9716
9717 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009718 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009719 for ac_prog in xlc_r cc_r
9720do
9721 # Extract the first word of "$ac_prog", so it can be a program name with args.
9722set dummy $ac_prog; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009725if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009726 $as_echo_n "(cached) " >&6
9727else
9728 if test -n "$PTHREAD_CC"; then
9729 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9730else
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009738 ac_cv_prog_PTHREAD_CC="$ac_prog"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742done
9743 done
9744IFS=$as_save_IFS
9745
9746fi
9747fi
9748PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9749if test -n "$PTHREAD_CC"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9751$as_echo "$PTHREAD_CC" >&6; }
9752else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
9755fi
9756
9757
9758 test -n "$PTHREAD_CC" && break
9759done
9760test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9761
9762 else
9763 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009764 fi
cristy73bd4a52010-10-05 11:24:23 +00009765else
9766 PTHREAD_CC="$CC"
9767fi
9768
9769
9770
9771
9772
9773# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9774if test x"$ax_pthread_ok" = xyes; then
9775
9776$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9777
9778 :
9779else
9780 ax_pthread_ok=no
9781
9782fi
9783ac_ext=c
9784ac_cpp='$CPP $CPPFLAGS'
9785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9787ac_compiler_gnu=$ac_cv_c_compiler_gnu
9788
9789
9790
9791# Check whether --enable-opencl was given.
9792if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009793 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009794else
cristy48794642012-09-02 15:19:08 +00009795 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009796fi
9797
9798
cristy48794642012-09-02 15:19:08 +00009799if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009800 ac_ext=c
9801ac_cpp='$CPP $CPPFLAGS'
9802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805
cristy568c2d42012-07-27 01:41:20 +00009806 AX_LANG_COMPILER_MS
cristy73bd4a52010-10-05 11:24:23 +00009807 if test X$ax_compiler_ms = Xno; then :
9808 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9809fi
9810
9811 ax_save_CPPFLAGS=$CPPFLAGS
9812 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9813 for ac_header in CL/cl.h OpenCL/cl.h
9814do :
9815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9816ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009818 cat >>confdefs.h <<_ACEOF
9819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9820_ACEOF
9821
9822fi
9823
9824done
9825
9826 CPPFLAGS=$ax_save_CPPFLAGS
9827
9828 for ac_header in windows.h
9829do :
9830 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009831if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009832 cat >>confdefs.h <<_ACEOF
9833#define HAVE_WINDOWS_H 1
9834_ACEOF
9835
9836fi
9837
9838done
9839
9840
9841
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9844$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009845if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009846 $as_echo_n "(cached) " >&6
9847else
9848 ax_cv_check_cl_libcl=no
9849 case $host_cpu in
9850 x86_64) ax_check_cl_libdir=lib64 ;;
9851 *) ax_check_cl_libdir=lib ;;
9852 esac
9853 ax_save_CPPFLAGS=$CPPFLAGS
9854 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9855 ax_save_LIBS=$LIBS
9856 LIBS=""
9857 ax_check_libs="-lOpenCL -lCL -lclparser"
9858 for ax_lib in $ax_check_libs; do
9859 if test X$ax_compiler_ms = Xyes; then :
9860 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9861else
9862 ax_try_lib=$ax_lib
9863fi
9864 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h. */
9867
9868 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9869 # include <windows.h>
9870 # endif
9871 # ifdef HAVE_CL_CL_H
9872 # include <CL/cl.h>
9873 # elif defined(HAVE_OPENCL_CL_H)
9874 # include <OpenCL/cl.h>
9875 # else
9876 # error no CL.h
9877 # endif
9878int
9879main ()
9880{
9881clCreateContextFromType(0,0,0,0,0)
9882 ;
9883 return 0;
9884}
9885_ACEOF
9886if ac_fn_c_try_link "$LINENO"; then :
9887 ax_cv_check_cl_libcl=$ax_try_lib; break
9888else
9889 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"
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891/* end confdefs.h. */
9892
9893 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9894 # include <windows.h>
9895 # endif
9896 # ifdef HAVE_CL_CL_H
9897 # include <CL/cl.h>
9898 # elif defined(HAVE_OPENCL_CL_H)
9899 # include <OpenCL/cl.h>
9900 # else
9901 # error no CL.h
9902 # endif
9903int
9904main ()
9905{
9906clCreateContextFromType(0,0,0,0,0)
9907 ;
9908 return 0;
9909}
9910_ACEOF
9911if ac_fn_c_try_link "$LINENO"; then :
9912 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9913else
cristy78c5a0c2010-12-04 20:00:59 +00009914 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 +00009915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916/* end confdefs.h. */
9917
9918 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9919 # include <windows.h>
9920 # endif
9921 # ifdef HAVE_CL_CL_H
9922 # include <CL/cl.h>
9923 # elif defined(HAVE_OPENCL_CL_H)
9924 # include <OpenCL/cl.h>
9925 # else
9926 # error no CL.h
9927 # endif
9928int
9929main ()
9930{
9931clCreateContextFromType(0,0,0,0,0)
9932 ;
9933 return 0;
9934}
9935_ACEOF
9936if ac_fn_c_try_link "$LINENO"; then :
9937 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9938fi
9939rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941fi
9942rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944fi
9945rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 done
9948
cristyc3f8b8e2011-12-22 14:55:16 +00009949 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009950 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952/* end confdefs.h. */
9953
9954 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9955 # include <windows.h>
9956 # endif
9957 # ifdef HAVE_CL_CL_H
9958 # include <CL/cl.h>
9959 # elif defined(HAVE_OPENCL_CL_H)
9960 # include <OpenCL/cl.h>
9961 # else
9962 # error no CL.h
9963 # endif
9964int
9965main ()
9966{
9967clCreateContextFromType(0,0,0,0,0)
9968 ;
9969 return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973 ax_cv_check_cl_libcl=$LIBS
9974fi
9975rm -f core conftest.err conftest.$ac_objext \
9976 conftest$ac_exeext conftest.$ac_ext
9977fi
9978
9979 LIBS=$ax_save_LIBS
9980 CPPFLAGS=$ax_save_CPPFLAGS
9981fi
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9983$as_echo "$ax_cv_check_cl_libcl" >&6; }
9984
9985 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9986 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9987else
9988 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9989$as_echo "#define _OPENCL 1" >>confdefs.h
9990
9991fi
9992 ac_ext=c
9993ac_cpp='$CPP $CPPFLAGS'
9994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9996ac_compiler_gnu=$ac_cv_c_compiler_gnu
9997
9998fi
9999
10000
10001
10002
cristyc7083c12009-10-14 03:16:55 +000010003CFLAGS="$CL_CFLAGS $CFLAGS"
10004LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010005
cristy391f1ce2010-09-09 17:23:28 +000010006if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010007 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010008 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10009 fi
cristyfd9dcd42010-08-08 18:07:02 +000010010fi
cristy2e8b51d2009-10-17 18:26:15 +000010011
cristy3ed852e2009-09-05 21:47:34 +000010012########
10013#
10014# Check for large file support
10015#
10016########
10017# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010018if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010019 enableval=$enable_largefile;
10020fi
10021
10022if test "$enable_largefile" != no; then
10023
cristy8b350f62009-11-15 23:12:43 +000010024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010025$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010026if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010027 $as_echo_n "(cached) " >&6
10028else
10029 ac_cv_sys_largefile_CC=no
10030 if test "$GCC" != yes; then
10031 ac_save_CC=$CC
10032 while :; do
10033 # IRIX 6.2 and later do not support large files by default,
10034 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010036/* end confdefs.h. */
10037#include <sys/types.h>
10038 /* Check that off_t can represent 2**63 - 1 correctly.
10039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10040 since some C++ compilers masquerading as C compilers
10041 incorrectly reject 9223372036854775807. */
10042#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10044 && LARGE_OFF_T % 2147483647 == 1)
10045 ? 1 : -1];
10046int
10047main ()
10048{
10049
10050 ;
10051 return 0;
10052}
10053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010054 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010055 break
cristy3ed852e2009-09-05 21:47:34 +000010056fi
cristy3ed852e2009-09-05 21:47:34 +000010057rm -f core conftest.err conftest.$ac_objext
10058 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010059 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010060 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010061fi
cristy3ed852e2009-09-05 21:47:34 +000010062rm -f core conftest.err conftest.$ac_objext
10063 break
10064 done
10065 CC=$ac_save_CC
10066 rm -f conftest.$ac_ext
10067 fi
10068fi
cristy8b350f62009-11-15 23:12:43 +000010069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010070$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10071 if test "$ac_cv_sys_largefile_CC" != no; then
10072 CC=$CC$ac_cv_sys_largefile_CC
10073 fi
10074
cristy8b350f62009-11-15 23:12:43 +000010075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010076$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010077if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010078 $as_echo_n "(cached) " >&6
10079else
10080 while :; do
cristy8b350f62009-11-15 23:12:43 +000010081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010082/* end confdefs.h. */
10083#include <sys/types.h>
10084 /* Check that off_t can represent 2**63 - 1 correctly.
10085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10086 since some C++ compilers masquerading as C compilers
10087 incorrectly reject 9223372036854775807. */
10088#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10090 && LARGE_OFF_T % 2147483647 == 1)
10091 ? 1 : -1];
10092int
10093main ()
10094{
10095
10096 ;
10097 return 0;
10098}
10099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010100if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010101 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010102fi
cristy3ed852e2009-09-05 21:47:34 +000010103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010105/* end confdefs.h. */
10106#define _FILE_OFFSET_BITS 64
10107#include <sys/types.h>
10108 /* Check that off_t can represent 2**63 - 1 correctly.
10109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10110 since some C++ compilers masquerading as C compilers
10111 incorrectly reject 9223372036854775807. */
10112#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10114 && LARGE_OFF_T % 2147483647 == 1)
10115 ? 1 : -1];
10116int
10117main ()
10118{
10119
10120 ;
10121 return 0;
10122}
10123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010124if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010125 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010126fi
cristy3ed852e2009-09-05 21:47:34 +000010127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 ac_cv_sys_file_offset_bits=unknown
10129 break
10130done
10131fi
cristy8b350f62009-11-15 23:12:43 +000010132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010133$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10134case $ac_cv_sys_file_offset_bits in #(
10135 no | unknown) ;;
10136 *)
10137cat >>confdefs.h <<_ACEOF
10138#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10139_ACEOF
10140;;
10141esac
10142rm -rf conftest*
10143 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010145$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010146if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010147 $as_echo_n "(cached) " >&6
10148else
10149 while :; do
cristy8b350f62009-11-15 23:12:43 +000010150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010151/* end confdefs.h. */
10152#include <sys/types.h>
10153 /* Check that off_t can represent 2**63 - 1 correctly.
10154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10155 since some C++ compilers masquerading as C compilers
10156 incorrectly reject 9223372036854775807. */
10157#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10159 && LARGE_OFF_T % 2147483647 == 1)
10160 ? 1 : -1];
10161int
10162main ()
10163{
10164
10165 ;
10166 return 0;
10167}
10168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010169if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010170 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010171fi
cristy3ed852e2009-09-05 21:47:34 +000010172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010174/* end confdefs.h. */
10175#define _LARGE_FILES 1
10176#include <sys/types.h>
10177 /* Check that off_t can represent 2**63 - 1 correctly.
10178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10179 since some C++ compilers masquerading as C compilers
10180 incorrectly reject 9223372036854775807. */
10181#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10183 && LARGE_OFF_T % 2147483647 == 1)
10184 ? 1 : -1];
10185int
10186main ()
10187{
10188
10189 ;
10190 return 0;
10191}
10192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010193if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010194 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010195fi
cristy3ed852e2009-09-05 21:47:34 +000010196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 ac_cv_sys_large_files=unknown
10198 break
10199done
10200fi
cristy8b350f62009-11-15 23:12:43 +000010201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010202$as_echo "$ac_cv_sys_large_files" >&6; }
10203case $ac_cv_sys_large_files in #(
10204 no | unknown) ;;
10205 *)
10206cat >>confdefs.h <<_ACEOF
10207#define _LARGE_FILES $ac_cv_sys_large_files
10208_ACEOF
10209;;
10210esac
10211rm -rf conftest*
10212 fi
cristy14fefe52012-05-21 00:59:18 +000010213
10214
cristy3ed852e2009-09-05 21:47:34 +000010215fi
10216
cristy8b350f62009-11-15 23:12:43 +000010217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010218$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010219if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010220 $as_echo_n "(cached) " >&6
10221else
10222 while :; do
cristy8b350f62009-11-15 23:12:43 +000010223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010224/* end confdefs.h. */
10225#include <sys/types.h> /* for off_t */
10226 #include <stdio.h>
10227int
10228main ()
10229{
10230int (*fp) (FILE *, off_t, int) = fseeko;
10231 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10232 ;
10233 return 0;
10234}
10235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010236if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010237 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010238fi
cristy8b350f62009-11-15 23:12:43 +000010239rm -f core conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010242/* end confdefs.h. */
10243#define _LARGEFILE_SOURCE 1
10244#include <sys/types.h> /* for off_t */
10245 #include <stdio.h>
10246int
10247main ()
10248{
10249int (*fp) (FILE *, off_t, int) = fseeko;
10250 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10251 ;
10252 return 0;
10253}
10254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010256 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010257fi
cristy8b350f62009-11-15 23:12:43 +000010258rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010260 ac_cv_sys_largefile_source=unknown
10261 break
10262done
10263fi
cristy8b350f62009-11-15 23:12:43 +000010264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010265$as_echo "$ac_cv_sys_largefile_source" >&6; }
10266case $ac_cv_sys_largefile_source in #(
10267 no | unknown) ;;
10268 *)
10269cat >>confdefs.h <<_ACEOF
10270#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10271_ACEOF
10272;;
10273esac
10274rm -rf conftest*
10275
10276# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10277# in glibc 2.1.3, but that breaks too many other things.
10278# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10279if test $ac_cv_sys_largefile_source != unknown; then
10280
cristy8b350f62009-11-15 23:12:43 +000010281$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010282
10283fi
10284
10285LFS_CPPFLAGS=''
10286if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010287 case $ac_cv_sys_file_offset_bits in
10288 no)
10289 # nothing to do here as the host supports LFS fine
10290 ;;
10291 unknown)
cristy8b350f62009-11-15 23:12:43 +000010292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010293$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010294 if test "$cross_compiling" = yes; then :
10295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010297as_fn_error $? "cannot run test program while cross compiling
10298See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010299else
cristy8b350f62009-11-15 23:12:43 +000010300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010302#include <unistd.h>
10303 main () {
10304 exit(!(sizeof(off_t) == 8));
10305 }
cristyda16f162011-02-19 23:52:17 +000010306int
10307main ()
10308{
10309
10310 ;
10311 return 0;
10312}
cristy3ed852e2009-09-05 21:47:34 +000010313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010314if ac_fn_c_try_run "$LINENO"; then :
10315 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010316
cristy09b53e12011-10-14 12:47:22 +000010317 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10318$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010319else
cristy09b53e12011-10-14 12:47:22 +000010320 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10321$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010322fi
cristy8b350f62009-11-15 23:12:43 +000010323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10324 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010325fi
10326
cristyc1e0cc12011-09-21 16:41:16 +000010327 ;;
10328 *)
10329 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10330 ;;
10331 esac
cristy3ed852e2009-09-05 21:47:34 +000010332 if test "$ac_cv_sys_large_files" != 'no'; then
10333 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10334 fi
10335 if test "$ac_cv_sys_largefile_source" != 'no'; then
10336 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10337 fi
10338fi
10339
10340
cristy3ed852e2009-09-05 21:47:34 +000010341# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010342enable_dlopen=yes
10343
10344
10345
10346case `pwd` in
10347 *\ * | *\ *)
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10349$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10350esac
10351
10352
10353
cristy99bd5232011-12-07 14:38:20 +000010354macro_version='2.4.2'
10355macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369ltmain="$ac_aux_dir/ltmain.sh"
10370
cristy0c60a692010-11-04 01:09:47 +000010371# Backslashify metacharacters that are still active within
10372# double-quoted strings.
10373sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10374
10375# Same as above, but do not quote variable references.
10376double_quote_subst='s/\(["`\\]\)/\\\1/g'
10377
10378# Sed substitution to delay expansion of an escaped shell variable in a
10379# double_quote_subst'ed string.
10380delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10381
10382# Sed substitution to delay expansion of an escaped single quote.
10383delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10384
10385# Sed substitution to avoid accidental globbing in evaled expressions
10386no_glob_subst='s/\*/\\\*/g'
10387
cristy73bd4a52010-10-05 11:24:23 +000010388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10389$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010390if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010391 $as_echo_n "(cached) " >&6
10392else
10393 if test -n "$NM"; then
10394 # Let the user override the test.
10395 lt_cv_path_NM="$NM"
10396else
10397 lt_nm_to_check="${ac_tool_prefix}nm"
10398 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10399 lt_nm_to_check="$lt_nm_to_check nm"
10400 fi
10401 for lt_tmp_nm in $lt_nm_to_check; do
10402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10403 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10404 IFS="$lt_save_ifs"
10405 test -z "$ac_dir" && ac_dir=.
10406 tmp_nm="$ac_dir/$lt_tmp_nm"
10407 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10408 # Check to see if the nm accepts a BSD-compat flag.
10409 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10410 # nm: unknown option "B" ignored
10411 # Tru64's nm complains that /dev/null is an invalid object file
10412 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10413 */dev/null* | *'Invalid file or object type'*)
10414 lt_cv_path_NM="$tmp_nm -B"
10415 break
10416 ;;
10417 *)
10418 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10419 */dev/null*)
10420 lt_cv_path_NM="$tmp_nm -p"
10421 break
10422 ;;
10423 *)
10424 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10425 continue # so that we can try to find one that supports BSD flags
10426 ;;
10427 esac
10428 ;;
10429 esac
10430 fi
10431 done
10432 IFS="$lt_save_ifs"
10433 done
10434 : ${lt_cv_path_NM=no}
10435fi
10436fi
10437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10438$as_echo "$lt_cv_path_NM" >&6; }
10439if test "$lt_cv_path_NM" != "no"; then
10440 NM="$lt_cv_path_NM"
10441else
10442 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010443 if test -n "$DUMPBIN"; then :
10444 # Let the user override the test.
10445 else
10446 if test -n "$ac_tool_prefix"; then
10447 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010448 do
10449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10450set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010453if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010454 $as_echo_n "(cached) " >&6
10455else
10456 if test -n "$DUMPBIN"; then
10457 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10458else
10459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460for as_dir in $PATH
10461do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010466 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 break 2
10469 fi
10470done
10471 done
10472IFS=$as_save_IFS
10473
10474fi
10475fi
10476DUMPBIN=$ac_cv_prog_DUMPBIN
10477if test -n "$DUMPBIN"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10479$as_echo "$DUMPBIN" >&6; }
10480else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482$as_echo "no" >&6; }
10483fi
10484
10485
10486 test -n "$DUMPBIN" && break
10487 done
10488fi
10489if test -z "$DUMPBIN"; then
10490 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010491 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010492do
10493 # Extract the first word of "$ac_prog", so it can be a program name with args.
10494set dummy $ac_prog; ac_word=$2
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010497if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010498 $as_echo_n "(cached) " >&6
10499else
10500 if test -n "$ac_ct_DUMPBIN"; then
10501 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10502else
10503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504for as_dir in $PATH
10505do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010510 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514done
10515 done
10516IFS=$as_save_IFS
10517
10518fi
10519fi
10520ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10521if test -n "$ac_ct_DUMPBIN"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10523$as_echo "$ac_ct_DUMPBIN" >&6; }
10524else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527fi
10528
10529
10530 test -n "$ac_ct_DUMPBIN" && break
10531done
10532
10533 if test "x$ac_ct_DUMPBIN" = x; then
10534 DUMPBIN=":"
10535 else
10536 case $cross_compiling:$ac_tool_warned in
10537yes:)
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10540ac_tool_warned=yes ;;
10541esac
10542 DUMPBIN=$ac_ct_DUMPBIN
10543 fi
10544fi
10545
cristy0c60a692010-11-04 01:09:47 +000010546 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10547 *COFF*)
10548 DUMPBIN="$DUMPBIN -symbols"
10549 ;;
10550 *)
10551 DUMPBIN=:
10552 ;;
10553 esac
10554 fi
cristy73bd4a52010-10-05 11:24:23 +000010555
10556 if test "$DUMPBIN" != ":"; then
10557 NM="$DUMPBIN"
10558 fi
10559fi
10560test -z "$NM" && NM=nm
10561
10562
10563
10564
10565
10566
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10568$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010569if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010570 $as_echo_n "(cached) " >&6
10571else
10572 lt_cv_nm_interface="BSD nm"
10573 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010574 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010575 (eval "$ac_compile" 2>conftest.err)
10576 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010577 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010578 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10579 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010580 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010581 cat conftest.out >&5
10582 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10583 lt_cv_nm_interface="MS dumpbin"
10584 fi
10585 rm -f conftest*
10586fi
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10588$as_echo "$lt_cv_nm_interface" >&6; }
10589
10590# find the maximum length of command line arguments
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10592$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010593if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010594 $as_echo_n "(cached) " >&6
10595else
10596 i=0
10597 teststring="ABCD"
10598
10599 case $build_os in
10600 msdosdjgpp*)
10601 # On DJGPP, this test can blow up pretty badly due to problems in libc
10602 # (any single argument exceeding 2000 bytes causes a buffer overrun
10603 # during glob expansion). Even if it were fixed, the result of this
10604 # check would be larger than it should be.
10605 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10606 ;;
10607
10608 gnu*)
10609 # Under GNU Hurd, this test is not required because there is
10610 # no limit to the length of command line arguments.
10611 # Libtool will interpret -1 as no limit whatsoever
10612 lt_cv_sys_max_cmd_len=-1;
10613 ;;
10614
10615 cygwin* | mingw* | cegcc*)
10616 # On Win9x/ME, this test blows up -- it succeeds, but takes
10617 # about 5 minutes as the teststring grows exponentially.
10618 # Worse, since 9x/ME are not pre-emptively multitasking,
10619 # you end up with a "frozen" computer, even though with patience
10620 # the test eventually succeeds (with a max line length of 256k).
10621 # Instead, let's just punt: use the minimum linelength reported by
10622 # all of the supported platforms: 8192 (on NT/2K/XP).
10623 lt_cv_sys_max_cmd_len=8192;
10624 ;;
10625
cristy0c60a692010-11-04 01:09:47 +000010626 mint*)
10627 # On MiNT this can take a long time and run out of memory.
10628 lt_cv_sys_max_cmd_len=8192;
10629 ;;
10630
cristy73bd4a52010-10-05 11:24:23 +000010631 amigaos*)
10632 # On AmigaOS with pdksh, this test takes hours, literally.
10633 # So we just punt and use a minimum line length of 8192.
10634 lt_cv_sys_max_cmd_len=8192;
10635 ;;
10636
10637 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10638 # This has been around since 386BSD, at least. Likely further.
10639 if test -x /sbin/sysctl; then
10640 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10641 elif test -x /usr/sbin/sysctl; then
10642 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10643 else
10644 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10645 fi
10646 # And add a safety zone
10647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10649 ;;
10650
10651 interix*)
10652 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10653 lt_cv_sys_max_cmd_len=196608
10654 ;;
10655
cristy99bd5232011-12-07 14:38:20 +000010656 os2*)
10657 # The test takes a long time on OS/2.
10658 lt_cv_sys_max_cmd_len=8192
10659 ;;
10660
cristy73bd4a52010-10-05 11:24:23 +000010661 osf*)
10662 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10663 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10664 # nice to cause kernel panics so lets avoid the loop below.
10665 # First set a reasonable default.
10666 lt_cv_sys_max_cmd_len=16384
10667 #
10668 if test -x /sbin/sysconfig; then
10669 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10670 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10671 esac
10672 fi
10673 ;;
10674 sco3.2v5*)
10675 lt_cv_sys_max_cmd_len=102400
10676 ;;
10677 sysv5* | sco5v6* | sysv4.2uw2*)
10678 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10679 if test -n "$kargmax"; then
10680 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10681 else
10682 lt_cv_sys_max_cmd_len=32768
10683 fi
10684 ;;
10685 *)
10686 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10687 if test -n "$lt_cv_sys_max_cmd_len"; then
10688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10690 else
10691 # Make teststring a little bigger before we do anything with it.
10692 # a 1K string should be a reasonable start.
10693 for i in 1 2 3 4 5 6 7 8 ; do
10694 teststring=$teststring$teststring
10695 done
10696 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10697 # If test is not a shell built-in, we'll probably end up computing a
10698 # maximum length that is only half of the actual maximum length, but
10699 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010700 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010701 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010702 test $i != 17 # 1/2 MB should be enough
10703 do
10704 i=`expr $i + 1`
10705 teststring=$teststring$teststring
10706 done
10707 # Only check the string length outside the loop.
10708 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10709 teststring=
10710 # Add a significant safety factor because C++ compilers can tack on
10711 # massive amounts of additional arguments before passing them to the
10712 # linker. It appears as though 1/2 is a usable value.
10713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10714 fi
10715 ;;
10716 esac
10717
10718fi
10719
10720if test -n $lt_cv_sys_max_cmd_len ; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10722$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10723else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10725$as_echo "none" >&6; }
10726fi
10727max_cmd_len=$lt_cv_sys_max_cmd_len
10728
10729
10730
10731
10732
10733
10734: ${CP="cp -f"}
10735: ${MV="mv -f"}
10736: ${RM="rm -f"}
10737
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10739$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10740# Try some XSI features
10741xsi_shell=no
10742( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010743 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10744 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010745 && eval 'test $(( 1 + 1 )) -eq 2 \
10746 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10747 && xsi_shell=yes
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10749$as_echo "$xsi_shell" >&6; }
10750
10751
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10753$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10754lt_shell_append=no
10755( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10756 >/dev/null 2>&1 \
10757 && lt_shell_append=yes
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10759$as_echo "$lt_shell_append" >&6; }
10760
10761
10762if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10763 lt_unset=unset
10764else
10765 lt_unset=false
10766fi
10767
10768
10769
10770
10771
10772# test EBCDIC or ASCII
10773case `echo X|tr X '\101'` in
10774 A) # ASCII based system
10775 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10776 lt_SP2NL='tr \040 \012'
10777 lt_NL2SP='tr \015\012 \040\040'
10778 ;;
10779 *) # EBCDIC based system
10780 lt_SP2NL='tr \100 \n'
10781 lt_NL2SP='tr \r\n \100\100'
10782 ;;
10783esac
10784
10785
10786
10787
10788
10789
10790
10791
10792
cristyda16f162011-02-19 23:52:17 +000010793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10794$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10795if ${lt_cv_to_host_file_cmd+:} false; then :
10796 $as_echo_n "(cached) " >&6
10797else
10798 case $host in
10799 *-*-mingw* )
10800 case $build in
10801 *-*-mingw* ) # actually msys
10802 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10803 ;;
10804 *-*-cygwin* )
10805 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10806 ;;
10807 * ) # otherwise, assume *nix
10808 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10809 ;;
10810 esac
10811 ;;
10812 *-*-cygwin* )
10813 case $build in
10814 *-*-mingw* ) # actually msys
10815 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10816 ;;
10817 *-*-cygwin* )
10818 lt_cv_to_host_file_cmd=func_convert_file_noop
10819 ;;
10820 * ) # otherwise, assume *nix
10821 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10822 ;;
10823 esac
10824 ;;
10825 * ) # unhandled hosts (and "normal" native builds)
10826 lt_cv_to_host_file_cmd=func_convert_file_noop
10827 ;;
10828esac
10829
10830fi
10831
10832to_host_file_cmd=$lt_cv_to_host_file_cmd
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10834$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10835
10836
10837
10838
10839
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10841$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10842if ${lt_cv_to_tool_file_cmd+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844else
10845 #assume ordinary cross tools, or native build.
10846lt_cv_to_tool_file_cmd=func_convert_file_noop
10847case $host in
10848 *-*-mingw* )
10849 case $build in
10850 *-*-mingw* ) # actually msys
10851 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10852 ;;
10853 esac
10854 ;;
10855esac
10856
10857fi
10858
10859to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10861$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10862
10863
10864
10865
10866
cristy73bd4a52010-10-05 11:24:23 +000010867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10868$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010869if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010870 $as_echo_n "(cached) " >&6
10871else
10872 lt_cv_ld_reload_flag='-r'
10873fi
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10875$as_echo "$lt_cv_ld_reload_flag" >&6; }
10876reload_flag=$lt_cv_ld_reload_flag
10877case $reload_flag in
10878"" | " "*) ;;
10879*) reload_flag=" $reload_flag" ;;
10880esac
10881reload_cmds='$LD$reload_flag -o $output$reload_objs'
10882case $host_os in
cristyda16f162011-02-19 23:52:17 +000010883 cygwin* | mingw* | pw32* | cegcc*)
10884 if test "$GCC" != yes; then
10885 reload_cmds=false
10886 fi
10887 ;;
cristy73bd4a52010-10-05 11:24:23 +000010888 darwin*)
10889 if test "$GCC" = yes; then
10890 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10891 else
10892 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10893 fi
10894 ;;
10895esac
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905if test -n "$ac_tool_prefix"; then
10906 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10907set dummy ${ac_tool_prefix}objdump; ac_word=$2
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010910if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010911 $as_echo_n "(cached) " >&6
10912else
10913 if test -n "$OBJDUMP"; then
10914 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10915else
10916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917for as_dir in $PATH
10918do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010923 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10926 fi
10927done
10928 done
10929IFS=$as_save_IFS
10930
10931fi
10932fi
10933OBJDUMP=$ac_cv_prog_OBJDUMP
10934if test -n "$OBJDUMP"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10936$as_echo "$OBJDUMP" >&6; }
10937else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
10940fi
10941
10942
10943fi
10944if test -z "$ac_cv_prog_OBJDUMP"; then
10945 ac_ct_OBJDUMP=$OBJDUMP
10946 # Extract the first word of "objdump", so it can be a program name with args.
10947set dummy objdump; ac_word=$2
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010950if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010951 $as_echo_n "(cached) " >&6
10952else
10953 if test -n "$ac_ct_OBJDUMP"; then
10954 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010963 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968 done
10969IFS=$as_save_IFS
10970
10971fi
10972fi
10973ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10974if test -n "$ac_ct_OBJDUMP"; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10976$as_echo "$ac_ct_OBJDUMP" >&6; }
10977else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979$as_echo "no" >&6; }
10980fi
10981
10982 if test "x$ac_ct_OBJDUMP" = x; then
10983 OBJDUMP="false"
10984 else
10985 case $cross_compiling:$ac_tool_warned in
10986yes:)
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10989ac_tool_warned=yes ;;
10990esac
10991 OBJDUMP=$ac_ct_OBJDUMP
10992 fi
10993else
10994 OBJDUMP="$ac_cv_prog_OBJDUMP"
10995fi
10996
10997test -z "$OBJDUMP" && OBJDUMP=objdump
10998
10999
11000
11001
11002
11003
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11005$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011006if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011007 $as_echo_n "(cached) " >&6
11008else
11009 lt_cv_file_magic_cmd='$MAGIC_CMD'
11010lt_cv_file_magic_test_file=
11011lt_cv_deplibs_check_method='unknown'
11012# Need to set the preceding variable on all platforms that support
11013# interlibrary dependencies.
11014# 'none' -- dependencies not supported.
11015# `unknown' -- same as none, but documents that we really don't know.
11016# 'pass_all' -- all dependencies passed with no checks.
11017# 'test_compile' -- check by making test program.
11018# 'file_magic [[regex]]' -- check by looking for files in library path
11019# which responds to the $file_magic_cmd with a given extended regex.
11020# If you have `file' or equivalent on your system and you're not sure
11021# whether `pass_all' will *always* work, you probably want this one.
11022
11023case $host_os in
11024aix[4-9]*)
11025 lt_cv_deplibs_check_method=pass_all
11026 ;;
11027
11028beos*)
11029 lt_cv_deplibs_check_method=pass_all
11030 ;;
11031
11032bsdi[45]*)
11033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11034 lt_cv_file_magic_cmd='/usr/bin/file -L'
11035 lt_cv_file_magic_test_file=/shlib/libc.so
11036 ;;
11037
11038cygwin*)
11039 # func_win32_libid is a shell function defined in ltmain.sh
11040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11041 lt_cv_file_magic_cmd='func_win32_libid'
11042 ;;
11043
11044mingw* | pw32*)
11045 # Base MSYS/MinGW do not provide the 'file' command needed by
11046 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11047 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011048 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11049 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11051 lt_cv_file_magic_cmd='func_win32_libid'
11052 else
cristy0c60a692010-11-04 01:09:47 +000011053 # Keep this pattern in sync with the one in func_win32_libid.
11054 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 +000011055 lt_cv_file_magic_cmd='$OBJDUMP -f'
11056 fi
11057 ;;
11058
cristy0c60a692010-11-04 01:09:47 +000011059cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011060 # use the weaker test based on 'objdump'. See mingw*.
11061 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11062 lt_cv_file_magic_cmd='$OBJDUMP -f'
11063 ;;
11064
11065darwin* | rhapsody*)
11066 lt_cv_deplibs_check_method=pass_all
11067 ;;
11068
11069freebsd* | dragonfly*)
11070 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11071 case $host_cpu in
11072 i*86 )
11073 # Not sure whether the presence of OpenBSD here was a mistake.
11074 # Let's accept both of them until this is cleared up.
11075 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11076 lt_cv_file_magic_cmd=/usr/bin/file
11077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11078 ;;
11079 esac
11080 else
11081 lt_cv_deplibs_check_method=pass_all
11082 fi
11083 ;;
11084
11085gnu*)
11086 lt_cv_deplibs_check_method=pass_all
11087 ;;
11088
cristy0c60a692010-11-04 01:09:47 +000011089haiku*)
11090 lt_cv_deplibs_check_method=pass_all
11091 ;;
11092
cristy73bd4a52010-10-05 11:24:23 +000011093hpux10.20* | hpux11*)
11094 lt_cv_file_magic_cmd=/usr/bin/file
11095 case $host_cpu in
11096 ia64*)
11097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11098 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11099 ;;
11100 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011101 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 +000011102 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11103 ;;
11104 *)
cristy0c60a692010-11-04 01:09:47 +000011105 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 +000011106 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11107 ;;
11108 esac
11109 ;;
11110
11111interix[3-9]*)
11112 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11114 ;;
11115
11116irix5* | irix6* | nonstopux*)
11117 case $LD in
11118 *-32|*"-32 ") libmagic=32-bit;;
11119 *-n32|*"-n32 ") libmagic=N32;;
11120 *-64|*"-64 ") libmagic=64-bit;;
11121 *) libmagic=never-match;;
11122 esac
11123 lt_cv_deplibs_check_method=pass_all
11124 ;;
11125
cristy99bd5232011-12-07 14:38:20 +000011126# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011127linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011128 lt_cv_deplibs_check_method=pass_all
11129 ;;
11130
11131netbsd*)
11132 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11134 else
11135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11136 fi
11137 ;;
11138
11139newos6*)
11140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11141 lt_cv_file_magic_cmd=/usr/bin/file
11142 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11143 ;;
11144
11145*nto* | *qnx*)
11146 lt_cv_deplibs_check_method=pass_all
11147 ;;
11148
11149openbsd*)
11150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11152 else
11153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11154 fi
11155 ;;
11156
11157osf3* | osf4* | osf5*)
11158 lt_cv_deplibs_check_method=pass_all
11159 ;;
11160
11161rdos*)
11162 lt_cv_deplibs_check_method=pass_all
11163 ;;
11164
11165solaris*)
11166 lt_cv_deplibs_check_method=pass_all
11167 ;;
11168
11169sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11170 lt_cv_deplibs_check_method=pass_all
11171 ;;
11172
11173sysv4 | sysv4.3*)
11174 case $host_vendor in
11175 motorola)
11176 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]'
11177 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11178 ;;
11179 ncr)
11180 lt_cv_deplibs_check_method=pass_all
11181 ;;
11182 sequent)
11183 lt_cv_file_magic_cmd='/bin/file'
11184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11185 ;;
11186 sni)
11187 lt_cv_file_magic_cmd='/bin/file'
11188 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11189 lt_cv_file_magic_test_file=/lib/libc.so
11190 ;;
11191 siemens)
11192 lt_cv_deplibs_check_method=pass_all
11193 ;;
11194 pc)
11195 lt_cv_deplibs_check_method=pass_all
11196 ;;
11197 esac
11198 ;;
11199
11200tpf*)
11201 lt_cv_deplibs_check_method=pass_all
11202 ;;
11203esac
11204
11205fi
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11207$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011208
11209file_magic_glob=
11210want_nocaseglob=no
11211if test "$build" = "$host"; then
11212 case $host_os in
11213 mingw* | pw32*)
11214 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11215 want_nocaseglob=yes
11216 else
11217 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11218 fi
11219 ;;
11220 esac
11221fi
11222
cristy73bd4a52010-10-05 11:24:23 +000011223file_magic_cmd=$lt_cv_file_magic_cmd
11224deplibs_check_method=$lt_cv_deplibs_check_method
11225test -z "$deplibs_check_method" && deplibs_check_method=unknown
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
cristyda16f162011-02-19 23:52:17 +000011238
11239
11240
11241
11242
11243
11244
11245
11246
11247
cristy73bd4a52010-10-05 11:24:23 +000011248if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011249 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11250set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011253if ${ac_cv_prog_DLLTOOL+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255else
11256 if test -n "$DLLTOOL"; then
11257 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011266 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11269 fi
11270done
11271 done
11272IFS=$as_save_IFS
11273
11274fi
11275fi
11276DLLTOOL=$ac_cv_prog_DLLTOOL
11277if test -n "$DLLTOOL"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11279$as_echo "$DLLTOOL" >&6; }
11280else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
11283fi
11284
11285
11286fi
11287if test -z "$ac_cv_prog_DLLTOOL"; then
11288 ac_ct_DLLTOOL=$DLLTOOL
11289 # Extract the first word of "dlltool", so it can be a program name with args.
11290set dummy dlltool; ac_word=$2
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292$as_echo_n "checking for $ac_word... " >&6; }
11293if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295else
11296 if test -n "$ac_ct_DLLTOOL"; then
11297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11309 fi
11310done
11311 done
11312IFS=$as_save_IFS
11313
11314fi
11315fi
11316ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11317if test -n "$ac_ct_DLLTOOL"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11319$as_echo "$ac_ct_DLLTOOL" >&6; }
11320else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
11323fi
11324
11325 if test "x$ac_ct_DLLTOOL" = x; then
11326 DLLTOOL="false"
11327 else
11328 case $cross_compiling:$ac_tool_warned in
11329yes:)
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332ac_tool_warned=yes ;;
11333esac
11334 DLLTOOL=$ac_ct_DLLTOOL
11335 fi
11336else
11337 DLLTOOL="$ac_cv_prog_DLLTOOL"
11338fi
11339
11340test -z "$DLLTOOL" && DLLTOOL=dlltool
11341
11342
11343
11344
11345
11346
11347
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11349$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11350if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352else
11353 lt_cv_sharedlib_from_linklib_cmd='unknown'
11354
11355case $host_os in
11356cygwin* | mingw* | pw32* | cegcc*)
11357 # two different shell functions defined in ltmain.sh
11358 # decide which to use based on capabilities of $DLLTOOL
11359 case `$DLLTOOL --help 2>&1` in
11360 *--identify-strict*)
11361 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11362 ;;
11363 *)
11364 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11365 ;;
11366 esac
11367 ;;
11368*)
11369 # fallback: assume linklib IS sharedlib
11370 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11371 ;;
11372esac
11373
11374fi
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11376$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11377sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11378test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11379
11380
11381
11382
11383
11384
11385
11386if test -n "$ac_tool_prefix"; then
11387 for ac_prog in ar
11388 do
11389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392$as_echo_n "checking for $ac_word... " >&6; }
11393if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011394 $as_echo_n "(cached) " >&6
11395else
11396 if test -n "$AR"; then
11397 ac_cv_prog_AR="$AR" # Let the user override the test.
11398else
11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011406 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11409 fi
11410done
11411 done
11412IFS=$as_save_IFS
11413
11414fi
11415fi
11416AR=$ac_cv_prog_AR
11417if test -n "$AR"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11419$as_echo "$AR" >&6; }
11420else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
11423fi
11424
11425
cristyda16f162011-02-19 23:52:17 +000011426 test -n "$AR" && break
11427 done
cristy73bd4a52010-10-05 11:24:23 +000011428fi
cristyda16f162011-02-19 23:52:17 +000011429if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011430 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011431 for ac_prog in ar
11432do
11433 # Extract the first word of "$ac_prog", so it can be a program name with args.
11434set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011437if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011438 $as_echo_n "(cached) " >&6
11439else
11440 if test -n "$ac_ct_AR"; then
11441 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11442else
11443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $PATH
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011450 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454done
11455 done
11456IFS=$as_save_IFS
11457
11458fi
11459fi
11460ac_ct_AR=$ac_cv_prog_ac_ct_AR
11461if test -n "$ac_ct_AR"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11463$as_echo "$ac_ct_AR" >&6; }
11464else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466$as_echo "no" >&6; }
11467fi
11468
cristyda16f162011-02-19 23:52:17 +000011469
11470 test -n "$ac_ct_AR" && break
11471done
11472
cristy73bd4a52010-10-05 11:24:23 +000011473 if test "x$ac_ct_AR" = x; then
11474 AR="false"
11475 else
11476 case $cross_compiling:$ac_tool_warned in
11477yes:)
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11480ac_tool_warned=yes ;;
11481esac
11482 AR=$ac_ct_AR
11483 fi
cristy73bd4a52010-10-05 11:24:23 +000011484fi
11485
cristyda16f162011-02-19 23:52:17 +000011486: ${AR=ar}
11487: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
cristyda16f162011-02-19 23:52:17 +000011499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11500$as_echo_n "checking for archiver @FILE support... " >&6; }
11501if ${lt_cv_ar_at_file+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503else
11504 lt_cv_ar_at_file=no
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506/* end confdefs.h. */
11507
11508int
11509main ()
11510{
11511
11512 ;
11513 return 0;
11514}
11515_ACEOF
11516if ac_fn_c_try_compile "$LINENO"; then :
11517 echo conftest.$ac_objext > conftest.lst
11518 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11520 (eval $lt_ar_try) 2>&5
11521 ac_status=$?
11522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11523 test $ac_status = 0; }
11524 if test "$ac_status" -eq 0; then
11525 # Ensure the archiver fails upon bogus file names.
11526 rm -f conftest.$ac_objext libconftest.a
11527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11528 (eval $lt_ar_try) 2>&5
11529 ac_status=$?
11530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531 test $ac_status = 0; }
11532 if test "$ac_status" -ne 0; then
11533 lt_cv_ar_at_file=@
11534 fi
11535 fi
11536 rm -f conftest.* libconftest.a
11537
11538fi
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540
11541fi
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11543$as_echo "$lt_cv_ar_at_file" >&6; }
11544
11545if test "x$lt_cv_ar_at_file" = xno; then
11546 archiver_list_spec=
11547else
11548 archiver_list_spec=$lt_cv_ar_at_file
11549fi
11550
11551
11552
11553
11554
11555
11556
cristy73bd4a52010-10-05 11:24:23 +000011557if test -n "$ac_tool_prefix"; then
11558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11559set dummy ${ac_tool_prefix}strip; ac_word=$2
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011562if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011563 $as_echo_n "(cached) " >&6
11564else
11565 if test -n "$STRIP"; then
11566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11567else
11568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011575 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11578 fi
11579done
11580 done
11581IFS=$as_save_IFS
11582
11583fi
11584fi
11585STRIP=$ac_cv_prog_STRIP
11586if test -n "$STRIP"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11588$as_echo "$STRIP" >&6; }
11589else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
11592fi
11593
11594
11595fi
11596if test -z "$ac_cv_prog_STRIP"; then
11597 ac_ct_STRIP=$STRIP
11598 # Extract the first word of "strip", so it can be a program name with args.
11599set dummy strip; ac_word=$2
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011602if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011603 $as_echo_n "(cached) " >&6
11604else
11605 if test -n "$ac_ct_STRIP"; then
11606 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011615 ac_cv_prog_ac_ct_STRIP="strip"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619done
11620 done
11621IFS=$as_save_IFS
11622
11623fi
11624fi
11625ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11626if test -n "$ac_ct_STRIP"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11628$as_echo "$ac_ct_STRIP" >&6; }
11629else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
11632fi
11633
11634 if test "x$ac_ct_STRIP" = x; then
11635 STRIP=":"
11636 else
11637 case $cross_compiling:$ac_tool_warned in
11638yes:)
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11641ac_tool_warned=yes ;;
11642esac
11643 STRIP=$ac_ct_STRIP
11644 fi
11645else
11646 STRIP="$ac_cv_prog_STRIP"
11647fi
11648
11649test -z "$STRIP" && STRIP=:
11650
11651
11652
11653
11654
11655
11656if test -n "$ac_tool_prefix"; then
11657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11658set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011661if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011662 $as_echo_n "(cached) " >&6
11663else
11664 if test -n "$RANLIB"; then
11665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11666else
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11677 fi
11678done
11679 done
11680IFS=$as_save_IFS
11681
11682fi
11683fi
11684RANLIB=$ac_cv_prog_RANLIB
11685if test -n "$RANLIB"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11687$as_echo "$RANLIB" >&6; }
11688else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
11691fi
11692
11693
11694fi
11695if test -z "$ac_cv_prog_RANLIB"; then
11696 ac_ct_RANLIB=$RANLIB
11697 # Extract the first word of "ranlib", so it can be a program name with args.
11698set dummy ranlib; ac_word=$2
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011701if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011702 $as_echo_n "(cached) " >&6
11703else
11704 if test -n "$ac_ct_RANLIB"; then
11705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11706else
11707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708for as_dir in $PATH
11709do
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011714 ac_cv_prog_ac_ct_RANLIB="ranlib"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 break 2
11717 fi
11718done
11719 done
11720IFS=$as_save_IFS
11721
11722fi
11723fi
11724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11725if test -n "$ac_ct_RANLIB"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11727$as_echo "$ac_ct_RANLIB" >&6; }
11728else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730$as_echo "no" >&6; }
11731fi
11732
11733 if test "x$ac_ct_RANLIB" = x; then
11734 RANLIB=":"
11735 else
11736 case $cross_compiling:$ac_tool_warned in
11737yes:)
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11740ac_tool_warned=yes ;;
11741esac
11742 RANLIB=$ac_ct_RANLIB
11743 fi
11744else
11745 RANLIB="$ac_cv_prog_RANLIB"
11746fi
11747
11748test -z "$RANLIB" && RANLIB=:
11749
11750
11751
11752
11753
11754
11755# Determine commands to create old-style static archives.
11756old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11757old_postinstall_cmds='chmod 644 $oldlib'
11758old_postuninstall_cmds=
11759
11760if test -n "$RANLIB"; then
11761 case $host_os in
11762 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011764 ;;
11765 *)
cristy99bd5232011-12-07 14:38:20 +000011766 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011767 ;;
11768 esac
cristy99bd5232011-12-07 14:38:20 +000011769 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011770fi
11771
cristy0c60a692010-11-04 01:09:47 +000011772case $host_os in
11773 darwin*)
11774 lock_old_archive_extraction=yes ;;
11775 *)
11776 lock_old_archive_extraction=no ;;
11777esac
11778
11779
11780
11781
11782
11783
cristy73bd4a52010-10-05 11:24:23 +000011784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817# If no C compiler was specified, use CC.
11818LTCC=${LTCC-"$CC"}
11819
11820# If no C compiler flags were specified, use CFLAGS.
11821LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11822
11823# Allow CC to be a program name with arguments.
11824compiler=$CC
11825
11826
11827# Check for command to grab the raw symbol name followed by C symbol from nm.
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11829$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011830if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011831 $as_echo_n "(cached) " >&6
11832else
11833
11834# These are sane defaults that work on at least a few old systems.
11835# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11836
11837# Character class describing NM global symbol codes.
11838symcode='[BCDEGRST]'
11839
11840# Regexp to match symbols that can be accessed directly from C.
11841sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11842
11843# Define system-specific variables.
11844case $host_os in
11845aix*)
11846 symcode='[BCDT]'
11847 ;;
11848cygwin* | mingw* | pw32* | cegcc*)
11849 symcode='[ABCDGISTW]'
11850 ;;
11851hpux*)
11852 if test "$host_cpu" = ia64; then
11853 symcode='[ABCDEGRST]'
11854 fi
11855 ;;
11856irix* | nonstopux*)
11857 symcode='[BCDEGRST]'
11858 ;;
11859osf*)
11860 symcode='[BCDEGQRST]'
11861 ;;
11862solaris*)
11863 symcode='[BDRT]'
11864 ;;
11865sco3.2v5*)
11866 symcode='[DT]'
11867 ;;
11868sysv4.2uw2*)
11869 symcode='[DT]'
11870 ;;
11871sysv5* | sco5v6* | unixware* | OpenUNIX*)
11872 symcode='[ABDT]'
11873 ;;
11874sysv4)
11875 symcode='[DFNSTU]'
11876 ;;
11877esac
11878
11879# If we're using GNU nm, then use its standard symbol codes.
11880case `$NM -V 2>&1` in
11881*GNU* | *'with BFD'*)
11882 symcode='[ABCDGIRSTW]' ;;
11883esac
11884
11885# Transform an extracted symbol line into a proper C declaration.
11886# Some systems (esp. on ia64) link data and code symbols differently,
11887# so use this general approach.
11888lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11889
11890# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011891lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11892lt_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 +000011893
11894# Handle CRLF in mingw tool chain
11895opt_cr=
11896case $build_os in
11897mingw*)
11898 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11899 ;;
11900esac
11901
11902# Try without a prefix underscore, then with it.
11903for ac_symprfx in "" "_"; do
11904
11905 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11906 symxfrm="\\1 $ac_symprfx\\2 \\2"
11907
11908 # Write the raw and C identifiers.
11909 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11910 # Fake it for dumpbin and say T for any non-static function
11911 # and D for any global variable.
11912 # Also find C++ and __fastcall symbols from MSVC++,
11913 # which start with @ or ?.
11914 lt_cv_sys_global_symbol_pipe="$AWK '"\
11915" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011916" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011917" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11918" \$ 0!~/External *\|/{next};"\
11919" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11920" {if(hide[section]) next};"\
11921" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11922" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11923" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11924" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11925" ' prfx=^$ac_symprfx"
11926 else
11927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11928 fi
cristyda16f162011-02-19 23:52:17 +000011929 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011930
11931 # Check to see that the pipe works correctly.
11932 pipe_works=no
11933
11934 rm -f conftest*
11935 cat > conftest.$ac_ext <<_LT_EOF
11936#ifdef __cplusplus
11937extern "C" {
11938#endif
11939char nm_test_var;
11940void nm_test_func(void);
11941void nm_test_func(void){}
11942#ifdef __cplusplus
11943}
11944#endif
11945int main(){nm_test_var='a';nm_test_func();return(0);}
11946_LT_EOF
11947
11948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11949 (eval $ac_compile) 2>&5
11950 ac_status=$?
11951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11952 test $ac_status = 0; }; then
11953 # Now try to grab the symbols.
11954 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11956 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011957 ac_status=$?
11958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11959 test $ac_status = 0; } && test -s "$nlist"; then
11960 # Try sorting and uniquifying the output.
11961 if sort "$nlist" | uniq > "$nlist"T; then
11962 mv -f "$nlist"T "$nlist"
11963 else
11964 rm -f "$nlist"T
11965 fi
11966
11967 # Make sure that we snagged all the symbols we need.
11968 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11969 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11970 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011971/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11972#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11973/* DATA imports from DLLs on WIN32 con't be const, because runtime
11974 relocations are performed -- see ld's documentation on pseudo-relocs. */
11975# define LT_DLSYM_CONST
11976#elif defined(__osf__)
11977/* This system does not cope well with relocations in const data. */
11978# define LT_DLSYM_CONST
11979#else
11980# define LT_DLSYM_CONST const
11981#endif
11982
cristy73bd4a52010-10-05 11:24:23 +000011983#ifdef __cplusplus
11984extern "C" {
11985#endif
11986
11987_LT_EOF
11988 # Now generate the symbol file.
11989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11990
11991 cat <<_LT_EOF >> conftest.$ac_ext
11992
11993/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011994LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011995 const char *name;
11996 void *address;
11997}
11998lt__PROGRAM__LTX_preloaded_symbols[] =
11999{
12000 { "@PROGRAM@", (void *) 0 },
12001_LT_EOF
12002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12003 cat <<\_LT_EOF >> conftest.$ac_ext
12004 {0, (void *) 0}
12005};
12006
12007/* This works around a problem in FreeBSD linker */
12008#ifdef FREEBSD_WORKAROUND
12009static const void *lt_preloaded_setup() {
12010 return lt__PROGRAM__LTX_preloaded_symbols;
12011}
12012#endif
12013
12014#ifdef __cplusplus
12015}
12016#endif
12017_LT_EOF
12018 # Now try linking the two files.
12019 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012020 lt_globsym_save_LIBS=$LIBS
12021 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012022 LIBS="conftstm.$ac_objext"
12023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12025 (eval $ac_link) 2>&5
12026 ac_status=$?
12027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12029 pipe_works=yes
12030 fi
cristyda16f162011-02-19 23:52:17 +000012031 LIBS=$lt_globsym_save_LIBS
12032 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012033 else
12034 echo "cannot find nm_test_func in $nlist" >&5
12035 fi
12036 else
12037 echo "cannot find nm_test_var in $nlist" >&5
12038 fi
12039 else
12040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12041 fi
12042 else
12043 echo "$progname: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12045 fi
12046 rm -rf conftest* conftst*
12047
12048 # Do not use the global_symbol_pipe unless it works.
12049 if test "$pipe_works" = yes; then
12050 break
12051 else
12052 lt_cv_sys_global_symbol_pipe=
12053 fi
12054done
12055
12056fi
12057
12058if test -z "$lt_cv_sys_global_symbol_pipe"; then
12059 lt_cv_sys_global_symbol_to_cdecl=
12060fi
12061if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12063$as_echo "failed" >&6; }
12064else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12066$as_echo "ok" >&6; }
12067fi
12068
cristyda16f162011-02-19 23:52:17 +000012069# Response file support.
12070if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12071 nm_file_list_spec='@'
12072elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12073 nm_file_list_spec='@'
12074fi
cristy73bd4a52010-10-05 11:24:23 +000012075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
cristyda16f162011-02-19 23:52:17 +000012096
12097
12098
12099
12100
12101
12102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12103$as_echo_n "checking for sysroot... " >&6; }
12104
12105# Check whether --with-sysroot was given.
12106if test "${with_sysroot+set}" = set; then :
12107 withval=$with_sysroot;
12108else
12109 with_sysroot=no
12110fi
12111
12112
12113lt_sysroot=
12114case ${with_sysroot} in #(
12115 yes)
12116 if test "$GCC" = yes; then
12117 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12118 fi
12119 ;; #(
12120 /*)
12121 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12122 ;; #(
12123 no|'')
12124 ;; #(
12125 *)
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12127$as_echo "${with_sysroot}" >&6; }
12128 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12129 ;;
12130esac
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12133$as_echo "${lt_sysroot:-no}" >&6; }
12134
12135
12136
12137
12138
cristy73bd4a52010-10-05 11:24:23 +000012139# Check whether --enable-libtool-lock was given.
12140if test "${enable_libtool_lock+set}" = set; then :
12141 enableval=$enable_libtool_lock;
12142fi
12143
12144test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12145
12146# Some flags need to be propagated to the compiler or linker for good
12147# libtool support.
12148case $host in
12149ia64-*-hpux*)
12150 # Find out which ABI we are using.
12151 echo 'int i;' > conftest.$ac_ext
12152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12153 (eval $ac_compile) 2>&5
12154 ac_status=$?
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }; then
12157 case `/usr/bin/file conftest.$ac_objext` in
12158 *ELF-32*)
12159 HPUX_IA64_MODE="32"
12160 ;;
12161 *ELF-64*)
12162 HPUX_IA64_MODE="64"
12163 ;;
12164 esac
12165 fi
12166 rm -rf conftest*
12167 ;;
12168*-*-irix6*)
12169 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012170 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12172 (eval $ac_compile) 2>&5
12173 ac_status=$?
12174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12175 test $ac_status = 0; }; then
12176 if test "$lt_cv_prog_gnu_ld" = yes; then
12177 case `/usr/bin/file conftest.$ac_objext` in
12178 *32-bit*)
12179 LD="${LD-ld} -melf32bsmip"
12180 ;;
12181 *N32*)
12182 LD="${LD-ld} -melf32bmipn32"
12183 ;;
12184 *64-bit*)
12185 LD="${LD-ld} -melf64bmip"
12186 ;;
12187 esac
12188 else
12189 case `/usr/bin/file conftest.$ac_objext` in
12190 *32-bit*)
12191 LD="${LD-ld} -32"
12192 ;;
12193 *N32*)
12194 LD="${LD-ld} -n32"
12195 ;;
12196 *64-bit*)
12197 LD="${LD-ld} -64"
12198 ;;
12199 esac
12200 fi
12201 fi
12202 rm -rf conftest*
12203 ;;
12204
12205x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12206s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12207 # Find out which ABI we are using.
12208 echo 'int i;' > conftest.$ac_ext
12209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12210 (eval $ac_compile) 2>&5
12211 ac_status=$?
12212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12213 test $ac_status = 0; }; then
12214 case `/usr/bin/file conftest.o` in
12215 *32-bit*)
12216 case $host in
12217 x86_64-*kfreebsd*-gnu)
12218 LD="${LD-ld} -m elf_i386_fbsd"
12219 ;;
12220 x86_64-*linux*)
12221 LD="${LD-ld} -m elf_i386"
12222 ;;
12223 ppc64-*linux*|powerpc64-*linux*)
12224 LD="${LD-ld} -m elf32ppclinux"
12225 ;;
12226 s390x-*linux*)
12227 LD="${LD-ld} -m elf_s390"
12228 ;;
12229 sparc64-*linux*)
12230 LD="${LD-ld} -m elf32_sparc"
12231 ;;
12232 esac
12233 ;;
12234 *64-bit*)
12235 case $host in
12236 x86_64-*kfreebsd*-gnu)
12237 LD="${LD-ld} -m elf_x86_64_fbsd"
12238 ;;
12239 x86_64-*linux*)
12240 LD="${LD-ld} -m elf_x86_64"
12241 ;;
12242 ppc*-*linux*|powerpc*-*linux*)
12243 LD="${LD-ld} -m elf64ppc"
12244 ;;
12245 s390*-*linux*|s390*-*tpf*)
12246 LD="${LD-ld} -m elf64_s390"
12247 ;;
12248 sparc*-*linux*)
12249 LD="${LD-ld} -m elf64_sparc"
12250 ;;
12251 esac
12252 ;;
12253 esac
12254 fi
12255 rm -rf conftest*
12256 ;;
12257
12258*-*-sco3.2v5*)
12259 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12260 SAVE_CFLAGS="$CFLAGS"
12261 CFLAGS="$CFLAGS -belf"
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12263$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012264if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012265 $as_echo_n "(cached) " >&6
12266else
12267 ac_ext=c
12268ac_cpp='$CPP $CPPFLAGS'
12269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271ac_compiler_gnu=$ac_cv_c_compiler_gnu
12272
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274/* end confdefs.h. */
12275
12276int
12277main ()
12278{
12279
12280 ;
12281 return 0;
12282}
12283_ACEOF
12284if ac_fn_c_try_link "$LINENO"; then :
12285 lt_cv_cc_needs_belf=yes
12286else
12287 lt_cv_cc_needs_belf=no
12288fi
12289rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 ac_ext=c
12292ac_cpp='$CPP $CPPFLAGS'
12293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295ac_compiler_gnu=$ac_cv_c_compiler_gnu
12296
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12299$as_echo "$lt_cv_cc_needs_belf" >&6; }
12300 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12301 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12302 CFLAGS="$SAVE_CFLAGS"
12303 fi
12304 ;;
cristy99bd5232011-12-07 14:38:20 +000012305*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012306 # Find out which ABI we are using.
12307 echo 'int i;' > conftest.$ac_ext
12308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12309 (eval $ac_compile) 2>&5
12310 ac_status=$?
12311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12312 test $ac_status = 0; }; then
12313 case `/usr/bin/file conftest.o` in
12314 *64-bit*)
12315 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012316 yes*)
12317 case $host in
12318 i?86-*-solaris*)
12319 LD="${LD-ld} -m elf_x86_64"
12320 ;;
12321 sparc*-*-solaris*)
12322 LD="${LD-ld} -m elf64_sparc"
12323 ;;
12324 esac
12325 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12326 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12327 LD="${LD-ld}_sol2"
12328 fi
12329 ;;
cristy73bd4a52010-10-05 11:24:23 +000012330 *)
12331 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12332 LD="${LD-ld} -64"
12333 fi
12334 ;;
12335 esac
12336 ;;
12337 esac
12338 fi
12339 rm -rf conftest*
12340 ;;
12341esac
12342
12343need_locks="$enable_libtool_lock"
12344
cristyda16f162011-02-19 23:52:17 +000012345if test -n "$ac_tool_prefix"; then
12346 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12347set dummy ${ac_tool_prefix}mt; ac_word=$2
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349$as_echo_n "checking for $ac_word... " >&6; }
12350if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352else
12353 if test -n "$MANIFEST_TOOL"; then
12354 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12355else
12356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $PATH
12358do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012363 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365 break 2
12366 fi
12367done
12368 done
12369IFS=$as_save_IFS
12370
12371fi
12372fi
12373MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12374if test -n "$MANIFEST_TOOL"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12376$as_echo "$MANIFEST_TOOL" >&6; }
12377else
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379$as_echo "no" >&6; }
12380fi
12381
12382
12383fi
12384if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12385 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12386 # Extract the first word of "mt", so it can be a program name with args.
12387set dummy mt; ac_word=$2
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389$as_echo_n "checking for $ac_word... " >&6; }
12390if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392else
12393 if test -n "$ac_ct_MANIFEST_TOOL"; then
12394 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12395else
12396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397for as_dir in $PATH
12398do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012403 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407done
12408 done
12409IFS=$as_save_IFS
12410
12411fi
12412fi
12413ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12414if test -n "$ac_ct_MANIFEST_TOOL"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12416$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12417else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420fi
12421
12422 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12423 MANIFEST_TOOL=":"
12424 else
12425 case $cross_compiling:$ac_tool_warned in
12426yes:)
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12429ac_tool_warned=yes ;;
12430esac
12431 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12432 fi
12433else
12434 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12435fi
12436
12437test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12439$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12440if ${lt_cv_path_mainfest_tool+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442else
12443 lt_cv_path_mainfest_tool=no
12444 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12445 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12446 cat conftest.err >&5
12447 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12448 lt_cv_path_mainfest_tool=yes
12449 fi
12450 rm -f conftest*
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12453$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12454if test "x$lt_cv_path_mainfest_tool" != xyes; then
12455 MANIFEST_TOOL=:
12456fi
12457
12458
12459
12460
12461
cristy73bd4a52010-10-05 11:24:23 +000012462
12463 case $host_os in
12464 rhapsody* | darwin*)
12465 if test -n "$ac_tool_prefix"; then
12466 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12467set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012470if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012471 $as_echo_n "(cached) " >&6
12472else
12473 if test -n "$DSYMUTIL"; then
12474 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12475else
12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477for as_dir in $PATH
12478do
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012483 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12486 fi
12487done
12488 done
12489IFS=$as_save_IFS
12490
12491fi
12492fi
12493DSYMUTIL=$ac_cv_prog_DSYMUTIL
12494if test -n "$DSYMUTIL"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12496$as_echo "$DSYMUTIL" >&6; }
12497else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499$as_echo "no" >&6; }
12500fi
12501
12502
12503fi
12504if test -z "$ac_cv_prog_DSYMUTIL"; then
12505 ac_ct_DSYMUTIL=$DSYMUTIL
12506 # Extract the first word of "dsymutil", so it can be a program name with args.
12507set dummy dsymutil; ac_word=$2
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012510if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012511 $as_echo_n "(cached) " >&6
12512else
12513 if test -n "$ac_ct_DSYMUTIL"; then
12514 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12515else
12516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517for as_dir in $PATH
12518do
12519 IFS=$as_save_IFS
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012523 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 break 2
12526 fi
12527done
12528 done
12529IFS=$as_save_IFS
12530
12531fi
12532fi
12533ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12534if test -n "$ac_ct_DSYMUTIL"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12536$as_echo "$ac_ct_DSYMUTIL" >&6; }
12537else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539$as_echo "no" >&6; }
12540fi
12541
12542 if test "x$ac_ct_DSYMUTIL" = x; then
12543 DSYMUTIL=":"
12544 else
12545 case $cross_compiling:$ac_tool_warned in
12546yes:)
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12549ac_tool_warned=yes ;;
12550esac
12551 DSYMUTIL=$ac_ct_DSYMUTIL
12552 fi
12553else
12554 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12555fi
12556
12557 if test -n "$ac_tool_prefix"; then
12558 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12559set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012562if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012563 $as_echo_n "(cached) " >&6
12564else
12565 if test -n "$NMEDIT"; then
12566 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12567else
12568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569for as_dir in $PATH
12570do
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012575 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12578 fi
12579done
12580 done
12581IFS=$as_save_IFS
12582
12583fi
12584fi
12585NMEDIT=$ac_cv_prog_NMEDIT
12586if test -n "$NMEDIT"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12588$as_echo "$NMEDIT" >&6; }
12589else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591$as_echo "no" >&6; }
12592fi
12593
12594
12595fi
12596if test -z "$ac_cv_prog_NMEDIT"; then
12597 ac_ct_NMEDIT=$NMEDIT
12598 # Extract the first word of "nmedit", so it can be a program name with args.
12599set dummy nmedit; ac_word=$2
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012602if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012603 $as_echo_n "(cached) " >&6
12604else
12605 if test -n "$ac_ct_NMEDIT"; then
12606 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12607else
12608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609for as_dir in $PATH
12610do
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012615 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617 break 2
12618 fi
12619done
12620 done
12621IFS=$as_save_IFS
12622
12623fi
12624fi
12625ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12626if test -n "$ac_ct_NMEDIT"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12628$as_echo "$ac_ct_NMEDIT" >&6; }
12629else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
12632fi
12633
12634 if test "x$ac_ct_NMEDIT" = x; then
12635 NMEDIT=":"
12636 else
12637 case $cross_compiling:$ac_tool_warned in
12638yes:)
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12641ac_tool_warned=yes ;;
12642esac
12643 NMEDIT=$ac_ct_NMEDIT
12644 fi
12645else
12646 NMEDIT="$ac_cv_prog_NMEDIT"
12647fi
12648
12649 if test -n "$ac_tool_prefix"; then
12650 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12651set dummy ${ac_tool_prefix}lipo; ac_word=$2
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012654if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012655 $as_echo_n "(cached) " >&6
12656else
12657 if test -n "$LIPO"; then
12658 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12659else
12660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661for as_dir in $PATH
12662do
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012667 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12670 fi
12671done
12672 done
12673IFS=$as_save_IFS
12674
12675fi
12676fi
12677LIPO=$ac_cv_prog_LIPO
12678if test -n "$LIPO"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12680$as_echo "$LIPO" >&6; }
12681else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683$as_echo "no" >&6; }
12684fi
12685
12686
12687fi
12688if test -z "$ac_cv_prog_LIPO"; then
12689 ac_ct_LIPO=$LIPO
12690 # Extract the first word of "lipo", so it can be a program name with args.
12691set dummy lipo; ac_word=$2
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012694if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012695 $as_echo_n "(cached) " >&6
12696else
12697 if test -n "$ac_ct_LIPO"; then
12698 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12699else
12700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701for as_dir in $PATH
12702do
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012707 ac_cv_prog_ac_ct_LIPO="lipo"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12710 fi
12711done
12712 done
12713IFS=$as_save_IFS
12714
12715fi
12716fi
12717ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12718if test -n "$ac_ct_LIPO"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12720$as_echo "$ac_ct_LIPO" >&6; }
12721else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723$as_echo "no" >&6; }
12724fi
12725
12726 if test "x$ac_ct_LIPO" = x; then
12727 LIPO=":"
12728 else
12729 case $cross_compiling:$ac_tool_warned in
12730yes:)
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12733ac_tool_warned=yes ;;
12734esac
12735 LIPO=$ac_ct_LIPO
12736 fi
12737else
12738 LIPO="$ac_cv_prog_LIPO"
12739fi
12740
12741 if test -n "$ac_tool_prefix"; then
12742 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12743set dummy ${ac_tool_prefix}otool; ac_word=$2
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012746if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012747 $as_echo_n "(cached) " >&6
12748else
12749 if test -n "$OTOOL"; then
12750 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12751else
12752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753for as_dir in $PATH
12754do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012759 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12762 fi
12763done
12764 done
12765IFS=$as_save_IFS
12766
12767fi
12768fi
12769OTOOL=$ac_cv_prog_OTOOL
12770if test -n "$OTOOL"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12772$as_echo "$OTOOL" >&6; }
12773else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775$as_echo "no" >&6; }
12776fi
12777
12778
12779fi
12780if test -z "$ac_cv_prog_OTOOL"; then
12781 ac_ct_OTOOL=$OTOOL
12782 # Extract the first word of "otool", so it can be a program name with args.
12783set dummy otool; ac_word=$2
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012786if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012787 $as_echo_n "(cached) " >&6
12788else
12789 if test -n "$ac_ct_OTOOL"; then
12790 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12791else
12792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $PATH
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012799 ac_cv_prog_ac_ct_OTOOL="otool"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803done
12804 done
12805IFS=$as_save_IFS
12806
12807fi
12808fi
12809ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12810if test -n "$ac_ct_OTOOL"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12812$as_echo "$ac_ct_OTOOL" >&6; }
12813else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815$as_echo "no" >&6; }
12816fi
12817
12818 if test "x$ac_ct_OTOOL" = x; then
12819 OTOOL=":"
12820 else
12821 case $cross_compiling:$ac_tool_warned in
12822yes:)
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12825ac_tool_warned=yes ;;
12826esac
12827 OTOOL=$ac_ct_OTOOL
12828 fi
12829else
12830 OTOOL="$ac_cv_prog_OTOOL"
12831fi
12832
12833 if test -n "$ac_tool_prefix"; then
12834 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12835set dummy ${ac_tool_prefix}otool64; ac_word=$2
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012838if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012839 $as_echo_n "(cached) " >&6
12840else
12841 if test -n "$OTOOL64"; then
12842 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12843else
12844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845for as_dir in $PATH
12846do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012851 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12854 fi
12855done
12856 done
12857IFS=$as_save_IFS
12858
12859fi
12860fi
12861OTOOL64=$ac_cv_prog_OTOOL64
12862if test -n "$OTOOL64"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12864$as_echo "$OTOOL64" >&6; }
12865else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
12868fi
12869
12870
12871fi
12872if test -z "$ac_cv_prog_OTOOL64"; then
12873 ac_ct_OTOOL64=$OTOOL64
12874 # Extract the first word of "otool64", so it can be a program name with args.
12875set dummy otool64; ac_word=$2
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012878if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012879 $as_echo_n "(cached) " >&6
12880else
12881 if test -n "$ac_ct_OTOOL64"; then
12882 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12883else
12884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885for as_dir in $PATH
12886do
12887 IFS=$as_save_IFS
12888 test -z "$as_dir" && as_dir=.
12889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012891 ac_cv_prog_ac_ct_OTOOL64="otool64"
12892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 break 2
12894 fi
12895done
12896 done
12897IFS=$as_save_IFS
12898
12899fi
12900fi
12901ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12902if test -n "$ac_ct_OTOOL64"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12904$as_echo "$ac_ct_OTOOL64" >&6; }
12905else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
12908fi
12909
12910 if test "x$ac_ct_OTOOL64" = x; then
12911 OTOOL64=":"
12912 else
12913 case $cross_compiling:$ac_tool_warned in
12914yes:)
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12917ac_tool_warned=yes ;;
12918esac
12919 OTOOL64=$ac_ct_OTOOL64
12920 fi
12921else
12922 OTOOL64="$ac_cv_prog_OTOOL64"
12923fi
12924
12925
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
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12952$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012953if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012954 $as_echo_n "(cached) " >&6
12955else
12956 lt_cv_apple_cc_single_mod=no
12957 if test -z "${LT_MULTI_MODULE}"; then
12958 # By default we will add the -single_module flag. You can override
12959 # by either setting the environment variable LT_MULTI_MODULE
12960 # non-empty at configure time, or by adding -multi_module to the
12961 # link flags.
12962 rm -rf libconftest.dylib*
12963 echo "int foo(void){return 1;}" > conftest.c
12964 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12965-dynamiclib -Wl,-single_module conftest.c" >&5
12966 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12967 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12968 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012969 # If there is a non-empty error log, and "single_module"
12970 # appears in it, assume the flag caused a linker warning
12971 if test -s conftest.err && $GREP single_module conftest.err; then
12972 cat conftest.err >&5
12973 # Otherwise, if the output was created with a 0 exit code from
12974 # the compiler, it worked.
12975 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012976 lt_cv_apple_cc_single_mod=yes
12977 else
12978 cat conftest.err >&5
12979 fi
12980 rm -rf libconftest.dylib*
12981 rm -f conftest.*
12982 fi
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12985$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012986
cristy73bd4a52010-10-05 11:24:23 +000012987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12988$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012989if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012990 $as_echo_n "(cached) " >&6
12991else
12992 lt_cv_ld_exported_symbols_list=no
12993 save_LDFLAGS=$LDFLAGS
12994 echo "_main" > conftest.sym
12995 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997/* end confdefs.h. */
12998
12999int
13000main ()
13001{
13002
13003 ;
13004 return 0;
13005}
13006_ACEOF
13007if ac_fn_c_try_link "$LINENO"; then :
13008 lt_cv_ld_exported_symbols_list=yes
13009else
13010 lt_cv_ld_exported_symbols_list=no
13011fi
13012rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13014 LDFLAGS="$save_LDFLAGS"
13015
13016fi
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13018$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013019
cristy0c60a692010-11-04 01:09:47 +000013020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13021$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013022if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013023 $as_echo_n "(cached) " >&6
13024else
13025 lt_cv_ld_force_load=no
13026 cat > conftest.c << _LT_EOF
13027int forced_loaded() { return 2;}
13028_LT_EOF
13029 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13030 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13031 echo "$AR cru libconftest.a conftest.o" >&5
13032 $AR cru libconftest.a conftest.o 2>&5
13033 echo "$RANLIB libconftest.a" >&5
13034 $RANLIB libconftest.a 2>&5
13035 cat > conftest.c << _LT_EOF
13036int main() { return 0;}
13037_LT_EOF
13038 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13039 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13040 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013041 if test -s conftest.err && $GREP force_load conftest.err; then
13042 cat conftest.err >&5
13043 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013044 lt_cv_ld_force_load=yes
13045 else
13046 cat conftest.err >&5
13047 fi
13048 rm -f conftest.err libconftest.a conftest conftest.c
13049 rm -rf conftest.dSYM
13050
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13053$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013054 case $host_os in
13055 rhapsody* | darwin1.[012])
13056 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13057 darwin1.*)
13058 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13059 darwin*) # darwin 5.x on
13060 # if running on 10.5 or later, the deployment target defaults
13061 # to the OS version, if on x86, and 10.4, the deployment
13062 # target defaults to 10.4. Don't you love it?
13063 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13064 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13065 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13066 10.[012]*)
13067 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13068 10.*)
13069 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13070 esac
13071 ;;
13072 esac
13073 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13074 _lt_dar_single_mod='$single_module'
13075 fi
13076 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13077 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13078 else
13079 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13080 fi
cristy0c60a692010-11-04 01:09:47 +000013081 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013082 _lt_dsymutil='~$DSYMUTIL $lib || :'
13083 else
13084 _lt_dsymutil=
13085 fi
13086 ;;
13087 esac
13088
13089for ac_header in dlfcn.h
13090do :
13091 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13092"
cristyda16f162011-02-19 23:52:17 +000013093if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013094 cat >>confdefs.h <<_ACEOF
13095#define HAVE_DLFCN_H 1
13096_ACEOF
13097
13098fi
13099
13100done
13101
13102
13103
cristy73bd4a52010-10-05 11:24:23 +000013104
cristyda16f162011-02-19 23:52:17 +000013105func_stripname_cnf ()
13106{
13107 case ${2} in
13108 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13109 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13110 esac
13111} # func_stripname_cnf
13112
13113
13114
cristy73bd4a52010-10-05 11:24:23 +000013115
13116
13117# Set options
13118enable_win32_dll=yes
13119
13120case $host in
cristy0c60a692010-11-04 01:09:47 +000013121*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013122 if test -n "$ac_tool_prefix"; then
13123 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13124set dummy ${ac_tool_prefix}as; ac_word=$2
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013127if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013128 $as_echo_n "(cached) " >&6
13129else
13130 if test -n "$AS"; then
13131 ac_cv_prog_AS="$AS" # Let the user override the test.
13132else
13133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134for as_dir in $PATH
13135do
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013140 ac_cv_prog_AS="${ac_tool_prefix}as"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13143 fi
13144done
13145 done
13146IFS=$as_save_IFS
13147
13148fi
13149fi
13150AS=$ac_cv_prog_AS
13151if test -n "$AS"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13153$as_echo "$AS" >&6; }
13154else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
13157fi
13158
13159
13160fi
13161if test -z "$ac_cv_prog_AS"; then
13162 ac_ct_AS=$AS
13163 # Extract the first word of "as", so it can be a program name with args.
13164set dummy as; ac_word=$2
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013167if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013168 $as_echo_n "(cached) " >&6
13169else
13170 if test -n "$ac_ct_AS"; then
13171 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13172else
13173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174for as_dir in $PATH
13175do
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013180 ac_cv_prog_ac_ct_AS="as"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13183 fi
13184done
13185 done
13186IFS=$as_save_IFS
13187
13188fi
13189fi
13190ac_ct_AS=$ac_cv_prog_ac_ct_AS
13191if test -n "$ac_ct_AS"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13193$as_echo "$ac_ct_AS" >&6; }
13194else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196$as_echo "no" >&6; }
13197fi
13198
13199 if test "x$ac_ct_AS" = x; then
13200 AS="false"
13201 else
13202 case $cross_compiling:$ac_tool_warned in
13203yes:)
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13206ac_tool_warned=yes ;;
13207esac
13208 AS=$ac_ct_AS
13209 fi
13210else
13211 AS="$ac_cv_prog_AS"
13212fi
13213
13214 if test -n "$ac_tool_prefix"; then
13215 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13216set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013219if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013220 $as_echo_n "(cached) " >&6
13221else
13222 if test -n "$DLLTOOL"; then
13223 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13224else
13225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226for as_dir in $PATH
13227do
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013232 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13235 fi
13236done
13237 done
13238IFS=$as_save_IFS
13239
13240fi
13241fi
13242DLLTOOL=$ac_cv_prog_DLLTOOL
13243if test -n "$DLLTOOL"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13245$as_echo "$DLLTOOL" >&6; }
13246else
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248$as_echo "no" >&6; }
13249fi
13250
13251
13252fi
13253if test -z "$ac_cv_prog_DLLTOOL"; then
13254 ac_ct_DLLTOOL=$DLLTOOL
13255 # Extract the first word of "dlltool", so it can be a program name with args.
13256set dummy dlltool; ac_word=$2
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013259if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013260 $as_echo_n "(cached) " >&6
13261else
13262 if test -n "$ac_ct_DLLTOOL"; then
13263 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13264else
13265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266for as_dir in $PATH
13267do
13268 IFS=$as_save_IFS
13269 test -z "$as_dir" && as_dir=.
13270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013272 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13274 break 2
13275 fi
13276done
13277 done
13278IFS=$as_save_IFS
13279
13280fi
13281fi
13282ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13283if test -n "$ac_ct_DLLTOOL"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13285$as_echo "$ac_ct_DLLTOOL" >&6; }
13286else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288$as_echo "no" >&6; }
13289fi
13290
13291 if test "x$ac_ct_DLLTOOL" = x; then
13292 DLLTOOL="false"
13293 else
13294 case $cross_compiling:$ac_tool_warned in
13295yes:)
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13298ac_tool_warned=yes ;;
13299esac
13300 DLLTOOL=$ac_ct_DLLTOOL
13301 fi
13302else
13303 DLLTOOL="$ac_cv_prog_DLLTOOL"
13304fi
13305
13306 if test -n "$ac_tool_prefix"; then
13307 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13308set dummy ${ac_tool_prefix}objdump; ac_word=$2
13309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013311if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013312 $as_echo_n "(cached) " >&6
13313else
13314 if test -n "$OBJDUMP"; then
13315 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13316else
13317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318for as_dir in $PATH
13319do
13320 IFS=$as_save_IFS
13321 test -z "$as_dir" && as_dir=.
13322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013324 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13326 break 2
13327 fi
13328done
13329 done
13330IFS=$as_save_IFS
13331
13332fi
13333fi
13334OBJDUMP=$ac_cv_prog_OBJDUMP
13335if test -n "$OBJDUMP"; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13337$as_echo "$OBJDUMP" >&6; }
13338else
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340$as_echo "no" >&6; }
13341fi
13342
13343
13344fi
13345if test -z "$ac_cv_prog_OBJDUMP"; then
13346 ac_ct_OBJDUMP=$OBJDUMP
13347 # Extract the first word of "objdump", so it can be a program name with args.
13348set dummy objdump; ac_word=$2
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013351if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013352 $as_echo_n "(cached) " >&6
13353else
13354 if test -n "$ac_ct_OBJDUMP"; then
13355 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13356else
13357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358for as_dir in $PATH
13359do
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013364 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13367 fi
13368done
13369 done
13370IFS=$as_save_IFS
13371
13372fi
13373fi
13374ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13375if test -n "$ac_ct_OBJDUMP"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13377$as_echo "$ac_ct_OBJDUMP" >&6; }
13378else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380$as_echo "no" >&6; }
13381fi
13382
13383 if test "x$ac_ct_OBJDUMP" = x; then
13384 OBJDUMP="false"
13385 else
13386 case $cross_compiling:$ac_tool_warned in
13387yes:)
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13390ac_tool_warned=yes ;;
13391esac
13392 OBJDUMP=$ac_ct_OBJDUMP
13393 fi
13394else
13395 OBJDUMP="$ac_cv_prog_OBJDUMP"
13396fi
13397
13398 ;;
13399esac
13400
13401test -z "$AS" && AS=as
13402
13403
13404
13405
13406
13407test -z "$DLLTOOL" && DLLTOOL=dlltool
13408
13409
13410
13411
13412
13413test -z "$OBJDUMP" && OBJDUMP=objdump
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423 # Check whether --enable-shared was given.
13424if test "${enable_shared+set}" = set; then :
13425 enableval=$enable_shared; p=${PACKAGE-default}
13426 case $enableval in
13427 yes) enable_shared=yes ;;
13428 no) enable_shared=no ;;
13429 *)
13430 enable_shared=no
13431 # Look at the argument we got. We use all the common list separators.
13432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13433 for pkg in $enableval; do
13434 IFS="$lt_save_ifs"
13435 if test "X$pkg" = "X$p"; then
13436 enable_shared=yes
13437 fi
13438 done
13439 IFS="$lt_save_ifs"
13440 ;;
13441 esac
13442else
13443 enable_shared=yes
13444fi
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454 # Check whether --enable-static was given.
13455if test "${enable_static+set}" = set; then :
13456 enableval=$enable_static; p=${PACKAGE-default}
13457 case $enableval in
13458 yes) enable_static=yes ;;
13459 no) enable_static=no ;;
13460 *)
13461 enable_static=no
13462 # Look at the argument we got. We use all the common list separators.
13463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13464 for pkg in $enableval; do
13465 IFS="$lt_save_ifs"
13466 if test "X$pkg" = "X$p"; then
13467 enable_static=yes
13468 fi
13469 done
13470 IFS="$lt_save_ifs"
13471 ;;
13472 esac
13473else
13474 enable_static=yes
13475fi
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486# Check whether --with-pic was given.
13487if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013488 withval=$with_pic; lt_p=${PACKAGE-default}
13489 case $withval in
13490 yes|no) pic_mode=$withval ;;
13491 *)
13492 pic_mode=default
13493 # Look at the argument we got. We use all the common list separators.
13494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13495 for lt_pkg in $withval; do
13496 IFS="$lt_save_ifs"
13497 if test "X$lt_pkg" = "X$lt_p"; then
13498 pic_mode=yes
13499 fi
13500 done
13501 IFS="$lt_save_ifs"
13502 ;;
13503 esac
cristy73bd4a52010-10-05 11:24:23 +000013504else
13505 pic_mode=default
13506fi
13507
13508
13509test -z "$pic_mode" && pic_mode=default
13510
13511
13512
13513
13514
13515
13516
13517 # Check whether --enable-fast-install was given.
13518if test "${enable_fast_install+set}" = set; then :
13519 enableval=$enable_fast_install; p=${PACKAGE-default}
13520 case $enableval in
13521 yes) enable_fast_install=yes ;;
13522 no) enable_fast_install=no ;;
13523 *)
13524 enable_fast_install=no
13525 # Look at the argument we got. We use all the common list separators.
13526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13527 for pkg in $enableval; do
13528 IFS="$lt_save_ifs"
13529 if test "X$pkg" = "X$p"; then
13530 enable_fast_install=yes
13531 fi
13532 done
13533 IFS="$lt_save_ifs"
13534 ;;
13535 esac
13536else
13537 enable_fast_install=yes
13538fi
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550# This can be used to rebuild libtool when needed
13551LIBTOOL_DEPS="$ltmain"
13552
13553# Always use our own libtool.
13554LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
cristy0c60a692010-11-04 01:09:47 +000013580
cristy99bd5232011-12-07 14:38:20 +000013581
13582
13583
13584
cristy73bd4a52010-10-05 11:24:23 +000013585test -z "$LN_S" && LN_S="ln -s"
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600if test -n "${ZSH_VERSION+set}" ; then
13601 setopt NO_GLOB_SUBST
13602fi
13603
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13605$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013606if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013607 $as_echo_n "(cached) " >&6
13608else
13609 rm -f .libs 2>/dev/null
13610mkdir .libs 2>/dev/null
13611if test -d .libs; then
13612 lt_cv_objdir=.libs
13613else
13614 # MS-DOS does not allow filenames that begin with a dot.
13615 lt_cv_objdir=_libs
13616fi
13617rmdir .libs 2>/dev/null
13618fi
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13620$as_echo "$lt_cv_objdir" >&6; }
13621objdir=$lt_cv_objdir
13622
13623
13624
13625
13626
13627cat >>confdefs.h <<_ACEOF
13628#define LT_OBJDIR "$lt_cv_objdir/"
13629_ACEOF
13630
13631
13632
13633
cristy73bd4a52010-10-05 11:24:23 +000013634case $host_os in
13635aix3*)
13636 # AIX sometimes has problems with the GCC collect2 program. For some
13637 # reason, if we set the COLLECT_NAMES environment variable, the problems
13638 # vanish in a puff of smoke.
13639 if test "X${COLLECT_NAMES+set}" != Xset; then
13640 COLLECT_NAMES=
13641 export COLLECT_NAMES
13642 fi
13643 ;;
13644esac
13645
cristy73bd4a52010-10-05 11:24:23 +000013646# Global variables:
13647ofile=libtool
13648can_build_shared=yes
13649
13650# All known linkers require a `.a' archive for static linking (except MSVC,
13651# which needs '.lib').
13652libext=a
13653
13654with_gnu_ld="$lt_cv_prog_gnu_ld"
13655
13656old_CC="$CC"
13657old_CFLAGS="$CFLAGS"
13658
13659# Set sane defaults for various variables
13660test -z "$CC" && CC=cc
13661test -z "$LTCC" && LTCC=$CC
13662test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13663test -z "$LD" && LD=ld
13664test -z "$ac_objext" && ac_objext=o
13665
13666for cc_temp in $compiler""; do
13667 case $cc_temp in
13668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13670 \-*) ;;
13671 *) break;;
13672 esac
13673done
cristy0c60a692010-11-04 01:09:47 +000013674cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013675
13676
13677# Only perform the check for file, if the check method requires it
13678test -z "$MAGIC_CMD" && MAGIC_CMD=file
13679case $deplibs_check_method in
13680file_magic*)
13681 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13683$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013684if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013685 $as_echo_n "(cached) " >&6
13686else
13687 case $MAGIC_CMD in
13688[\\/*] | ?:[\\/]*)
13689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13690 ;;
13691*)
13692 lt_save_MAGIC_CMD="$MAGIC_CMD"
13693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13695 for ac_dir in $ac_dummy; do
13696 IFS="$lt_save_ifs"
13697 test -z "$ac_dir" && ac_dir=.
13698 if test -f $ac_dir/${ac_tool_prefix}file; then
13699 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13700 if test -n "$file_magic_test_file"; then
13701 case $deplibs_check_method in
13702 "file_magic "*)
13703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13706 $EGREP "$file_magic_regex" > /dev/null; then
13707 :
13708 else
13709 cat <<_LT_EOF 1>&2
13710
13711*** Warning: the command libtool uses to detect shared libraries,
13712*** $file_magic_cmd, produces output that libtool cannot recognize.
13713*** The result is that libtool may fail to recognize shared libraries
13714*** as such. This will affect the creation of libtool libraries that
13715*** depend on shared libraries, but programs linked with such libtool
13716*** libraries will work regardless of this problem. Nevertheless, you
13717*** may want to report the problem to your system manager and/or to
13718*** bug-libtool@gnu.org
13719
13720_LT_EOF
13721 fi ;;
13722 esac
13723 fi
13724 break
13725 fi
13726 done
13727 IFS="$lt_save_ifs"
13728 MAGIC_CMD="$lt_save_MAGIC_CMD"
13729 ;;
13730esac
13731fi
13732
13733MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13734if test -n "$MAGIC_CMD"; then
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13736$as_echo "$MAGIC_CMD" >&6; }
13737else
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13739$as_echo "no" >&6; }
13740fi
13741
13742
13743
13744
13745
13746if test -z "$lt_cv_path_MAGIC_CMD"; then
13747 if test -n "$ac_tool_prefix"; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13749$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013750if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013751 $as_echo_n "(cached) " >&6
13752else
13753 case $MAGIC_CMD in
13754[\\/*] | ?:[\\/]*)
13755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13756 ;;
13757*)
13758 lt_save_MAGIC_CMD="$MAGIC_CMD"
13759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13761 for ac_dir in $ac_dummy; do
13762 IFS="$lt_save_ifs"
13763 test -z "$ac_dir" && ac_dir=.
13764 if test -f $ac_dir/file; then
13765 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13766 if test -n "$file_magic_test_file"; then
13767 case $deplibs_check_method in
13768 "file_magic "*)
13769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13772 $EGREP "$file_magic_regex" > /dev/null; then
13773 :
13774 else
13775 cat <<_LT_EOF 1>&2
13776
13777*** Warning: the command libtool uses to detect shared libraries,
13778*** $file_magic_cmd, produces output that libtool cannot recognize.
13779*** The result is that libtool may fail to recognize shared libraries
13780*** as such. This will affect the creation of libtool libraries that
13781*** depend on shared libraries, but programs linked with such libtool
13782*** libraries will work regardless of this problem. Nevertheless, you
13783*** may want to report the problem to your system manager and/or to
13784*** bug-libtool@gnu.org
13785
13786_LT_EOF
13787 fi ;;
13788 esac
13789 fi
13790 break
13791 fi
13792 done
13793 IFS="$lt_save_ifs"
13794 MAGIC_CMD="$lt_save_MAGIC_CMD"
13795 ;;
13796esac
13797fi
13798
13799MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13800if test -n "$MAGIC_CMD"; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13802$as_echo "$MAGIC_CMD" >&6; }
13803else
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805$as_echo "no" >&6; }
13806fi
13807
13808
13809 else
13810 MAGIC_CMD=:
13811 fi
13812fi
13813
13814 fi
13815 ;;
13816esac
13817
13818# Use C for the default configuration in the libtool script
13819
13820lt_save_CC="$CC"
13821ac_ext=c
13822ac_cpp='$CPP $CPPFLAGS'
13823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825ac_compiler_gnu=$ac_cv_c_compiler_gnu
13826
13827
13828# Source file extension for C test sources.
13829ac_ext=c
13830
13831# Object file extension for compiled C test sources.
13832objext=o
13833objext=$objext
13834
13835# Code to be used in simple compile tests
13836lt_simple_compile_test_code="int some_variable = 0;"
13837
13838# Code to be used in simple link tests
13839lt_simple_link_test_code='int main(){return(0);}'
13840
13841
13842
13843
13844
13845
13846
13847# If no C compiler was specified, use CC.
13848LTCC=${LTCC-"$CC"}
13849
13850# If no C compiler flags were specified, use CFLAGS.
13851LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13852
13853# Allow CC to be a program name with arguments.
13854compiler=$CC
13855
13856# Save the default compiler, since it gets overwritten when the other
13857# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13858compiler_DEFAULT=$CC
13859
13860# save warnings/boilerplate of simple test code
13861ac_outfile=conftest.$ac_objext
13862echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13863eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13864_lt_compiler_boilerplate=`cat conftest.err`
13865$RM conftest*
13866
13867ac_outfile=conftest.$ac_objext
13868echo "$lt_simple_link_test_code" >conftest.$ac_ext
13869eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13870_lt_linker_boilerplate=`cat conftest.err`
13871$RM -r conftest*
13872
13873
13874## CAVEAT EMPTOR:
13875## There is no encapsulation within the following macros, do not change
13876## the running order or otherwise move them around unless you know exactly
13877## what you are doing...
13878if test -n "$compiler"; then
13879
13880lt_prog_compiler_no_builtin_flag=
13881
13882if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013883 case $cc_basename in
13884 nvcc*)
13885 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13886 *)
13887 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13888 esac
cristy73bd4a52010-10-05 11:24:23 +000013889
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13891$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013892if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013893 $as_echo_n "(cached) " >&6
13894else
13895 lt_cv_prog_compiler_rtti_exceptions=no
13896 ac_outfile=conftest.$ac_objext
13897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13898 lt_compiler_flag="-fno-rtti -fno-exceptions"
13899 # Insert the option either (1) after the last *FLAGS variable, or
13900 # (2) before a word containing "conftest.", or (3) at the end.
13901 # Note that $ac_compile itself does not contain backslashes and begins
13902 # with a dollar sign (not a hyphen), so the echo should work correctly.
13903 # The option is referenced via a variable to avoid confusing sed.
13904 lt_compile=`echo "$ac_compile" | $SED \
13905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13907 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013909 (eval "$lt_compile" 2>conftest.err)
13910 ac_status=$?
13911 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013913 if (exit $ac_status) && test -s "$ac_outfile"; then
13914 # The compiler can only warn and ignore the option if not recognized
13915 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13919 lt_cv_prog_compiler_rtti_exceptions=yes
13920 fi
13921 fi
13922 $RM conftest*
13923
13924fi
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13926$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13927
13928if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13929 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13930else
13931 :
13932fi
13933
13934fi
13935
13936
13937
13938
13939
13940
13941 lt_prog_compiler_wl=
13942lt_prog_compiler_pic=
13943lt_prog_compiler_static=
13944
cristy73bd4a52010-10-05 11:24:23 +000013945
13946 if test "$GCC" = yes; then
13947 lt_prog_compiler_wl='-Wl,'
13948 lt_prog_compiler_static='-static'
13949
13950 case $host_os in
13951 aix*)
13952 # All AIX code is PIC.
13953 if test "$host_cpu" = ia64; then
13954 # AIX 5 now supports IA64 processor
13955 lt_prog_compiler_static='-Bstatic'
13956 fi
13957 ;;
13958
13959 amigaos*)
13960 case $host_cpu in
13961 powerpc)
13962 # see comment about AmigaOS4 .so support
13963 lt_prog_compiler_pic='-fPIC'
13964 ;;
13965 m68k)
13966 # FIXME: we need at least 68020 code to build shared libraries, but
13967 # adding the `-m68020' flag to GCC prevents building anything better,
13968 # like `-m68040'.
13969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13970 ;;
13971 esac
13972 ;;
13973
13974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13975 # PIC is the default for these OSes.
13976 ;;
13977
13978 mingw* | cygwin* | pw32* | os2* | cegcc*)
13979 # This hack is so that the source file can tell whether it is being
13980 # built for inclusion in a dll (and should export symbols for example).
13981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13982 # (--disable-auto-import) libraries
13983 lt_prog_compiler_pic='-DDLL_EXPORT'
13984 ;;
13985
13986 darwin* | rhapsody*)
13987 # PIC is the default on this platform
13988 # Common symbols not allowed in MH_DYLIB files
13989 lt_prog_compiler_pic='-fno-common'
13990 ;;
13991
cristy0c60a692010-11-04 01:09:47 +000013992 haiku*)
13993 # PIC is the default for Haiku.
13994 # The "-static" flag exists, but is broken.
13995 lt_prog_compiler_static=
13996 ;;
13997
cristy73bd4a52010-10-05 11:24:23 +000013998 hpux*)
13999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14001 # sets the default TLS model and affects inlining.
14002 case $host_cpu in
14003 hppa*64*)
14004 # +Z the default
14005 ;;
14006 *)
14007 lt_prog_compiler_pic='-fPIC'
14008 ;;
14009 esac
14010 ;;
14011
14012 interix[3-9]*)
14013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14014 # Instead, we relocate shared libraries at runtime.
14015 ;;
14016
14017 msdosdjgpp*)
14018 # Just because we use GCC doesn't mean we suddenly get shared libraries
14019 # on systems that don't support them.
14020 lt_prog_compiler_can_build_shared=no
14021 enable_shared=no
14022 ;;
14023
14024 *nto* | *qnx*)
14025 # QNX uses GNU C++, but need to define -shared option too, otherwise
14026 # it will coredump.
14027 lt_prog_compiler_pic='-fPIC -shared'
14028 ;;
14029
14030 sysv4*MP*)
14031 if test -d /usr/nec; then
14032 lt_prog_compiler_pic=-Kconform_pic
14033 fi
14034 ;;
14035
14036 *)
14037 lt_prog_compiler_pic='-fPIC'
14038 ;;
14039 esac
cristy0c60a692010-11-04 01:09:47 +000014040
14041 case $cc_basename in
14042 nvcc*) # Cuda Compiler Driver 2.2
14043 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014044 if test -n "$lt_prog_compiler_pic"; then
14045 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14046 fi
cristy0c60a692010-11-04 01:09:47 +000014047 ;;
14048 esac
cristy73bd4a52010-10-05 11:24:23 +000014049 else
14050 # PORTME Check for flag to pass linker flags through the system compiler.
14051 case $host_os in
14052 aix*)
14053 lt_prog_compiler_wl='-Wl,'
14054 if test "$host_cpu" = ia64; then
14055 # AIX 5 now supports IA64 processor
14056 lt_prog_compiler_static='-Bstatic'
14057 else
14058 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14059 fi
14060 ;;
14061
14062 mingw* | cygwin* | pw32* | os2* | cegcc*)
14063 # This hack is so that the source file can tell whether it is being
14064 # built for inclusion in a dll (and should export symbols for example).
14065 lt_prog_compiler_pic='-DDLL_EXPORT'
14066 ;;
14067
14068 hpux9* | hpux10* | hpux11*)
14069 lt_prog_compiler_wl='-Wl,'
14070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14071 # not for PA HP-UX.
14072 case $host_cpu in
14073 hppa*64*|ia64*)
14074 # +Z the default
14075 ;;
14076 *)
14077 lt_prog_compiler_pic='+Z'
14078 ;;
14079 esac
14080 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14081 lt_prog_compiler_static='${wl}-a ${wl}archive'
14082 ;;
14083
14084 irix5* | irix6* | nonstopux*)
14085 lt_prog_compiler_wl='-Wl,'
14086 # PIC (with -KPIC) is the default.
14087 lt_prog_compiler_static='-non_shared'
14088 ;;
14089
cristy0c60a692010-11-04 01:09:47 +000014090 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014091 case $cc_basename in
14092 # old Intel for x86_64 which still supported -KPIC.
14093 ecc*)
14094 lt_prog_compiler_wl='-Wl,'
14095 lt_prog_compiler_pic='-KPIC'
14096 lt_prog_compiler_static='-static'
14097 ;;
14098 # icc used to be incompatible with GCC.
14099 # ICC 10 doesn't accept -KPIC any more.
14100 icc* | ifort*)
14101 lt_prog_compiler_wl='-Wl,'
14102 lt_prog_compiler_pic='-fPIC'
14103 lt_prog_compiler_static='-static'
14104 ;;
14105 # Lahey Fortran 8.1.
14106 lf95*)
14107 lt_prog_compiler_wl='-Wl,'
14108 lt_prog_compiler_pic='--shared'
14109 lt_prog_compiler_static='--static'
14110 ;;
cristyda16f162011-02-19 23:52:17 +000014111 nagfor*)
14112 # NAG Fortran compiler
14113 lt_prog_compiler_wl='-Wl,-Wl,,'
14114 lt_prog_compiler_pic='-PIC'
14115 lt_prog_compiler_static='-Bstatic'
14116 ;;
cristy0c60a692010-11-04 01:09:47 +000014117 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014118 # Portland Group compilers (*not* the Pentium gcc compiler,
14119 # which looks to be a dead project)
14120 lt_prog_compiler_wl='-Wl,'
14121 lt_prog_compiler_pic='-fpic'
14122 lt_prog_compiler_static='-Bstatic'
14123 ;;
14124 ccc*)
14125 lt_prog_compiler_wl='-Wl,'
14126 # All Alpha code is PIC.
14127 lt_prog_compiler_static='-non_shared'
14128 ;;
cristy0c60a692010-11-04 01:09:47 +000014129 xl* | bgxl* | bgf* | mpixl*)
14130 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014131 lt_prog_compiler_wl='-Wl,'
14132 lt_prog_compiler_pic='-qpic'
14133 lt_prog_compiler_static='-qstaticlink'
14134 ;;
14135 *)
14136 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014137 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014138 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14139 lt_prog_compiler_pic='-KPIC'
14140 lt_prog_compiler_static='-Bstatic'
14141 lt_prog_compiler_wl=''
14142 ;;
cristy99bd5232011-12-07 14:38:20 +000014143 *Sun\ F* | *Sun*Fortran*)
14144 lt_prog_compiler_pic='-KPIC'
14145 lt_prog_compiler_static='-Bstatic'
14146 lt_prog_compiler_wl='-Qoption ld '
14147 ;;
cristy73bd4a52010-10-05 11:24:23 +000014148 *Sun\ C*)
14149 # Sun C 5.9
14150 lt_prog_compiler_pic='-KPIC'
14151 lt_prog_compiler_static='-Bstatic'
14152 lt_prog_compiler_wl='-Wl,'
14153 ;;
cristy99bd5232011-12-07 14:38:20 +000014154 *Intel*\ [CF]*Compiler*)
14155 lt_prog_compiler_wl='-Wl,'
14156 lt_prog_compiler_pic='-fPIC'
14157 lt_prog_compiler_static='-static'
14158 ;;
14159 *Portland\ Group*)
14160 lt_prog_compiler_wl='-Wl,'
14161 lt_prog_compiler_pic='-fpic'
14162 lt_prog_compiler_static='-Bstatic'
14163 ;;
cristy73bd4a52010-10-05 11:24:23 +000014164 esac
14165 ;;
14166 esac
14167 ;;
14168
14169 newsos6)
14170 lt_prog_compiler_pic='-KPIC'
14171 lt_prog_compiler_static='-Bstatic'
14172 ;;
14173
14174 *nto* | *qnx*)
14175 # QNX uses GNU C++, but need to define -shared option too, otherwise
14176 # it will coredump.
14177 lt_prog_compiler_pic='-fPIC -shared'
14178 ;;
14179
14180 osf3* | osf4* | osf5*)
14181 lt_prog_compiler_wl='-Wl,'
14182 # All OSF/1 code is PIC.
14183 lt_prog_compiler_static='-non_shared'
14184 ;;
14185
14186 rdos*)
14187 lt_prog_compiler_static='-non_shared'
14188 ;;
14189
14190 solaris*)
14191 lt_prog_compiler_pic='-KPIC'
14192 lt_prog_compiler_static='-Bstatic'
14193 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014194 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014195 lt_prog_compiler_wl='-Qoption ld ';;
14196 *)
14197 lt_prog_compiler_wl='-Wl,';;
14198 esac
14199 ;;
14200
14201 sunos4*)
14202 lt_prog_compiler_wl='-Qoption ld '
14203 lt_prog_compiler_pic='-PIC'
14204 lt_prog_compiler_static='-Bstatic'
14205 ;;
14206
14207 sysv4 | sysv4.2uw2* | sysv4.3*)
14208 lt_prog_compiler_wl='-Wl,'
14209 lt_prog_compiler_pic='-KPIC'
14210 lt_prog_compiler_static='-Bstatic'
14211 ;;
14212
14213 sysv4*MP*)
14214 if test -d /usr/nec ;then
14215 lt_prog_compiler_pic='-Kconform_pic'
14216 lt_prog_compiler_static='-Bstatic'
14217 fi
14218 ;;
14219
14220 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14221 lt_prog_compiler_wl='-Wl,'
14222 lt_prog_compiler_pic='-KPIC'
14223 lt_prog_compiler_static='-Bstatic'
14224 ;;
14225
14226 unicos*)
14227 lt_prog_compiler_wl='-Wl,'
14228 lt_prog_compiler_can_build_shared=no
14229 ;;
14230
14231 uts4*)
14232 lt_prog_compiler_pic='-pic'
14233 lt_prog_compiler_static='-Bstatic'
14234 ;;
14235
14236 *)
14237 lt_prog_compiler_can_build_shared=no
14238 ;;
14239 esac
14240 fi
14241
14242case $host_os in
14243 # For platforms which do not support PIC, -DPIC is meaningless:
14244 *djgpp*)
14245 lt_prog_compiler_pic=
14246 ;;
14247 *)
14248 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14249 ;;
14250esac
cristy73bd4a52010-10-05 11:24:23 +000014251
cristyda16f162011-02-19 23:52:17 +000014252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14253$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14254if ${lt_cv_prog_compiler_pic+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256else
14257 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14258fi
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14260$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14261lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014262
14263#
14264# Check to make sure the PIC flag actually works.
14265#
14266if test -n "$lt_prog_compiler_pic"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14268$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014269if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014270 $as_echo_n "(cached) " >&6
14271else
14272 lt_cv_prog_compiler_pic_works=no
14273 ac_outfile=conftest.$ac_objext
14274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14275 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14276 # Insert the option either (1) after the last *FLAGS variable, or
14277 # (2) before a word containing "conftest.", or (3) at the end.
14278 # Note that $ac_compile itself does not contain backslashes and begins
14279 # with a dollar sign (not a hyphen), so the echo should work correctly.
14280 # The option is referenced via a variable to avoid confusing sed.
14281 lt_compile=`echo "$ac_compile" | $SED \
14282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14284 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014286 (eval "$lt_compile" 2>conftest.err)
14287 ac_status=$?
14288 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014290 if (exit $ac_status) && test -s "$ac_outfile"; then
14291 # The compiler can only warn and ignore the option if not recognized
14292 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14296 lt_cv_prog_compiler_pic_works=yes
14297 fi
14298 fi
14299 $RM conftest*
14300
14301fi
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14303$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14304
14305if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14306 case $lt_prog_compiler_pic in
14307 "" | " "*) ;;
14308 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14309 esac
14310else
14311 lt_prog_compiler_pic=
14312 lt_prog_compiler_can_build_shared=no
14313fi
14314
14315fi
14316
14317
14318
14319
14320
14321
cristyda16f162011-02-19 23:52:17 +000014322
14323
14324
14325
14326
cristy73bd4a52010-10-05 11:24:23 +000014327#
14328# Check to make sure the static flag actually works.
14329#
14330wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14332$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014333if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014334 $as_echo_n "(cached) " >&6
14335else
14336 lt_cv_prog_compiler_static_works=no
14337 save_LDFLAGS="$LDFLAGS"
14338 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14339 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14341 # The linker can only warn and ignore the option if not recognized
14342 # So say no if there are warnings
14343 if test -s conftest.err; then
14344 # Append any errors to the config.log.
14345 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014346 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14348 if diff conftest.exp conftest.er2 >/dev/null; then
14349 lt_cv_prog_compiler_static_works=yes
14350 fi
14351 else
14352 lt_cv_prog_compiler_static_works=yes
14353 fi
14354 fi
14355 $RM -r conftest*
14356 LDFLAGS="$save_LDFLAGS"
14357
14358fi
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14360$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14361
14362if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14363 :
14364else
14365 lt_prog_compiler_static=
14366fi
14367
14368
14369
14370
14371
14372
14373
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14375$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014376if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014377 $as_echo_n "(cached) " >&6
14378else
14379 lt_cv_prog_compiler_c_o=no
14380 $RM -r conftest 2>/dev/null
14381 mkdir conftest
14382 cd conftest
14383 mkdir out
14384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14385
14386 lt_compiler_flag="-o out/conftest2.$ac_objext"
14387 # Insert the option either (1) after the last *FLAGS variable, or
14388 # (2) before a word containing "conftest.", or (3) at the end.
14389 # Note that $ac_compile itself does not contain backslashes and begins
14390 # with a dollar sign (not a hyphen), so the echo should work correctly.
14391 lt_compile=`echo "$ac_compile" | $SED \
14392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14394 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014396 (eval "$lt_compile" 2>out/conftest.err)
14397 ac_status=$?
14398 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14401 then
14402 # The compiler can only warn and ignore the option if not recognized
14403 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14407 lt_cv_prog_compiler_c_o=yes
14408 fi
14409 fi
14410 chmod u+w . 2>&5
14411 $RM conftest*
14412 # SGI C++ compiler will create directory out/ii_files/ for
14413 # template instantiation
14414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14415 $RM out/* && rmdir out
14416 cd ..
14417 $RM -r conftest
14418 $RM conftest*
14419
14420fi
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14422$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14423
14424
14425
14426
14427
14428
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14430$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014431if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014432 $as_echo_n "(cached) " >&6
14433else
14434 lt_cv_prog_compiler_c_o=no
14435 $RM -r conftest 2>/dev/null
14436 mkdir conftest
14437 cd conftest
14438 mkdir out
14439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14440
14441 lt_compiler_flag="-o out/conftest2.$ac_objext"
14442 # Insert the option either (1) after the last *FLAGS variable, or
14443 # (2) before a word containing "conftest.", or (3) at the end.
14444 # Note that $ac_compile itself does not contain backslashes and begins
14445 # with a dollar sign (not a hyphen), so the echo should work correctly.
14446 lt_compile=`echo "$ac_compile" | $SED \
14447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14449 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014451 (eval "$lt_compile" 2>out/conftest.err)
14452 ac_status=$?
14453 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14456 then
14457 # The compiler can only warn and ignore the option if not recognized
14458 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14462 lt_cv_prog_compiler_c_o=yes
14463 fi
14464 fi
14465 chmod u+w . 2>&5
14466 $RM conftest*
14467 # SGI C++ compiler will create directory out/ii_files/ for
14468 # template instantiation
14469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14470 $RM out/* && rmdir out
14471 cd ..
14472 $RM -r conftest
14473 $RM conftest*
14474
14475fi
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14477$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14478
14479
14480
14481
14482hard_links="nottested"
14483if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14484 # do not overwrite the value of need_locks provided by the user
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14486$as_echo_n "checking if we can lock with hard links... " >&6; }
14487 hard_links=yes
14488 $RM conftest*
14489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14490 touch conftest.a
14491 ln conftest.a conftest.b 2>&5 || hard_links=no
14492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14494$as_echo "$hard_links" >&6; }
14495 if test "$hard_links" = no; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14497$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14498 need_locks=warn
14499 fi
14500else
14501 need_locks=no
14502fi
14503
14504
14505
14506
14507
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14510$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14511
14512 runpath_var=
14513 allow_undefined_flag=
14514 always_export_symbols=no
14515 archive_cmds=
14516 archive_expsym_cmds=
14517 compiler_needs_object=no
14518 enable_shared_with_static_runtimes=no
14519 export_dynamic_flag_spec=
14520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14521 hardcode_automatic=no
14522 hardcode_direct=no
14523 hardcode_direct_absolute=no
14524 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014525 hardcode_libdir_separator=
14526 hardcode_minus_L=no
14527 hardcode_shlibpath_var=unsupported
14528 inherit_rpath=no
14529 link_all_deplibs=unknown
14530 module_cmds=
14531 module_expsym_cmds=
14532 old_archive_from_new_cmds=
14533 old_archive_from_expsyms_cmds=
14534 thread_safe_flag_spec=
14535 whole_archive_flag_spec=
14536 # include_expsyms should be a list of space-separated symbols to be *always*
14537 # included in the symbol list
14538 include_expsyms=
14539 # exclude_expsyms can be an extended regexp of symbols to exclude
14540 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14541 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14542 # as well as any symbol that contains `d'.
14543 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14544 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14545 # platforms (ab)use it in PIC code, but their linkers get confused if
14546 # the symbol is explicitly referenced. Since portable code cannot
14547 # rely on this symbol name, it's probably fine to never include it in
14548 # preloaded symbol tables.
14549 # Exclude shared library initialization/finalization symbols.
14550 extract_expsyms_cmds=
14551
14552 case $host_os in
14553 cygwin* | mingw* | pw32* | cegcc*)
14554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14555 # When not using gcc, we currently assume that we are using
14556 # Microsoft Visual C++.
14557 if test "$GCC" != yes; then
14558 with_gnu_ld=no
14559 fi
14560 ;;
14561 interix*)
14562 # we just hope/assume this is gcc and not c89 (= MSVC++)
14563 with_gnu_ld=yes
14564 ;;
14565 openbsd*)
14566 with_gnu_ld=no
14567 ;;
14568 esac
14569
14570 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014571
14572 # On some targets, GNU ld is compatible enough with the native linker
14573 # that we're better off using the native interface for both.
14574 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014575 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014576 case $host_os in
14577 aix*)
14578 # The AIX port of GNU ld has always aspired to compatibility
14579 # with the native linker. However, as the warning in the GNU ld
14580 # block says, versions before 2.19.5* couldn't really create working
14581 # shared libraries, regardless of the interface used.
14582 case `$LD -v 2>&1` in
14583 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14584 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14585 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14586 *)
14587 lt_use_gnu_ld_interface=yes
14588 ;;
14589 esac
14590 ;;
14591 *)
14592 lt_use_gnu_ld_interface=yes
14593 ;;
14594 esac
14595 fi
14596
14597 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014598 # If archive_cmds runs LD, not CC, wlarc should be empty
14599 wlarc='${wl}'
14600
14601 # Set some defaults for GNU ld with shared library support. These
14602 # are reset later if shared libraries are not supported. Putting them
14603 # here allows them to be overridden if necessary.
14604 runpath_var=LD_RUN_PATH
14605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14606 export_dynamic_flag_spec='${wl}--export-dynamic'
14607 # ancient GNU ld didn't support --whole-archive et. al.
14608 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14609 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14610 else
14611 whole_archive_flag_spec=
14612 fi
14613 supports_anon_versioning=no
14614 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014615 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014616 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14617 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14618 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14619 *\ 2.11.*) ;; # other 2.11 versions
14620 *) supports_anon_versioning=yes ;;
14621 esac
14622
14623 # See if GNU ld supports shared libraries.
14624 case $host_os in
14625 aix[3-9]*)
14626 # On AIX/PPC, the GNU linker is very broken
14627 if test "$host_cpu" != ia64; then
14628 ld_shlibs=no
14629 cat <<_LT_EOF 1>&2
14630
cristy0c60a692010-11-04 01:09:47 +000014631*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014632*** to be unable to reliably create shared libraries on AIX.
14633*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014634*** really care for shared libraries, you may want to install binutils
14635*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14636*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014637
14638_LT_EOF
14639 fi
14640 ;;
14641
14642 amigaos*)
14643 case $host_cpu in
14644 powerpc)
14645 # see comment about AmigaOS4 .so support
14646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14647 archive_expsym_cmds=''
14648 ;;
14649 m68k)
14650 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)'
14651 hardcode_libdir_flag_spec='-L$libdir'
14652 hardcode_minus_L=yes
14653 ;;
14654 esac
14655 ;;
14656
14657 beos*)
14658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14659 allow_undefined_flag=unsupported
14660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14661 # support --undefined. This deserves some investigation. FIXME
14662 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14663 else
14664 ld_shlibs=no
14665 fi
14666 ;;
14667
14668 cygwin* | mingw* | pw32* | cegcc*)
14669 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14670 # as there is no search path for DLLs.
14671 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014672 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014673 allow_undefined_flag=unsupported
14674 always_export_symbols=no
14675 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014676 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'
14677 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 +000014678
14679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14681 # If the export-symbols file already is a .def file (1st line
14682 # is EXPORTS), use it as is; otherwise, prepend...
14683 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14684 cp $export_symbols $output_objdir/$soname.def;
14685 else
14686 echo EXPORTS > $output_objdir/$soname.def;
14687 cat $export_symbols >> $output_objdir/$soname.def;
14688 fi~
14689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14690 else
14691 ld_shlibs=no
14692 fi
14693 ;;
14694
cristy0c60a692010-11-04 01:09:47 +000014695 haiku*)
14696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14697 link_all_deplibs=yes
14698 ;;
14699
cristy73bd4a52010-10-05 11:24:23 +000014700 interix[3-9]*)
14701 hardcode_direct=no
14702 hardcode_shlibpath_var=no
14703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14704 export_dynamic_flag_spec='${wl}-E'
14705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14706 # Instead, shared libraries are loaded at an image base (0x10000000 by
14707 # default) and relocated if they conflict, which is a slow very memory
14708 # consuming and fragmenting process. To avoid this, we pick a random,
14709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14712 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'
14713 ;;
14714
cristy0c60a692010-11-04 01:09:47 +000014715 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014716 tmp_diet=no
14717 if test "$host_os" = linux-dietlibc; then
14718 case $cc_basename in
14719 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14720 esac
14721 fi
14722 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14723 && test "$tmp_diet" = no
14724 then
cristyda16f162011-02-19 23:52:17 +000014725 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014726 tmp_sharedflag='-shared'
14727 case $cc_basename,$host_cpu in
14728 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014729 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 +000014730 tmp_addflag=' $pic_flag'
14731 ;;
cristy0c60a692010-11-04 01:09:47 +000014732 pgf77* | pgf90* | pgf95* | pgfortran*)
14733 # Portland Group f77 and f90 compilers
14734 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 +000014735 tmp_addflag=' $pic_flag -Mnomain' ;;
14736 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14737 tmp_addflag=' -i_dynamic' ;;
14738 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14739 tmp_addflag=' -i_dynamic -nofor_main' ;;
14740 ifc* | ifort*) # Intel Fortran compiler
14741 tmp_addflag=' -nofor_main' ;;
14742 lf95*) # Lahey Fortran 8.1
14743 whole_archive_flag_spec=
14744 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014745 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014746 tmp_sharedflag='-qmkshrobj'
14747 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014748 nvcc*) # Cuda Compiler Driver 2.2
14749 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'
14750 compiler_needs_object=yes
14751 ;;
cristy73bd4a52010-10-05 11:24:23 +000014752 esac
14753 case `$CC -V 2>&1 | sed 5q` in
14754 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014755 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 +000014756 compiler_needs_object=yes
14757 tmp_sharedflag='-G' ;;
14758 *Sun\ F*) # Sun Fortran 8.3
14759 tmp_sharedflag='-G' ;;
14760 esac
14761 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14762
14763 if test "x$supports_anon_versioning" = xyes; then
14764 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14766 echo "local: *; };" >> $output_objdir/$libname.ver~
14767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14768 fi
14769
14770 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014771 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14773 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014775 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014776 if test "x$supports_anon_versioning" = xyes; then
14777 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14779 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014780 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014781 fi
14782 ;;
14783 esac
14784 else
14785 ld_shlibs=no
14786 fi
14787 ;;
14788
14789 netbsd*)
14790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14791 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14792 wlarc=
14793 else
cristyda16f162011-02-19 23:52:17 +000014794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795 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 +000014796 fi
14797 ;;
14798
14799 solaris*)
14800 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14801 ld_shlibs=no
14802 cat <<_LT_EOF 1>&2
14803
14804*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14805*** create shared libraries on Solaris systems. Therefore, libtool
14806*** is disabling shared libraries support. We urge you to upgrade GNU
14807*** binutils to release 2.9.1 or newer. Another option is to modify
14808*** your PATH or compiler configuration so that the native linker is
14809*** used, and then restart.
14810
14811_LT_EOF
14812 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14814 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 +000014815 else
14816 ld_shlibs=no
14817 fi
14818 ;;
14819
14820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14821 case `$LD -v 2>&1` in
14822 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14823 ld_shlibs=no
14824 cat <<_LT_EOF 1>&2
14825
14826*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14827*** reliably create shared libraries on SCO systems. Therefore, libtool
14828*** is disabling shared libraries support. We urge you to upgrade GNU
14829*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14830*** your PATH or compiler configuration so that the native linker is
14831*** used, and then restart.
14832
14833_LT_EOF
14834 ;;
14835 *)
14836 # For security reasons, it is highly recommended that you always
14837 # use absolute paths for naming shared libraries, and exclude the
14838 # DT_RUNPATH tag from executables and libraries. But doing so
14839 # requires that you compile everything twice, which is a pain.
14840 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14844 else
14845 ld_shlibs=no
14846 fi
14847 ;;
14848 esac
14849 ;;
14850
14851 sunos4*)
14852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14853 wlarc=
14854 hardcode_direct=yes
14855 hardcode_shlibpath_var=no
14856 ;;
14857
14858 *)
14859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14861 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 +000014862 else
14863 ld_shlibs=no
14864 fi
14865 ;;
14866 esac
14867
14868 if test "$ld_shlibs" = no; then
14869 runpath_var=
14870 hardcode_libdir_flag_spec=
14871 export_dynamic_flag_spec=
14872 whole_archive_flag_spec=
14873 fi
14874 else
14875 # PORTME fill in a description of your system's linker (not GNU ld)
14876 case $host_os in
14877 aix3*)
14878 allow_undefined_flag=unsupported
14879 always_export_symbols=yes
14880 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'
14881 # Note: this linker hardcodes the directories in LIBPATH if there
14882 # are no directories specified by -L.
14883 hardcode_minus_L=yes
14884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14885 # Neither direct hardcoding nor static linking is supported with a
14886 # broken collect2.
14887 hardcode_direct=unsupported
14888 fi
14889 ;;
14890
14891 aix[4-9]*)
14892 if test "$host_cpu" = ia64; then
14893 # On IA64, the linker does run time linking by default, so we don't
14894 # have to do anything special.
14895 aix_use_runtimelinking=no
14896 exp_sym_flag='-Bexport'
14897 no_entry_flag=""
14898 else
14899 # If we're using GNU nm, then we don't want the "-C" option.
14900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014901 # Also, AIX nm treats weak defined symbols like other global
14902 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014903 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014904 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 +000014905 else
14906 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'
14907 fi
14908 aix_use_runtimelinking=no
14909
14910 # Test if we are trying to use run time linking or normal
14911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14912 # need to do runtime linking.
14913 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14914 for ld_flag in $LDFLAGS; do
14915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14916 aix_use_runtimelinking=yes
14917 break
14918 fi
14919 done
14920 ;;
14921 esac
14922
14923 exp_sym_flag='-bexport'
14924 no_entry_flag='-bnoentry'
14925 fi
14926
14927 # When large executables or shared objects are built, AIX ld can
14928 # have problems creating the table of contents. If linking a library
14929 # or program results in "error TOC overflow" add -mminimal-toc to
14930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14932
14933 archive_cmds=''
14934 hardcode_direct=yes
14935 hardcode_direct_absolute=yes
14936 hardcode_libdir_separator=':'
14937 link_all_deplibs=yes
14938 file_list_spec='${wl}-f,'
14939
14940 if test "$GCC" = yes; then
14941 case $host_os in aix4.[012]|aix4.[012].*)
14942 # We only want to do this on AIX 4.2 and lower, the check
14943 # below for broken collect2 doesn't work under 4.3+
14944 collect2name=`${CC} -print-prog-name=collect2`
14945 if test -f "$collect2name" &&
14946 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14947 then
14948 # We have reworked collect2
14949 :
14950 else
14951 # We have old collect2
14952 hardcode_direct=unsupported
14953 # It fails to find uninstalled libraries when the uninstalled
14954 # path is not listed in the libpath. Setting hardcode_minus_L
14955 # to unsupported forces relinking
14956 hardcode_minus_L=yes
14957 hardcode_libdir_flag_spec='-L$libdir'
14958 hardcode_libdir_separator=
14959 fi
14960 ;;
14961 esac
14962 shared_flag='-shared'
14963 if test "$aix_use_runtimelinking" = yes; then
14964 shared_flag="$shared_flag "'${wl}-G'
14965 fi
14966 else
14967 # not using gcc
14968 if test "$host_cpu" = ia64; then
14969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14970 # chokes on -Wl,-G. The following line is correct:
14971 shared_flag='-G'
14972 else
14973 if test "$aix_use_runtimelinking" = yes; then
14974 shared_flag='${wl}-G'
14975 else
14976 shared_flag='${wl}-bM:SRE'
14977 fi
14978 fi
14979 fi
14980
14981 export_dynamic_flag_spec='${wl}-bexpall'
14982 # It seems that -bexpall does not export symbols beginning with
14983 # underscore (_), so it is better to generate a list of symbols to export.
14984 always_export_symbols=yes
14985 if test "$aix_use_runtimelinking" = yes; then
14986 # Warning - without using the other runtime loading flags (-brtl),
14987 # -berok will link without error, but may produce a broken library.
14988 allow_undefined_flag='-berok'
14989 # Determine the default libpath from the value encoded in an
14990 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014991 if test "${lt_cv_aix_libpath+set}" = set; then
14992 aix_libpath=$lt_cv_aix_libpath
14993else
14994 if ${lt_cv_aix_libpath_+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014998/* end confdefs.h. */
14999
15000int
15001main ()
15002{
15003
15004 ;
15005 return 0;
15006}
15007_ACEOF
15008if ac_fn_c_try_link "$LINENO"; then :
15009
cristyda16f162011-02-19 23:52:17 +000015010 lt_aix_libpath_sed='
15011 /Import File Strings/,/^$/ {
15012 /^0/ {
15013 s/^0 *\([^ ]*\) *$/\1/
15014 p
15015 }
15016 }'
15017 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15018 # Check for a 64-bit object if we didn't find anything.
15019 if test -z "$lt_cv_aix_libpath_"; then
15020 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15021 fi
cristy73bd4a52010-10-05 11:24:23 +000015022fi
15023rm -f core conftest.err conftest.$ac_objext \
15024 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015025 if test -z "$lt_cv_aix_libpath_"; then
15026 lt_cv_aix_libpath_="/usr/lib:/lib"
15027 fi
15028
15029fi
15030
15031 aix_libpath=$lt_cv_aix_libpath_
15032fi
cristy73bd4a52010-10-05 11:24:23 +000015033
15034 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015035 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 +000015036 else
15037 if test "$host_cpu" = ia64; then
15038 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15039 allow_undefined_flag="-z nodefs"
15040 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"
15041 else
15042 # Determine the default libpath from the value encoded in an
15043 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015044 if test "${lt_cv_aix_libpath+set}" = set; then
15045 aix_libpath=$lt_cv_aix_libpath
15046else
15047 if ${lt_cv_aix_libpath_+:} false; then :
15048 $as_echo_n "(cached) " >&6
15049else
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015051/* end confdefs.h. */
15052
15053int
15054main ()
15055{
15056
15057 ;
15058 return 0;
15059}
15060_ACEOF
15061if ac_fn_c_try_link "$LINENO"; then :
15062
cristyda16f162011-02-19 23:52:17 +000015063 lt_aix_libpath_sed='
15064 /Import File Strings/,/^$/ {
15065 /^0/ {
15066 s/^0 *\([^ ]*\) *$/\1/
15067 p
15068 }
15069 }'
15070 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15071 # Check for a 64-bit object if we didn't find anything.
15072 if test -z "$lt_cv_aix_libpath_"; then
15073 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15074 fi
cristy73bd4a52010-10-05 11:24:23 +000015075fi
15076rm -f core conftest.err conftest.$ac_objext \
15077 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015078 if test -z "$lt_cv_aix_libpath_"; then
15079 lt_cv_aix_libpath_="/usr/lib:/lib"
15080 fi
15081
15082fi
15083
15084 aix_libpath=$lt_cv_aix_libpath_
15085fi
cristy73bd4a52010-10-05 11:24:23 +000015086
15087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15088 # Warning - without using the other run time loading flags,
15089 # -berok will link without error, but may produce a broken library.
15090 no_undefined_flag=' ${wl}-bernotok'
15091 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015092 if test "$with_gnu_ld" = yes; then
15093 # We only use this code for GNU lds that support --whole-archive.
15094 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15095 else
15096 # Exported symbols can be pulled into shared objects from archives
15097 whole_archive_flag_spec='$convenience'
15098 fi
cristy73bd4a52010-10-05 11:24:23 +000015099 archive_cmds_need_lc=yes
15100 # This is similar to how AIX traditionally builds its shared libraries.
15101 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'
15102 fi
15103 fi
15104 ;;
15105
15106 amigaos*)
15107 case $host_cpu in
15108 powerpc)
15109 # see comment about AmigaOS4 .so support
15110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 archive_expsym_cmds=''
15112 ;;
15113 m68k)
15114 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)'
15115 hardcode_libdir_flag_spec='-L$libdir'
15116 hardcode_minus_L=yes
15117 ;;
15118 esac
15119 ;;
15120
15121 bsdi[45]*)
15122 export_dynamic_flag_spec=-rdynamic
15123 ;;
15124
15125 cygwin* | mingw* | pw32* | cegcc*)
15126 # When not using gcc, we currently assume that we are using
15127 # Microsoft Visual C++.
15128 # hardcode_libdir_flag_spec is actually meaningless, as there is
15129 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015130 case $cc_basename in
15131 cl*)
15132 # Native MSVC
15133 hardcode_libdir_flag_spec=' '
15134 allow_undefined_flag=unsupported
15135 always_export_symbols=yes
15136 file_list_spec='@'
15137 # Tell ltmain to make .lib files, not .a files.
15138 libext=lib
15139 # Tell ltmain to make .dll files, not .so files.
15140 shrext_cmds=".dll"
15141 # FIXME: Setting linknames here is a bad hack.
15142 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15143 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15144 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15145 else
15146 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15147 fi~
15148 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15149 linknames='
15150 # The linker will not automatically build a static lib if we build a DLL.
15151 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15152 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015153 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15155 # Don't use ranlib
15156 old_postinstall_cmds='chmod 644 $oldlib'
15157 postlink_cmds='lt_outputfile="@OUTPUT@"~
15158 lt_tool_outputfile="@TOOL_OUTPUT@"~
15159 case $lt_outputfile in
15160 *.exe|*.EXE) ;;
15161 *)
15162 lt_outputfile="$lt_outputfile.exe"
15163 lt_tool_outputfile="$lt_tool_outputfile.exe"
15164 ;;
15165 esac~
15166 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15167 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15168 $RM "$lt_outputfile.manifest";
15169 fi'
15170 ;;
15171 *)
15172 # Assume MSVC wrapper
15173 hardcode_libdir_flag_spec=' '
15174 allow_undefined_flag=unsupported
15175 # Tell ltmain to make .lib files, not .a files.
15176 libext=lib
15177 # Tell ltmain to make .dll files, not .so files.
15178 shrext_cmds=".dll"
15179 # FIXME: Setting linknames here is a bad hack.
15180 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15181 # The linker will automatically build a .lib file if we build a DLL.
15182 old_archive_from_new_cmds='true'
15183 # FIXME: Should let the user specify the lib program.
15184 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15185 enable_shared_with_static_runtimes=yes
15186 ;;
15187 esac
cristy73bd4a52010-10-05 11:24:23 +000015188 ;;
15189
15190 darwin* | rhapsody*)
15191
15192
15193 archive_cmds_need_lc=no
15194 hardcode_direct=no
15195 hardcode_automatic=yes
15196 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015197 if test "$lt_cv_ld_force_load" = "yes"; then
15198 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000015199
cristy0c60a692010-11-04 01:09:47 +000015200 else
15201 whole_archive_flag_spec=''
15202 fi
cristy73bd4a52010-10-05 11:24:23 +000015203 link_all_deplibs=yes
15204 allow_undefined_flag="$_lt_dar_allow_undefined"
15205 case $cc_basename in
15206 ifort*) _lt_dar_can_shared=yes ;;
15207 *) _lt_dar_can_shared=$GCC ;;
15208 esac
15209 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015210 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015211 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15212 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15213 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}"
15214 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}"
15215
15216 else
15217 ld_shlibs=no
15218 fi
15219
15220 ;;
15221
15222 dgux*)
15223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15224 hardcode_libdir_flag_spec='-L$libdir'
15225 hardcode_shlibpath_var=no
15226 ;;
15227
cristy73bd4a52010-10-05 11:24:23 +000015228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15229 # support. Future versions do this automatically, but an explicit c++rt0.o
15230 # does not break anything, and helps significantly (at the cost of a little
15231 # extra space).
15232 freebsd2.2*)
15233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15234 hardcode_libdir_flag_spec='-R$libdir'
15235 hardcode_direct=yes
15236 hardcode_shlibpath_var=no
15237 ;;
15238
15239 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015240 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15242 hardcode_direct=yes
15243 hardcode_minus_L=yes
15244 hardcode_shlibpath_var=no
15245 ;;
15246
15247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15248 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015250 hardcode_libdir_flag_spec='-R$libdir'
15251 hardcode_direct=yes
15252 hardcode_shlibpath_var=no
15253 ;;
15254
15255 hpux9*)
15256 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015257 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 +000015258 else
15259 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'
15260 fi
15261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15262 hardcode_libdir_separator=:
15263 hardcode_direct=yes
15264
15265 # hardcode_minus_L: Not really in the search PATH,
15266 # but as the default location of the library.
15267 hardcode_minus_L=yes
15268 export_dynamic_flag_spec='${wl}-E'
15269 ;;
15270
15271 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015272 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015273 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 +000015274 else
15275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15276 fi
15277 if test "$with_gnu_ld" = no; then
15278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015279 hardcode_libdir_separator=:
15280 hardcode_direct=yes
15281 hardcode_direct_absolute=yes
15282 export_dynamic_flag_spec='${wl}-E'
15283 # hardcode_minus_L: Not really in the search PATH,
15284 # but as the default location of the library.
15285 hardcode_minus_L=yes
15286 fi
15287 ;;
15288
15289 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015290 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015291 case $host_cpu in
15292 hppa*64*)
15293 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15294 ;;
15295 ia64*)
cristyda16f162011-02-19 23:52:17 +000015296 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015297 ;;
15298 *)
cristyda16f162011-02-19 23:52:17 +000015299 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 +000015300 ;;
15301 esac
15302 else
15303 case $host_cpu in
15304 hppa*64*)
15305 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15306 ;;
15307 ia64*)
15308 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15309 ;;
15310 *)
cristy0c60a692010-11-04 01:09:47 +000015311
15312 # Older versions of the 11.00 compiler do not understand -b yet
15313 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15315$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015316if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015317 $as_echo_n "(cached) " >&6
15318else
15319 lt_cv_prog_compiler__b=no
15320 save_LDFLAGS="$LDFLAGS"
15321 LDFLAGS="$LDFLAGS -b"
15322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15324 # The linker can only warn and ignore the option if not recognized
15325 # So say no if there are warnings
15326 if test -s conftest.err; then
15327 # Append any errors to the config.log.
15328 cat conftest.err 1>&5
15329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15331 if diff conftest.exp conftest.er2 >/dev/null; then
15332 lt_cv_prog_compiler__b=yes
15333 fi
15334 else
15335 lt_cv_prog_compiler__b=yes
15336 fi
15337 fi
15338 $RM -r conftest*
15339 LDFLAGS="$save_LDFLAGS"
15340
15341fi
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15343$as_echo "$lt_cv_prog_compiler__b" >&6; }
15344
15345if test x"$lt_cv_prog_compiler__b" = xyes; then
15346 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15347else
15348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15349fi
15350
cristy73bd4a52010-10-05 11:24:23 +000015351 ;;
15352 esac
15353 fi
15354 if test "$with_gnu_ld" = no; then
15355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15356 hardcode_libdir_separator=:
15357
15358 case $host_cpu in
15359 hppa*64*|ia64*)
15360 hardcode_direct=no
15361 hardcode_shlibpath_var=no
15362 ;;
15363 *)
15364 hardcode_direct=yes
15365 hardcode_direct_absolute=yes
15366 export_dynamic_flag_spec='${wl}-E'
15367
15368 # hardcode_minus_L: Not really in the search PATH,
15369 # but as the default location of the library.
15370 hardcode_minus_L=yes
15371 ;;
15372 esac
15373 fi
15374 ;;
15375
15376 irix5* | irix6* | nonstopux*)
15377 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015378 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 +000015379 # Try to use the -exported_symbol ld option, if it does not
15380 # work, assume that -exports_file does not work either and
15381 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015382 # This should be the same for all languages, so no per-tag cache variable.
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15384$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15385if ${lt_cv_irix_exported_symbol+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387else
15388 save_LDFLAGS="$LDFLAGS"
15389 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015391/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015392int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015393_ACEOF
15394if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015395 lt_cv_irix_exported_symbol=yes
15396else
15397 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015398fi
15399rm -f core conftest.err conftest.$ac_objext \
15400 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015401 LDFLAGS="$save_LDFLAGS"
15402fi
15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15404$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15405 if test "$lt_cv_irix_exported_symbol" = yes; then
15406 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'
15407 fi
cristy73bd4a52010-10-05 11:24:23 +000015408 else
cristy0c60a692010-11-04 01:09:47 +000015409 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'
15410 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 +000015411 fi
15412 archive_cmds_need_lc='no'
15413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15414 hardcode_libdir_separator=:
15415 inherit_rpath=yes
15416 link_all_deplibs=yes
15417 ;;
15418
15419 netbsd*)
15420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15422 else
15423 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15424 fi
15425 hardcode_libdir_flag_spec='-R$libdir'
15426 hardcode_direct=yes
15427 hardcode_shlibpath_var=no
15428 ;;
15429
15430 newsos6)
15431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432 hardcode_direct=yes
15433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15434 hardcode_libdir_separator=:
15435 hardcode_shlibpath_var=no
15436 ;;
15437
15438 *nto* | *qnx*)
15439 ;;
15440
15441 openbsd*)
15442 if test -f /usr/libexec/ld.so; then
15443 hardcode_direct=yes
15444 hardcode_shlibpath_var=no
15445 hardcode_direct_absolute=yes
15446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15447 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15448 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15449 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15450 export_dynamic_flag_spec='${wl}-E'
15451 else
15452 case $host_os in
15453 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_libdir_flag_spec='-R$libdir'
15456 ;;
15457 *)
15458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15459 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15460 ;;
15461 esac
15462 fi
15463 else
15464 ld_shlibs=no
15465 fi
15466 ;;
15467
15468 os2*)
15469 hardcode_libdir_flag_spec='-L$libdir'
15470 hardcode_minus_L=yes
15471 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015472 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 +000015473 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15474 ;;
15475
15476 osf3*)
15477 if test "$GCC" = yes; then
15478 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015479 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 +000015480 else
15481 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015482 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 +000015483 fi
15484 archive_cmds_need_lc='no'
15485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15486 hardcode_libdir_separator=:
15487 ;;
15488
15489 osf4* | osf5*) # as osf3* with the addition of -msym flag
15490 if test "$GCC" = yes; then
15491 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015492 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 +000015493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15494 else
15495 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015496 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 +000015497 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 +000015498 $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 +000015499
15500 # Both c and cxx compiler support -rpath directly
15501 hardcode_libdir_flag_spec='-rpath $libdir'
15502 fi
15503 archive_cmds_need_lc='no'
15504 hardcode_libdir_separator=:
15505 ;;
15506
15507 solaris*)
15508 no_undefined_flag=' -z defs'
15509 if test "$GCC" = yes; then
15510 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015511 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 +000015512 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 +000015513 $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 +000015514 else
15515 case `$CC -V 2>&1` in
15516 *"Compilers 5.0"*)
15517 wlarc=''
15518 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15520 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15521 ;;
15522 *)
15523 wlarc='${wl}'
15524 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15526 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15527 ;;
15528 esac
15529 fi
15530 hardcode_libdir_flag_spec='-R$libdir'
15531 hardcode_shlibpath_var=no
15532 case $host_os in
15533 solaris2.[0-5] | solaris2.[0-5].*) ;;
15534 *)
15535 # The compiler driver will combine and reorder linker options,
15536 # but understands `-z linker_flag'. GCC discards it without `$wl',
15537 # but is careful enough not to reorder.
15538 # Supported since Solaris 2.6 (maybe 2.5.1?)
15539 if test "$GCC" = yes; then
15540 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15541 else
15542 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15543 fi
15544 ;;
15545 esac
15546 link_all_deplibs=yes
15547 ;;
15548
15549 sunos4*)
15550 if test "x$host_vendor" = xsequent; then
15551 # Use $CC to link under sequent, because it throws in some extra .o
15552 # files that make .init and .fini sections work.
15553 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15554 else
15555 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15556 fi
15557 hardcode_libdir_flag_spec='-L$libdir'
15558 hardcode_direct=yes
15559 hardcode_minus_L=yes
15560 hardcode_shlibpath_var=no
15561 ;;
15562
15563 sysv4)
15564 case $host_vendor in
15565 sni)
15566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15567 hardcode_direct=yes # is this really true???
15568 ;;
15569 siemens)
15570 ## LD is ld it makes a PLAMLIB
15571 ## CC just makes a GrossModule.
15572 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15573 reload_cmds='$CC -r -o $output$reload_objs'
15574 hardcode_direct=no
15575 ;;
15576 motorola)
15577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15579 ;;
15580 esac
15581 runpath_var='LD_RUN_PATH'
15582 hardcode_shlibpath_var=no
15583 ;;
15584
15585 sysv4.3*)
15586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_shlibpath_var=no
15588 export_dynamic_flag_spec='-Bexport'
15589 ;;
15590
15591 sysv4*MP*)
15592 if test -d /usr/nec; then
15593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15594 hardcode_shlibpath_var=no
15595 runpath_var=LD_RUN_PATH
15596 hardcode_runpath_var=yes
15597 ld_shlibs=yes
15598 fi
15599 ;;
15600
15601 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15602 no_undefined_flag='${wl}-z,text'
15603 archive_cmds_need_lc=no
15604 hardcode_shlibpath_var=no
15605 runpath_var='LD_RUN_PATH'
15606
15607 if test "$GCC" = yes; then
15608 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 else
15611 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15612 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15613 fi
15614 ;;
15615
15616 sysv5* | sco3.2v5* | sco5v6*)
15617 # Note: We can NOT use -z defs as we might desire, because we do not
15618 # link with -lc, and that would cause any symbols used from libc to
15619 # always be unresolved, which means just about no library would
15620 # ever link correctly. If we're not using GNU ld we use -z text
15621 # though, which does catch some bad symbols but isn't as heavy-handed
15622 # as -z defs.
15623 no_undefined_flag='${wl}-z,text'
15624 allow_undefined_flag='${wl}-z,nodefs'
15625 archive_cmds_need_lc=no
15626 hardcode_shlibpath_var=no
15627 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15628 hardcode_libdir_separator=':'
15629 link_all_deplibs=yes
15630 export_dynamic_flag_spec='${wl}-Bexport'
15631 runpath_var='LD_RUN_PATH'
15632
15633 if test "$GCC" = yes; then
15634 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15635 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15636 else
15637 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15638 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639 fi
15640 ;;
15641
15642 uts4*)
15643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644 hardcode_libdir_flag_spec='-L$libdir'
15645 hardcode_shlibpath_var=no
15646 ;;
15647
15648 *)
15649 ld_shlibs=no
15650 ;;
15651 esac
15652
15653 if test x$host_vendor = xsni; then
15654 case $host in
15655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15656 export_dynamic_flag_spec='${wl}-Blargedynsym'
15657 ;;
15658 esac
15659 fi
15660 fi
15661
15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15663$as_echo "$ld_shlibs" >&6; }
15664test "$ld_shlibs" = no && can_build_shared=no
15665
15666with_gnu_ld=$with_gnu_ld
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682#
15683# Do we need to explicitly link libc?
15684#
15685case "x$archive_cmds_need_lc" in
15686x|xyes)
15687 # Assume -lc should be added
15688 archive_cmds_need_lc=yes
15689
15690 if test "$enable_shared" = yes && test "$GCC" = yes; then
15691 case $archive_cmds in
15692 *'~'*)
15693 # FIXME: we may have to deal with multi-command sequences.
15694 ;;
15695 '$CC '*)
15696 # Test whether the compiler implicitly links with -lc since on some
15697 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15698 # to ld, don't add -lc before -lgcc.
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15700$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015701if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015702 $as_echo_n "(cached) " >&6
15703else
15704 $RM conftest*
15705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015706
cristy0c60a692010-11-04 01:09:47 +000015707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015708 (eval $ac_compile) 2>&5
15709 ac_status=$?
15710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15711 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015712 soname=conftest
15713 lib=conftest
15714 libobjs=conftest.$ac_objext
15715 deplibs=
15716 wl=$lt_prog_compiler_wl
15717 pic_flag=$lt_prog_compiler_pic
15718 compiler_flags=-v
15719 linker_flags=-v
15720 verstring=
15721 output_objdir=.
15722 libname=conftest
15723 lt_save_allow_undefined_flag=$allow_undefined_flag
15724 allow_undefined_flag=
15725 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 +000015726 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15727 ac_status=$?
15728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15729 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015730 then
15731 lt_cv_archive_cmds_need_lc=no
15732 else
15733 lt_cv_archive_cmds_need_lc=yes
15734 fi
15735 allow_undefined_flag=$lt_save_allow_undefined_flag
15736 else
15737 cat conftest.err 1>&5
15738 fi
15739 $RM conftest*
15740
15741fi
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15743$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15744 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015745 ;;
15746 esac
15747 fi
15748 ;;
15749esac
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
cristy73bd4a52010-10-05 11:24:23 +000015902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15903$as_echo_n "checking dynamic linker characteristics... " >&6; }
15904
15905if test "$GCC" = yes; then
15906 case $host_os in
15907 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15908 *) lt_awk_arg="/^libraries:/" ;;
15909 esac
cristy0c60a692010-11-04 01:09:47 +000015910 case $host_os in
15911 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15912 *) lt_sed_strip_eq="s,=/,/,g" ;;
15913 esac
15914 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15915 case $lt_search_path_spec in
15916 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015917 # if the path contains ";" then we assume it to be the separator
15918 # otherwise default to the standard path separator (i.e. ":") - it is
15919 # assumed that no part of a normal pathname contains ";" but that should
15920 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015921 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15922 ;;
15923 *)
15924 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15925 ;;
15926 esac
cristy73bd4a52010-10-05 11:24:23 +000015927 # Ok, now we have the path, separated by spaces, we can step through it
15928 # and add multilib dir if necessary.
15929 lt_tmp_lt_search_path_spec=
15930 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15931 for lt_sys_path in $lt_search_path_spec; do
15932 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15933 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15934 else
15935 test -d "$lt_sys_path" && \
15936 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15937 fi
15938 done
cristy0c60a692010-11-04 01:09:47 +000015939 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015940BEGIN {RS=" "; FS="/|\n";} {
15941 lt_foo="";
15942 lt_count=0;
15943 for (lt_i = NF; lt_i > 0; lt_i--) {
15944 if ($lt_i != "" && $lt_i != ".") {
15945 if ($lt_i == "..") {
15946 lt_count++;
15947 } else {
15948 if (lt_count == 0) {
15949 lt_foo="/" $lt_i lt_foo;
15950 } else {
15951 lt_count--;
15952 }
15953 }
15954 }
15955 }
15956 if (lt_foo != "") { lt_freq[lt_foo]++; }
15957 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15958}'`
cristy0c60a692010-11-04 01:09:47 +000015959 # AWK program above erroneously prepends '/' to C:/dos/paths
15960 # for these hosts.
15961 case $host_os in
15962 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15963 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15964 esac
15965 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015966else
15967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15968fi
15969library_names_spec=
15970libname_spec='lib$name'
15971soname_spec=
15972shrext_cmds=".so"
15973postinstall_cmds=
15974postuninstall_cmds=
15975finish_cmds=
15976finish_eval=
15977shlibpath_var=
15978shlibpath_overrides_runpath=unknown
15979version_type=none
15980dynamic_linker="$host_os ld.so"
15981sys_lib_dlsearch_path_spec="/lib /usr/lib"
15982need_lib_prefix=unknown
15983hardcode_into_libs=no
15984
15985# when you set need_version to no, make sure it does not cause -set_version
15986# flags to be left without arguments
15987need_version=unknown
15988
15989case $host_os in
15990aix3*)
cristy99bd5232011-12-07 14:38:20 +000015991 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15993 shlibpath_var=LIBPATH
15994
15995 # AIX 3 has no versioning support, so we append a major version to the name.
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 ;;
15998
15999aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016000 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016001 need_lib_prefix=no
16002 need_version=no
16003 hardcode_into_libs=yes
16004 if test "$host_cpu" = ia64; then
16005 # AIX 5 supports IA64
16006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 else
16009 # With GCC up to 2.95.x, collect2 would create an import file
16010 # for dependence libraries. The import file would start with
16011 # the line `#! .'. This would cause the generated library to
16012 # depend on `.', always an invalid library. This was fixed in
16013 # development snapshots of GCC prior to 3.0.
16014 case $host_os in
16015 aix4 | aix4.[01] | aix4.[01].*)
16016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16017 echo ' yes '
16018 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16019 :
16020 else
16021 can_build_shared=no
16022 fi
16023 ;;
16024 esac
16025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16026 # soname into executable. Probably we can add versioning support to
16027 # collect2, so additional links can be useful in future.
16028 if test "$aix_use_runtimelinking" = yes; then
16029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16030 # instead of lib<name>.a to let people know that these are not
16031 # typical AIX shared libraries.
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033 else
16034 # We preserve .a as extension for shared libraries through AIX4.2
16035 # and later when we are not doing run time linking.
16036 library_names_spec='${libname}${release}.a $libname.a'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 fi
16039 shlibpath_var=LIBPATH
16040 fi
16041 ;;
16042
16043amigaos*)
16044 case $host_cpu in
16045 powerpc)
16046 # Since July 2007 AmigaOS4 officially supports .so libraries.
16047 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 ;;
16050 m68k)
16051 library_names_spec='$libname.ixlibrary $libname.a'
16052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016053 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 +000016054 ;;
16055 esac
16056 ;;
16057
16058beos*)
16059 library_names_spec='${libname}${shared_ext}'
16060 dynamic_linker="$host_os ld.so"
16061 shlibpath_var=LIBRARY_PATH
16062 ;;
16063
16064bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016065 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016066 need_version=no
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068 soname_spec='${libname}${release}${shared_ext}$major'
16069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16073 # the default ld.so.conf also contains /usr/contrib/lib and
16074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16075 # libtool to hard-code these into programs
16076 ;;
16077
16078cygwin* | mingw* | pw32* | cegcc*)
16079 version_type=windows
16080 shrext_cmds=".dll"
16081 need_version=no
16082 need_lib_prefix=no
16083
cristyda16f162011-02-19 23:52:17 +000016084 case $GCC,$cc_basename in
16085 yes,*)
16086 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016087 library_names_spec='$libname.dll.a'
16088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16089 postinstall_cmds='base_file=`basename \${file}`~
16090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16091 dldir=$destdir/`dirname \$dlpath`~
16092 test -d \$dldir || mkdir -p \$dldir~
16093 $install_prog $dir/$dlname \$dldir/$dlname~
16094 chmod a+x \$dldir/$dlname~
16095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16097 fi'
16098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16099 dlpath=$dir/\$dldll~
16100 $RM \$dlpath'
16101 shlibpath_overrides_runpath=yes
16102
16103 case $host_os in
16104 cygwin*)
16105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016107
16108 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016109 ;;
16110 mingw* | cegcc*)
16111 # MinGW DLLs use traditional 'lib' prefix
16112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016113 ;;
16114 pw32*)
16115 # pw32 DLLs use 'pw' prefix rather than 'lib'
16116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16117 ;;
16118 esac
cristyda16f162011-02-19 23:52:17 +000016119 dynamic_linker='Win32 ld.exe'
16120 ;;
16121
16122 *,cl*)
16123 # Native MSVC
16124 libname_spec='$name'
16125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16126 library_names_spec='${libname}.dll.lib'
16127
16128 case $build_os in
16129 mingw*)
16130 sys_lib_search_path_spec=
16131 lt_save_ifs=$IFS
16132 IFS=';'
16133 for lt_path in $LIB
16134 do
16135 IFS=$lt_save_ifs
16136 # Let DOS variable expansion print the short 8.3 style file name.
16137 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16138 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16139 done
16140 IFS=$lt_save_ifs
16141 # Convert to MSYS style.
16142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16143 ;;
16144 cygwin*)
16145 # Convert to unix form, then to dos form, then back to unix form
16146 # but this time dos style (no spaces!) so that the unix form looks
16147 # like /cygdrive/c/PROGRA~1:/cygdr...
16148 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16149 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16150 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16151 ;;
16152 *)
16153 sys_lib_search_path_spec="$LIB"
16154 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16155 # It is most probably a Windows format PATH.
16156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16157 else
16158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16159 fi
16160 # FIXME: find the short name or the path components, as spaces are
16161 # common. (e.g. "Program Files" -> "PROGRA~1")
16162 ;;
16163 esac
16164
16165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16166 postinstall_cmds='base_file=`basename \${file}`~
16167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16168 dldir=$destdir/`dirname \$dlpath`~
16169 test -d \$dldir || mkdir -p \$dldir~
16170 $install_prog $dir/$dlname \$dldir/$dlname'
16171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16172 dlpath=$dir/\$dldll~
16173 $RM \$dlpath'
16174 shlibpath_overrides_runpath=yes
16175 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016176 ;;
16177
16178 *)
cristyda16f162011-02-19 23:52:17 +000016179 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016181 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016182 ;;
16183 esac
cristy73bd4a52010-10-05 11:24:23 +000016184 # FIXME: first we should search . and the directory the executable is in
16185 shlibpath_var=PATH
16186 ;;
16187
16188darwin* | rhapsody*)
16189 dynamic_linker="$host_os dyld"
16190 version_type=darwin
16191 need_lib_prefix=no
16192 need_version=no
16193 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16194 soname_spec='${libname}${release}${major}$shared_ext'
16195 shlibpath_overrides_runpath=yes
16196 shlibpath_var=DYLD_LIBRARY_PATH
16197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16198
16199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16201 ;;
16202
16203dgux*)
cristy99bd5232011-12-07 14:38:20 +000016204 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016205 need_lib_prefix=no
16206 need_version=no
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 ;;
16211
cristy73bd4a52010-10-05 11:24:23 +000016212freebsd* | dragonfly*)
16213 # DragonFly does not have aout. When/if they implement a new
16214 # versioning mechanism, adjust this.
16215 if test -x /usr/bin/objformat; then
16216 objformat=`/usr/bin/objformat`
16217 else
16218 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016219 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016220 *) objformat=elf ;;
16221 esac
16222 fi
16223 version_type=freebsd-$objformat
16224 case $version_type in
16225 freebsd-elf*)
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16227 need_version=no
16228 need_lib_prefix=no
16229 ;;
16230 freebsd-*)
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16232 need_version=yes
16233 ;;
16234 esac
16235 shlibpath_var=LD_LIBRARY_PATH
16236 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016237 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016238 shlibpath_overrides_runpath=yes
16239 ;;
16240 freebsd3.[01]* | freebsdelf3.[01]*)
16241 shlibpath_overrides_runpath=yes
16242 hardcode_into_libs=yes
16243 ;;
16244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16246 shlibpath_overrides_runpath=no
16247 hardcode_into_libs=yes
16248 ;;
16249 *) # from 4.6 on, and DragonFly
16250 shlibpath_overrides_runpath=yes
16251 hardcode_into_libs=yes
16252 ;;
16253 esac
16254 ;;
16255
16256gnu*)
cristy99bd5232011-12-07 14:38:20 +000016257 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016258 need_lib_prefix=no
16259 need_version=no
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016263 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016264 hardcode_into_libs=yes
16265 ;;
16266
cristy0c60a692010-11-04 01:09:47 +000016267haiku*)
cristy99bd5232011-12-07 14:38:20 +000016268 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016269 need_lib_prefix=no
16270 need_version=no
16271 dynamic_linker="$host_os runtime_loader"
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 shlibpath_var=LIBRARY_PATH
16275 shlibpath_overrides_runpath=yes
16276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16277 hardcode_into_libs=yes
16278 ;;
16279
cristy73bd4a52010-10-05 11:24:23 +000016280hpux9* | hpux10* | hpux11*)
16281 # Give a soname corresponding to the major version so that dld.sl refuses to
16282 # link against other versions.
16283 version_type=sunos
16284 need_lib_prefix=no
16285 need_version=no
16286 case $host_cpu in
16287 ia64*)
16288 shrext_cmds='.so'
16289 hardcode_into_libs=yes
16290 dynamic_linker="$host_os dld.so"
16291 shlibpath_var=LD_LIBRARY_PATH
16292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 if test "X$HPUX_IA64_MODE" = X32; then
16296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16297 else
16298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16299 fi
16300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16301 ;;
16302 hppa*64*)
16303 shrext_cmds='.sl'
16304 hardcode_into_libs=yes
16305 dynamic_linker="$host_os dld.sl"
16306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16312 ;;
16313 *)
16314 shrext_cmds='.sl'
16315 dynamic_linker="$host_os dld.sl"
16316 shlibpath_var=SHLIB_PATH
16317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 ;;
16321 esac
cristy0c60a692010-11-04 01:09:47 +000016322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016323 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016324 # or fails outright, so override atomically:
16325 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016326 ;;
16327
16328interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016329 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016330 need_lib_prefix=no
16331 need_version=no
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 shlibpath_overrides_runpath=no
16337 hardcode_into_libs=yes
16338 ;;
16339
16340irix5* | irix6* | nonstopux*)
16341 case $host_os in
16342 nonstopux*) version_type=nonstopux ;;
16343 *)
16344 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016345 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016346 else
16347 version_type=irix
16348 fi ;;
16349 esac
16350 need_lib_prefix=no
16351 need_version=no
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16354 case $host_os in
16355 irix5* | nonstopux*)
16356 libsuff= shlibsuff=
16357 ;;
16358 *)
16359 case $LD in # libtool.m4 will add one of these switches to LD
16360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16361 libsuff= shlibsuff= libmagic=32-bit;;
16362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16363 libsuff=32 shlibsuff=N32 libmagic=N32;;
16364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16366 *) libsuff= shlibsuff= libmagic=never-match;;
16367 esac
16368 ;;
16369 esac
16370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16371 shlibpath_overrides_runpath=no
16372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16374 hardcode_into_libs=yes
16375 ;;
16376
16377# No shared lib support for Linux oldld, aout, or coff.
16378linux*oldld* | linux*aout* | linux*coff*)
16379 dynamic_linker=no
16380 ;;
16381
cristy99bd5232011-12-07 14:38:20 +000016382# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016383linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016384 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016385 need_lib_prefix=no
16386 need_version=no
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016392
cristy73bd4a52010-10-05 11:24:23 +000016393 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016394 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016395 $as_echo_n "(cached) " >&6
16396else
16397 lt_cv_shlibpath_overrides_runpath=no
16398 save_LDFLAGS=$LDFLAGS
16399 save_libdir=$libdir
16400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016403/* end confdefs.h. */
16404
16405int
16406main ()
16407{
16408
16409 ;
16410 return 0;
16411}
16412_ACEOF
16413if ac_fn_c_try_link "$LINENO"; then :
16414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016415 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016416fi
16417fi
16418rm -f core conftest.err conftest.$ac_objext \
16419 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016420 LDFLAGS=$save_LDFLAGS
16421 libdir=$save_libdir
16422
16423fi
16424
16425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016426
16427 # This implies no fast_install, which is unacceptable.
16428 # Some rework will be needed to allow for fast_install
16429 # before this can be enabled.
16430 hardcode_into_libs=yes
16431
16432 # Add ABI-specific directories to the system library path.
16433 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16434
16435 # Append ld.so.conf contents to the search path
16436 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016437 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 +000016438 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016439
cristy73bd4a52010-10-05 11:24:23 +000016440 fi
16441
16442 # We used to test for /lib/ld.so.1 and disable shared libraries on
16443 # powerpc, because MkLinux only supported shared libraries with the
16444 # GNU dynamic linker. Since this was broken with cross compilers,
16445 # most powerpc-linux boxes support dynamic linking these days and
16446 # people can always --disable-shared, the test was removed, and we
16447 # assume the GNU/Linux dynamic linker is in use.
16448 dynamic_linker='GNU/Linux ld.so'
16449 ;;
16450
16451netbsd*)
16452 version_type=sunos
16453 need_lib_prefix=no
16454 need_version=no
16455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16458 dynamic_linker='NetBSD (a.out) ld.so'
16459 else
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 dynamic_linker='NetBSD ld.elf_so'
16463 fi
16464 shlibpath_var=LD_LIBRARY_PATH
16465 shlibpath_overrides_runpath=yes
16466 hardcode_into_libs=yes
16467 ;;
16468
16469newsos6)
cristy99bd5232011-12-07 14:38:20 +000016470 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 shlibpath_overrides_runpath=yes
16474 ;;
16475
16476*nto* | *qnx*)
16477 version_type=qnx
16478 need_lib_prefix=no
16479 need_version=no
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 shlibpath_var=LD_LIBRARY_PATH
16483 shlibpath_overrides_runpath=no
16484 hardcode_into_libs=yes
16485 dynamic_linker='ldqnx.so'
16486 ;;
16487
16488openbsd*)
16489 version_type=sunos
16490 sys_lib_dlsearch_path_spec="/usr/lib"
16491 need_lib_prefix=no
16492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16493 case $host_os in
16494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16495 *) need_version=no ;;
16496 esac
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16501 case $host_os in
16502 openbsd2.[89] | openbsd2.[89].*)
16503 shlibpath_overrides_runpath=no
16504 ;;
16505 *)
16506 shlibpath_overrides_runpath=yes
16507 ;;
16508 esac
16509 else
16510 shlibpath_overrides_runpath=yes
16511 fi
16512 ;;
16513
16514os2*)
16515 libname_spec='$name'
16516 shrext_cmds=".dll"
16517 need_lib_prefix=no
16518 library_names_spec='$libname${shared_ext} $libname.a'
16519 dynamic_linker='OS/2 ld.exe'
16520 shlibpath_var=LIBPATH
16521 ;;
16522
16523osf3* | osf4* | osf5*)
16524 version_type=osf
16525 need_lib_prefix=no
16526 need_version=no
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16532 ;;
16533
16534rdos*)
16535 dynamic_linker=no
16536 ;;
16537
16538solaris*)
cristy99bd5232011-12-07 14:38:20 +000016539 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016540 need_lib_prefix=no
16541 need_version=no
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 shlibpath_overrides_runpath=yes
16546 hardcode_into_libs=yes
16547 # ldd complains unless libraries are executable
16548 postinstall_cmds='chmod +x $lib'
16549 ;;
16550
16551sunos4*)
16552 version_type=sunos
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=yes
16557 if test "$with_gnu_ld" = yes; then
16558 need_lib_prefix=no
16559 fi
16560 need_version=yes
16561 ;;
16562
16563sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016564 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 case $host_vendor in
16569 sni)
16570 shlibpath_overrides_runpath=no
16571 need_lib_prefix=no
16572 runpath_var=LD_RUN_PATH
16573 ;;
16574 siemens)
16575 need_lib_prefix=no
16576 ;;
16577 motorola)
16578 need_lib_prefix=no
16579 need_version=no
16580 shlibpath_overrides_runpath=no
16581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16582 ;;
16583 esac
16584 ;;
16585
16586sysv4*MP*)
16587 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016588 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16590 soname_spec='$libname${shared_ext}.$major'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 fi
16593 ;;
16594
16595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16596 version_type=freebsd-elf
16597 need_lib_prefix=no
16598 need_version=no
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=yes
16603 hardcode_into_libs=yes
16604 if test "$with_gnu_ld" = yes; then
16605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16606 else
16607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16608 case $host_os in
16609 sco3.2v5*)
16610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16611 ;;
16612 esac
16613 fi
16614 sys_lib_dlsearch_path_spec='/usr/lib'
16615 ;;
16616
16617tpf*)
16618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016619 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016620 need_lib_prefix=no
16621 need_version=no
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 shlibpath_var=LD_LIBRARY_PATH
16624 shlibpath_overrides_runpath=no
16625 hardcode_into_libs=yes
16626 ;;
16627
16628uts4*)
cristy99bd5232011-12-07 14:38:20 +000016629 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 ;;
16634
16635*)
16636 dynamic_linker=no
16637 ;;
16638esac
16639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16640$as_echo "$dynamic_linker" >&6; }
16641test "$dynamic_linker" = no && can_build_shared=no
16642
16643variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16644if test "$GCC" = yes; then
16645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16646fi
16647
16648if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16649 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16650fi
16651if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16652 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16653fi
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
cristy0c60a692010-11-04 01:09:47 +000016741
16742
16743
16744
16745
cristy73bd4a52010-10-05 11:24:23 +000016746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16747$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16748hardcode_action=
16749if test -n "$hardcode_libdir_flag_spec" ||
16750 test -n "$runpath_var" ||
16751 test "X$hardcode_automatic" = "Xyes" ; then
16752
16753 # We can hardcode non-existent directories.
16754 if test "$hardcode_direct" != no &&
16755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16756 # have to relink, otherwise we might link with an installed library
16757 # when we should be linking with a yet-to-be-installed one
16758 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16759 test "$hardcode_minus_L" != no; then
16760 # Linking always hardcodes the temporary library directory.
16761 hardcode_action=relink
16762 else
16763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16764 hardcode_action=immediate
16765 fi
16766else
16767 # We cannot hardcode anything, or else we can only hardcode existing
16768 # directories.
16769 hardcode_action=unsupported
16770fi
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16772$as_echo "$hardcode_action" >&6; }
16773
16774if test "$hardcode_action" = relink ||
16775 test "$inherit_rpath" = yes; then
16776 # Fast installation is not supported
16777 enable_fast_install=no
16778elif test "$shlibpath_overrides_runpath" = yes ||
16779 test "$enable_shared" = no; then
16780 # Fast installation is not necessary
16781 enable_fast_install=needless
16782fi
16783
16784
16785
16786
16787
16788
16789 if test "x$enable_dlopen" != xyes; then
16790 enable_dlopen=unknown
16791 enable_dlopen_self=unknown
16792 enable_dlopen_self_static=unknown
16793else
16794 lt_cv_dlopen=no
16795 lt_cv_dlopen_libs=
16796
16797 case $host_os in
16798 beos*)
16799 lt_cv_dlopen="load_add_on"
16800 lt_cv_dlopen_libs=
16801 lt_cv_dlopen_self=yes
16802 ;;
16803
16804 mingw* | pw32* | cegcc*)
16805 lt_cv_dlopen="LoadLibrary"
16806 lt_cv_dlopen_libs=
16807 ;;
16808
16809 cygwin*)
16810 lt_cv_dlopen="dlopen"
16811 lt_cv_dlopen_libs=
16812 ;;
16813
16814 darwin*)
16815 # if libdl is installed we need to link against it
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16817$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016818if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016819 $as_echo_n "(cached) " >&6
16820else
16821 ac_check_lib_save_LIBS=$LIBS
16822LIBS="-ldl $LIBS"
16823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824/* end confdefs.h. */
16825
16826/* Override any GCC internal prototype to avoid an error.
16827 Use char because int might match the return type of a GCC
16828 builtin and then its argument prototype would still apply. */
16829#ifdef __cplusplus
16830extern "C"
16831#endif
16832char dlopen ();
16833int
16834main ()
16835{
16836return dlopen ();
16837 ;
16838 return 0;
16839}
16840_ACEOF
16841if ac_fn_c_try_link "$LINENO"; then :
16842 ac_cv_lib_dl_dlopen=yes
16843else
16844 ac_cv_lib_dl_dlopen=no
16845fi
16846rm -f core conftest.err conftest.$ac_objext \
16847 conftest$ac_exeext conftest.$ac_ext
16848LIBS=$ac_check_lib_save_LIBS
16849fi
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16851$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016852if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16854else
16855
16856 lt_cv_dlopen="dyld"
16857 lt_cv_dlopen_libs=
16858 lt_cv_dlopen_self=yes
16859
16860fi
16861
16862 ;;
16863
16864 *)
16865 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016866if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016867 lt_cv_dlopen="shl_load"
16868else
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16870$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016871if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016872 $as_echo_n "(cached) " >&6
16873else
16874 ac_check_lib_save_LIBS=$LIBS
16875LIBS="-ldld $LIBS"
16876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877/* end confdefs.h. */
16878
16879/* Override any GCC internal prototype to avoid an error.
16880 Use char because int might match the return type of a GCC
16881 builtin and then its argument prototype would still apply. */
16882#ifdef __cplusplus
16883extern "C"
16884#endif
16885char shl_load ();
16886int
16887main ()
16888{
16889return shl_load ();
16890 ;
16891 return 0;
16892}
16893_ACEOF
16894if ac_fn_c_try_link "$LINENO"; then :
16895 ac_cv_lib_dld_shl_load=yes
16896else
16897 ac_cv_lib_dld_shl_load=no
16898fi
16899rm -f core conftest.err conftest.$ac_objext \
16900 conftest$ac_exeext conftest.$ac_ext
16901LIBS=$ac_check_lib_save_LIBS
16902fi
16903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16904$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016905if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16907else
16908 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016909if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016910 lt_cv_dlopen="dlopen"
16911else
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16913$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016914if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016915 $as_echo_n "(cached) " >&6
16916else
16917 ac_check_lib_save_LIBS=$LIBS
16918LIBS="-ldl $LIBS"
16919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920/* end confdefs.h. */
16921
16922/* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
16925#ifdef __cplusplus
16926extern "C"
16927#endif
16928char dlopen ();
16929int
16930main ()
16931{
16932return dlopen ();
16933 ;
16934 return 0;
16935}
16936_ACEOF
16937if ac_fn_c_try_link "$LINENO"; then :
16938 ac_cv_lib_dl_dlopen=yes
16939else
16940 ac_cv_lib_dl_dlopen=no
16941fi
16942rm -f core conftest.err conftest.$ac_objext \
16943 conftest$ac_exeext conftest.$ac_ext
16944LIBS=$ac_check_lib_save_LIBS
16945fi
16946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16947$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016948if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16950else
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16952$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016953if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016954 $as_echo_n "(cached) " >&6
16955else
16956 ac_check_lib_save_LIBS=$LIBS
16957LIBS="-lsvld $LIBS"
16958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h. */
16960
16961/* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16964#ifdef __cplusplus
16965extern "C"
16966#endif
16967char dlopen ();
16968int
16969main ()
16970{
16971return dlopen ();
16972 ;
16973 return 0;
16974}
16975_ACEOF
16976if ac_fn_c_try_link "$LINENO"; then :
16977 ac_cv_lib_svld_dlopen=yes
16978else
16979 ac_cv_lib_svld_dlopen=no
16980fi
16981rm -f core conftest.err conftest.$ac_objext \
16982 conftest$ac_exeext conftest.$ac_ext
16983LIBS=$ac_check_lib_save_LIBS
16984fi
16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16986$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016987if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16989else
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16991$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016992if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016993 $as_echo_n "(cached) " >&6
16994else
16995 ac_check_lib_save_LIBS=$LIBS
16996LIBS="-ldld $LIBS"
16997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998/* end confdefs.h. */
16999
17000/* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17003#ifdef __cplusplus
17004extern "C"
17005#endif
17006char dld_link ();
17007int
17008main ()
17009{
17010return dld_link ();
17011 ;
17012 return 0;
17013}
17014_ACEOF
17015if ac_fn_c_try_link "$LINENO"; then :
17016 ac_cv_lib_dld_dld_link=yes
17017else
17018 ac_cv_lib_dld_dld_link=no
17019fi
17020rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
17022LIBS=$ac_check_lib_save_LIBS
17023fi
17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17025$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017026if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017027 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17028fi
17029
17030
17031fi
17032
17033
17034fi
17035
17036
17037fi
17038
17039
17040fi
17041
17042
17043fi
17044
17045 ;;
17046 esac
17047
17048 if test "x$lt_cv_dlopen" != xno; then
17049 enable_dlopen=yes
17050 else
17051 enable_dlopen=no
17052 fi
17053
17054 case $lt_cv_dlopen in
17055 dlopen)
17056 save_CPPFLAGS="$CPPFLAGS"
17057 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17058
17059 save_LDFLAGS="$LDFLAGS"
17060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17061
17062 save_LIBS="$LIBS"
17063 LIBS="$lt_cv_dlopen_libs $LIBS"
17064
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17066$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017067if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017068 $as_echo_n "(cached) " >&6
17069else
17070 if test "$cross_compiling" = yes; then :
17071 lt_cv_dlopen_self=cross
17072else
17073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17074 lt_status=$lt_dlunknown
17075 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017076#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017077#include "confdefs.h"
17078
17079#if HAVE_DLFCN_H
17080#include <dlfcn.h>
17081#endif
17082
17083#include <stdio.h>
17084
17085#ifdef RTLD_GLOBAL
17086# define LT_DLGLOBAL RTLD_GLOBAL
17087#else
17088# ifdef DL_GLOBAL
17089# define LT_DLGLOBAL DL_GLOBAL
17090# else
17091# define LT_DLGLOBAL 0
17092# endif
17093#endif
17094
17095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17096 find out it does not work in some platform. */
17097#ifndef LT_DLLAZY_OR_NOW
17098# ifdef RTLD_LAZY
17099# define LT_DLLAZY_OR_NOW RTLD_LAZY
17100# else
17101# ifdef DL_LAZY
17102# define LT_DLLAZY_OR_NOW DL_LAZY
17103# else
17104# ifdef RTLD_NOW
17105# define LT_DLLAZY_OR_NOW RTLD_NOW
17106# else
17107# ifdef DL_NOW
17108# define LT_DLLAZY_OR_NOW DL_NOW
17109# else
17110# define LT_DLLAZY_OR_NOW 0
17111# endif
17112# endif
17113# endif
17114# endif
17115#endif
17116
cristy0c60a692010-11-04 01:09:47 +000017117/* When -fvisbility=hidden is used, assume the code has been annotated
17118 correspondingly for the symbols needed. */
17119#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017120int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017121#endif
17122
cristyda16f162011-02-19 23:52:17 +000017123int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017124int main ()
17125{
17126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17127 int status = $lt_dlunknown;
17128
17129 if (self)
17130 {
17131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017132 else
17133 {
17134 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17135 else puts (dlerror ());
17136 }
cristy73bd4a52010-10-05 11:24:23 +000017137 /* dlclose (self); */
17138 }
17139 else
17140 puts (dlerror ());
17141
17142 return status;
17143}
17144_LT_EOF
17145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17146 (eval $ac_link) 2>&5
17147 ac_status=$?
17148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17149 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17150 (./conftest; exit; ) >&5 2>/dev/null
17151 lt_status=$?
17152 case x$lt_status in
17153 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17154 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17155 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17156 esac
17157 else :
17158 # compilation failed
17159 lt_cv_dlopen_self=no
17160 fi
17161fi
17162rm -fr conftest*
17163
17164
17165fi
17166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17167$as_echo "$lt_cv_dlopen_self" >&6; }
17168
17169 if test "x$lt_cv_dlopen_self" = xyes; then
17170 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17172$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017173if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017174 $as_echo_n "(cached) " >&6
17175else
17176 if test "$cross_compiling" = yes; then :
17177 lt_cv_dlopen_self_static=cross
17178else
17179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17180 lt_status=$lt_dlunknown
17181 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017182#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017183#include "confdefs.h"
17184
17185#if HAVE_DLFCN_H
17186#include <dlfcn.h>
17187#endif
17188
17189#include <stdio.h>
17190
17191#ifdef RTLD_GLOBAL
17192# define LT_DLGLOBAL RTLD_GLOBAL
17193#else
17194# ifdef DL_GLOBAL
17195# define LT_DLGLOBAL DL_GLOBAL
17196# else
17197# define LT_DLGLOBAL 0
17198# endif
17199#endif
17200
17201/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17202 find out it does not work in some platform. */
17203#ifndef LT_DLLAZY_OR_NOW
17204# ifdef RTLD_LAZY
17205# define LT_DLLAZY_OR_NOW RTLD_LAZY
17206# else
17207# ifdef DL_LAZY
17208# define LT_DLLAZY_OR_NOW DL_LAZY
17209# else
17210# ifdef RTLD_NOW
17211# define LT_DLLAZY_OR_NOW RTLD_NOW
17212# else
17213# ifdef DL_NOW
17214# define LT_DLLAZY_OR_NOW DL_NOW
17215# else
17216# define LT_DLLAZY_OR_NOW 0
17217# endif
17218# endif
17219# endif
17220# endif
17221#endif
17222
cristy0c60a692010-11-04 01:09:47 +000017223/* When -fvisbility=hidden is used, assume the code has been annotated
17224 correspondingly for the symbols needed. */
17225#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017226int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017227#endif
17228
cristyda16f162011-02-19 23:52:17 +000017229int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017230int main ()
17231{
17232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17233 int status = $lt_dlunknown;
17234
17235 if (self)
17236 {
17237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017238 else
17239 {
17240 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17241 else puts (dlerror ());
17242 }
cristy73bd4a52010-10-05 11:24:23 +000017243 /* dlclose (self); */
17244 }
17245 else
17246 puts (dlerror ());
17247
17248 return status;
17249}
17250_LT_EOF
17251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17252 (eval $ac_link) 2>&5
17253 ac_status=$?
17254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17255 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17256 (./conftest; exit; ) >&5 2>/dev/null
17257 lt_status=$?
17258 case x$lt_status in
17259 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17260 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17261 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17262 esac
17263 else :
17264 # compilation failed
17265 lt_cv_dlopen_self_static=no
17266 fi
17267fi
17268rm -fr conftest*
17269
17270
17271fi
17272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17273$as_echo "$lt_cv_dlopen_self_static" >&6; }
17274 fi
17275
17276 CPPFLAGS="$save_CPPFLAGS"
17277 LDFLAGS="$save_LDFLAGS"
17278 LIBS="$save_LIBS"
17279 ;;
17280 esac
17281
17282 case $lt_cv_dlopen_self in
17283 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17284 *) enable_dlopen_self=unknown ;;
17285 esac
17286
17287 case $lt_cv_dlopen_self_static in
17288 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17289 *) enable_dlopen_self_static=unknown ;;
17290 esac
17291fi
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309striplib=
17310old_striplib=
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17312$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17313if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17314 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17315 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17317$as_echo "yes" >&6; }
17318else
17319# FIXME - insert some real tests, host_os isn't really good enough
17320 case $host_os in
17321 darwin*)
17322 if test -n "$STRIP" ; then
17323 striplib="$STRIP -x"
17324 old_striplib="$STRIP -S"
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17326$as_echo "yes" >&6; }
17327 else
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329$as_echo "no" >&6; }
17330 fi
17331 ;;
17332 *)
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334$as_echo "no" >&6; }
17335 ;;
17336 esac
17337fi
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350 # Report which library types will actually be built
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17352$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17354$as_echo "$can_build_shared" >&6; }
17355
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17357$as_echo_n "checking whether to build shared libraries... " >&6; }
17358 test "$can_build_shared" = "no" && enable_shared=no
17359
17360 # On AIX, shared libraries and static libraries use the same namespace, and
17361 # are all built from PIC.
17362 case $host_os in
17363 aix3*)
17364 test "$enable_shared" = yes && enable_static=no
17365 if test -n "$RANLIB"; then
17366 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17367 postinstall_cmds='$RANLIB $lib'
17368 fi
17369 ;;
17370
17371 aix[4-9]*)
17372 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17373 test "$enable_shared" = yes && enable_static=no
17374 fi
17375 ;;
17376 esac
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17378$as_echo "$enable_shared" >&6; }
17379
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17381$as_echo_n "checking whether to build static libraries... " >&6; }
17382 # Make sure either enable_shared or enable_static is yes.
17383 test "$enable_shared" = yes || enable_static=yes
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17385$as_echo "$enable_static" >&6; }
17386
17387
17388
17389
17390fi
17391ac_ext=c
17392ac_cpp='$CPP $CPPFLAGS'
17393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17395ac_compiler_gnu=$ac_cv_c_compiler_gnu
17396
17397CC="$lt_save_CC"
17398
cristy0c60a692010-11-04 01:09:47 +000017399 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17400 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17401 (test "X$CXX" != "Xg++"))) ; then
17402 ac_ext=cpp
17403ac_cpp='$CXXCPP $CPPFLAGS'
17404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17408$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17409if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017410 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017411 $as_echo_n "(cached) " >&6
17412else
17413 # Double quotes because CXXCPP needs to be expanded
17414 for CXXCPP in "$CXX -E" "/lib/cpp"
17415 do
17416 ac_preproc_ok=false
17417for ac_cxx_preproc_warn_flag in '' yes
17418do
17419 # Use a header file that comes with gcc, so configuring glibc
17420 # with a fresh cross-compiler works.
17421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422 # <limits.h> exists even on freestanding compilers.
17423 # On the NeXT, cc -E runs the code through the compiler's parser,
17424 # not just through cpp. "Syntax error" is here to catch this case.
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426/* end confdefs.h. */
17427#ifdef __STDC__
17428# include <limits.h>
17429#else
17430# include <assert.h>
17431#endif
17432 Syntax error
17433_ACEOF
17434if ac_fn_cxx_try_cpp "$LINENO"; then :
17435
17436else
17437 # Broken: fails on valid input.
17438continue
17439fi
cristyda16f162011-02-19 23:52:17 +000017440rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017441
17442 # OK, works on sane cases. Now check whether nonexistent headers
17443 # can be detected and how.
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445/* end confdefs.h. */
17446#include <ac_nonexistent.h>
17447_ACEOF
17448if ac_fn_cxx_try_cpp "$LINENO"; then :
17449 # Broken: success on invalid input.
17450continue
17451else
17452 # Passes both tests.
17453ac_preproc_ok=:
17454break
17455fi
cristyda16f162011-02-19 23:52:17 +000017456rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017457
17458done
17459# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017460rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017461if $ac_preproc_ok; then :
17462 break
17463fi
17464
17465 done
17466 ac_cv_prog_CXXCPP=$CXXCPP
17467
17468fi
17469 CXXCPP=$ac_cv_prog_CXXCPP
17470else
17471 ac_cv_prog_CXXCPP=$CXXCPP
17472fi
17473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17474$as_echo "$CXXCPP" >&6; }
17475ac_preproc_ok=false
17476for ac_cxx_preproc_warn_flag in '' yes
17477do
17478 # Use a header file that comes with gcc, so configuring glibc
17479 # with a fresh cross-compiler works.
17480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481 # <limits.h> exists even on freestanding compilers.
17482 # On the NeXT, cc -E runs the code through the compiler's parser,
17483 # not just through cpp. "Syntax error" is here to catch this case.
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485/* end confdefs.h. */
17486#ifdef __STDC__
17487# include <limits.h>
17488#else
17489# include <assert.h>
17490#endif
17491 Syntax error
17492_ACEOF
17493if ac_fn_cxx_try_cpp "$LINENO"; then :
17494
17495else
17496 # Broken: fails on valid input.
17497continue
17498fi
cristyda16f162011-02-19 23:52:17 +000017499rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017500
17501 # OK, works on sane cases. Now check whether nonexistent headers
17502 # can be detected and how.
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504/* end confdefs.h. */
17505#include <ac_nonexistent.h>
17506_ACEOF
17507if ac_fn_cxx_try_cpp "$LINENO"; then :
17508 # Broken: success on invalid input.
17509continue
17510else
17511 # Passes both tests.
17512ac_preproc_ok=:
17513break
17514fi
cristyda16f162011-02-19 23:52:17 +000017515rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017516
17517done
17518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017519rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017520if $ac_preproc_ok; then :
17521
17522else
17523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17525as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17526See \`config.log' for more details" "$LINENO" 5; }
17527fi
17528
17529ac_ext=c
17530ac_cpp='$CPP $CPPFLAGS'
17531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533ac_compiler_gnu=$ac_cv_c_compiler_gnu
17534
17535else
17536 _lt_caught_CXX_error=yes
17537fi
cristy73bd4a52010-10-05 11:24:23 +000017538
17539ac_ext=cpp
17540ac_cpp='$CXXCPP $CPPFLAGS'
17541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17544
17545archive_cmds_need_lc_CXX=no
17546allow_undefined_flag_CXX=
17547always_export_symbols_CXX=no
17548archive_expsym_cmds_CXX=
17549compiler_needs_object_CXX=no
17550export_dynamic_flag_spec_CXX=
17551hardcode_direct_CXX=no
17552hardcode_direct_absolute_CXX=no
17553hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017554hardcode_libdir_separator_CXX=
17555hardcode_minus_L_CXX=no
17556hardcode_shlibpath_var_CXX=unsupported
17557hardcode_automatic_CXX=no
17558inherit_rpath_CXX=no
17559module_cmds_CXX=
17560module_expsym_cmds_CXX=
17561link_all_deplibs_CXX=unknown
17562old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017563reload_flag_CXX=$reload_flag
17564reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017565no_undefined_flag_CXX=
17566whole_archive_flag_spec_CXX=
17567enable_shared_with_static_runtimes_CXX=no
17568
17569# Source file extension for C++ test sources.
17570ac_ext=cpp
17571
17572# Object file extension for compiled C++ test sources.
17573objext=o
17574objext_CXX=$objext
17575
17576# No sense in running all these tests if we already determined that
17577# the CXX compiler isn't working. Some variables (like enable_shared)
17578# are currently assumed to apply to all compilers on this platform,
17579# and will be corrupted by setting them based on a non-working compiler.
17580if test "$_lt_caught_CXX_error" != yes; then
17581 # Code to be used in simple compile tests
17582 lt_simple_compile_test_code="int some_variable = 0;"
17583
17584 # Code to be used in simple link tests
17585 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17586
17587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17588
17589
17590
17591
17592
17593
17594# If no C compiler was specified, use CC.
17595LTCC=${LTCC-"$CC"}
17596
17597# If no C compiler flags were specified, use CFLAGS.
17598LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17599
17600# Allow CC to be a program name with arguments.
17601compiler=$CC
17602
17603
17604 # save warnings/boilerplate of simple test code
17605 ac_outfile=conftest.$ac_objext
17606echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17608_lt_compiler_boilerplate=`cat conftest.err`
17609$RM conftest*
17610
17611 ac_outfile=conftest.$ac_objext
17612echo "$lt_simple_link_test_code" >conftest.$ac_ext
17613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17614_lt_linker_boilerplate=`cat conftest.err`
17615$RM -r conftest*
17616
17617
17618 # Allow CC to be a program name with arguments.
17619 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017620 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017621 lt_save_LD=$LD
17622 lt_save_GCC=$GCC
17623 GCC=$GXX
17624 lt_save_with_gnu_ld=$with_gnu_ld
17625 lt_save_path_LD=$lt_cv_path_LD
17626 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17627 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17628 else
17629 $as_unset lt_cv_prog_gnu_ld
17630 fi
17631 if test -n "${lt_cv_path_LDCXX+set}"; then
17632 lt_cv_path_LD=$lt_cv_path_LDCXX
17633 else
17634 $as_unset lt_cv_path_LD
17635 fi
17636 test -z "${LDCXX+set}" || LD=$LDCXX
17637 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017638 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017639 compiler=$CC
17640 compiler_CXX=$CC
17641 for cc_temp in $compiler""; do
17642 case $cc_temp in
17643 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17644 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17645 \-*) ;;
17646 *) break;;
17647 esac
17648done
cristy0c60a692010-11-04 01:09:47 +000017649cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017650
17651
17652 if test -n "$compiler"; then
17653 # We don't want -fno-exception when compiling C++ code, so set the
17654 # no_builtin_flag separately
17655 if test "$GXX" = yes; then
17656 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17657 else
17658 lt_prog_compiler_no_builtin_flag_CXX=
17659 fi
17660
17661 if test "$GXX" = yes; then
17662 # Set up default GNU C++ configuration
17663
17664
17665
17666# Check whether --with-gnu-ld was given.
17667if test "${with_gnu_ld+set}" = set; then :
17668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17669else
17670 with_gnu_ld=no
17671fi
17672
17673ac_prog=ld
17674if test "$GCC" = yes; then
17675 # Check if gcc -print-prog-name=ld gives a path.
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17677$as_echo_n "checking for ld used by $CC... " >&6; }
17678 case $host in
17679 *-*-mingw*)
17680 # gcc leaves a trailing carriage return which upsets mingw
17681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17682 *)
17683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17684 esac
17685 case $ac_prog in
17686 # Accept absolute paths.
17687 [\\/]* | ?:[\\/]*)
17688 re_direlt='/[^/][^/]*/\.\./'
17689 # Canonicalize the pathname of ld
17690 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17691 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17692 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17693 done
17694 test -z "$LD" && LD="$ac_prog"
17695 ;;
17696 "")
17697 # If it fails, then pretend we aren't using GCC.
17698 ac_prog=ld
17699 ;;
17700 *)
17701 # If it is relative, then search for the first ld in PATH.
17702 with_gnu_ld=unknown
17703 ;;
17704 esac
17705elif test "$with_gnu_ld" = yes; then
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17707$as_echo_n "checking for GNU ld... " >&6; }
17708else
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17710$as_echo_n "checking for non-GNU ld... " >&6; }
17711fi
cristyda16f162011-02-19 23:52:17 +000017712if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017713 $as_echo_n "(cached) " >&6
17714else
17715 if test -z "$LD"; then
17716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17717 for ac_dir in $PATH; do
17718 IFS="$lt_save_ifs"
17719 test -z "$ac_dir" && ac_dir=.
17720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17721 lt_cv_path_LD="$ac_dir/$ac_prog"
17722 # Check to see if the program is GNU ld. I'd rather use --version,
17723 # but apparently some variants of GNU ld only accept -v.
17724 # Break only if it was the GNU/non-GNU ld that we prefer.
17725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17726 *GNU* | *'with BFD'*)
17727 test "$with_gnu_ld" != no && break
17728 ;;
17729 *)
17730 test "$with_gnu_ld" != yes && break
17731 ;;
17732 esac
17733 fi
17734 done
17735 IFS="$lt_save_ifs"
17736else
17737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17738fi
17739fi
17740
17741LD="$lt_cv_path_LD"
17742if test -n "$LD"; then
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17744$as_echo "$LD" >&6; }
17745else
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17747$as_echo "no" >&6; }
17748fi
cristy98dddb52010-11-04 00:30:15 +000017749test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17751$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017752if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017753 $as_echo_n "(cached) " >&6
17754else
17755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17756case `$LD -v 2>&1 </dev/null` in
17757*GNU* | *'with BFD'*)
17758 lt_cv_prog_gnu_ld=yes
17759 ;;
17760*)
17761 lt_cv_prog_gnu_ld=no
17762 ;;
17763esac
17764fi
17765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17766$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17767with_gnu_ld=$lt_cv_prog_gnu_ld
17768
17769
17770
17771
17772
17773
17774
17775 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17776 # archiving commands below assume that GNU ld is being used.
17777 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017778 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17779 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 +000017780
17781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17782 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17783
17784 # If archive_cmds runs LD, not CC, wlarc should be empty
17785 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17786 # investigate it a little bit more. (MM)
17787 wlarc='${wl}'
17788
17789 # ancient GNU ld didn't support --whole-archive et. al.
17790 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17791 $GREP 'no-whole-archive' > /dev/null; then
17792 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17793 else
17794 whole_archive_flag_spec_CXX=
17795 fi
17796 else
17797 with_gnu_ld=no
17798 wlarc=
17799
17800 # A generic and very simple default shared library creation
17801 # command for GNU C++ for the case where it uses the native
17802 # linker, instead of GNU ld. If possible, this setting should
17803 # overridden to take advantage of the native linker features on
17804 # the platform it is being used on.
17805 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17806 fi
17807
17808 # Commands to make compiler produce verbose output that lists
17809 # what "hidden" libraries, object files and flags are used when
17810 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017812
17813 else
17814 GXX=no
17815 with_gnu_ld=no
17816 wlarc=
17817 fi
17818
17819 # PORTME: fill in a description of your system's C++ link characteristics
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17821$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17822 ld_shlibs_CXX=yes
17823 case $host_os in
17824 aix3*)
17825 # FIXME: insert proper C++ library support
17826 ld_shlibs_CXX=no
17827 ;;
17828 aix[4-9]*)
17829 if test "$host_cpu" = ia64; then
17830 # On IA64, the linker does run time linking by default, so we don't
17831 # have to do anything special.
17832 aix_use_runtimelinking=no
17833 exp_sym_flag='-Bexport'
17834 no_entry_flag=""
17835 else
17836 aix_use_runtimelinking=no
17837
17838 # Test if we are trying to use run time linking or normal
17839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17840 # need to do runtime linking.
17841 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17842 for ld_flag in $LDFLAGS; do
17843 case $ld_flag in
17844 *-brtl*)
17845 aix_use_runtimelinking=yes
17846 break
17847 ;;
17848 esac
17849 done
17850 ;;
17851 esac
17852
17853 exp_sym_flag='-bexport'
17854 no_entry_flag='-bnoentry'
17855 fi
17856
17857 # When large executables or shared objects are built, AIX ld can
17858 # have problems creating the table of contents. If linking a library
17859 # or program results in "error TOC overflow" add -mminimal-toc to
17860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17862
17863 archive_cmds_CXX=''
17864 hardcode_direct_CXX=yes
17865 hardcode_direct_absolute_CXX=yes
17866 hardcode_libdir_separator_CXX=':'
17867 link_all_deplibs_CXX=yes
17868 file_list_spec_CXX='${wl}-f,'
17869
17870 if test "$GXX" = yes; then
17871 case $host_os in aix4.[012]|aix4.[012].*)
17872 # We only want to do this on AIX 4.2 and lower, the check
17873 # below for broken collect2 doesn't work under 4.3+
17874 collect2name=`${CC} -print-prog-name=collect2`
17875 if test -f "$collect2name" &&
17876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17877 then
17878 # We have reworked collect2
17879 :
17880 else
17881 # We have old collect2
17882 hardcode_direct_CXX=unsupported
17883 # It fails to find uninstalled libraries when the uninstalled
17884 # path is not listed in the libpath. Setting hardcode_minus_L
17885 # to unsupported forces relinking
17886 hardcode_minus_L_CXX=yes
17887 hardcode_libdir_flag_spec_CXX='-L$libdir'
17888 hardcode_libdir_separator_CXX=
17889 fi
17890 esac
17891 shared_flag='-shared'
17892 if test "$aix_use_runtimelinking" = yes; then
17893 shared_flag="$shared_flag "'${wl}-G'
17894 fi
17895 else
17896 # not using gcc
17897 if test "$host_cpu" = ia64; then
17898 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17899 # chokes on -Wl,-G. The following line is correct:
17900 shared_flag='-G'
17901 else
17902 if test "$aix_use_runtimelinking" = yes; then
17903 shared_flag='${wl}-G'
17904 else
17905 shared_flag='${wl}-bM:SRE'
17906 fi
17907 fi
17908 fi
17909
17910 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17911 # It seems that -bexpall does not export symbols beginning with
17912 # underscore (_), so it is better to generate a list of symbols to
17913 # export.
17914 always_export_symbols_CXX=yes
17915 if test "$aix_use_runtimelinking" = yes; then
17916 # Warning - without using the other runtime loading flags (-brtl),
17917 # -berok will link without error, but may produce a broken library.
17918 allow_undefined_flag_CXX='-berok'
17919 # Determine the default libpath from the value encoded in an empty
17920 # executable.
cristyda16f162011-02-19 23:52:17 +000017921 if test "${lt_cv_aix_libpath+set}" = set; then
17922 aix_libpath=$lt_cv_aix_libpath
17923else
17924 if ${lt_cv_aix_libpath__CXX+:} false; then :
17925 $as_echo_n "(cached) " >&6
17926else
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017928/* end confdefs.h. */
17929
17930int
17931main ()
17932{
17933
17934 ;
17935 return 0;
17936}
17937_ACEOF
17938if ac_fn_cxx_try_link "$LINENO"; then :
17939
cristyda16f162011-02-19 23:52:17 +000017940 lt_aix_libpath_sed='
17941 /Import File Strings/,/^$/ {
17942 /^0/ {
17943 s/^0 *\([^ ]*\) *$/\1/
17944 p
17945 }
17946 }'
17947 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948 # Check for a 64-bit object if we didn't find anything.
17949 if test -z "$lt_cv_aix_libpath__CXX"; then
17950 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17951 fi
cristy73bd4a52010-10-05 11:24:23 +000017952fi
17953rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017955 if test -z "$lt_cv_aix_libpath__CXX"; then
17956 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17957 fi
17958
17959fi
17960
17961 aix_libpath=$lt_cv_aix_libpath__CXX
17962fi
cristy73bd4a52010-10-05 11:24:23 +000017963
17964 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17965
cristy0c60a692010-11-04 01:09:47 +000017966 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 +000017967 else
17968 if test "$host_cpu" = ia64; then
17969 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17970 allow_undefined_flag_CXX="-z nodefs"
17971 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"
17972 else
17973 # Determine the default libpath from the value encoded in an
17974 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017975 if test "${lt_cv_aix_libpath+set}" = set; then
17976 aix_libpath=$lt_cv_aix_libpath
17977else
17978 if ${lt_cv_aix_libpath__CXX+:} false; then :
17979 $as_echo_n "(cached) " >&6
17980else
17981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017982/* end confdefs.h. */
17983
17984int
17985main ()
17986{
17987
17988 ;
17989 return 0;
17990}
17991_ACEOF
17992if ac_fn_cxx_try_link "$LINENO"; then :
17993
cristyda16f162011-02-19 23:52:17 +000017994 lt_aix_libpath_sed='
17995 /Import File Strings/,/^$/ {
17996 /^0/ {
17997 s/^0 *\([^ ]*\) *$/\1/
17998 p
17999 }
18000 }'
18001 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18002 # Check for a 64-bit object if we didn't find anything.
18003 if test -z "$lt_cv_aix_libpath__CXX"; then
18004 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18005 fi
cristy73bd4a52010-10-05 11:24:23 +000018006fi
18007rm -f core conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018009 if test -z "$lt_cv_aix_libpath__CXX"; then
18010 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18011 fi
18012
18013fi
18014
18015 aix_libpath=$lt_cv_aix_libpath__CXX
18016fi
cristy73bd4a52010-10-05 11:24:23 +000018017
18018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18019 # Warning - without using the other run time loading flags,
18020 # -berok will link without error, but may produce a broken library.
18021 no_undefined_flag_CXX=' ${wl}-bernotok'
18022 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018023 if test "$with_gnu_ld" = yes; then
18024 # We only use this code for GNU lds that support --whole-archive.
18025 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18026 else
18027 # Exported symbols can be pulled into shared objects from archives
18028 whole_archive_flag_spec_CXX='$convenience'
18029 fi
cristy73bd4a52010-10-05 11:24:23 +000018030 archive_cmds_need_lc_CXX=yes
18031 # This is similar to how AIX traditionally builds its shared
18032 # libraries.
18033 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'
18034 fi
18035 fi
18036 ;;
18037
18038 beos*)
18039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18040 allow_undefined_flag_CXX=unsupported
18041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18042 # support --undefined. This deserves some investigation. FIXME
18043 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18044 else
18045 ld_shlibs_CXX=no
18046 fi
18047 ;;
18048
18049 chorus*)
18050 case $cc_basename in
18051 *)
18052 # FIXME: insert proper C++ library support
18053 ld_shlibs_CXX=no
18054 ;;
18055 esac
18056 ;;
18057
18058 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018059 case $GXX,$cc_basename in
18060 ,cl* | no,cl*)
18061 # Native MSVC
18062 # hardcode_libdir_flag_spec is actually meaningless, as there is
18063 # no search path for DLLs.
18064 hardcode_libdir_flag_spec_CXX=' '
18065 allow_undefined_flag_CXX=unsupported
18066 always_export_symbols_CXX=yes
18067 file_list_spec_CXX='@'
18068 # Tell ltmain to make .lib files, not .a files.
18069 libext=lib
18070 # Tell ltmain to make .dll files, not .so files.
18071 shrext_cmds=".dll"
18072 # FIXME: Setting linknames here is a bad hack.
18073 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18074 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18075 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18076 else
18077 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18078 fi~
18079 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18080 linknames='
18081 # The linker will not automatically build a static lib if we build a DLL.
18082 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18083 enable_shared_with_static_runtimes_CXX=yes
18084 # Don't use ranlib
18085 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18086 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18087 lt_tool_outputfile="@TOOL_OUTPUT@"~
18088 case $lt_outputfile in
18089 *.exe|*.EXE) ;;
18090 *)
18091 lt_outputfile="$lt_outputfile.exe"
18092 lt_tool_outputfile="$lt_tool_outputfile.exe"
18093 ;;
18094 esac~
18095 func_to_tool_file "$lt_outputfile"~
18096 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18097 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18098 $RM "$lt_outputfile.manifest";
18099 fi'
18100 ;;
18101 *)
18102 # g++
18103 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18104 # as there is no search path for DLLs.
18105 hardcode_libdir_flag_spec_CXX='-L$libdir'
18106 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18107 allow_undefined_flag_CXX=unsupported
18108 always_export_symbols_CXX=no
18109 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018110
cristyda16f162011-02-19 23:52:17 +000018111 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18112 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'
18113 # If the export-symbols file already is a .def file (1st line
18114 # is EXPORTS), use it as is; otherwise, prepend...
18115 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18116 cp $export_symbols $output_objdir/$soname.def;
18117 else
18118 echo EXPORTS > $output_objdir/$soname.def;
18119 cat $export_symbols >> $output_objdir/$soname.def;
18120 fi~
18121 $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'
18122 else
18123 ld_shlibs_CXX=no
18124 fi
18125 ;;
18126 esac
18127 ;;
cristy73bd4a52010-10-05 11:24:23 +000018128 darwin* | rhapsody*)
18129
18130
18131 archive_cmds_need_lc_CXX=no
18132 hardcode_direct_CXX=no
18133 hardcode_automatic_CXX=yes
18134 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018135 if test "$lt_cv_ld_force_load" = "yes"; then
18136 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000018137
cristy0c60a692010-11-04 01:09:47 +000018138 else
18139 whole_archive_flag_spec_CXX=''
18140 fi
cristy73bd4a52010-10-05 11:24:23 +000018141 link_all_deplibs_CXX=yes
18142 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18143 case $cc_basename in
18144 ifort*) _lt_dar_can_shared=yes ;;
18145 *) _lt_dar_can_shared=$GCC ;;
18146 esac
18147 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018148 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018149 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}"
18150 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18151 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}"
18152 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}"
18153 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18154 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}"
18155 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}"
18156 fi
18157
18158 else
18159 ld_shlibs_CXX=no
18160 fi
18161
18162 ;;
18163
18164 dgux*)
18165 case $cc_basename in
18166 ec++*)
18167 # FIXME: insert proper C++ library support
18168 ld_shlibs_CXX=no
18169 ;;
18170 ghcx*)
18171 # Green Hills C++ Compiler
18172 # FIXME: insert proper C++ library support
18173 ld_shlibs_CXX=no
18174 ;;
18175 *)
18176 # FIXME: insert proper C++ library support
18177 ld_shlibs_CXX=no
18178 ;;
18179 esac
18180 ;;
18181
cristy99bd5232011-12-07 14:38:20 +000018182 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018183 # C++ shared libraries reported to be fairly broken before
18184 # switch to ELF
18185 ld_shlibs_CXX=no
18186 ;;
18187
18188 freebsd-elf*)
18189 archive_cmds_need_lc_CXX=no
18190 ;;
18191
18192 freebsd* | dragonfly*)
18193 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18194 # conventions
18195 ld_shlibs_CXX=yes
18196 ;;
18197
18198 gnu*)
18199 ;;
18200
cristy0c60a692010-11-04 01:09:47 +000018201 haiku*)
18202 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18203 link_all_deplibs_CXX=yes
18204 ;;
18205
cristy73bd4a52010-10-05 11:24:23 +000018206 hpux9*)
18207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18208 hardcode_libdir_separator_CXX=:
18209 export_dynamic_flag_spec_CXX='${wl}-E'
18210 hardcode_direct_CXX=yes
18211 hardcode_minus_L_CXX=yes # Not in the search PATH,
18212 # but as the default
18213 # location of the library.
18214
18215 case $cc_basename in
18216 CC*)
18217 # FIXME: insert proper C++ library support
18218 ld_shlibs_CXX=no
18219 ;;
18220 aCC*)
18221 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'
18222 # Commands to make compiler produce verbose output that lists
18223 # what "hidden" libraries, object files and flags are used when
18224 # linking a shared library.
18225 #
18226 # There doesn't appear to be a way to prevent this compiler from
18227 # explicitly linking system object files so we need to strip them
18228 # from the output so that they don't get included in the library
18229 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018230 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 +000018231 ;;
18232 *)
18233 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018234 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 +000018235 else
18236 # FIXME: insert proper C++ library support
18237 ld_shlibs_CXX=no
18238 fi
18239 ;;
18240 esac
18241 ;;
18242
18243 hpux10*|hpux11*)
18244 if test $with_gnu_ld = no; then
18245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18246 hardcode_libdir_separator_CXX=:
18247
18248 case $host_cpu in
18249 hppa*64*|ia64*)
18250 ;;
18251 *)
18252 export_dynamic_flag_spec_CXX='${wl}-E'
18253 ;;
18254 esac
18255 fi
18256 case $host_cpu in
18257 hppa*64*|ia64*)
18258 hardcode_direct_CXX=no
18259 hardcode_shlibpath_var_CXX=no
18260 ;;
18261 *)
18262 hardcode_direct_CXX=yes
18263 hardcode_direct_absolute_CXX=yes
18264 hardcode_minus_L_CXX=yes # Not in the search PATH,
18265 # but as the default
18266 # location of the library.
18267 ;;
18268 esac
18269
18270 case $cc_basename in
18271 CC*)
18272 # FIXME: insert proper C++ library support
18273 ld_shlibs_CXX=no
18274 ;;
18275 aCC*)
18276 case $host_cpu in
18277 hppa*64*)
18278 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18279 ;;
18280 ia64*)
18281 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18282 ;;
18283 *)
18284 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18285 ;;
18286 esac
18287 # Commands to make compiler produce verbose output that lists
18288 # what "hidden" libraries, object files and flags are used when
18289 # linking a shared library.
18290 #
18291 # There doesn't appear to be a way to prevent this compiler from
18292 # explicitly linking system object files so we need to strip them
18293 # from the output so that they don't get included in the library
18294 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018295 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 +000018296 ;;
18297 *)
18298 if test "$GXX" = yes; then
18299 if test $with_gnu_ld = no; then
18300 case $host_cpu in
18301 hppa*64*)
18302 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18303 ;;
18304 ia64*)
cristyda16f162011-02-19 23:52:17 +000018305 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 +000018306 ;;
18307 *)
cristyda16f162011-02-19 23:52:17 +000018308 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 +000018309 ;;
18310 esac
18311 fi
18312 else
18313 # FIXME: insert proper C++ library support
18314 ld_shlibs_CXX=no
18315 fi
18316 ;;
18317 esac
18318 ;;
18319
18320 interix[3-9]*)
18321 hardcode_direct_CXX=no
18322 hardcode_shlibpath_var_CXX=no
18323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18324 export_dynamic_flag_spec_CXX='${wl}-E'
18325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18326 # Instead, shared libraries are loaded at an image base (0x10000000 by
18327 # default) and relocated if they conflict, which is a slow very memory
18328 # consuming and fragmenting process. To avoid this, we pick a random,
18329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18331 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'
18332 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'
18333 ;;
18334 irix5* | irix6*)
18335 case $cc_basename in
18336 CC*)
18337 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018338 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 +000018339
18340 # Archives containing C++ object files must be created using
18341 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18342 # necessary to make sure instantiated templates are included
18343 # in the archive.
18344 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18345 ;;
18346 *)
18347 if test "$GXX" = yes; then
18348 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018349 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 +000018350 else
cristyda16f162011-02-19 23:52:17 +000018351 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 +000018352 fi
18353 fi
18354 link_all_deplibs_CXX=yes
18355 ;;
18356 esac
18357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18358 hardcode_libdir_separator_CXX=:
18359 inherit_rpath_CXX=yes
18360 ;;
18361
cristy0c60a692010-11-04 01:09:47 +000018362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018363 case $cc_basename in
18364 KCC*)
18365 # Kuck and Associates, Inc. (KAI) C++ Compiler
18366
18367 # KCC will only create a shared library if the output file
18368 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18369 # to its proper name (with version) after linking.
18370 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'
18371 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'
18372 # Commands to make compiler produce verbose output that lists
18373 # what "hidden" libraries, object files and flags are used when
18374 # linking a shared library.
18375 #
18376 # There doesn't appear to be a way to prevent this compiler from
18377 # explicitly linking system object files so we need to strip them
18378 # from the output so that they don't get included in the library
18379 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018380 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 +000018381
18382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18384
18385 # Archives containing C++ object files must be created using
18386 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18387 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18388 ;;
18389 icpc* | ecpc* )
18390 # Intel C++
18391 with_gnu_ld=yes
18392 # version 8.0 and above of icpc choke on multiply defined symbols
18393 # if we add $predep_objects and $postdep_objects, however 7.1 and
18394 # earlier do not add the objects themselves.
18395 case `$CC -V 2>&1` in
18396 *"Version 7."*)
18397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18398 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'
18399 ;;
18400 *) # Version 8.0 or newer
18401 tmp_idyn=
18402 case $host_cpu in
18403 ia64*) tmp_idyn=' -i_dynamic';;
18404 esac
18405 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18406 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'
18407 ;;
18408 esac
18409 archive_cmds_need_lc_CXX=no
18410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18412 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18413 ;;
18414 pgCC* | pgcpp*)
18415 # Portland Group C++ compiler
18416 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018417 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018418 prelink_cmds_CXX='tpldir=Template.dir~
18419 rm -rf $tpldir~
18420 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018421 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018422 old_archive_cmds_CXX='tpldir=Template.dir~
18423 rm -rf $tpldir~
18424 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018425 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018426 $RANLIB $oldlib'
18427 archive_cmds_CXX='tpldir=Template.dir~
18428 rm -rf $tpldir~
18429 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018430 $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 +000018431 archive_expsym_cmds_CXX='tpldir=Template.dir~
18432 rm -rf $tpldir~
18433 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018434 $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 +000018435 ;;
cristy0c60a692010-11-04 01:09:47 +000018436 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018437 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18438 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'
18439 ;;
18440 esac
18441
18442 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018444 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 +000018445 ;;
18446 cxx*)
18447 # Compaq C++
18448 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18449 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'
18450
18451 runpath_var=LD_RUN_PATH
18452 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18453 hardcode_libdir_separator_CXX=:
18454
18455 # Commands to make compiler produce verbose output that lists
18456 # what "hidden" libraries, object files and flags are used when
18457 # linking a shared library.
18458 #
18459 # There doesn't appear to be a way to prevent this compiler from
18460 # explicitly linking system object files so we need to strip them
18461 # from the output so that they don't get included in the library
18462 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018463 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 +000018464 ;;
cristy0c60a692010-11-04 01:09:47 +000018465 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018466 # IBM XL 8.0 on PPC, with GNU ld
18467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18469 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18470 if test "x$supports_anon_versioning" = xyes; then
18471 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18473 echo "local: *; };" >> $output_objdir/$libname.ver~
18474 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18475 fi
18476 ;;
18477 *)
18478 case `$CC -V 2>&1 | sed 5q` in
18479 *Sun\ C*)
18480 # Sun C++ 5.9
18481 no_undefined_flag_CXX=' -zdefs'
18482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18483 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'
18484 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018485 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 +000018486 compiler_needs_object_CXX=yes
18487
18488 # Not sure whether something based on
18489 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18490 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018491 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018492
18493 # Archives containing C++ object files must be created using
18494 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18495 # necessary to make sure instantiated templates are included
18496 # in the archive.
18497 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18498 ;;
18499 esac
18500 ;;
18501 esac
18502 ;;
18503
18504 lynxos*)
18505 # FIXME: insert proper C++ library support
18506 ld_shlibs_CXX=no
18507 ;;
18508
18509 m88k*)
18510 # FIXME: insert proper C++ library support
18511 ld_shlibs_CXX=no
18512 ;;
18513
18514 mvs*)
18515 case $cc_basename in
18516 cxx*)
18517 # FIXME: insert proper C++ library support
18518 ld_shlibs_CXX=no
18519 ;;
18520 *)
18521 # FIXME: insert proper C++ library support
18522 ld_shlibs_CXX=no
18523 ;;
18524 esac
18525 ;;
18526
18527 netbsd*)
18528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18529 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18530 wlarc=
18531 hardcode_libdir_flag_spec_CXX='-R$libdir'
18532 hardcode_direct_CXX=yes
18533 hardcode_shlibpath_var_CXX=no
18534 fi
18535 # Workaround some broken pre-1.5 toolchains
18536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18537 ;;
18538
18539 *nto* | *qnx*)
18540 ld_shlibs_CXX=yes
18541 ;;
18542
18543 openbsd2*)
18544 # C++ shared libraries are fairly broken
18545 ld_shlibs_CXX=no
18546 ;;
18547
18548 openbsd*)
18549 if test -f /usr/libexec/ld.so; then
18550 hardcode_direct_CXX=yes
18551 hardcode_shlibpath_var_CXX=no
18552 hardcode_direct_absolute_CXX=yes
18553 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18556 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18557 export_dynamic_flag_spec_CXX='${wl}-E'
18558 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18559 fi
cristy0c60a692010-11-04 01:09:47 +000018560 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018561 else
18562 ld_shlibs_CXX=no
18563 fi
18564 ;;
18565
18566 osf3* | osf4* | osf5*)
18567 case $cc_basename in
18568 KCC*)
18569 # Kuck and Associates, Inc. (KAI) C++ Compiler
18570
18571 # KCC will only create a shared library if the output file
18572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18573 # to its proper name (with version) after linking.
18574 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'
18575
18576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18577 hardcode_libdir_separator_CXX=:
18578
18579 # Archives containing C++ object files must be created using
18580 # the KAI C++ compiler.
18581 case $host in
18582 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18583 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18584 esac
18585 ;;
18586 RCC*)
18587 # Rational C++ 2.4.1
18588 # FIXME: insert proper C++ library support
18589 ld_shlibs_CXX=no
18590 ;;
18591 cxx*)
18592 case $host in
18593 osf3*)
18594 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018595 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 +000018596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18597 ;;
18598 *)
18599 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018600 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 +000018601 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18602 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018603 $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 +000018604 $RM $lib.exp'
18605 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18606 ;;
18607 esac
18608
18609 hardcode_libdir_separator_CXX=:
18610
18611 # Commands to make compiler produce verbose output that lists
18612 # what "hidden" libraries, object files and flags are used when
18613 # linking a shared library.
18614 #
18615 # There doesn't appear to be a way to prevent this compiler from
18616 # explicitly linking system object files so we need to strip them
18617 # from the output so that they don't get included in the library
18618 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018619 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 +000018620 ;;
18621 *)
18622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18624 case $host in
18625 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018626 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 +000018627 ;;
18628 *)
cristyda16f162011-02-19 23:52:17 +000018629 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 +000018630 ;;
18631 esac
18632
18633 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18634 hardcode_libdir_separator_CXX=:
18635
18636 # Commands to make compiler produce verbose output that lists
18637 # what "hidden" libraries, object files and flags are used when
18638 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018640
18641 else
18642 # FIXME: insert proper C++ library support
18643 ld_shlibs_CXX=no
18644 fi
18645 ;;
18646 esac
18647 ;;
18648
18649 psos*)
18650 # FIXME: insert proper C++ library support
18651 ld_shlibs_CXX=no
18652 ;;
18653
18654 sunos4*)
18655 case $cc_basename in
18656 CC*)
18657 # Sun C++ 4.x
18658 # FIXME: insert proper C++ library support
18659 ld_shlibs_CXX=no
18660 ;;
18661 lcc*)
18662 # Lucid
18663 # FIXME: insert proper C++ library support
18664 ld_shlibs_CXX=no
18665 ;;
18666 *)
18667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18669 ;;
18670 esac
18671 ;;
18672
18673 solaris*)
18674 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018675 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018676 # Sun C++ 4.2, 5.x and Centerline C++
18677 archive_cmds_need_lc_CXX=yes
18678 no_undefined_flag_CXX=' -zdefs'
18679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18680 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18681 $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'
18682
18683 hardcode_libdir_flag_spec_CXX='-R$libdir'
18684 hardcode_shlibpath_var_CXX=no
18685 case $host_os in
18686 solaris2.[0-5] | solaris2.[0-5].*) ;;
18687 *)
18688 # The compiler driver will combine and reorder linker options,
18689 # but understands `-z linker_flag'.
18690 # Supported since Solaris 2.6 (maybe 2.5.1?)
18691 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18692 ;;
18693 esac
18694 link_all_deplibs_CXX=yes
18695
cristy0c60a692010-11-04 01:09:47 +000018696 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018697
18698 # Archives containing C++ object files must be created using
18699 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18700 # necessary to make sure instantiated templates are included
18701 # in the archive.
18702 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18703 ;;
18704 gcx*)
18705 # Green Hills C++ Compiler
18706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18707
18708 # The C++ compiler must be used to create the archive.
18709 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18710 ;;
18711 *)
18712 # GNU C++ compiler with Solaris linker
18713 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18714 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18715 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018716 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 +000018717 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 +000018718 $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 +000018719
18720 # Commands to make compiler produce verbose output that lists
18721 # what "hidden" libraries, object files and flags are used when
18722 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018724 else
18725 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18726 # platform.
18727 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18728 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18729 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18730
18731 # Commands to make compiler produce verbose output that lists
18732 # what "hidden" libraries, object files and flags are used when
18733 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018734 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018735 fi
18736
18737 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18738 case $host_os in
18739 solaris2.[0-5] | solaris2.[0-5].*) ;;
18740 *)
18741 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18742 ;;
18743 esac
18744 fi
18745 ;;
18746 esac
18747 ;;
18748
18749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18750 no_undefined_flag_CXX='${wl}-z,text'
18751 archive_cmds_need_lc_CXX=no
18752 hardcode_shlibpath_var_CXX=no
18753 runpath_var='LD_RUN_PATH'
18754
18755 case $cc_basename in
18756 CC*)
18757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 ;;
18760 *)
18761 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18763 ;;
18764 esac
18765 ;;
18766
18767 sysv5* | sco3.2v5* | sco5v6*)
18768 # Note: We can NOT use -z defs as we might desire, because we do not
18769 # link with -lc, and that would cause any symbols used from libc to
18770 # always be unresolved, which means just about no library would
18771 # ever link correctly. If we're not using GNU ld we use -z text
18772 # though, which does catch some bad symbols but isn't as heavy-handed
18773 # as -z defs.
18774 no_undefined_flag_CXX='${wl}-z,text'
18775 allow_undefined_flag_CXX='${wl}-z,nodefs'
18776 archive_cmds_need_lc_CXX=no
18777 hardcode_shlibpath_var_CXX=no
18778 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18779 hardcode_libdir_separator_CXX=':'
18780 link_all_deplibs_CXX=yes
18781 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18782 runpath_var='LD_RUN_PATH'
18783
18784 case $cc_basename in
18785 CC*)
18786 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787 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 +000018788 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18789 '"$old_archive_cmds_CXX"
18790 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18791 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018792 ;;
18793 *)
18794 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18795 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18796 ;;
18797 esac
18798 ;;
18799
18800 tandem*)
18801 case $cc_basename in
18802 NCC*)
18803 # NonStop-UX NCC 3.20
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18806 ;;
18807 *)
18808 # FIXME: insert proper C++ library support
18809 ld_shlibs_CXX=no
18810 ;;
18811 esac
18812 ;;
18813
18814 vxworks*)
18815 # FIXME: insert proper C++ library support
18816 ld_shlibs_CXX=no
18817 ;;
18818
18819 *)
18820 # FIXME: insert proper C++ library support
18821 ld_shlibs_CXX=no
18822 ;;
18823 esac
18824
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18826$as_echo "$ld_shlibs_CXX" >&6; }
18827 test "$ld_shlibs_CXX" = no && can_build_shared=no
18828
18829 GCC_CXX="$GXX"
18830 LD_CXX="$LD"
18831
18832 ## CAVEAT EMPTOR:
18833 ## There is no encapsulation within the following macros, do not change
18834 ## the running order or otherwise move them around unless you know exactly
18835 ## what you are doing...
18836 # Dependencies to place before and after the object being linked:
18837predep_objects_CXX=
18838postdep_objects_CXX=
18839predeps_CXX=
18840postdeps_CXX=
18841compiler_lib_search_path_CXX=
18842
18843cat > conftest.$ac_ext <<_LT_EOF
18844class Foo
18845{
18846public:
18847 Foo (void) { a = 0; }
18848private:
18849 int a;
18850};
18851_LT_EOF
18852
cristyda16f162011-02-19 23:52:17 +000018853
18854_lt_libdeps_save_CFLAGS=$CFLAGS
18855case "$CC $CFLAGS " in #(
18856*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18857*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018858*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018859esac
18860
cristy73bd4a52010-10-05 11:24:23 +000018861if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18862 (eval $ac_compile) 2>&5
18863 ac_status=$?
18864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18865 test $ac_status = 0; }; then
18866 # Parse the compiler output and extract the necessary
18867 # objects, libraries and library flags.
18868
18869 # Sentinel used to keep track of whether or not we are before
18870 # the conftest object file.
18871 pre_test_object_deps_done=no
18872
18873 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018874 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018875
18876 -L* | -R* | -l*)
18877 # Some compilers place space between "-{L,R}" and the path.
18878 # Remove the space.
18879 if test $p = "-L" ||
18880 test $p = "-R"; then
18881 prev=$p
18882 continue
cristy73bd4a52010-10-05 11:24:23 +000018883 fi
18884
cristyda16f162011-02-19 23:52:17 +000018885 # Expand the sysroot to ease extracting the directories later.
18886 if test -z "$prev"; then
18887 case $p in
18888 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18889 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18890 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18891 esac
18892 fi
18893 case $p in
18894 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18895 esac
cristy73bd4a52010-10-05 11:24:23 +000018896 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018897 case ${prev} in
18898 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018899 # Internal compiler library paths should come after those
18900 # provided the user. The postdeps already come after the
18901 # user supplied libs so there is no need to process them.
18902 if test -z "$compiler_lib_search_path_CXX"; then
18903 compiler_lib_search_path_CXX="${prev}${p}"
18904 else
18905 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18906 fi
18907 ;;
18908 # The "-l" case would never come before the object being
18909 # linked, so don't bother handling this case.
18910 esac
18911 else
18912 if test -z "$postdeps_CXX"; then
18913 postdeps_CXX="${prev}${p}"
18914 else
18915 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18916 fi
18917 fi
cristyda16f162011-02-19 23:52:17 +000018918 prev=
cristy73bd4a52010-10-05 11:24:23 +000018919 ;;
18920
cristyda16f162011-02-19 23:52:17 +000018921 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018922 *.$objext)
18923 # This assumes that the test object file only shows up
18924 # once in the compiler output.
18925 if test "$p" = "conftest.$objext"; then
18926 pre_test_object_deps_done=yes
18927 continue
18928 fi
18929
18930 if test "$pre_test_object_deps_done" = no; then
18931 if test -z "$predep_objects_CXX"; then
18932 predep_objects_CXX="$p"
18933 else
18934 predep_objects_CXX="$predep_objects_CXX $p"
18935 fi
18936 else
18937 if test -z "$postdep_objects_CXX"; then
18938 postdep_objects_CXX="$p"
18939 else
18940 postdep_objects_CXX="$postdep_objects_CXX $p"
18941 fi
18942 fi
18943 ;;
18944
18945 *) ;; # Ignore the rest.
18946
18947 esac
18948 done
18949
18950 # Clean up.
18951 rm -f a.out a.exe
18952else
18953 echo "libtool.m4: error: problem compiling CXX test program"
18954fi
18955
18956$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018957CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018958
18959# PORTME: override above test on systems where it is broken
18960case $host_os in
18961interix[3-9]*)
18962 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18963 # hack all around it, let's just trust "g++" to DTRT.
18964 predep_objects_CXX=
18965 postdep_objects_CXX=
18966 postdeps_CXX=
18967 ;;
18968
18969linux*)
18970 case `$CC -V 2>&1 | sed 5q` in
18971 *Sun\ C*)
18972 # Sun C++ 5.9
18973
18974 # The more standards-conforming stlport4 library is
18975 # incompatible with the Cstd library. Avoid specifying
18976 # it if it's in CXXFLAGS. Ignore libCrun as
18977 # -library=stlport4 depends on it.
18978 case " $CXX $CXXFLAGS " in
18979 *" -library=stlport4 "*)
18980 solaris_use_stlport4=yes
18981 ;;
18982 esac
18983
18984 if test "$solaris_use_stlport4" != yes; then
18985 postdeps_CXX='-library=Cstd -library=Crun'
18986 fi
18987 ;;
18988 esac
18989 ;;
18990
18991solaris*)
18992 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018993 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018994 # The more standards-conforming stlport4 library is
18995 # incompatible with the Cstd library. Avoid specifying
18996 # it if it's in CXXFLAGS. Ignore libCrun as
18997 # -library=stlport4 depends on it.
18998 case " $CXX $CXXFLAGS " in
18999 *" -library=stlport4 "*)
19000 solaris_use_stlport4=yes
19001 ;;
19002 esac
19003
19004 # Adding this requires a known-good setup of shared libraries for
19005 # Sun compiler versions before 5.6, else PIC objects from an old
19006 # archive will be linked into the output, leading to subtle bugs.
19007 if test "$solaris_use_stlport4" != yes; then
19008 postdeps_CXX='-library=Cstd -library=Crun'
19009 fi
19010 ;;
19011 esac
19012 ;;
19013esac
19014
19015
19016case " $postdeps_CXX " in
19017*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19018esac
19019 compiler_lib_search_dirs_CXX=
19020if test -n "${compiler_lib_search_path_CXX}"; then
19021 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19022fi
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054 lt_prog_compiler_wl_CXX=
19055lt_prog_compiler_pic_CXX=
19056lt_prog_compiler_static_CXX=
19057
cristy73bd4a52010-10-05 11:24:23 +000019058
19059 # C++ specific cases for pic, static, wl, etc.
19060 if test "$GXX" = yes; then
19061 lt_prog_compiler_wl_CXX='-Wl,'
19062 lt_prog_compiler_static_CXX='-static'
19063
19064 case $host_os in
19065 aix*)
19066 # All AIX code is PIC.
19067 if test "$host_cpu" = ia64; then
19068 # AIX 5 now supports IA64 processor
19069 lt_prog_compiler_static_CXX='-Bstatic'
19070 fi
19071 ;;
19072
19073 amigaos*)
19074 case $host_cpu in
19075 powerpc)
19076 # see comment about AmigaOS4 .so support
19077 lt_prog_compiler_pic_CXX='-fPIC'
19078 ;;
19079 m68k)
19080 # FIXME: we need at least 68020 code to build shared libraries, but
19081 # adding the `-m68020' flag to GCC prevents building anything better,
19082 # like `-m68040'.
19083 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19084 ;;
19085 esac
19086 ;;
19087
19088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19089 # PIC is the default for these OSes.
19090 ;;
19091 mingw* | cygwin* | os2* | pw32* | cegcc*)
19092 # This hack is so that the source file can tell whether it is being
19093 # built for inclusion in a dll (and should export symbols for example).
19094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19095 # (--disable-auto-import) libraries
19096 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19097 ;;
19098 darwin* | rhapsody*)
19099 # PIC is the default on this platform
19100 # Common symbols not allowed in MH_DYLIB files
19101 lt_prog_compiler_pic_CXX='-fno-common'
19102 ;;
19103 *djgpp*)
19104 # DJGPP does not support shared libraries at all
19105 lt_prog_compiler_pic_CXX=
19106 ;;
cristy0c60a692010-11-04 01:09:47 +000019107 haiku*)
19108 # PIC is the default for Haiku.
19109 # The "-static" flag exists, but is broken.
19110 lt_prog_compiler_static_CXX=
19111 ;;
cristy73bd4a52010-10-05 11:24:23 +000019112 interix[3-9]*)
19113 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19114 # Instead, we relocate shared libraries at runtime.
19115 ;;
19116 sysv4*MP*)
19117 if test -d /usr/nec; then
19118 lt_prog_compiler_pic_CXX=-Kconform_pic
19119 fi
19120 ;;
19121 hpux*)
19122 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19123 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19124 # sets the default TLS model and affects inlining.
19125 case $host_cpu in
19126 hppa*64*)
19127 ;;
19128 *)
19129 lt_prog_compiler_pic_CXX='-fPIC'
19130 ;;
19131 esac
19132 ;;
19133 *qnx* | *nto*)
19134 # QNX uses GNU C++, but need to define -shared option too, otherwise
19135 # it will coredump.
19136 lt_prog_compiler_pic_CXX='-fPIC -shared'
19137 ;;
19138 *)
19139 lt_prog_compiler_pic_CXX='-fPIC'
19140 ;;
19141 esac
19142 else
19143 case $host_os in
19144 aix[4-9]*)
19145 # All AIX code is PIC.
19146 if test "$host_cpu" = ia64; then
19147 # AIX 5 now supports IA64 processor
19148 lt_prog_compiler_static_CXX='-Bstatic'
19149 else
19150 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19151 fi
19152 ;;
19153 chorus*)
19154 case $cc_basename in
19155 cxch68*)
19156 # Green Hills C++ Compiler
19157 # _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"
19158 ;;
19159 esac
19160 ;;
cristyda16f162011-02-19 23:52:17 +000019161 mingw* | cygwin* | os2* | pw32* | cegcc*)
19162 # This hack is so that the source file can tell whether it is being
19163 # built for inclusion in a dll (and should export symbols for example).
19164 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19165 ;;
cristy73bd4a52010-10-05 11:24:23 +000019166 dgux*)
19167 case $cc_basename in
19168 ec++*)
19169 lt_prog_compiler_pic_CXX='-KPIC'
19170 ;;
19171 ghcx*)
19172 # Green Hills C++ Compiler
19173 lt_prog_compiler_pic_CXX='-pic'
19174 ;;
19175 *)
19176 ;;
19177 esac
19178 ;;
19179 freebsd* | dragonfly*)
19180 # FreeBSD uses GNU C++
19181 ;;
19182 hpux9* | hpux10* | hpux11*)
19183 case $cc_basename in
19184 CC*)
19185 lt_prog_compiler_wl_CXX='-Wl,'
19186 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19187 if test "$host_cpu" != ia64; then
19188 lt_prog_compiler_pic_CXX='+Z'
19189 fi
19190 ;;
19191 aCC*)
19192 lt_prog_compiler_wl_CXX='-Wl,'
19193 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19194 case $host_cpu in
19195 hppa*64*|ia64*)
19196 # +Z the default
19197 ;;
19198 *)
19199 lt_prog_compiler_pic_CXX='+Z'
19200 ;;
19201 esac
19202 ;;
19203 *)
19204 ;;
19205 esac
19206 ;;
19207 interix*)
19208 # This is c89, which is MS Visual C++ (no shared libs)
19209 # Anyone wants to do a port?
19210 ;;
19211 irix5* | irix6* | nonstopux*)
19212 case $cc_basename in
19213 CC*)
19214 lt_prog_compiler_wl_CXX='-Wl,'
19215 lt_prog_compiler_static_CXX='-non_shared'
19216 # CC pic flag -KPIC is the default.
19217 ;;
19218 *)
19219 ;;
19220 esac
19221 ;;
cristy0c60a692010-11-04 01:09:47 +000019222 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019223 case $cc_basename in
19224 KCC*)
19225 # KAI C++ Compiler
19226 lt_prog_compiler_wl_CXX='--backend -Wl,'
19227 lt_prog_compiler_pic_CXX='-fPIC'
19228 ;;
19229 ecpc* )
19230 # old Intel C++ for x86_64 which still supported -KPIC.
19231 lt_prog_compiler_wl_CXX='-Wl,'
19232 lt_prog_compiler_pic_CXX='-KPIC'
19233 lt_prog_compiler_static_CXX='-static'
19234 ;;
19235 icpc* )
19236 # Intel C++, used to be incompatible with GCC.
19237 # ICC 10 doesn't accept -KPIC any more.
19238 lt_prog_compiler_wl_CXX='-Wl,'
19239 lt_prog_compiler_pic_CXX='-fPIC'
19240 lt_prog_compiler_static_CXX='-static'
19241 ;;
19242 pgCC* | pgcpp*)
19243 # Portland Group C++ compiler
19244 lt_prog_compiler_wl_CXX='-Wl,'
19245 lt_prog_compiler_pic_CXX='-fpic'
19246 lt_prog_compiler_static_CXX='-Bstatic'
19247 ;;
19248 cxx*)
19249 # Compaq C++
19250 # Make sure the PIC flag is empty. It appears that all Alpha
19251 # Linux and Compaq Tru64 Unix objects are PIC.
19252 lt_prog_compiler_pic_CXX=
19253 lt_prog_compiler_static_CXX='-non_shared'
19254 ;;
cristy0c60a692010-11-04 01:09:47 +000019255 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19256 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019257 lt_prog_compiler_wl_CXX='-Wl,'
19258 lt_prog_compiler_pic_CXX='-qpic'
19259 lt_prog_compiler_static_CXX='-qstaticlink'
19260 ;;
19261 *)
19262 case `$CC -V 2>&1 | sed 5q` in
19263 *Sun\ C*)
19264 # Sun C++ 5.9
19265 lt_prog_compiler_pic_CXX='-KPIC'
19266 lt_prog_compiler_static_CXX='-Bstatic'
19267 lt_prog_compiler_wl_CXX='-Qoption ld '
19268 ;;
19269 esac
19270 ;;
19271 esac
19272 ;;
19273 lynxos*)
19274 ;;
19275 m88k*)
19276 ;;
19277 mvs*)
19278 case $cc_basename in
19279 cxx*)
19280 lt_prog_compiler_pic_CXX='-W c,exportall'
19281 ;;
19282 *)
19283 ;;
19284 esac
19285 ;;
19286 netbsd*)
19287 ;;
19288 *qnx* | *nto*)
19289 # QNX uses GNU C++, but need to define -shared option too, otherwise
19290 # it will coredump.
19291 lt_prog_compiler_pic_CXX='-fPIC -shared'
19292 ;;
19293 osf3* | osf4* | osf5*)
19294 case $cc_basename in
19295 KCC*)
19296 lt_prog_compiler_wl_CXX='--backend -Wl,'
19297 ;;
19298 RCC*)
19299 # Rational C++ 2.4.1
19300 lt_prog_compiler_pic_CXX='-pic'
19301 ;;
19302 cxx*)
19303 # Digital/Compaq C++
19304 lt_prog_compiler_wl_CXX='-Wl,'
19305 # Make sure the PIC flag is empty. It appears that all Alpha
19306 # Linux and Compaq Tru64 Unix objects are PIC.
19307 lt_prog_compiler_pic_CXX=
19308 lt_prog_compiler_static_CXX='-non_shared'
19309 ;;
19310 *)
19311 ;;
19312 esac
19313 ;;
19314 psos*)
19315 ;;
19316 solaris*)
19317 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019318 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019319 # Sun C++ 4.2, 5.x and Centerline C++
19320 lt_prog_compiler_pic_CXX='-KPIC'
19321 lt_prog_compiler_static_CXX='-Bstatic'
19322 lt_prog_compiler_wl_CXX='-Qoption ld '
19323 ;;
19324 gcx*)
19325 # Green Hills C++ Compiler
19326 lt_prog_compiler_pic_CXX='-PIC'
19327 ;;
19328 *)
19329 ;;
19330 esac
19331 ;;
19332 sunos4*)
19333 case $cc_basename in
19334 CC*)
19335 # Sun C++ 4.x
19336 lt_prog_compiler_pic_CXX='-pic'
19337 lt_prog_compiler_static_CXX='-Bstatic'
19338 ;;
19339 lcc*)
19340 # Lucid
19341 lt_prog_compiler_pic_CXX='-pic'
19342 ;;
19343 *)
19344 ;;
19345 esac
19346 ;;
19347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19348 case $cc_basename in
19349 CC*)
19350 lt_prog_compiler_wl_CXX='-Wl,'
19351 lt_prog_compiler_pic_CXX='-KPIC'
19352 lt_prog_compiler_static_CXX='-Bstatic'
19353 ;;
19354 esac
19355 ;;
19356 tandem*)
19357 case $cc_basename in
19358 NCC*)
19359 # NonStop-UX NCC 3.20
19360 lt_prog_compiler_pic_CXX='-KPIC'
19361 ;;
19362 *)
19363 ;;
19364 esac
19365 ;;
19366 vxworks*)
19367 ;;
19368 *)
19369 lt_prog_compiler_can_build_shared_CXX=no
19370 ;;
19371 esac
19372 fi
19373
19374case $host_os in
19375 # For platforms which do not support PIC, -DPIC is meaningless:
19376 *djgpp*)
19377 lt_prog_compiler_pic_CXX=
19378 ;;
19379 *)
19380 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19381 ;;
19382esac
cristy73bd4a52010-10-05 11:24:23 +000019383
cristyda16f162011-02-19 23:52:17 +000019384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19385$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19386if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19387 $as_echo_n "(cached) " >&6
19388else
19389 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19390fi
19391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19392$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19393lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019394
19395#
19396# Check to make sure the PIC flag actually works.
19397#
19398if test -n "$lt_prog_compiler_pic_CXX"; then
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19400$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019401if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019402 $as_echo_n "(cached) " >&6
19403else
19404 lt_cv_prog_compiler_pic_works_CXX=no
19405 ac_outfile=conftest.$ac_objext
19406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19407 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19408 # Insert the option either (1) after the last *FLAGS variable, or
19409 # (2) before a word containing "conftest.", or (3) at the end.
19410 # Note that $ac_compile itself does not contain backslashes and begins
19411 # with a dollar sign (not a hyphen), so the echo should work correctly.
19412 # The option is referenced via a variable to avoid confusing sed.
19413 lt_compile=`echo "$ac_compile" | $SED \
19414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19416 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019418 (eval "$lt_compile" 2>conftest.err)
19419 ac_status=$?
19420 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019422 if (exit $ac_status) && test -s "$ac_outfile"; then
19423 # The compiler can only warn and ignore the option if not recognized
19424 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19428 lt_cv_prog_compiler_pic_works_CXX=yes
19429 fi
19430 fi
19431 $RM conftest*
19432
19433fi
19434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19435$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19436
19437if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19438 case $lt_prog_compiler_pic_CXX in
19439 "" | " "*) ;;
19440 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19441 esac
19442else
19443 lt_prog_compiler_pic_CXX=
19444 lt_prog_compiler_can_build_shared_CXX=no
19445fi
19446
19447fi
19448
19449
19450
cristyda16f162011-02-19 23:52:17 +000019451
19452
cristy73bd4a52010-10-05 11:24:23 +000019453#
19454# Check to make sure the static flag actually works.
19455#
19456wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19458$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019459if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019460 $as_echo_n "(cached) " >&6
19461else
19462 lt_cv_prog_compiler_static_works_CXX=no
19463 save_LDFLAGS="$LDFLAGS"
19464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19467 # The linker can only warn and ignore the option if not recognized
19468 # So say no if there are warnings
19469 if test -s conftest.err; then
19470 # Append any errors to the config.log.
19471 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19474 if diff conftest.exp conftest.er2 >/dev/null; then
19475 lt_cv_prog_compiler_static_works_CXX=yes
19476 fi
19477 else
19478 lt_cv_prog_compiler_static_works_CXX=yes
19479 fi
19480 fi
19481 $RM -r conftest*
19482 LDFLAGS="$save_LDFLAGS"
19483
19484fi
19485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19486$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19487
19488if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19489 :
19490else
19491 lt_prog_compiler_static_CXX=
19492fi
19493
19494
19495
19496
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19498$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019499if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019500 $as_echo_n "(cached) " >&6
19501else
19502 lt_cv_prog_compiler_c_o_CXX=no
19503 $RM -r conftest 2>/dev/null
19504 mkdir conftest
19505 cd conftest
19506 mkdir out
19507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19508
19509 lt_compiler_flag="-o out/conftest2.$ac_objext"
19510 # Insert the option either (1) after the last *FLAGS variable, or
19511 # (2) before a word containing "conftest.", or (3) at the end.
19512 # Note that $ac_compile itself does not contain backslashes and begins
19513 # with a dollar sign (not a hyphen), so the echo should work correctly.
19514 lt_compile=`echo "$ac_compile" | $SED \
19515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19517 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019519 (eval "$lt_compile" 2>out/conftest.err)
19520 ac_status=$?
19521 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19524 then
19525 # The compiler can only warn and ignore the option if not recognized
19526 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19530 lt_cv_prog_compiler_c_o_CXX=yes
19531 fi
19532 fi
19533 chmod u+w . 2>&5
19534 $RM conftest*
19535 # SGI C++ compiler will create directory out/ii_files/ for
19536 # template instantiation
19537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19538 $RM out/* && rmdir out
19539 cd ..
19540 $RM -r conftest
19541 $RM conftest*
19542
19543fi
19544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19545$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19546
19547
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19550$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019551if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019552 $as_echo_n "(cached) " >&6
19553else
19554 lt_cv_prog_compiler_c_o_CXX=no
19555 $RM -r conftest 2>/dev/null
19556 mkdir conftest
19557 cd conftest
19558 mkdir out
19559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19560
19561 lt_compiler_flag="-o out/conftest2.$ac_objext"
19562 # Insert the option either (1) after the last *FLAGS variable, or
19563 # (2) before a word containing "conftest.", or (3) at the end.
19564 # Note that $ac_compile itself does not contain backslashes and begins
19565 # with a dollar sign (not a hyphen), so the echo should work correctly.
19566 lt_compile=`echo "$ac_compile" | $SED \
19567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19569 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019571 (eval "$lt_compile" 2>out/conftest.err)
19572 ac_status=$?
19573 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19576 then
19577 # The compiler can only warn and ignore the option if not recognized
19578 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19582 lt_cv_prog_compiler_c_o_CXX=yes
19583 fi
19584 fi
19585 chmod u+w . 2>&5
19586 $RM conftest*
19587 # SGI C++ compiler will create directory out/ii_files/ for
19588 # template instantiation
19589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19590 $RM out/* && rmdir out
19591 cd ..
19592 $RM -r conftest
19593 $RM conftest*
19594
19595fi
19596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19597$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19598
19599
19600
19601
19602hard_links="nottested"
19603if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19604 # do not overwrite the value of need_locks provided by the user
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19606$as_echo_n "checking if we can lock with hard links... " >&6; }
19607 hard_links=yes
19608 $RM conftest*
19609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19610 touch conftest.a
19611 ln conftest.a conftest.b 2>&5 || hard_links=no
19612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19614$as_echo "$hard_links" >&6; }
19615 if test "$hard_links" = no; then
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19617$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19618 need_locks=warn
19619 fi
19620else
19621 need_locks=no
19622fi
19623
19624
19625
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19627$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19628
19629 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019630 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019631 case $host_os in
19632 aix[4-9]*)
19633 # If we're using GNU nm, then we don't want the "-C" option.
19634 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019635 # Also, AIX nm treats weak defined symbols like other global defined
19636 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019637 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019638 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 +000019639 else
19640 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'
19641 fi
19642 ;;
19643 pw32*)
19644 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019645 ;;
cristy73bd4a52010-10-05 11:24:23 +000019646 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019647 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019648 cl*)
19649 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19650 ;;
cristyda16f162011-02-19 23:52:17 +000019651 *)
19652 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'
19653 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19654 ;;
19655 esac
19656 ;;
cristy73bd4a52010-10-05 11:24:23 +000019657 *)
19658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019659 ;;
cristy73bd4a52010-10-05 11:24:23 +000019660 esac
cristy73bd4a52010-10-05 11:24:23 +000019661
19662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19663$as_echo "$ld_shlibs_CXX" >&6; }
19664test "$ld_shlibs_CXX" = no && can_build_shared=no
19665
19666with_gnu_ld_CXX=$with_gnu_ld
19667
19668
19669
19670
19671
19672
19673#
19674# Do we need to explicitly link libc?
19675#
19676case "x$archive_cmds_need_lc_CXX" in
19677x|xyes)
19678 # Assume -lc should be added
19679 archive_cmds_need_lc_CXX=yes
19680
19681 if test "$enable_shared" = yes && test "$GCC" = yes; then
19682 case $archive_cmds_CXX in
19683 *'~'*)
19684 # FIXME: we may have to deal with multi-command sequences.
19685 ;;
19686 '$CC '*)
19687 # Test whether the compiler implicitly links with -lc since on some
19688 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19689 # to ld, don't add -lc before -lgcc.
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19691$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019692if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019693 $as_echo_n "(cached) " >&6
19694else
19695 $RM conftest*
19696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019697
cristy0c60a692010-11-04 01:09:47 +000019698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019699 (eval $ac_compile) 2>&5
19700 ac_status=$?
19701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19702 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019703 soname=conftest
19704 lib=conftest
19705 libobjs=conftest.$ac_objext
19706 deplibs=
19707 wl=$lt_prog_compiler_wl_CXX
19708 pic_flag=$lt_prog_compiler_pic_CXX
19709 compiler_flags=-v
19710 linker_flags=-v
19711 verstring=
19712 output_objdir=.
19713 libname=conftest
19714 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19715 allow_undefined_flag_CXX=
19716 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 +000019717 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19718 ac_status=$?
19719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19720 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019721 then
19722 lt_cv_archive_cmds_need_lc_CXX=no
19723 else
19724 lt_cv_archive_cmds_need_lc_CXX=yes
19725 fi
19726 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19727 else
19728 cat conftest.err 1>&5
19729 fi
19730 $RM conftest*
19731
19732fi
19733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19734$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19735 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019736 ;;
19737 esac
19738 fi
19739 ;;
19740esac
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
cristy73bd4a52010-10-05 11:24:23 +000019803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19804$as_echo_n "checking dynamic linker characteristics... " >&6; }
19805
19806library_names_spec=
19807libname_spec='lib$name'
19808soname_spec=
19809shrext_cmds=".so"
19810postinstall_cmds=
19811postuninstall_cmds=
19812finish_cmds=
19813finish_eval=
19814shlibpath_var=
19815shlibpath_overrides_runpath=unknown
19816version_type=none
19817dynamic_linker="$host_os ld.so"
19818sys_lib_dlsearch_path_spec="/lib /usr/lib"
19819need_lib_prefix=unknown
19820hardcode_into_libs=no
19821
19822# when you set need_version to no, make sure it does not cause -set_version
19823# flags to be left without arguments
19824need_version=unknown
19825
19826case $host_os in
19827aix3*)
cristy99bd5232011-12-07 14:38:20 +000019828 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19830 shlibpath_var=LIBPATH
19831
19832 # AIX 3 has no versioning support, so we append a major version to the name.
19833 soname_spec='${libname}${release}${shared_ext}$major'
19834 ;;
19835
19836aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019837 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019838 need_lib_prefix=no
19839 need_version=no
19840 hardcode_into_libs=yes
19841 if test "$host_cpu" = ia64; then
19842 # AIX 5 supports IA64
19843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19844 shlibpath_var=LD_LIBRARY_PATH
19845 else
19846 # With GCC up to 2.95.x, collect2 would create an import file
19847 # for dependence libraries. The import file would start with
19848 # the line `#! .'. This would cause the generated library to
19849 # depend on `.', always an invalid library. This was fixed in
19850 # development snapshots of GCC prior to 3.0.
19851 case $host_os in
19852 aix4 | aix4.[01] | aix4.[01].*)
19853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19854 echo ' yes '
19855 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19856 :
19857 else
19858 can_build_shared=no
19859 fi
19860 ;;
19861 esac
19862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19863 # soname into executable. Probably we can add versioning support to
19864 # collect2, so additional links can be useful in future.
19865 if test "$aix_use_runtimelinking" = yes; then
19866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19867 # instead of lib<name>.a to let people know that these are not
19868 # typical AIX shared libraries.
19869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870 else
19871 # We preserve .a as extension for shared libraries through AIX4.2
19872 # and later when we are not doing run time linking.
19873 library_names_spec='${libname}${release}.a $libname.a'
19874 soname_spec='${libname}${release}${shared_ext}$major'
19875 fi
19876 shlibpath_var=LIBPATH
19877 fi
19878 ;;
19879
19880amigaos*)
19881 case $host_cpu in
19882 powerpc)
19883 # Since July 2007 AmigaOS4 officially supports .so libraries.
19884 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19886 ;;
19887 m68k)
19888 library_names_spec='$libname.ixlibrary $libname.a'
19889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019890 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 +000019891 ;;
19892 esac
19893 ;;
19894
19895beos*)
19896 library_names_spec='${libname}${shared_ext}'
19897 dynamic_linker="$host_os ld.so"
19898 shlibpath_var=LIBRARY_PATH
19899 ;;
19900
19901bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019902 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019903 need_version=no
19904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19905 soname_spec='${libname}${release}${shared_ext}$major'
19906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19907 shlibpath_var=LD_LIBRARY_PATH
19908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19910 # the default ld.so.conf also contains /usr/contrib/lib and
19911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19912 # libtool to hard-code these into programs
19913 ;;
19914
19915cygwin* | mingw* | pw32* | cegcc*)
19916 version_type=windows
19917 shrext_cmds=".dll"
19918 need_version=no
19919 need_lib_prefix=no
19920
cristyda16f162011-02-19 23:52:17 +000019921 case $GCC,$cc_basename in
19922 yes,*)
19923 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019924 library_names_spec='$libname.dll.a'
19925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19926 postinstall_cmds='base_file=`basename \${file}`~
19927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19928 dldir=$destdir/`dirname \$dlpath`~
19929 test -d \$dldir || mkdir -p \$dldir~
19930 $install_prog $dir/$dlname \$dldir/$dlname~
19931 chmod a+x \$dldir/$dlname~
19932 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19933 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19934 fi'
19935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19936 dlpath=$dir/\$dldll~
19937 $RM \$dlpath'
19938 shlibpath_overrides_runpath=yes
19939
19940 case $host_os in
19941 cygwin*)
19942 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19943 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019944
cristy73bd4a52010-10-05 11:24:23 +000019945 ;;
19946 mingw* | cegcc*)
19947 # MinGW DLLs use traditional 'lib' prefix
19948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019949 ;;
19950 pw32*)
19951 # pw32 DLLs use 'pw' prefix rather than 'lib'
19952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19953 ;;
19954 esac
cristyda16f162011-02-19 23:52:17 +000019955 dynamic_linker='Win32 ld.exe'
19956 ;;
19957
19958 *,cl*)
19959 # Native MSVC
19960 libname_spec='$name'
19961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19962 library_names_spec='${libname}.dll.lib'
19963
19964 case $build_os in
19965 mingw*)
19966 sys_lib_search_path_spec=
19967 lt_save_ifs=$IFS
19968 IFS=';'
19969 for lt_path in $LIB
19970 do
19971 IFS=$lt_save_ifs
19972 # Let DOS variable expansion print the short 8.3 style file name.
19973 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19974 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19975 done
19976 IFS=$lt_save_ifs
19977 # Convert to MSYS style.
19978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19979 ;;
19980 cygwin*)
19981 # Convert to unix form, then to dos form, then back to unix form
19982 # but this time dos style (no spaces!) so that the unix form looks
19983 # like /cygdrive/c/PROGRA~1:/cygdr...
19984 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19985 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19986 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19987 ;;
19988 *)
19989 sys_lib_search_path_spec="$LIB"
19990 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19991 # It is most probably a Windows format PATH.
19992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19993 else
19994 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19995 fi
19996 # FIXME: find the short name or the path components, as spaces are
19997 # common. (e.g. "Program Files" -> "PROGRA~1")
19998 ;;
19999 esac
20000
20001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20002 postinstall_cmds='base_file=`basename \${file}`~
20003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20004 dldir=$destdir/`dirname \$dlpath`~
20005 test -d \$dldir || mkdir -p \$dldir~
20006 $install_prog $dir/$dlname \$dldir/$dlname'
20007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20008 dlpath=$dir/\$dldll~
20009 $RM \$dlpath'
20010 shlibpath_overrides_runpath=yes
20011 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020012 ;;
20013
20014 *)
cristyda16f162011-02-19 23:52:17 +000020015 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020017 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020018 ;;
20019 esac
cristy73bd4a52010-10-05 11:24:23 +000020020 # FIXME: first we should search . and the directory the executable is in
20021 shlibpath_var=PATH
20022 ;;
20023
20024darwin* | rhapsody*)
20025 dynamic_linker="$host_os dyld"
20026 version_type=darwin
20027 need_lib_prefix=no
20028 need_version=no
20029 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20030 soname_spec='${libname}${release}${major}$shared_ext'
20031 shlibpath_overrides_runpath=yes
20032 shlibpath_var=DYLD_LIBRARY_PATH
20033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20034
20035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20036 ;;
20037
20038dgux*)
cristy99bd5232011-12-07 14:38:20 +000020039 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020040 need_lib_prefix=no
20041 need_version=no
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20044 shlibpath_var=LD_LIBRARY_PATH
20045 ;;
20046
cristy73bd4a52010-10-05 11:24:23 +000020047freebsd* | dragonfly*)
20048 # DragonFly does not have aout. When/if they implement a new
20049 # versioning mechanism, adjust this.
20050 if test -x /usr/bin/objformat; then
20051 objformat=`/usr/bin/objformat`
20052 else
20053 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020054 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020055 *) objformat=elf ;;
20056 esac
20057 fi
20058 version_type=freebsd-$objformat
20059 case $version_type in
20060 freebsd-elf*)
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20062 need_version=no
20063 need_lib_prefix=no
20064 ;;
20065 freebsd-*)
20066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20067 need_version=yes
20068 ;;
20069 esac
20070 shlibpath_var=LD_LIBRARY_PATH
20071 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020072 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020073 shlibpath_overrides_runpath=yes
20074 ;;
20075 freebsd3.[01]* | freebsdelf3.[01]*)
20076 shlibpath_overrides_runpath=yes
20077 hardcode_into_libs=yes
20078 ;;
20079 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20080 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20081 shlibpath_overrides_runpath=no
20082 hardcode_into_libs=yes
20083 ;;
20084 *) # from 4.6 on, and DragonFly
20085 shlibpath_overrides_runpath=yes
20086 hardcode_into_libs=yes
20087 ;;
20088 esac
20089 ;;
20090
20091gnu*)
cristy99bd5232011-12-07 14:38:20 +000020092 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020093 need_lib_prefix=no
20094 need_version=no
20095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20096 soname_spec='${libname}${release}${shared_ext}$major'
20097 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020098 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020099 hardcode_into_libs=yes
20100 ;;
20101
cristy0c60a692010-11-04 01:09:47 +000020102haiku*)
cristy99bd5232011-12-07 14:38:20 +000020103 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020104 need_lib_prefix=no
20105 need_version=no
20106 dynamic_linker="$host_os runtime_loader"
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20108 soname_spec='${libname}${release}${shared_ext}$major'
20109 shlibpath_var=LIBRARY_PATH
20110 shlibpath_overrides_runpath=yes
20111 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20112 hardcode_into_libs=yes
20113 ;;
20114
cristy73bd4a52010-10-05 11:24:23 +000020115hpux9* | hpux10* | hpux11*)
20116 # Give a soname corresponding to the major version so that dld.sl refuses to
20117 # link against other versions.
20118 version_type=sunos
20119 need_lib_prefix=no
20120 need_version=no
20121 case $host_cpu in
20122 ia64*)
20123 shrext_cmds='.so'
20124 hardcode_into_libs=yes
20125 dynamic_linker="$host_os dld.so"
20126 shlibpath_var=LD_LIBRARY_PATH
20127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20129 soname_spec='${libname}${release}${shared_ext}$major'
20130 if test "X$HPUX_IA64_MODE" = X32; then
20131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20132 else
20133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20134 fi
20135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20136 ;;
20137 hppa*64*)
20138 shrext_cmds='.sl'
20139 hardcode_into_libs=yes
20140 dynamic_linker="$host_os dld.sl"
20141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20144 soname_spec='${libname}${release}${shared_ext}$major'
20145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20147 ;;
20148 *)
20149 shrext_cmds='.sl'
20150 dynamic_linker="$host_os dld.sl"
20151 shlibpath_var=SHLIB_PATH
20152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154 soname_spec='${libname}${release}${shared_ext}$major'
20155 ;;
20156 esac
cristy0c60a692010-11-04 01:09:47 +000020157 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020158 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020159 # or fails outright, so override atomically:
20160 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020161 ;;
20162
20163interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020164 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020165 need_lib_prefix=no
20166 need_version=no
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20168 soname_spec='${libname}${release}${shared_ext}$major'
20169 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20170 shlibpath_var=LD_LIBRARY_PATH
20171 shlibpath_overrides_runpath=no
20172 hardcode_into_libs=yes
20173 ;;
20174
20175irix5* | irix6* | nonstopux*)
20176 case $host_os in
20177 nonstopux*) version_type=nonstopux ;;
20178 *)
20179 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020180 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020181 else
20182 version_type=irix
20183 fi ;;
20184 esac
20185 need_lib_prefix=no
20186 need_version=no
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20189 case $host_os in
20190 irix5* | nonstopux*)
20191 libsuff= shlibsuff=
20192 ;;
20193 *)
20194 case $LD in # libtool.m4 will add one of these switches to LD
20195 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20196 libsuff= shlibsuff= libmagic=32-bit;;
20197 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20198 libsuff=32 shlibsuff=N32 libmagic=N32;;
20199 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20200 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20201 *) libsuff= shlibsuff= libmagic=never-match;;
20202 esac
20203 ;;
20204 esac
20205 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20206 shlibpath_overrides_runpath=no
20207 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20208 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20209 hardcode_into_libs=yes
20210 ;;
20211
20212# No shared lib support for Linux oldld, aout, or coff.
20213linux*oldld* | linux*aout* | linux*coff*)
20214 dynamic_linker=no
20215 ;;
20216
cristy99bd5232011-12-07 14:38:20 +000020217# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020218linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020219 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020220 need_lib_prefix=no
20221 need_version=no
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020227
cristy73bd4a52010-10-05 11:24:23 +000020228 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020229 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020230 $as_echo_n "(cached) " >&6
20231else
20232 lt_cv_shlibpath_overrides_runpath=no
20233 save_LDFLAGS=$LDFLAGS
20234 save_libdir=$libdir
20235 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20236 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020238/* end confdefs.h. */
20239
20240int
20241main ()
20242{
20243
20244 ;
20245 return 0;
20246}
20247_ACEOF
20248if ac_fn_cxx_try_link "$LINENO"; then :
20249 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020250 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020251fi
20252fi
20253rm -f core conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020255 LDFLAGS=$save_LDFLAGS
20256 libdir=$save_libdir
20257
20258fi
20259
20260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020261
20262 # This implies no fast_install, which is unacceptable.
20263 # Some rework will be needed to allow for fast_install
20264 # before this can be enabled.
20265 hardcode_into_libs=yes
20266
20267 # Add ABI-specific directories to the system library path.
20268 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20269
20270 # Append ld.so.conf contents to the search path
20271 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020272 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 +000020273 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020274
cristy73bd4a52010-10-05 11:24:23 +000020275 fi
20276
20277 # We used to test for /lib/ld.so.1 and disable shared libraries on
20278 # powerpc, because MkLinux only supported shared libraries with the
20279 # GNU dynamic linker. Since this was broken with cross compilers,
20280 # most powerpc-linux boxes support dynamic linking these days and
20281 # people can always --disable-shared, the test was removed, and we
20282 # assume the GNU/Linux dynamic linker is in use.
20283 dynamic_linker='GNU/Linux ld.so'
20284 ;;
20285
20286netbsd*)
20287 version_type=sunos
20288 need_lib_prefix=no
20289 need_version=no
20290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20293 dynamic_linker='NetBSD (a.out) ld.so'
20294 else
20295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20296 soname_spec='${libname}${release}${shared_ext}$major'
20297 dynamic_linker='NetBSD ld.elf_so'
20298 fi
20299 shlibpath_var=LD_LIBRARY_PATH
20300 shlibpath_overrides_runpath=yes
20301 hardcode_into_libs=yes
20302 ;;
20303
20304newsos6)
cristy99bd5232011-12-07 14:38:20 +000020305 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 shlibpath_overrides_runpath=yes
20309 ;;
20310
20311*nto* | *qnx*)
20312 version_type=qnx
20313 need_lib_prefix=no
20314 need_version=no
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=no
20319 hardcode_into_libs=yes
20320 dynamic_linker='ldqnx.so'
20321 ;;
20322
20323openbsd*)
20324 version_type=sunos
20325 sys_lib_dlsearch_path_spec="/usr/lib"
20326 need_lib_prefix=no
20327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20328 case $host_os in
20329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20330 *) need_version=no ;;
20331 esac
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20336 case $host_os in
20337 openbsd2.[89] | openbsd2.[89].*)
20338 shlibpath_overrides_runpath=no
20339 ;;
20340 *)
20341 shlibpath_overrides_runpath=yes
20342 ;;
20343 esac
20344 else
20345 shlibpath_overrides_runpath=yes
20346 fi
20347 ;;
20348
20349os2*)
20350 libname_spec='$name'
20351 shrext_cmds=".dll"
20352 need_lib_prefix=no
20353 library_names_spec='$libname${shared_ext} $libname.a'
20354 dynamic_linker='OS/2 ld.exe'
20355 shlibpath_var=LIBPATH
20356 ;;
20357
20358osf3* | osf4* | osf5*)
20359 version_type=osf
20360 need_lib_prefix=no
20361 need_version=no
20362 soname_spec='${libname}${release}${shared_ext}$major'
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364 shlibpath_var=LD_LIBRARY_PATH
20365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20367 ;;
20368
20369rdos*)
20370 dynamic_linker=no
20371 ;;
20372
20373solaris*)
cristy99bd5232011-12-07 14:38:20 +000020374 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020375 need_lib_prefix=no
20376 need_version=no
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 shlibpath_var=LD_LIBRARY_PATH
20380 shlibpath_overrides_runpath=yes
20381 hardcode_into_libs=yes
20382 # ldd complains unless libraries are executable
20383 postinstall_cmds='chmod +x $lib'
20384 ;;
20385
20386sunos4*)
20387 version_type=sunos
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20390 shlibpath_var=LD_LIBRARY_PATH
20391 shlibpath_overrides_runpath=yes
20392 if test "$with_gnu_ld" = yes; then
20393 need_lib_prefix=no
20394 fi
20395 need_version=yes
20396 ;;
20397
20398sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020399 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401 soname_spec='${libname}${release}${shared_ext}$major'
20402 shlibpath_var=LD_LIBRARY_PATH
20403 case $host_vendor in
20404 sni)
20405 shlibpath_overrides_runpath=no
20406 need_lib_prefix=no
20407 runpath_var=LD_RUN_PATH
20408 ;;
20409 siemens)
20410 need_lib_prefix=no
20411 ;;
20412 motorola)
20413 need_lib_prefix=no
20414 need_version=no
20415 shlibpath_overrides_runpath=no
20416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20417 ;;
20418 esac
20419 ;;
20420
20421sysv4*MP*)
20422 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020423 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020424 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20425 soname_spec='$libname${shared_ext}.$major'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 fi
20428 ;;
20429
20430sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20431 version_type=freebsd-elf
20432 need_lib_prefix=no
20433 need_version=no
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 shlibpath_var=LD_LIBRARY_PATH
20437 shlibpath_overrides_runpath=yes
20438 hardcode_into_libs=yes
20439 if test "$with_gnu_ld" = yes; then
20440 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20441 else
20442 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20443 case $host_os in
20444 sco3.2v5*)
20445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20446 ;;
20447 esac
20448 fi
20449 sys_lib_dlsearch_path_spec='/usr/lib'
20450 ;;
20451
20452tpf*)
20453 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020454 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020455 need_lib_prefix=no
20456 need_version=no
20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458 shlibpath_var=LD_LIBRARY_PATH
20459 shlibpath_overrides_runpath=no
20460 hardcode_into_libs=yes
20461 ;;
20462
20463uts4*)
cristy99bd5232011-12-07 14:38:20 +000020464 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 ;;
20469
20470*)
20471 dynamic_linker=no
20472 ;;
20473esac
20474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20475$as_echo "$dynamic_linker" >&6; }
20476test "$dynamic_linker" = no && can_build_shared=no
20477
20478variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20479if test "$GCC" = yes; then
20480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20481fi
20482
20483if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20484 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20485fi
20486if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20487 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20488fi
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
cristy0c60a692010-11-04 01:09:47 +000020525
20526
cristy73bd4a52010-10-05 11:24:23 +000020527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20528$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20529hardcode_action_CXX=
20530if test -n "$hardcode_libdir_flag_spec_CXX" ||
20531 test -n "$runpath_var_CXX" ||
20532 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20533
20534 # We can hardcode non-existent directories.
20535 if test "$hardcode_direct_CXX" != no &&
20536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20537 # have to relink, otherwise we might link with an installed library
20538 # when we should be linking with a yet-to-be-installed one
20539 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20540 test "$hardcode_minus_L_CXX" != no; then
20541 # Linking always hardcodes the temporary library directory.
20542 hardcode_action_CXX=relink
20543 else
20544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20545 hardcode_action_CXX=immediate
20546 fi
20547else
20548 # We cannot hardcode anything, or else we can only hardcode existing
20549 # directories.
20550 hardcode_action_CXX=unsupported
20551fi
20552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20553$as_echo "$hardcode_action_CXX" >&6; }
20554
20555if test "$hardcode_action_CXX" = relink ||
20556 test "$inherit_rpath_CXX" = yes; then
20557 # Fast installation is not supported
20558 enable_fast_install=no
20559elif test "$shlibpath_overrides_runpath" = yes ||
20560 test "$enable_shared" = no; then
20561 # Fast installation is not necessary
20562 enable_fast_install=needless
20563fi
20564
20565
20566
20567
20568
20569
20570
20571 fi # test -n "$compiler"
20572
20573 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020574 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020575 LDCXX=$LD
20576 LD=$lt_save_LD
20577 GCC=$lt_save_GCC
20578 with_gnu_ld=$lt_save_with_gnu_ld
20579 lt_cv_path_LDCXX=$lt_cv_path_LD
20580 lt_cv_path_LD=$lt_save_path_LD
20581 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20582 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20583fi # test "$_lt_caught_CXX_error" != yes
20584
20585ac_ext=c
20586ac_cpp='$CPP $CPPFLAGS'
20587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20589ac_compiler_gnu=$ac_cv_c_compiler_gnu
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
cristy99bd5232011-12-07 14:38:20 +000020603
20604
cristy73bd4a52010-10-05 11:24:23 +000020605 ac_config_commands="$ac_config_commands libtool"
20606
20607
20608
20609
20610# Only expand once:
20611
20612
20613
cristy3ed852e2009-09-05 21:47:34 +000020614
20615
20616# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020617
20618
20619
20620
20621
20622
20623
cristy73bd4a52010-10-05 11:24:23 +000020624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20625$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020626if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020627 $as_echo_n "(cached) " >&6
20628else
20629
20630module=yes
20631eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020632module=no
20633eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020634
20635fi
20636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20637$as_echo "$libltdl_cv_shlibext" >&6; }
20638if test -n "$libltdl_cv_shlibext"; then
20639
20640cat >>confdefs.h <<_ACEOF
20641#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20642_ACEOF
20643
20644fi
cristy99bd5232011-12-07 14:38:20 +000020645if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20646
20647cat >>confdefs.h <<_ACEOF
20648#define LT_SHARED_EXT "$libltdl_cv_shrext"
20649_ACEOF
20650
20651fi
cristy73bd4a52010-10-05 11:24:23 +000020652
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20654$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020655if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020656 $as_echo_n "(cached) " >&6
20657else
20658 lt_cv_module_path_var="$shlibpath_var"
20659fi
20660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20661$as_echo "$lt_cv_module_path_var" >&6; }
20662if test -n "$lt_cv_module_path_var"; then
20663
20664cat >>confdefs.h <<_ACEOF
20665#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20666_ACEOF
20667
20668fi
20669
20670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20671$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020672if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020673 $as_echo_n "(cached) " >&6
20674else
20675 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20676fi
20677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20678$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20679if test -n "$lt_cv_sys_dlsearch_path"; then
20680 sys_dlsearch_path=
20681 for dir in $lt_cv_sys_dlsearch_path; do
20682 if test -z "$sys_dlsearch_path"; then
20683 sys_dlsearch_path="$dir"
20684 else
20685 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20686 fi
20687 done
20688
20689cat >>confdefs.h <<_ACEOF
20690#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20691_ACEOF
20692
20693fi
20694
20695
20696LT_DLLOADERS=
20697
20698
20699ac_ext=c
20700ac_cpp='$CPP $CPPFLAGS'
20701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703ac_compiler_gnu=$ac_cv_c_compiler_gnu
20704
20705
20706LIBADD_DLOPEN=
20707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20708$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020709if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020710 $as_echo_n "(cached) " >&6
20711else
20712 ac_func_search_save_LIBS=$LIBS
20713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20714/* end confdefs.h. */
20715
20716/* Override any GCC internal prototype to avoid an error.
20717 Use char because int might match the return type of a GCC
20718 builtin and then its argument prototype would still apply. */
20719#ifdef __cplusplus
20720extern "C"
20721#endif
20722char dlopen ();
20723int
20724main ()
20725{
20726return dlopen ();
20727 ;
20728 return 0;
20729}
20730_ACEOF
20731for ac_lib in '' dl; do
20732 if test -z "$ac_lib"; then
20733 ac_res="none required"
20734 else
20735 ac_res=-l$ac_lib
20736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20737 fi
20738 if ac_fn_c_try_link "$LINENO"; then :
20739 ac_cv_search_dlopen=$ac_res
20740fi
20741rm -f core conftest.err conftest.$ac_objext \
20742 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020743 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020744 break
20745fi
20746done
cristyda16f162011-02-19 23:52:17 +000020747if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020748
20749else
20750 ac_cv_search_dlopen=no
20751fi
20752rm conftest.$ac_ext
20753LIBS=$ac_func_search_save_LIBS
20754fi
20755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20756$as_echo "$ac_cv_search_dlopen" >&6; }
20757ac_res=$ac_cv_search_dlopen
20758if test "$ac_res" != no; then :
20759 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20760
20761$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20762
20763 if test "$ac_cv_search_dlopen" != "none required" ; then
20764 LIBADD_DLOPEN="-ldl"
20765 fi
20766 libltdl_cv_lib_dl_dlopen="yes"
20767 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20768else
20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20770/* end confdefs.h. */
20771#if HAVE_DLFCN_H
20772# include <dlfcn.h>
20773#endif
20774
20775int
20776main ()
20777{
20778dlopen(0, 0);
20779 ;
20780 return 0;
20781}
20782_ACEOF
20783if ac_fn_c_try_link "$LINENO"; then :
20784
20785$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20786
20787 libltdl_cv_func_dlopen="yes"
20788 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20789else
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20791$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020792if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020793 $as_echo_n "(cached) " >&6
20794else
20795 ac_check_lib_save_LIBS=$LIBS
20796LIBS="-lsvld $LIBS"
20797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h. */
20799
20800/* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20803#ifdef __cplusplus
20804extern "C"
20805#endif
20806char dlopen ();
20807int
20808main ()
20809{
20810return dlopen ();
20811 ;
20812 return 0;
20813}
20814_ACEOF
20815if ac_fn_c_try_link "$LINENO"; then :
20816 ac_cv_lib_svld_dlopen=yes
20817else
20818 ac_cv_lib_svld_dlopen=no
20819fi
20820rm -f core conftest.err conftest.$ac_objext \
20821 conftest$ac_exeext conftest.$ac_ext
20822LIBS=$ac_check_lib_save_LIBS
20823fi
20824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20825$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020826if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020827
20828$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20829
20830 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20831 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20832fi
20833
20834fi
20835rm -f core conftest.err conftest.$ac_objext \
20836 conftest$ac_exeext conftest.$ac_ext
20837fi
20838
20839if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20840then
20841 lt_save_LIBS="$LIBS"
20842 LIBS="$LIBS $LIBADD_DLOPEN"
20843 for ac_func in dlerror
20844do :
20845 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020846if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020847 cat >>confdefs.h <<_ACEOF
20848#define HAVE_DLERROR 1
20849_ACEOF
20850
20851fi
20852done
20853
20854 LIBS="$lt_save_LIBS"
20855fi
20856
20857
20858LIBADD_SHL_LOAD=
20859ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020860if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020861
20862$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20863
20864 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20865else
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20867$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020868if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020869 $as_echo_n "(cached) " >&6
20870else
20871 ac_check_lib_save_LIBS=$LIBS
20872LIBS="-ldld $LIBS"
20873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874/* end confdefs.h. */
20875
20876/* Override any GCC internal prototype to avoid an error.
20877 Use char because int might match the return type of a GCC
20878 builtin and then its argument prototype would still apply. */
20879#ifdef __cplusplus
20880extern "C"
20881#endif
20882char shl_load ();
20883int
20884main ()
20885{
20886return shl_load ();
20887 ;
20888 return 0;
20889}
20890_ACEOF
20891if ac_fn_c_try_link "$LINENO"; then :
20892 ac_cv_lib_dld_shl_load=yes
20893else
20894 ac_cv_lib_dld_shl_load=no
20895fi
20896rm -f core conftest.err conftest.$ac_objext \
20897 conftest$ac_exeext conftest.$ac_ext
20898LIBS=$ac_check_lib_save_LIBS
20899fi
20900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20901$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020902if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020903
20904$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20905
20906 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20907 LIBADD_SHL_LOAD="-ldld"
20908fi
20909
20910fi
20911
20912
20913
20914case $host_os in
20915darwin[1567].*)
20916# We only want this for pre-Mac OS X 10.4.
20917 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020918if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020919
20920$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20921
20922 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20923fi
20924
20925 ;;
20926beos*)
20927 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20928 ;;
20929cygwin* | mingw* | os2* | pw32*)
20930 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20931"
cristyda16f162011-02-19 23:52:17 +000020932if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020933 ac_have_decl=1
20934else
20935 ac_have_decl=0
20936fi
20937
20938cat >>confdefs.h <<_ACEOF
20939#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20940_ACEOF
20941
20942 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20943 ;;
20944esac
20945
20946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20947$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020948if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020949 $as_echo_n "(cached) " >&6
20950else
20951 ac_check_lib_save_LIBS=$LIBS
20952LIBS="-ldld $LIBS"
20953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20954/* end confdefs.h. */
20955
20956/* Override any GCC internal prototype to avoid an error.
20957 Use char because int might match the return type of a GCC
20958 builtin and then its argument prototype would still apply. */
20959#ifdef __cplusplus
20960extern "C"
20961#endif
20962char dld_link ();
20963int
20964main ()
20965{
20966return dld_link ();
20967 ;
20968 return 0;
20969}
20970_ACEOF
20971if ac_fn_c_try_link "$LINENO"; then :
20972 ac_cv_lib_dld_dld_link=yes
20973else
20974 ac_cv_lib_dld_dld_link=no
20975fi
20976rm -f core conftest.err conftest.$ac_objext \
20977 conftest$ac_exeext conftest.$ac_ext
20978LIBS=$ac_check_lib_save_LIBS
20979fi
20980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20981$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020982if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020983
20984$as_echo "#define HAVE_DLD 1" >>confdefs.h
20985
20986 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20987fi
20988
20989
20990
20991
20992LT_DLPREOPEN=
20993if test -n "$LT_DLLOADERS"
20994then
20995 for lt_loader in $LT_DLLOADERS; do
20996 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20997 done
20998
20999$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
21000
21001fi
21002
21003
21004LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21005
21006
21007ac_ext=c
21008ac_cpp='$CPP $CPPFLAGS'
21009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21011ac_compiler_gnu=$ac_cv_c_compiler_gnu
21012
21013
21014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21015$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021016if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021017 $as_echo_n "(cached) " >&6
21018else
21019 lt_cv_sys_symbol_underscore=no
21020 cat > conftest.$ac_ext <<_LT_EOF
21021void nm_test_func(){}
21022int main(){nm_test_func;return 0;}
21023_LT_EOF
21024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21025 (eval $ac_compile) 2>&5
21026 ac_status=$?
21027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21028 test $ac_status = 0; }; then
21029 # Now try to grab the symbols.
21030 ac_nlist=conftest.nm
21031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21032 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21033 ac_status=$?
21034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21035 test $ac_status = 0; } && test -s "$ac_nlist"; then
21036 # See whether the symbols have a leading underscore.
21037 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21038 lt_cv_sys_symbol_underscore=yes
21039 else
21040 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21041 :
21042 else
21043 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21044 fi
21045 fi
21046 else
21047 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21048 fi
21049 else
21050 echo "configure: failed program was:" >&5
21051 cat conftest.c >&5
21052 fi
21053 rm -rf conftest*
21054
21055fi
21056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21057$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21058 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21059
21060
21061if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21062 if test x"$libltdl_cv_func_dlopen" = xyes ||
21063 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21065$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021066if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021067 $as_echo_n "(cached) " >&6
21068else
21069 libltdl_cv_need_uscore=unknown
21070 save_LIBS="$LIBS"
21071 LIBS="$LIBS $LIBADD_DLOPEN"
21072 if test "$cross_compiling" = yes; then :
21073 libltdl_cv_need_uscore=cross
21074else
21075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21076 lt_status=$lt_dlunknown
21077 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021078#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021079#include "confdefs.h"
21080
21081#if HAVE_DLFCN_H
21082#include <dlfcn.h>
21083#endif
21084
21085#include <stdio.h>
21086
21087#ifdef RTLD_GLOBAL
21088# define LT_DLGLOBAL RTLD_GLOBAL
21089#else
21090# ifdef DL_GLOBAL
21091# define LT_DLGLOBAL DL_GLOBAL
21092# else
21093# define LT_DLGLOBAL 0
21094# endif
21095#endif
21096
21097/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21098 find out it does not work in some platform. */
21099#ifndef LT_DLLAZY_OR_NOW
21100# ifdef RTLD_LAZY
21101# define LT_DLLAZY_OR_NOW RTLD_LAZY
21102# else
21103# ifdef DL_LAZY
21104# define LT_DLLAZY_OR_NOW DL_LAZY
21105# else
21106# ifdef RTLD_NOW
21107# define LT_DLLAZY_OR_NOW RTLD_NOW
21108# else
21109# ifdef DL_NOW
21110# define LT_DLLAZY_OR_NOW DL_NOW
21111# else
21112# define LT_DLLAZY_OR_NOW 0
21113# endif
21114# endif
21115# endif
21116# endif
21117#endif
21118
cristy0c60a692010-11-04 01:09:47 +000021119/* When -fvisbility=hidden is used, assume the code has been annotated
21120 correspondingly for the symbols needed. */
21121#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021122int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021123#endif
21124
cristyda16f162011-02-19 23:52:17 +000021125int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021126int main ()
21127{
21128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21129 int status = $lt_dlunknown;
21130
21131 if (self)
21132 {
21133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021134 else
21135 {
21136 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21137 else puts (dlerror ());
21138 }
cristy73bd4a52010-10-05 11:24:23 +000021139 /* dlclose (self); */
21140 }
21141 else
21142 puts (dlerror ());
21143
21144 return status;
21145}
21146_LT_EOF
21147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21148 (eval $ac_link) 2>&5
21149 ac_status=$?
21150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21151 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21152 (./conftest; exit; ) >&5 2>/dev/null
21153 lt_status=$?
21154 case x$lt_status in
21155 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21156 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21157 x$lt_dlunknown|x*) ;;
21158 esac
21159 else :
21160 # compilation failed
21161
21162 fi
21163fi
21164rm -fr conftest*
21165
21166 LIBS="$save_LIBS"
21167
21168fi
21169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21170$as_echo "$libltdl_cv_need_uscore" >&6; }
21171 fi
21172fi
21173
21174if test x"$libltdl_cv_need_uscore" = xyes; then
21175
21176$as_echo "#define NEED_USCORE 1" >>confdefs.h
21177
21178fi
21179
21180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21181$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021182if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021183 $as_echo_n "(cached) " >&6
21184else
21185 # PORTME does your system automatically load deplibs for dlopen?
21186 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21187 # For now, we just catch OSes we know something about -- in the
21188 # future, we'll try test this programmatically.
21189 lt_cv_sys_dlopen_deplibs=unknown
21190 case $host_os in
21191 aix3*|aix4.1.*|aix4.2.*)
21192 # Unknown whether this is true for these versions of AIX, but
21193 # we want this `case' here to explicitly catch those versions.
21194 lt_cv_sys_dlopen_deplibs=unknown
21195 ;;
21196 aix[4-9]*)
21197 lt_cv_sys_dlopen_deplibs=yes
21198 ;;
21199 amigaos*)
21200 case $host_cpu in
21201 powerpc)
21202 lt_cv_sys_dlopen_deplibs=no
21203 ;;
21204 esac
21205 ;;
21206 darwin*)
21207 # Assuming the user has installed a libdl from somewhere, this is true
21208 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21209 lt_cv_sys_dlopen_deplibs=yes
21210 ;;
21211 freebsd* | dragonfly*)
21212 lt_cv_sys_dlopen_deplibs=yes
21213 ;;
cristy0c60a692010-11-04 01:09:47 +000021214 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021215 # GNU and its variants, using gnu ld.so (Glibc)
21216 lt_cv_sys_dlopen_deplibs=yes
21217 ;;
21218 hpux10*|hpux11*)
21219 lt_cv_sys_dlopen_deplibs=yes
21220 ;;
21221 interix*)
21222 lt_cv_sys_dlopen_deplibs=yes
21223 ;;
21224 irix[12345]*|irix6.[01]*)
21225 # Catch all versions of IRIX before 6.2, and indicate that we don't
21226 # know how it worked for any of those versions.
21227 lt_cv_sys_dlopen_deplibs=unknown
21228 ;;
21229 irix*)
21230 # The case above catches anything before 6.2, and it's known that
21231 # at 6.2 and later dlopen does load deplibs.
21232 lt_cv_sys_dlopen_deplibs=yes
21233 ;;
21234 netbsd*)
21235 lt_cv_sys_dlopen_deplibs=yes
21236 ;;
21237 openbsd*)
21238 lt_cv_sys_dlopen_deplibs=yes
21239 ;;
21240 osf[1234]*)
21241 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21242 # it did *not* use an RPATH in a shared library to find objects the
21243 # library depends on, so we explicitly say `no'.
21244 lt_cv_sys_dlopen_deplibs=no
21245 ;;
21246 osf5.0|osf5.0a|osf5.1)
21247 # dlopen *does* load deplibs and with the right loader patch applied
21248 # it even uses RPATH in a shared library to search for shared objects
21249 # that the library depends on, but there's no easy way to know if that
21250 # patch is installed. Since this is the case, all we can really
21251 # say is unknown -- it depends on the patch being installed. If
21252 # it is, this changes to `yes'. Without it, it would be `no'.
21253 lt_cv_sys_dlopen_deplibs=unknown
21254 ;;
21255 osf*)
21256 # the two cases above should catch all versions of osf <= 5.1. Read
21257 # the comments above for what we know about them.
21258 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21259 # is used to find them so we can finally say `yes'.
21260 lt_cv_sys_dlopen_deplibs=yes
21261 ;;
21262 qnx*)
21263 lt_cv_sys_dlopen_deplibs=yes
21264 ;;
21265 solaris*)
21266 lt_cv_sys_dlopen_deplibs=yes
21267 ;;
21268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21269 libltdl_cv_sys_dlopen_deplibs=yes
21270 ;;
21271 esac
21272
21273fi
21274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21275$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21276if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21277
21278$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21279
21280fi
21281
21282:
21283
21284for ac_header in argz.h
21285do :
21286 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21287"
cristyda16f162011-02-19 23:52:17 +000021288if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021289 cat >>confdefs.h <<_ACEOF
21290#define HAVE_ARGZ_H 1
21291_ACEOF
21292
21293fi
21294
21295done
21296
21297
21298ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21299# include <argz.h>
21300#endif
21301"
cristyda16f162011-02-19 23:52:17 +000021302if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021303
21304cat >>confdefs.h <<_ACEOF
21305#define HAVE_ERROR_T 1
21306_ACEOF
21307
21308
21309else
21310
21311$as_echo "#define error_t int" >>confdefs.h
21312
21313
21314$as_echo "#define __error_t_defined 1" >>confdefs.h
21315
21316fi
21317
21318
21319ARGZ_H=
21320for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21321 argz_next argz_stringify
21322do :
21323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21324ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021325if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021326 cat >>confdefs.h <<_ACEOF
21327#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21328_ACEOF
21329
21330else
21331 ARGZ_H=argz.h;
21332
21333 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21334
21335fi
21336done
21337
21338
21339if test -z "$ARGZ_H"; then :
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21341$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021342if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021343 $as_echo_n "(cached) " >&6
21344else
21345 case $host_os in #(
21346 *cygwin*)
21347 lt_cv_sys_argz_works=no
21348 if test "$cross_compiling" != no; then
21349 lt_cv_sys_argz_works="guessing no"
21350 else
21351 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21352 save_IFS=$IFS
21353 IFS=-.
21354 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21355 IFS=$save_IFS
21356 lt_os_major=${2-0}
21357 lt_os_minor=${3-0}
21358 lt_os_micro=${4-0}
21359 if test "$lt_os_major" -gt 1 \
21360 || { test "$lt_os_major" -eq 1 \
21361 && { test "$lt_os_minor" -gt 5 \
21362 || { test "$lt_os_minor" -eq 5 \
21363 && test "$lt_os_micro" -gt 24; }; }; }; then
21364 lt_cv_sys_argz_works=yes
21365 fi
21366 fi
21367 ;; #(
21368 *) lt_cv_sys_argz_works=yes ;;
21369 esac
21370fi
21371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21372$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021373 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021374
21375$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21376
21377else
21378 ARGZ_H=argz.h
21379
21380
21381 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21382
21383fi
21384fi
21385
21386
21387
21388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21389$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021390if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021391 $as_echo_n "(cached) " >&6
21392else
21393 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21394 libltdl_cv_preloaded_symbols=yes
21395 else
21396 libltdl_cv_preloaded_symbols=no
21397 fi
21398
21399fi
21400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21401$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21402if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21403
21404$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21405
21406fi
21407
21408# Set options
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420# Check whether --with-included_ltdl was given.
21421if test "${with_included_ltdl+set}" = set; then :
21422 withval=$with_included_ltdl;
21423fi
21424
21425
21426if test "x$with_included_ltdl" != xyes; then
21427 # We are not being forced to use the included libltdl sources, so
21428 # decide whether there is a useful installed version we can use.
21429 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21430
21431"
cristyda16f162011-02-19 23:52:17 +000021432if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021433 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21434 #include <ltdl.h>
21435"
cristyda16f162011-02-19 23:52:17 +000021436if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21438$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021439if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021440 $as_echo_n "(cached) " >&6
21441else
21442 ac_check_lib_save_LIBS=$LIBS
21443LIBS="-lltdl $LIBS"
21444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445/* end confdefs.h. */
21446
21447/* Override any GCC internal prototype to avoid an error.
21448 Use char because int might match the return type of a GCC
21449 builtin and then its argument prototype would still apply. */
21450#ifdef __cplusplus
21451extern "C"
21452#endif
21453char lt_dladvise_preload ();
21454int
21455main ()
21456{
21457return lt_dladvise_preload ();
21458 ;
21459 return 0;
21460}
21461_ACEOF
21462if ac_fn_c_try_link "$LINENO"; then :
21463 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21464else
21465 ac_cv_lib_ltdl_lt_dladvise_preload=no
21466fi
21467rm -f core conftest.err conftest.$ac_objext \
21468 conftest$ac_exeext conftest.$ac_ext
21469LIBS=$ac_check_lib_save_LIBS
21470fi
21471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21472$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021473if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021474 with_included_ltdl=no
21475else
21476 with_included_ltdl=yes
21477fi
21478
21479else
21480 with_included_ltdl=yes
21481fi
21482
21483else
21484 with_included_ltdl=yes
21485fi
21486
21487
21488fi
21489
21490
21491
21492
21493# Check whether --with-ltdl_include was given.
21494if test "${with_ltdl_include+set}" = set; then :
21495 withval=$with_ltdl_include;
21496fi
21497
21498
21499if test -n "$with_ltdl_include"; then
21500 if test -f "$with_ltdl_include/ltdl.h"; then :
21501 else
cristy98dddb52010-11-04 00:30:15 +000021502 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021503 fi
21504else
21505 with_ltdl_include=no
21506fi
21507
21508
21509# Check whether --with-ltdl_lib was given.
21510if test "${with_ltdl_lib+set}" = set; then :
21511 withval=$with_ltdl_lib;
21512fi
21513
21514
21515if test -n "$with_ltdl_lib"; then
21516 if test -f "$with_ltdl_lib/libltdl.la"; then :
21517 else
cristy98dddb52010-11-04 00:30:15 +000021518 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021519 fi
21520else
21521 with_ltdl_lib=no
21522fi
21523
21524case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21525 ,yes,no,no,)
21526 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021527 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021528 "") enable_ltdl_convenience=yes
21529 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21530esac
21531LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21532LTDLDEPS=$LIBLTDL
21533LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21534
21535
21536
21537
21538
21539# For backwards non-gettext consistent compatibility...
21540INCLTDL="$LTDLINCL"
21541
21542
21543 ;;
21544 ,no,no,no,)
21545 # If the included ltdl is not to be used, then use the
21546 # preinstalled libltdl we found.
21547
21548$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21549
21550 LIBLTDL=-lltdl
21551 LTDLDEPS=
21552 LTDLINCL=
21553 ;;
21554 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021555 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021556 ;;
21557 *) with_included_ltdl=no
21558 LIBLTDL="-L$with_ltdl_lib -lltdl"
21559 LTDLDEPS=
21560 LTDLINCL="-I$with_ltdl_include"
21561 ;;
21562esac
21563INCLTDL="$LTDLINCL"
21564
21565# Report our decision...
21566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21567$as_echo_n "checking where to find libltdl headers... " >&6; }
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21569$as_echo "$LTDLINCL" >&6; }
21570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21571$as_echo_n "checking where to find libltdl library... " >&6; }
21572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21573$as_echo "$LIBLTDL" >&6; }
21574
21575
21576
21577# Check whether --enable-ltdl-install was given.
21578if test "${enable_ltdl_install+set}" = set; then :
21579 enableval=$enable_ltdl_install;
21580fi
21581
21582
21583case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21584 *yes*) ;;
21585 *) enable_ltdl_convenience=yes ;;
21586esac
21587
21588 if test x"${enable_ltdl_install-no}" != xno; then
21589 INSTALL_LTDL_TRUE=
21590 INSTALL_LTDL_FALSE='#'
21591else
21592 INSTALL_LTDL_TRUE='#'
21593 INSTALL_LTDL_FALSE=
21594fi
21595
21596 if test x"${enable_ltdl_convenience-no}" != xno; then
21597 CONVENIENCE_LTDL_TRUE=
21598 CONVENIENCE_LTDL_FALSE='#'
21599else
21600 CONVENIENCE_LTDL_TRUE='#'
21601 CONVENIENCE_LTDL_FALSE=
21602fi
21603
21604
21605
21606
21607
21608
cristy73bd4a52010-10-05 11:24:23 +000021609# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21610# the user used. This is so that ltdl.h can pick up the parent projects
21611# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21612# definitions required by ltdl.c.
21613# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21614
21615
21616
21617for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21618do :
21619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21620ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21621"
cristy98dddb52010-11-04 00:30:15 +000021622if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021623 cat >>confdefs.h <<_ACEOF
21624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21625_ACEOF
21626
21627fi
21628
21629done
21630
21631
21632for ac_func in closedir opendir readdir
21633do :
21634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21635ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021636if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021637 cat >>confdefs.h <<_ACEOF
21638#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21639_ACEOF
21640
21641else
21642
21643
21644 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21645
21646fi
21647done
21648
21649for ac_func in strlcat strlcpy
21650do :
21651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21652ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021653if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021654 cat >>confdefs.h <<_ACEOF
21655#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21656_ACEOF
21657
21658else
21659
21660
21661 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21662
21663fi
21664done
21665
21666
21667
21668cat >>confdefs.h <<_ACEOF
21669#define LT_LIBEXT "$libext"
21670_ACEOF
21671
21672
cristyda16f162011-02-19 23:52:17 +000021673name=
21674eval "lt_libprefix=\"$libname_spec\""
21675
21676cat >>confdefs.h <<_ACEOF
21677#define LT_LIBPREFIX "$lt_libprefix"
21678_ACEOF
21679
21680
cristy73bd4a52010-10-05 11:24:23 +000021681name=ltdl
cristyda16f162011-02-19 23:52:17 +000021682eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021683
21684
21685
21686
21687
21688
21689
21690
21691# Only expand once:
21692
21693
cristy3ed852e2009-09-05 21:47:34 +000021694
21695# Check to see if building shared libraries
21696libtool_build_shared_libs='no'
21697if test "$enable_shared" = 'yes'; then
21698 libtool_build_shared_libs='yes'
21699fi
21700
21701# Check to see if building static libraries
21702libtool_build_static_libs='no'
21703if test "$enable_static" = 'yes'; then
21704 libtool_build_static_libs='yes'
21705fi
21706
cristy73bd4a52010-10-05 11:24:23 +000021707 if test "${libtool_build_shared_libs}" = 'yes'; then
21708 WITH_SHARED_LIBS_TRUE=
21709 WITH_SHARED_LIBS_FALSE='#'
21710else
21711 WITH_SHARED_LIBS_TRUE='#'
21712 WITH_SHARED_LIBS_FALSE=
21713fi
21714
cristy3ed852e2009-09-05 21:47:34 +000021715#
21716# Enable support for building loadable modules
21717#
21718
21719# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021720if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 withval=$with_modules; with_modules=$withval
21722else
cristy5a1cefd2010-01-06 20:42:35 +000021723 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021724fi
21725
21726
21727# Only allow building loadable modules if we are building shared libraries
21728if test "$with_modules" != 'no' ; then
21729 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021730 { $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 +000021731$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21732 with_modules='no'
21733 fi
21734fi
21735if test "$with_modules" != 'no'; then
21736
cristy8b350f62009-11-15 23:12:43 +000021737$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021738
21739fi
cristy73bd4a52010-10-05 11:24:23 +000021740 if test "$with_modules" != 'no'; then
21741 WITH_MODULES_TRUE=
21742 WITH_MODULES_FALSE='#'
21743else
21744 WITH_MODULES_TRUE='#'
21745 WITH_MODULES_FALSE=
21746fi
21747
cristy3ed852e2009-09-05 21:47:34 +000021748
21749# Enable building/use of libltdl if we are building shared libraries regardless
21750# of whether modules are built or not.
21751with_ltdl='no'
21752if test "$libtool_build_shared_libs" != 'no'; then
21753 with_ltdl='yes'
21754fi
21755
cristy73bd4a52010-10-05 11:24:23 +000021756 if test "$with_ltdl" != 'no'; then
21757 WITH_LTDL_TRUE=
21758 WITH_LTDL_FALSE='#'
21759else
21760 WITH_LTDL_TRUE='#'
21761 WITH_LTDL_FALSE=
21762fi
21763
cristy3ed852e2009-09-05 21:47:34 +000021764if test "$with_ltdl" != 'no'; then
21765
cristy8b350f62009-11-15 23:12:43 +000021766$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021767
21768
21769 # Set DLLDFLAGS
21770 if test X"$enable_shared" = Xyes; then
21771 DLLDFLAGS=-export-dynamic
21772
21773 fi
21774fi
21775
21776# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021777# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021778# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021779if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021780 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21781else
21782 enable_delegate_build='no'
21783fi
21784
21785
21786# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021787if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021788 enableval=$enable_deprecated; enable_deprecated=$enableval
21789else
21790 enable_deprecated='no'
21791fi
21792
21793
21794if test "$enable_deprecated" = 'yes'; then
21795
cristy8b350f62009-11-15 23:12:43 +000021796$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021797
21798else
21799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21800fi
21801
21802# Build a version of ImageMagick which operates uninstalled.
21803# Used to build distributions located via MAGICK_HOME / executable path
21804# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021805if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021806 enableval=$enable_installed; enable_installed=$enableval
21807else
21808 enable_installed='yes'
21809fi
21810
21811
21812if test "$enable_installed" = 'yes'; then
21813
cristy8b350f62009-11-15 23:12:43 +000021814$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021815
21816else
21817 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21818fi
21819
21820# Permit enciphering and deciphering image pixels.
21821# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021822if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021823 enableval=$enable_cipher; enable_cipher=$enableval
21824else
21825 enable_cipher='yes'
21826fi
21827
21828
21829if test "$enable_cipher" = 'yes'; then
21830
cristy8b350f62009-11-15 23:12:43 +000021831$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021832
21833fi
21834
cristy6e3607c2011-09-13 13:59:17 +000021835# Build a zero-configuration version of ImageMagick.
21836# Check whether --enable-zero-configuration was given.
21837if test "${enable_zero_configuration+set}" = set; then :
21838 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021839else
cristy6e3607c2011-09-13 13:59:17 +000021840 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021841fi
21842
21843
cristy6e3607c2011-09-13 13:59:17 +000021844if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021845
cristy6e3607c2011-09-13 13:59:17 +000021846$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021847
cristy81af5702011-09-13 14:20:58 +000021848 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021849fi
21850
21851# Build a high dynamic range version of ImageMagick.
21852# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021853if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021854 enableval=$enable_hdri; enable_hdri=$enableval
21855else
cristy191c0b72012-08-12 16:29:52 +000021856 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021857fi
21858
21859
21860MAGICK_HDRI=""
21861if test "$enable_hdri" = 'yes'; then
21862 MAGICK_HDRI="HDRI"
21863
cristy8b350f62009-11-15 23:12:43 +000021864$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021865
cristyfd9dcd42010-08-08 18:07:02 +000021866 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021867fi
21868
cristy3ed852e2009-09-05 21:47:34 +000021869# Build a version of ImageMagick with assert statements.
21870# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021871if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021872 enableval=$enable_assert; enable_assert=$enableval
21873else
21874 enable_assert='yes'
21875fi
21876
21877
21878if test "$enable_assert" = 'no'; then
21879
cristy8b350f62009-11-15 23:12:43 +000021880$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021881
21882fi
21883
cristya448bd22011-10-14 12:38:13 +000021884# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021885
21886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21887$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21888 # Check whether --enable-maintainer-mode was given.
21889if test "${enable_maintainer_mode+set}" = set; then :
21890 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21891else
21892 USE_MAINTAINER_MODE=no
21893fi
21894
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21896$as_echo "$USE_MAINTAINER_MODE" >&6; }
21897 if test $USE_MAINTAINER_MODE = yes; then
21898 MAINTAINER_MODE_TRUE=
21899 MAINTAINER_MODE_FALSE='#'
21900else
21901 MAINTAINER_MODE_TRUE='#'
21902 MAINTAINER_MODE_FALSE=
21903fi
21904
21905 MAINT=$MAINTAINER_MODE_TRUE
21906
21907
cristy3ed852e2009-09-05 21:47:34 +000021908
cristy3ed852e2009-09-05 21:47:34 +000021909# Enable ccmalloc memory debugging support
21910# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021911if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021912 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21913else
21914 enable_ccmalloc='no'
21915fi
21916
21917
21918# Enable Electric Fence memory debugging support
21919# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021920if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021921 enableval=$enable_efence; enable_efence=$enableval
21922else
21923 enable_efence='no'
21924fi
21925
21926
21927# Enable prof-based profiling support
21928# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021929if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021930 enableval=$enable_prof; enable_prof=$enableval
21931else
21932 enable_prof='no'
21933fi
21934
21935
21936# Enable gprof-based profiling support
21937# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021938if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021939 enableval=$enable_gprof; enable_gprof=$enableval
21940else
21941 enable_gprof='no'
21942fi
21943
21944
21945# Enable gcov-based profiling support
21946# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021947if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021948 enableval=$enable_gcov; enable_gcov=$enableval
21949else
21950 enable_gcov='no'
21951fi
21952
21953
21954enable_profiling='no'
21955if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21956 enable_profiling='yes'
21957 if test "$libtool_build_shared_libs" = 'yes'; then
21958 echo "Warning: Can not profile code using shared libraries"
21959 fi
21960fi
21961
21962# Magick API method prefix
21963
21964# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021965if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021966 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021967else
cristyfc3d0222012-02-07 15:05:57 +000021968 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021969fi
21970
21971
cristyfc3d0222012-02-07 15:05:57 +000021972if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021973
21974cat >>confdefs.h <<_ACEOF
21975#define NAMESPACE_PREFIX $with_method_prefix
21976_ACEOF
21977
cristyfc3d0222012-02-07 15:05:57 +000021978 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021979fi
21980
cristy71d8c202012-03-20 17:05:01 +000021981# Enable legacy support (default no)
21982# Check whether --enable-legacy-support was given.
21983if test "${enable_legacy_support+set}" = set; then :
21984 enableval=$enable_legacy_support; with_legacy_support=$enableval
21985else
21986 with_legacy_support='no'
21987fi
21988
21989 if test "$with_legacy_support" != 'no'; then
21990 LEGACY_SUPPORT_TRUE=
21991 LEGACY_SUPPORT_FALSE='#'
21992else
21993 LEGACY_SUPPORT_TRUE='#'
21994 LEGACY_SUPPORT_FALSE=
21995fi
21996
21997
cristy3ed852e2009-09-05 21:47:34 +000021998# Number of bits in a Quantum
21999
22000# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022001if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022002 withval=$with_quantum_depth; with_quantum_depth=$withval
22003else
22004 with_quantum_depth=16
22005fi
22006
22007
22008if test "$with_quantum_depth" != '8'; then
22009 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22010fi
22011
22012case "${with_quantum_depth}" in
22013 8 ) ;;
22014 16 ) ;;
22015 32 ) ;;
22016 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022017 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022018esac
22019QUANTUM_DEPTH="$with_quantum_depth"
22020
22021cat >>confdefs.h <<_ACEOF
22022#define QUANTUM_DEPTH $QUANTUM_DEPTH
22023_ACEOF
22024
22025
22026# Set pixel cache threshold
22027
22028# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022029if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022030 withval=$with_cache; with_cache=$withval
22031else
22032 with_cache=''
22033fi
22034
22035
22036if test "$with_cache" != ''; then
22037
22038cat >>confdefs.h <<_ACEOF
22039#define PixelCacheThreshold $with_cache
22040_ACEOF
22041
22042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22043fi
22044
22045# Disable/Enable support for full delegate paths
22046
22047# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022048if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 withval=$with_frozenpaths; with_frozenpaths=$withval
22050else
22051 with_frozenpaths='no'
22052fi
22053
22054
22055# Enable build/install of Magick++
22056
22057# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022058if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022059 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22060else
22061 with_magick_plus_plus='yes'
22062fi
22063
22064
cristy3a75f062012-09-08 23:29:40 +000022065# Encode the this name into the shared library.
22066
22067# Check whether --with-package-release-name was given.
22068if test "${with_package_release_name+set}" = set; then :
22069 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22070fi
22071
22072
22073
cristy3ed852e2009-09-05 21:47:34 +000022074# Disable build/install of PerlMagick.
22075
22076# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022077if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 withval=$with_perl; with_perl=$withval
22079else
cristyb5f4e2f2010-04-25 00:49:11 +000022080 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022081fi
22082
22083
22084# Options to pass when configuring PerlMagick
22085
22086# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022087if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022088 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022089fi
22090
22091
cristy3ed852e2009-09-05 21:47:34 +000022092
22093# Enable umem, object-caching memory allocation library.
22094
22095# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022096if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022097 withval=$with_umem; with_umem=$withval
22098else
22099 with_umem='no'
22100fi
22101
22102if test "$with_umem" != 'yes' ; then
22103 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22104fi
22105
22106#
22107# Specify path to shared libstdc++ if not in normal location
22108#
22109
22110# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022111if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022112 withval=$with_libstdc; with_libstdc=$withval
22113else
22114 with_libstdc=''
22115fi
22116
22117
22118if test "$with_libstdc" != ''; then
22119 if test -d "$with_libstdc"; then
22120 LIBSTDCLDFLAGS="-L$with_libstdc"
22121 fi
22122fi
22123
22124
22125# Does gcc required -traditional?
22126if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022128$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022129if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022130 $as_echo_n "(cached) " >&6
22131else
22132 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022134/* end confdefs.h. */
22135#include <sgtty.h>
22136Autoconf TIOCGETP
22137_ACEOF
22138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022139 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 ac_cv_prog_gcc_traditional=yes
22141else
22142 ac_cv_prog_gcc_traditional=no
22143fi
22144rm -f conftest*
22145
22146
22147 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022149/* end confdefs.h. */
22150#include <termio.h>
22151Autoconf TCGETA
22152_ACEOF
22153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022154 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 ac_cv_prog_gcc_traditional=yes
22156fi
22157rm -f conftest*
22158
22159 fi
22160fi
cristy8b350f62009-11-15 23:12:43 +000022161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022162$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22163 if test $ac_cv_prog_gcc_traditional = yes; then
22164 CC="$CC -traditional"
22165 fi
22166fi
22167
22168
22169########
22170#
22171# Set defines required to build DLLs and modules using MinGW
22172#
22173########
22174# These options are set for multi-thread DLL module build
22175# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22176# module: _DLL
22177# executable/Magick++: _DLL _MAGICKMOD_
22178MODULE_EXTRA_CPPFLAGS=''
22179LIBRARY_EXTRA_CPPFLAGS=''
22180if test "${native_win32_build}" = 'yes'; then
22181 if test "${libtool_build_shared_libs}" = 'yes'; then
22182 CPPFLAGS="$CPPFLAGS -D_DLL"
22183 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22184 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22185 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22186 if test "$with_modules" = 'yes'; then
22187 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22188 else
22189 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22190 fi
22191 else
22192 CPPFLAGS="$CPPFLAGS -D_LIB"
22193 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22194 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22195 fi
22196 if test "$with_threads" = 'yes'; then
22197 CPPFLAGS="$CPPFLAGS -D_MT"
22198 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22199 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22200 fi
22201fi
22202
22203
22204
22205# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022207$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022208if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022209 $as_echo_n "(cached) " >&6
22210else
cristy8b350f62009-11-15 23:12:43 +000022211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022212/* end confdefs.h. */
22213#include <stdlib.h>
22214#include <stdarg.h>
22215#include <string.h>
22216#include <float.h>
22217
22218int
22219main ()
22220{
22221
22222 ;
22223 return 0;
22224}
22225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022227 ac_cv_header_stdc=yes
22228else
cristy8b350f62009-11-15 23:12:43 +000022229 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022230fi
cristy3ed852e2009-09-05 21:47:34 +000022231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232
22233if test $ac_cv_header_stdc = yes; then
22234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022236/* end confdefs.h. */
22237#include <string.h>
22238
22239_ACEOF
22240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022241 $EGREP "memchr" >/dev/null 2>&1; then :
22242
cristy3ed852e2009-09-05 21:47:34 +000022243else
22244 ac_cv_header_stdc=no
22245fi
22246rm -f conftest*
22247
22248fi
22249
22250if test $ac_cv_header_stdc = yes; then
22251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022253/* end confdefs.h. */
22254#include <stdlib.h>
22255
22256_ACEOF
22257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022258 $EGREP "free" >/dev/null 2>&1; then :
22259
cristy3ed852e2009-09-05 21:47:34 +000022260else
22261 ac_cv_header_stdc=no
22262fi
22263rm -f conftest*
22264
22265fi
22266
22267if test $ac_cv_header_stdc = yes; then
22268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022269 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022270 :
22271else
cristy8b350f62009-11-15 23:12:43 +000022272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022273/* end confdefs.h. */
22274#include <ctype.h>
22275#include <stdlib.h>
22276#if ((' ' & 0x0FF) == 0x020)
22277# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22278# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22279#else
22280# define ISLOWER(c) \
22281 (('a' <= (c) && (c) <= 'i') \
22282 || ('j' <= (c) && (c) <= 'r') \
22283 || ('s' <= (c) && (c) <= 'z'))
22284# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22285#endif
22286
22287#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22288int
22289main ()
22290{
22291 int i;
22292 for (i = 0; i < 256; i++)
22293 if (XOR (islower (i), ISLOWER (i))
22294 || toupper (i) != TOUPPER (i))
22295 return 2;
22296 return 0;
22297}
22298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022299if ac_fn_c_try_run "$LINENO"; then :
22300
cristy3ed852e2009-09-05 21:47:34 +000022301else
cristy8b350f62009-11-15 23:12:43 +000022302 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022303fi
cristy8b350f62009-11-15 23:12:43 +000022304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22305 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022306fi
22307
cristy3ed852e2009-09-05 21:47:34 +000022308fi
22309fi
cristy8b350f62009-11-15 23:12:43 +000022310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022311$as_echo "$ac_cv_header_stdc" >&6; }
22312if test $ac_cv_header_stdc = yes; then
22313
cristy8b350f62009-11-15 23:12:43 +000022314$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022315
22316fi
22317
22318if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022319 { $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 +000022320 header files. Compilation cannot proceed. Please install the ANSI C
22321 headers and rerun this script." >&5
22322$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22323 header files. Compilation cannot proceed. Please install the ANSI C
22324 headers and rerun this script." >&2;};
22325fi
cristya0b81c32010-01-22 02:54:33 +000022326
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22328$as_echo_n "checking whether to enable assertions... " >&6; }
22329 # Check whether --enable-assert was given.
22330if test "${enable_assert+set}" = set; then :
22331 enableval=$enable_assert; ac_enable_assert=$enableval
22332 if test "x$enableval" = xno; then :
22333
22334$as_echo "#define NDEBUG 1" >>confdefs.h
22335
22336elif test "x$enableval" != xyes; then :
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22338$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22339 ac_enable_assert=yes
22340fi
22341else
22342 ac_enable_assert=yes
22343fi
22344
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22346$as_echo "$ac_enable_assert" >&6; }
22347
cristy3ed852e2009-09-05 21:47:34 +000022348ac_header_dirent=no
22349for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22350 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022352$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022353if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022354 $as_echo_n "(cached) " >&6
22355else
cristy8b350f62009-11-15 23:12:43 +000022356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022357/* end confdefs.h. */
22358#include <sys/types.h>
22359#include <$ac_hdr>
22360
22361int
22362main ()
22363{
22364if ((DIR *) 0)
22365return 0;
22366 ;
22367 return 0;
22368}
22369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022370if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022371 eval "$as_ac_Header=yes"
22372else
cristy8b350f62009-11-15 23:12:43 +000022373 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022374fi
cristy3ed852e2009-09-05 21:47:34 +000022375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376fi
cristy8b350f62009-11-15 23:12:43 +000022377eval ac_res=\$$as_ac_Header
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022379$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022380if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022381 cat >>confdefs.h <<_ACEOF
22382#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22383_ACEOF
22384
22385ac_header_dirent=$ac_hdr; break
22386fi
22387
22388done
22389# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22390if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022392$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022393if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022394 $as_echo_n "(cached) " >&6
22395else
22396 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022398/* end confdefs.h. */
22399
22400/* Override any GCC internal prototype to avoid an error.
22401 Use char because int might match the return type of a GCC
22402 builtin and then its argument prototype would still apply. */
22403#ifdef __cplusplus
22404extern "C"
22405#endif
22406char opendir ();
22407int
22408main ()
22409{
22410return opendir ();
22411 ;
22412 return 0;
22413}
22414_ACEOF
22415for ac_lib in '' dir; do
22416 if test -z "$ac_lib"; then
22417 ac_res="none required"
22418 else
22419 ac_res=-l$ac_lib
22420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22421 fi
cristy8b350f62009-11-15 23:12:43 +000022422 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022423 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022424fi
cristy8b350f62009-11-15 23:12:43 +000022425rm -f core conftest.err conftest.$ac_objext \
22426 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022427 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022428 break
22429fi
22430done
cristyda16f162011-02-19 23:52:17 +000022431if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022432
cristy3ed852e2009-09-05 21:47:34 +000022433else
22434 ac_cv_search_opendir=no
22435fi
22436rm conftest.$ac_ext
22437LIBS=$ac_func_search_save_LIBS
22438fi
cristy8b350f62009-11-15 23:12:43 +000022439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022440$as_echo "$ac_cv_search_opendir" >&6; }
22441ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022442if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22444
22445fi
22446
22447else
cristy8b350f62009-11-15 23:12:43 +000022448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022449$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022450if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022451 $as_echo_n "(cached) " >&6
22452else
22453 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022455/* end confdefs.h. */
22456
22457/* Override any GCC internal prototype to avoid an error.
22458 Use char because int might match the return type of a GCC
22459 builtin and then its argument prototype would still apply. */
22460#ifdef __cplusplus
22461extern "C"
22462#endif
22463char opendir ();
22464int
22465main ()
22466{
22467return opendir ();
22468 ;
22469 return 0;
22470}
22471_ACEOF
22472for ac_lib in '' x; do
22473 if test -z "$ac_lib"; then
22474 ac_res="none required"
22475 else
22476 ac_res=-l$ac_lib
22477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22478 fi
cristy8b350f62009-11-15 23:12:43 +000022479 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022480 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022481fi
cristy8b350f62009-11-15 23:12:43 +000022482rm -f core conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022484 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022485 break
22486fi
22487done
cristyda16f162011-02-19 23:52:17 +000022488if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022489
cristy3ed852e2009-09-05 21:47:34 +000022490else
22491 ac_cv_search_opendir=no
22492fi
22493rm conftest.$ac_ext
22494LIBS=$ac_func_search_save_LIBS
22495fi
cristy8b350f62009-11-15 23:12:43 +000022496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022497$as_echo "$ac_cv_search_opendir" >&6; }
22498ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022499if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22501
22502fi
22503
22504fi
22505
22506
22507# Check additional headers
cristy58945e42012-09-04 14:33:54 +000022508for 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 sun_prefetch.h stdarg.h sys/ipc.h sys/mman.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 +000022509do :
22510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22511ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022513 cat >>confdefs.h <<_ACEOF
22514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22515_ACEOF
22516
22517fi
22518
22519done
22520
22521
22522########
22523#
22524# Checks for typedefs, structures, and compiler characteristics.
22525#
22526########
22527
cristy8b350f62009-11-15 23:12:43 +000022528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022529$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022530if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022531 $as_echo_n "(cached) " >&6
22532else
cristy8b350f62009-11-15 23:12:43 +000022533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022534/* end confdefs.h. */
22535
cristy14fefe52012-05-21 00:59:18 +000022536 #include <stdbool.h>
22537 #ifndef bool
22538 "error: bool is not defined"
22539 #endif
22540 #ifndef false
22541 "error: false is not defined"
22542 #endif
22543 #if false
22544 "error: false is not 0"
22545 #endif
22546 #ifndef true
22547 "error: true is not defined"
22548 #endif
22549 #if true != 1
22550 "error: true is not 1"
22551 #endif
22552 #ifndef __bool_true_false_are_defined
22553 "error: __bool_true_false_are_defined is not defined"
22554 #endif
cristy3ed852e2009-09-05 21:47:34 +000022555
cristy14fefe52012-05-21 00:59:18 +000022556 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022557
cristy14fefe52012-05-21 00:59:18 +000022558 char a[true == 1 ? 1 : -1];
22559 char b[false == 0 ? 1 : -1];
22560 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22561 char d[(bool) 0.5 == true ? 1 : -1];
22562 /* See body of main program for 'e'. */
22563 char f[(_Bool) 0.0 == false ? 1 : -1];
22564 char g[true];
22565 char h[sizeof (_Bool)];
22566 char i[sizeof s.t];
22567 enum { j = false, k = true, l = false * true, m = true * 256 };
22568 /* The following fails for
22569 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22570 _Bool n[m];
22571 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22572 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22573 /* Catch a bug in an HP-UX C compiler. See
22574 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22575 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22576 */
22577 _Bool q = true;
22578 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022579
22580int
22581main ()
22582{
22583
cristy14fefe52012-05-21 00:59:18 +000022584 bool e = &s;
22585 *pq |= q;
22586 *pq |= ! q;
22587 /* Refer to every declared value, to avoid compiler optimizations. */
22588 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22589 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022590
22591 ;
22592 return 0;
22593}
22594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022595if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022596 ac_cv_header_stdbool_h=yes
22597else
cristy8b350f62009-11-15 23:12:43 +000022598 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022599fi
cristy3ed852e2009-09-05 21:47:34 +000022600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601fi
cristy8b350f62009-11-15 23:12:43 +000022602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022603$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022604 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022605if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022606
22607cat >>confdefs.h <<_ACEOF
22608#define HAVE__BOOL 1
22609_ACEOF
22610
22611
22612fi
22613
cristy14fefe52012-05-21 00:59:18 +000022614
cristy3ed852e2009-09-05 21:47:34 +000022615if test $ac_cv_header_stdbool_h = yes; then
22616
cristy8b350f62009-11-15 23:12:43 +000022617$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022618
22619fi
22620
cristy8b350f62009-11-15 23:12:43 +000022621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022622$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022623if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022624 $as_echo_n "(cached) " >&6
22625else
cristy8b350f62009-11-15 23:12:43 +000022626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022627/* end confdefs.h. */
22628
22629int
22630main ()
22631{
22632
22633volatile int x;
22634int * volatile y = (int *) 0;
22635return !x && !y;
22636 ;
22637 return 0;
22638}
22639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022640if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022641 ac_cv_c_volatile=yes
22642else
cristy8b350f62009-11-15 23:12:43 +000022643 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022644fi
cristy3ed852e2009-09-05 21:47:34 +000022645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646fi
cristy8b350f62009-11-15 23:12:43 +000022647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022648$as_echo "$ac_cv_c_volatile" >&6; }
22649if test $ac_cv_c_volatile = no; then
22650
cristy8b350f62009-11-15 23:12:43 +000022651$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022652
22653fi
22654
cristy8b350f62009-11-15 23:12:43 +000022655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022656$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022657if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022658 $as_echo_n "(cached) " >&6
22659else
cristy8b350f62009-11-15 23:12:43 +000022660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022661/* end confdefs.h. */
22662#define x(y) #y
22663
22664char *s = x(teststring);
22665_ACEOF
22666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022667 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022668 ac_cv_c_stringize=no
22669else
22670 ac_cv_c_stringize=yes
22671fi
22672rm -f conftest*
22673
22674fi
cristy8b350f62009-11-15 23:12:43 +000022675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022676$as_echo "$ac_cv_c_stringize" >&6; }
22677if test $ac_cv_c_stringize = yes; then
22678
cristy8b350f62009-11-15 23:12:43 +000022679$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022680
22681fi
22682
cristy8b350f62009-11-15 23:12:43 +000022683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022684$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022685if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022686 $as_echo_n "(cached) " >&6
22687else
cristy8b350f62009-11-15 23:12:43 +000022688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022689/* end confdefs.h. */
22690#include <sys/types.h>
22691#include <sys/stat.h>
22692
22693#if defined S_ISBLK && defined S_IFDIR
22694extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22695#endif
22696
22697#if defined S_ISBLK && defined S_IFCHR
22698extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22699#endif
22700
22701#if defined S_ISLNK && defined S_IFREG
22702extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22703#endif
22704
22705#if defined S_ISSOCK && defined S_IFREG
22706extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22707#endif
22708
22709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022710if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022711 ac_cv_header_stat_broken=no
22712else
cristy8b350f62009-11-15 23:12:43 +000022713 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022714fi
cristy3ed852e2009-09-05 21:47:34 +000022715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716fi
cristy8b350f62009-11-15 23:12:43 +000022717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022718$as_echo "$ac_cv_header_stat_broken" >&6; }
22719if test $ac_cv_header_stat_broken = yes; then
22720
cristy8b350f62009-11-15 23:12:43 +000022721$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022722
22723fi
22724
cristy8b350f62009-11-15 23:12:43 +000022725{ $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 +000022726$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022727if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022728 $as_echo_n "(cached) " >&6
22729else
cristy8b350f62009-11-15 23:12:43 +000022730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022731/* end confdefs.h. */
22732#include <sys/types.h>
22733#include <sys/time.h>
22734#include <time.h>
22735
22736int
22737main ()
22738{
22739if ((struct tm *) 0)
22740return 0;
22741 ;
22742 return 0;
22743}
22744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022745if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022746 ac_cv_header_time=yes
22747else
cristy8b350f62009-11-15 23:12:43 +000022748 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022749fi
cristy3ed852e2009-09-05 21:47:34 +000022750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751fi
cristy8b350f62009-11-15 23:12:43 +000022752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022753$as_echo "$ac_cv_header_time" >&6; }
22754if test $ac_cv_header_time = yes; then
22755
cristy8b350f62009-11-15 23:12:43 +000022756$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022757
22758fi
22759
cristy8b350f62009-11-15 23:12:43 +000022760{ $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 +000022761$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022762if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022763 $as_echo_n "(cached) " >&6
22764else
cristy8b350f62009-11-15 23:12:43 +000022765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022766/* end confdefs.h. */
22767#include <sys/types.h>
22768#include <time.h>
22769
22770int
22771main ()
22772{
22773struct tm tm;
22774 int *p = &tm.tm_sec;
22775 return !p;
22776 ;
22777 return 0;
22778}
22779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022781 ac_cv_struct_tm=time.h
22782else
cristy8b350f62009-11-15 23:12:43 +000022783 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022784fi
cristy3ed852e2009-09-05 21:47:34 +000022785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786fi
cristy8b350f62009-11-15 23:12:43 +000022787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022788$as_echo "$ac_cv_struct_tm" >&6; }
22789if test $ac_cv_struct_tm = sys/time.h; then
22790
cristy8b350f62009-11-15 23:12:43 +000022791$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022792
22793fi
22794
cristy92703d82010-04-26 00:18:18 +000022795ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22796#include <$ac_cv_struct_tm>
22797
22798"
cristyda16f162011-02-19 23:52:17 +000022799if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022800
22801cat >>confdefs.h <<_ACEOF
22802#define HAVE_STRUCT_TM_TM_ZONE 1
22803_ACEOF
22804
22805
22806fi
22807
22808if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22809
22810$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22811
22812else
22813 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22814"
cristyda16f162011-02-19 23:52:17 +000022815if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022816 ac_have_decl=1
22817else
22818 ac_have_decl=0
22819fi
22820
22821cat >>confdefs.h <<_ACEOF
22822#define HAVE_DECL_TZNAME $ac_have_decl
22823_ACEOF
22824
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22826$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022827if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022828 $as_echo_n "(cached) " >&6
22829else
22830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831/* end confdefs.h. */
22832#include <time.h>
22833#if !HAVE_DECL_TZNAME
22834extern char *tzname[];
22835#endif
22836
22837int
22838main ()
22839{
22840return tzname[0][0];
22841 ;
22842 return 0;
22843}
22844_ACEOF
22845if ac_fn_c_try_link "$LINENO"; then :
22846 ac_cv_var_tzname=yes
22847else
22848 ac_cv_var_tzname=no
22849fi
22850rm -f core conftest.err conftest.$ac_objext \
22851 conftest$ac_exeext conftest.$ac_ext
22852fi
22853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22854$as_echo "$ac_cv_var_tzname" >&6; }
22855 if test $ac_cv_var_tzname = yes; then
22856
22857$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22858
22859 fi
22860fi
22861
cristy8b350f62009-11-15 23:12:43 +000022862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022863$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022864if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022865 $as_echo_n "(cached) " >&6
22866else
22867 echo '#! /bin/cat
22868exit 69
22869' >conftest
22870chmod u+x conftest
22871(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22872if test $? -ne 69; then
22873 ac_cv_sys_interpreter=yes
22874else
22875 ac_cv_sys_interpreter=no
22876fi
22877rm -f conftest
22878fi
cristy8b350f62009-11-15 23:12:43 +000022879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022880$as_echo "$ac_cv_sys_interpreter" >&6; }
22881interpval=$ac_cv_sys_interpreter
22882
22883
cristy3ed852e2009-09-05 21:47:34 +000022884# If the C compiler supports the keyword inline, do nothing. Otherwise
22885# define inline to __inline__ or __inline if it accepts one of those,
22886# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022888$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022889if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022890 $as_echo_n "(cached) " >&6
22891else
22892 ac_cv_c_inline=no
22893for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022895/* end confdefs.h. */
22896#ifndef __cplusplus
22897typedef int foo_t;
22898static $ac_kw foo_t static_foo () {return 0; }
22899$ac_kw foo_t foo () {return 0; }
22900#endif
22901
22902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022903if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022904 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022905fi
cristy3ed852e2009-09-05 21:47:34 +000022906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 test "$ac_cv_c_inline" != no && break
22908done
22909
22910fi
cristy8b350f62009-11-15 23:12:43 +000022911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022912$as_echo "$ac_cv_c_inline" >&6; }
22913
cristy3ed852e2009-09-05 21:47:34 +000022914case $ac_cv_c_inline in
22915 inline | yes) ;;
22916 *)
22917 case $ac_cv_c_inline in
22918 no) ac_val=;;
22919 *) ac_val=$ac_cv_c_inline;;
22920 esac
22921 cat >>confdefs.h <<_ACEOF
22922#ifndef __cplusplus
22923#define inline $ac_val
22924#endif
22925_ACEOF
22926 ;;
22927esac
22928
22929
22930# If the C compiler supports the keyword restrict, do nothing. Otherwise
22931# define restrict to __restrict__ or __restrict if it accepts one of those,
22932# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022935if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022936 $as_echo_n "(cached) " >&6
22937else
22938 ac_cv_c_restrict=no
22939 # The order here caters to the fact that C++ does not require restrict.
22940 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022942/* end confdefs.h. */
22943typedef int * int_ptr;
22944 int foo (int_ptr $ac_kw ip) {
22945 return ip[0];
22946 }
22947int
22948main ()
22949{
22950int s[1];
22951 int * $ac_kw t = s;
22952 t[0] = 0;
22953 return foo(t)
22954 ;
22955 return 0;
22956}
22957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022958if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022959 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022960fi
cristy3ed852e2009-09-05 21:47:34 +000022961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962 test "$ac_cv_c_restrict" != no && break
22963 done
22964
22965fi
cristy8b350f62009-11-15 23:12:43 +000022966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022967$as_echo "$ac_cv_c_restrict" >&6; }
22968
cristy3ed852e2009-09-05 21:47:34 +000022969 case $ac_cv_c_restrict in
22970 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022971 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022972 ;;
22973 *) cat >>confdefs.h <<_ACEOF
22974#define restrict $ac_cv_c_restrict
22975_ACEOF
22976 ;;
22977 esac
22978
22979
22980# If words are stored with the most significant byte first (like
22981# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022983$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022984if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022985 $as_echo_n "(cached) " >&6
22986else
22987 ac_cv_c_bigendian=unknown
22988 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022990/* end confdefs.h. */
22991#ifndef __APPLE_CC__
22992 not a universal capable compiler
22993 #endif
22994 typedef int dummy;
22995
22996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022997if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022998
22999 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023000 # there are at least two -arch flags with different values.
23001 ac_arch=
23002 ac_prev=
23003 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23004 if test -n "$ac_prev"; then
23005 case $ac_word in
23006 i?86 | x86_64 | ppc | ppc64)
23007 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23008 ac_arch=$ac_word
23009 else
23010 ac_cv_c_bigendian=universal
23011 break
23012 fi
23013 ;;
23014 esac
23015 ac_prev=
23016 elif test "x$ac_word" = "x-arch"; then
23017 ac_prev=arch
23018 fi
23019 done
cristy3ed852e2009-09-05 21:47:34 +000023020fi
cristy3ed852e2009-09-05 21:47:34 +000023021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022 if test $ac_cv_c_bigendian = unknown; then
23023 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023025/* end confdefs.h. */
23026#include <sys/types.h>
23027 #include <sys/param.h>
23028
23029int
23030main ()
23031{
23032#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23033 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23034 && LITTLE_ENDIAN)
23035 bogus endian macros
23036 #endif
23037
23038 ;
23039 return 0;
23040}
23041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023042if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023043 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023045/* end confdefs.h. */
23046#include <sys/types.h>
23047 #include <sys/param.h>
23048
23049int
23050main ()
23051{
23052#if BYTE_ORDER != BIG_ENDIAN
23053 not big endian
23054 #endif
23055
23056 ;
23057 return 0;
23058}
23059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023061 ac_cv_c_bigendian=yes
23062else
cristy8b350f62009-11-15 23:12:43 +000023063 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023064fi
cristy3ed852e2009-09-05 21:47:34 +000023065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023066fi
cristy3ed852e2009-09-05 21:47:34 +000023067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068 fi
23069 if test $ac_cv_c_bigendian = unknown; then
23070 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023072/* end confdefs.h. */
23073#include <limits.h>
23074
23075int
23076main ()
23077{
23078#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23079 bogus endian macros
23080 #endif
23081
23082 ;
23083 return 0;
23084}
23085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023087 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023089/* end confdefs.h. */
23090#include <limits.h>
23091
23092int
23093main ()
23094{
23095#ifndef _BIG_ENDIAN
23096 not big endian
23097 #endif
23098
23099 ;
23100 return 0;
23101}
23102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023103if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023104 ac_cv_c_bigendian=yes
23105else
cristy8b350f62009-11-15 23:12:43 +000023106 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023107fi
cristy3ed852e2009-09-05 21:47:34 +000023108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023109fi
cristy3ed852e2009-09-05 21:47:34 +000023110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23111 fi
23112 if test $ac_cv_c_bigendian = unknown; then
23113 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023114 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023115 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023117/* end confdefs.h. */
23118short int ascii_mm[] =
23119 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23120 short int ascii_ii[] =
23121 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23122 int use_ascii (int i) {
23123 return ascii_mm[i] + ascii_ii[i];
23124 }
23125 short int ebcdic_ii[] =
23126 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23127 short int ebcdic_mm[] =
23128 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23129 int use_ebcdic (int i) {
23130 return ebcdic_mm[i] + ebcdic_ii[i];
23131 }
23132 extern int foo;
23133
23134int
23135main ()
23136{
23137return use_ascii (foo) == use_ebcdic (foo);
23138 ;
23139 return 0;
23140}
23141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23144 ac_cv_c_bigendian=yes
23145 fi
23146 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23147 if test "$ac_cv_c_bigendian" = unknown; then
23148 ac_cv_c_bigendian=no
23149 else
23150 # finding both strings is unlikely to happen, but who knows?
23151 ac_cv_c_bigendian=unknown
23152 fi
23153 fi
cristy3ed852e2009-09-05 21:47:34 +000023154fi
cristy3ed852e2009-09-05 21:47:34 +000023155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156else
cristy8b350f62009-11-15 23:12:43 +000023157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023158/* end confdefs.h. */
23159$ac_includes_default
23160int
23161main ()
23162{
23163
23164 /* Are we little or big endian? From Harbison&Steele. */
23165 union
23166 {
23167 long int l;
23168 char c[sizeof (long int)];
23169 } u;
23170 u.l = 1;
23171 return u.c[sizeof (long int) - 1] == 1;
23172
23173 ;
23174 return 0;
23175}
23176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023177if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023178 ac_cv_c_bigendian=no
23179else
cristy8b350f62009-11-15 23:12:43 +000023180 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023181fi
cristy8b350f62009-11-15 23:12:43 +000023182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23183 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023184fi
23185
cristy3ed852e2009-09-05 21:47:34 +000023186 fi
23187fi
cristy8b350f62009-11-15 23:12:43 +000023188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023189$as_echo "$ac_cv_c_bigendian" >&6; }
23190 case $ac_cv_c_bigendian in #(
23191 yes)
cristy8b350f62009-11-15 23:12:43 +000023192 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023193;; #(
23194 no)
23195 ;; #(
23196 universal)
23197
cristy8b350f62009-11-15 23:12:43 +000023198$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023199
23200 ;; #(
23201 *)
cristy98dddb52010-11-04 00:30:15 +000023202 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023203 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023204 esac
23205
23206
cristy501c8042011-05-26 17:46:28 +000023207# Define to a suitable type, if standard headers do not define it.
23208ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23209case $ac_cv_c_int8_t in #(
23210 no|yes) ;; #(
23211 *)
cristy3ed852e2009-09-05 21:47:34 +000023212
23213cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023214#define int8_t $ac_cv_c_int8_t
23215_ACEOF
23216;;
23217esac
23218
23219ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23220case $ac_cv_c_int16_t in #(
23221 no|yes) ;; #(
23222 *)
23223
23224cat >>confdefs.h <<_ACEOF
23225#define int16_t $ac_cv_c_int16_t
23226_ACEOF
23227;;
23228esac
23229
23230ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23231case $ac_cv_c_int32_t in #(
23232 no|yes) ;; #(
23233 *)
23234
23235cat >>confdefs.h <<_ACEOF
23236#define int32_t $ac_cv_c_int32_t
23237_ACEOF
23238;;
23239esac
23240
23241ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23242case $ac_cv_c_int64_t in #(
23243 no|yes) ;; #(
23244 *)
23245
23246cat >>confdefs.h <<_ACEOF
23247#define int64_t $ac_cv_c_int64_t
23248_ACEOF
23249;;
23250esac
23251
23252
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23254$as_echo_n "checking for long long int... " >&6; }
23255if ${ac_cv_type_long_long_int+:} false; then :
23256 $as_echo_n "(cached) " >&6
23257else
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259/* end confdefs.h. */
23260
23261 /* For now, do not test the preprocessor; as of 2007 there are too many
23262 implementations with broken preprocessors. Perhaps this can
23263 be revisited in 2012. In the meantime, code should not expect
23264 #if to work with literals wider than 32 bits. */
23265 /* Test literals. */
23266 long long int ll = 9223372036854775807ll;
23267 long long int nll = -9223372036854775807LL;
23268 unsigned long long int ull = 18446744073709551615ULL;
23269 /* Test constant expressions. */
23270 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23271 ? 1 : -1)];
23272 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23273 ? 1 : -1)];
23274 int i = 63;
23275int
23276main ()
23277{
23278/* Test availability of runtime routines for shift and division. */
23279 long long int llmax = 9223372036854775807ll;
23280 unsigned long long int ullmax = 18446744073709551615ull;
23281 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23282 | (llmax / ll) | (llmax % ll)
23283 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23284 | (ullmax / ull) | (ullmax % ull));
23285 ;
23286 return 0;
23287}
23288
23289_ACEOF
23290if ac_fn_c_try_link "$LINENO"; then :
23291 if test "$cross_compiling" = yes; then :
23292 ac_cv_type_long_long_int=yes
23293else
23294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23295/* end confdefs.h. */
23296#include <limits.h>
23297 #ifndef LLONG_MAX
23298 # define HALF \
23299 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23300 # define LLONG_MAX (HALF - 1 + HALF)
23301 #endif
23302int
23303main ()
23304{
23305long long int n = 1;
23306 int i;
23307 for (i = 0; ; i++)
23308 {
23309 long long int m = n << i;
23310 if (m >> i != n)
23311 return 1;
23312 if (LLONG_MAX / 2 < m)
23313 break;
23314 }
23315 return 0;
23316 ;
23317 return 0;
23318}
23319_ACEOF
23320if ac_fn_c_try_run "$LINENO"; then :
23321 ac_cv_type_long_long_int=yes
23322else
23323 ac_cv_type_long_long_int=no
23324fi
23325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23326 conftest.$ac_objext conftest.beam conftest.$ac_ext
23327fi
23328
23329else
23330 ac_cv_type_long_long_int=no
23331fi
23332rm -f core conftest.err conftest.$ac_objext \
23333 conftest$ac_exeext conftest.$ac_ext
23334fi
23335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23336$as_echo "$ac_cv_type_long_long_int" >&6; }
23337 if test $ac_cv_type_long_long_int = yes; then
23338
23339$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23340
23341 fi
23342
23343
23344
23345 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23346if test "x$ac_cv_type_intmax_t" = xyes; then :
23347
23348$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23349
23350else
23351 test $ac_cv_type_long_long_int = yes \
23352 && ac_type='long long int' \
23353 || ac_type='long int'
23354
23355cat >>confdefs.h <<_ACEOF
23356#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023357_ACEOF
23358
23359fi
23360
23361
cristy501c8042011-05-26 17:46:28 +000023362
23363 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23364if test "x$ac_cv_type_intptr_t" = xyes; then :
23365
23366$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023367
cristy3ed852e2009-09-05 21:47:34 +000023368else
cristy501c8042011-05-26 17:46:28 +000023369 for ac_type in 'int' 'long int' 'long long int'; do
23370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23371/* end confdefs.h. */
23372$ac_includes_default
23373int
23374main ()
23375{
23376static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023377test_array [0] = 0;
23378return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023379
23380 ;
23381 return 0;
23382}
23383_ACEOF
23384if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023385
23386cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023387#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023388_ACEOF
23389
cristy501c8042011-05-26 17:46:28 +000023390 ac_type=
23391fi
23392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 test -z "$ac_type" && break
23394 done
cristy3ed852e2009-09-05 21:47:34 +000023395fi
23396
23397
cristy3ed852e2009-09-05 21:47:34 +000023398
cristy501c8042011-05-26 17:46:28 +000023399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23400$as_echo_n "checking for long double... " >&6; }
23401if ${ac_cv_type_long_double+:} false; then :
23402 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023403else
cristy501c8042011-05-26 17:46:28 +000023404 if test "$GCC" = yes; then
23405 ac_cv_type_long_double=yes
23406 else
23407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23408/* end confdefs.h. */
23409/* The Stardent Vistra knows sizeof (long double), but does
23410 not support it. */
23411 long double foo = 0.0L;
23412int
23413main ()
23414{
23415static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23416 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023417test_array [0] = 0;
23418return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023419
cristy501c8042011-05-26 17:46:28 +000023420 ;
23421 return 0;
23422}
cristy3ed852e2009-09-05 21:47:34 +000023423_ACEOF
cristy501c8042011-05-26 17:46:28 +000023424if ac_fn_c_try_compile "$LINENO"; then :
23425 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023426else
cristy501c8042011-05-26 17:46:28 +000023427 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023428fi
cristy501c8042011-05-26 17:46:28 +000023429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430 fi
cristy3ed852e2009-09-05 21:47:34 +000023431fi
cristy501c8042011-05-26 17:46:28 +000023432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23433$as_echo "$ac_cv_type_long_double" >&6; }
23434 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023435
cristy501c8042011-05-26 17:46:28 +000023436$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023437
cristy501c8042011-05-26 17:46:28 +000023438 fi
23439
cristy3ed852e2009-09-05 21:47:34 +000023440
cristy8b350f62009-11-15 23:12:43 +000023441 { $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 +000023442$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023443if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023444 $as_echo_n "(cached) " >&6
23445else
cristy8b350f62009-11-15 23:12:43 +000023446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023447/* end confdefs.h. */
23448#include <float.h>
23449 long double const a[] =
23450 {
23451 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23452 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23453 };
23454 long double
23455 f (long double x)
23456 {
23457 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23458 + (x ? f (x) : 'c'));
23459 }
23460
23461int
23462main ()
23463{
23464static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23465 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23466 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23467 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23468 && (int) LDBL_EPSILON == 0
23469 )];
cristy14fefe52012-05-21 00:59:18 +000023470test_array [0] = 0;
23471return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023472
23473 ;
23474 return 0;
23475}
23476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023477if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023478 ac_cv_type_long_double_wider=yes
23479else
cristy8b350f62009-11-15 23:12:43 +000023480 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023481fi
cristy3ed852e2009-09-05 21:47:34 +000023482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483fi
cristy8b350f62009-11-15 23:12:43 +000023484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023485$as_echo "$ac_cv_type_long_double_wider" >&6; }
23486 if test $ac_cv_type_long_double_wider = yes; then
23487
cristy8b350f62009-11-15 23:12:43 +000023488$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023489
23490 fi
23491
23492
cristy501c8042011-05-26 17:46:28 +000023493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23494$as_echo_n "checking for long long int... " >&6; }
23495if ${ac_cv_type_long_long_int+:} false; then :
23496 $as_echo_n "(cached) " >&6
23497else
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499/* end confdefs.h. */
23500
23501 /* For now, do not test the preprocessor; as of 2007 there are too many
23502 implementations with broken preprocessors. Perhaps this can
23503 be revisited in 2012. In the meantime, code should not expect
23504 #if to work with literals wider than 32 bits. */
23505 /* Test literals. */
23506 long long int ll = 9223372036854775807ll;
23507 long long int nll = -9223372036854775807LL;
23508 unsigned long long int ull = 18446744073709551615ULL;
23509 /* Test constant expressions. */
23510 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23511 ? 1 : -1)];
23512 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23513 ? 1 : -1)];
23514 int i = 63;
23515int
23516main ()
23517{
23518/* Test availability of runtime routines for shift and division. */
23519 long long int llmax = 9223372036854775807ll;
23520 unsigned long long int ullmax = 18446744073709551615ull;
23521 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23522 | (llmax / ll) | (llmax % ll)
23523 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23524 | (ullmax / ull) | (ullmax % ull));
23525 ;
23526 return 0;
23527}
23528
23529_ACEOF
23530if ac_fn_c_try_link "$LINENO"; then :
23531 if test "$cross_compiling" = yes; then :
23532 ac_cv_type_long_long_int=yes
23533else
23534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23535/* end confdefs.h. */
23536#include <limits.h>
23537 #ifndef LLONG_MAX
23538 # define HALF \
23539 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23540 # define LLONG_MAX (HALF - 1 + HALF)
23541 #endif
23542int
23543main ()
23544{
23545long long int n = 1;
23546 int i;
23547 for (i = 0; ; i++)
23548 {
23549 long long int m = n << i;
23550 if (m >> i != n)
23551 return 1;
23552 if (LLONG_MAX / 2 < m)
23553 break;
23554 }
23555 return 0;
23556 ;
23557 return 0;
23558}
23559_ACEOF
23560if ac_fn_c_try_run "$LINENO"; then :
23561 ac_cv_type_long_long_int=yes
23562else
23563 ac_cv_type_long_long_int=no
23564fi
23565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23566 conftest.$ac_objext conftest.beam conftest.$ac_ext
23567fi
23568
23569else
23570 ac_cv_type_long_long_int=no
23571fi
23572rm -f core conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23574fi
23575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23576$as_echo "$ac_cv_type_long_long_int" >&6; }
23577 if test $ac_cv_type_long_long_int = yes; then
23578
23579$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23580
23581 fi
23582
23583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23584$as_echo_n "checking for mbstate_t... " >&6; }
23585if ${ac_cv_type_mbstate_t+:} false; then :
23586 $as_echo_n "(cached) " >&6
23587else
23588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23589/* end confdefs.h. */
23590$ac_includes_default
23591# include <wchar.h>
23592int
23593main ()
23594{
23595mbstate_t x; return sizeof x;
23596 ;
23597 return 0;
23598}
23599_ACEOF
23600if ac_fn_c_try_compile "$LINENO"; then :
23601 ac_cv_type_mbstate_t=yes
23602else
23603 ac_cv_type_mbstate_t=no
23604fi
23605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23606fi
23607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23608$as_echo "$ac_cv_type_mbstate_t" >&6; }
23609 if test $ac_cv_type_mbstate_t = yes; then
23610
23611$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23612
23613 else
23614
23615$as_echo "#define mbstate_t int" >>confdefs.h
23616
23617 fi
23618ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23619if test "x$ac_cv_type_mode_t" = xyes; then :
23620
23621else
23622
23623cat >>confdefs.h <<_ACEOF
23624#define mode_t int
23625_ACEOF
23626
23627fi
23628
23629ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23630if test "x$ac_cv_type_off_t" = xyes; then :
23631
23632else
23633
23634cat >>confdefs.h <<_ACEOF
23635#define off_t long int
23636_ACEOF
23637
23638fi
23639
23640ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23641if test "x$ac_cv_type_pid_t" = xyes; then :
23642
23643else
23644
23645cat >>confdefs.h <<_ACEOF
23646#define pid_t int
23647_ACEOF
23648
23649fi
23650
23651ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23652if test "x$ac_cv_type_size_t" = xyes; then :
23653
23654else
23655
23656cat >>confdefs.h <<_ACEOF
23657#define size_t unsigned int
23658_ACEOF
23659
23660fi
23661
23662ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23663if test "x$ac_cv_type_ssize_t" = xyes; then :
23664
23665else
23666
23667cat >>confdefs.h <<_ACEOF
23668#define ssize_t int
23669_ACEOF
23670
23671fi
23672
23673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23674$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23675if ${ac_cv_type_uid_t+:} false; then :
23676 $as_echo_n "(cached) " >&6
23677else
23678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23679/* end confdefs.h. */
23680#include <sys/types.h>
23681
23682_ACEOF
23683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23684 $EGREP "uid_t" >/dev/null 2>&1; then :
23685 ac_cv_type_uid_t=yes
23686else
23687 ac_cv_type_uid_t=no
23688fi
23689rm -f conftest*
23690
23691fi
23692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23693$as_echo "$ac_cv_type_uid_t" >&6; }
23694if test $ac_cv_type_uid_t = no; then
23695
23696$as_echo "#define uid_t int" >>confdefs.h
23697
23698
23699$as_echo "#define gid_t int" >>confdefs.h
23700
23701fi
23702
23703ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23704case $ac_cv_c_uint8_t in #(
23705 no|yes) ;; #(
23706 *)
23707
23708$as_echo "#define _UINT8_T 1" >>confdefs.h
23709
23710
23711cat >>confdefs.h <<_ACEOF
23712#define uint8_t $ac_cv_c_uint8_t
23713_ACEOF
23714;;
23715 esac
23716
23717ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23718case $ac_cv_c_uint16_t in #(
23719 no|yes) ;; #(
23720 *)
23721
23722
23723cat >>confdefs.h <<_ACEOF
23724#define uint16_t $ac_cv_c_uint16_t
23725_ACEOF
23726;;
23727 esac
23728
23729ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23730case $ac_cv_c_uint32_t in #(
23731 no|yes) ;; #(
23732 *)
23733
23734$as_echo "#define _UINT32_T 1" >>confdefs.h
23735
23736
23737cat >>confdefs.h <<_ACEOF
23738#define uint32_t $ac_cv_c_uint32_t
23739_ACEOF
23740;;
23741 esac
23742
23743ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23744case $ac_cv_c_uint64_t in #(
23745 no|yes) ;; #(
23746 *)
23747
23748$as_echo "#define _UINT64_T 1" >>confdefs.h
23749
23750
23751cat >>confdefs.h <<_ACEOF
23752#define uint64_t $ac_cv_c_uint64_t
23753_ACEOF
23754;;
23755 esac
23756
23757
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23759$as_echo_n "checking for unsigned long long int... " >&6; }
23760if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23761 $as_echo_n "(cached) " >&6
23762else
23763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23764/* end confdefs.h. */
23765
23766 /* For now, do not test the preprocessor; as of 2007 there are too many
23767 implementations with broken preprocessors. Perhaps this can
23768 be revisited in 2012. In the meantime, code should not expect
23769 #if to work with literals wider than 32 bits. */
23770 /* Test literals. */
23771 long long int ll = 9223372036854775807ll;
23772 long long int nll = -9223372036854775807LL;
23773 unsigned long long int ull = 18446744073709551615ULL;
23774 /* Test constant expressions. */
23775 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23776 ? 1 : -1)];
23777 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23778 ? 1 : -1)];
23779 int i = 63;
23780int
23781main ()
23782{
23783/* Test availability of runtime routines for shift and division. */
23784 long long int llmax = 9223372036854775807ll;
23785 unsigned long long int ullmax = 18446744073709551615ull;
23786 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23787 | (llmax / ll) | (llmax % ll)
23788 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23789 | (ullmax / ull) | (ullmax % ull));
23790 ;
23791 return 0;
23792}
23793
23794_ACEOF
23795if ac_fn_c_try_link "$LINENO"; then :
23796 ac_cv_type_unsigned_long_long_int=yes
23797else
23798 ac_cv_type_unsigned_long_long_int=no
23799fi
23800rm -f core conftest.err conftest.$ac_objext \
23801 conftest$ac_exeext conftest.$ac_ext
23802fi
23803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23804$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23805 if test $ac_cv_type_unsigned_long_long_int = yes; then
23806
23807$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23808
23809 fi
23810
23811
23812
23813 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23814if test "x$ac_cv_type_uintmax_t" = xyes; then :
23815
23816$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23817
23818else
23819 test $ac_cv_type_unsigned_long_long_int = yes \
23820 && ac_type='unsigned long long int' \
23821 || ac_type='unsigned long int'
23822
23823cat >>confdefs.h <<_ACEOF
23824#define uintmax_t $ac_type
23825_ACEOF
23826
23827fi
23828
23829
23830
23831 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23832if test "x$ac_cv_type_uintptr_t" = xyes; then :
23833
23834$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23835
23836else
23837 for ac_type in 'unsigned int' 'unsigned long int' \
23838 'unsigned long long int'; do
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840/* end confdefs.h. */
23841$ac_includes_default
23842int
23843main ()
23844{
23845static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023846test_array [0] = 0;
23847return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023848
23849 ;
23850 return 0;
23851}
23852_ACEOF
23853if ac_fn_c_try_compile "$LINENO"; then :
23854
23855cat >>confdefs.h <<_ACEOF
23856#define uintptr_t $ac_type
23857_ACEOF
23858
23859 ac_type=
23860fi
23861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 test -z "$ac_type" && break
23863 done
23864fi
23865
23866
23867
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23869$as_echo_n "checking for unsigned long long int... " >&6; }
23870if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23871 $as_echo_n "(cached) " >&6
23872else
23873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23874/* end confdefs.h. */
23875
23876 /* For now, do not test the preprocessor; as of 2007 there are too many
23877 implementations with broken preprocessors. Perhaps this can
23878 be revisited in 2012. In the meantime, code should not expect
23879 #if to work with literals wider than 32 bits. */
23880 /* Test literals. */
23881 long long int ll = 9223372036854775807ll;
23882 long long int nll = -9223372036854775807LL;
23883 unsigned long long int ull = 18446744073709551615ULL;
23884 /* Test constant expressions. */
23885 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23886 ? 1 : -1)];
23887 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23888 ? 1 : -1)];
23889 int i = 63;
23890int
23891main ()
23892{
23893/* Test availability of runtime routines for shift and division. */
23894 long long int llmax = 9223372036854775807ll;
23895 unsigned long long int ullmax = 18446744073709551615ull;
23896 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23897 | (llmax / ll) | (llmax % ll)
23898 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23899 | (ullmax / ull) | (ullmax % ull));
23900 ;
23901 return 0;
23902}
23903
23904_ACEOF
23905if ac_fn_c_try_link "$LINENO"; then :
23906 ac_cv_type_unsigned_long_long_int=yes
23907else
23908 ac_cv_type_unsigned_long_long_int=no
23909fi
23910rm -f core conftest.err conftest.$ac_objext \
23911 conftest$ac_exeext conftest.$ac_ext
23912fi
23913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23914$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23915 if test $ac_cv_type_unsigned_long_long_int = yes; then
23916
23917$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23918
23919 fi
23920
23921
cristy3ed852e2009-09-05 21:47:34 +000023922# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23923# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023925$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023926if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023927 $as_echo_n "(cached) " >&6
23928else
cristy8b350f62009-11-15 23:12:43 +000023929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023930/* end confdefs.h. */
23931$ac_includes_default
23932int
23933main ()
23934{
23935static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023936test_array [0] = 0;
23937return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023938
23939 ;
23940 return 0;
23941}
23942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023943if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023944 ac_cv_c_char_unsigned=no
23945else
cristy8b350f62009-11-15 23:12:43 +000023946 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy3ed852e2009-09-05 21:47:34 +000023948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949fi
cristy8b350f62009-11-15 23:12:43 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023951$as_echo "$ac_cv_c_char_unsigned" >&6; }
23952if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023953 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023954
23955fi
23956
23957
23958# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23959# The cast to long int works around a bug in the HP C Compiler
23960# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23961# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23962# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023964$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023965if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023966 $as_echo_n "(cached) " >&6
23967else
cristy8b350f62009-11-15 23:12:43 +000023968 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 +000023969
cristy3ed852e2009-09-05 21:47:34 +000023970else
cristy8b350f62009-11-15 23:12:43 +000023971 if test "$ac_cv_type_signed_short" = yes; then
23972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023974as_fn_error 77 "cannot compute sizeof (signed short)
23975See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023976 else
23977 ac_cv_sizeof_signed_short=0
23978 fi
23979fi
cristy8b350f62009-11-15 23:12:43 +000023980
cristy3ed852e2009-09-05 21:47:34 +000023981fi
cristy8b350f62009-11-15 23:12:43 +000023982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023983$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23984
23985
23986
23987cat >>confdefs.h <<_ACEOF
23988#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23989_ACEOF
23990
23991
23992
23993# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23994# The cast to long int works around a bug in the HP C Compiler
23995# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23996# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23997# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024000if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024001 $as_echo_n "(cached) " >&6
24002else
cristy8b350f62009-11-15 23:12:43 +000024003 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 +000024004
cristy3ed852e2009-09-05 21:47:34 +000024005else
cristy8b350f62009-11-15 23:12:43 +000024006 if test "$ac_cv_type_unsigned_short" = yes; then
24007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024009as_fn_error 77 "cannot compute sizeof (unsigned short)
24010See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024011 else
24012 ac_cv_sizeof_unsigned_short=0
24013 fi
24014fi
cristy8b350f62009-11-15 23:12:43 +000024015
cristy3ed852e2009-09-05 21:47:34 +000024016fi
cristy8b350f62009-11-15 23:12:43 +000024017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024018$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24019
24020
24021
24022cat >>confdefs.h <<_ACEOF
24023#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24024_ACEOF
24025
24026
24027
24028# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24029# The cast to long int works around a bug in the HP C Compiler
24030# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24031# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24032# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024034$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024035if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024036 $as_echo_n "(cached) " >&6
24037else
cristy8b350f62009-11-15 23:12:43 +000024038 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 +000024039
cristy3ed852e2009-09-05 21:47:34 +000024040else
cristy8b350f62009-11-15 23:12:43 +000024041 if test "$ac_cv_type_signed_int" = yes; then
24042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024044as_fn_error 77 "cannot compute sizeof (signed int)
24045See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024046 else
24047 ac_cv_sizeof_signed_int=0
24048 fi
24049fi
cristy8b350f62009-11-15 23:12:43 +000024050
cristy3ed852e2009-09-05 21:47:34 +000024051fi
cristy8b350f62009-11-15 23:12:43 +000024052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024053$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24054
24055
24056
24057cat >>confdefs.h <<_ACEOF
24058#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24059_ACEOF
24060
24061
24062
24063# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24064# The cast to long int works around a bug in the HP C Compiler
24065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24067# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024070if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024071 $as_echo_n "(cached) " >&6
24072else
cristy8b350f62009-11-15 23:12:43 +000024073 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 +000024074
cristy3ed852e2009-09-05 21:47:34 +000024075else
cristy8b350f62009-11-15 23:12:43 +000024076 if test "$ac_cv_type_unsigned_int" = yes; then
24077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024079as_fn_error 77 "cannot compute sizeof (unsigned int)
24080See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024081 else
24082 ac_cv_sizeof_unsigned_int=0
24083 fi
24084fi
cristy8b350f62009-11-15 23:12:43 +000024085
cristy3ed852e2009-09-05 21:47:34 +000024086fi
cristy8b350f62009-11-15 23:12:43 +000024087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024088$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24089
24090
24091
24092cat >>confdefs.h <<_ACEOF
24093#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24094_ACEOF
24095
24096
24097
24098# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24099# The cast to long int works around a bug in the HP C Compiler
24100# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24101# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24102# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024104$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024105if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024106 $as_echo_n "(cached) " >&6
24107else
cristy8b350f62009-11-15 23:12:43 +000024108 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 +000024109
cristy3ed852e2009-09-05 21:47:34 +000024110else
cristy8b350f62009-11-15 23:12:43 +000024111 if test "$ac_cv_type_signed_long" = yes; then
24112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024114as_fn_error 77 "cannot compute sizeof (signed long)
24115See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024116 else
24117 ac_cv_sizeof_signed_long=0
24118 fi
24119fi
cristy8b350f62009-11-15 23:12:43 +000024120
cristy3ed852e2009-09-05 21:47:34 +000024121fi
cristy8b350f62009-11-15 23:12:43 +000024122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24124
24125
24126
24127cat >>confdefs.h <<_ACEOF
24128#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24129_ACEOF
24130
24131
24132
24133# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24134# The cast to long int works around a bug in the HP C Compiler
24135# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24136# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24137# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024140if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 $as_echo_n "(cached) " >&6
24142else
cristy8b350f62009-11-15 23:12:43 +000024143 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 +000024144
cristy3ed852e2009-09-05 21:47:34 +000024145else
cristy8b350f62009-11-15 23:12:43 +000024146 if test "$ac_cv_type_unsigned_long" = yes; then
24147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024149as_fn_error 77 "cannot compute sizeof (unsigned long)
24150See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024151 else
24152 ac_cv_sizeof_unsigned_long=0
24153 fi
24154fi
cristy8b350f62009-11-15 23:12:43 +000024155
cristy3ed852e2009-09-05 21:47:34 +000024156fi
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24159
24160
24161
24162cat >>confdefs.h <<_ACEOF
24163#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24164_ACEOF
24165
24166
24167
24168# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24169# 'signed long long' is not supported then the value defined is zero.
24170# The cast to long int works around a bug in the HP C Compiler
24171# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24172# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24173# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024175$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024176if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 $as_echo_n "(cached) " >&6
24178else
cristy8b350f62009-11-15 23:12:43 +000024179 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 +000024180
cristy3ed852e2009-09-05 21:47:34 +000024181else
cristy8b350f62009-11-15 23:12:43 +000024182 if test "$ac_cv_type_signed_long_long" = yes; then
24183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024185as_fn_error 77 "cannot compute sizeof (signed long long)
24186See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024187 else
24188 ac_cv_sizeof_signed_long_long=0
24189 fi
24190fi
cristy8b350f62009-11-15 23:12:43 +000024191
cristy3ed852e2009-09-05 21:47:34 +000024192fi
cristy8b350f62009-11-15 23:12:43 +000024193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024194$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24195
24196
24197
24198cat >>confdefs.h <<_ACEOF
24199#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24200_ACEOF
24201
24202
24203
24204# Obtain size of a 'unsigned long long' and define as
24205# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24206# supported then the value defined is zero.
24207# The cast to long int works around a bug in the HP C Compiler
24208# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24209# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24210# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024213if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024214 $as_echo_n "(cached) " >&6
24215else
cristy8b350f62009-11-15 23:12:43 +000024216 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 +000024217
cristy3ed852e2009-09-05 21:47:34 +000024218else
cristy8b350f62009-11-15 23:12:43 +000024219 if test "$ac_cv_type_unsigned_long_long" = yes; then
24220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024222as_fn_error 77 "cannot compute sizeof (unsigned long long)
24223See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024224 else
24225 ac_cv_sizeof_unsigned_long_long=0
24226 fi
24227fi
cristy8b350f62009-11-15 23:12:43 +000024228
cristy3ed852e2009-09-05 21:47:34 +000024229fi
cristy8b350f62009-11-15 23:12:43 +000024230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024231$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24232
24233
24234
24235cat >>confdefs.h <<_ACEOF
24236#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24237_ACEOF
24238
24239
24240
24241# Obtain size of off_t and define as SIZEOF_OFF_T
24242# The cast to long int works around a bug in the HP C Compiler
24243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24245# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024248if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024249 $as_echo_n "(cached) " >&6
24250else
cristy8b350f62009-11-15 23:12:43 +000024251 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 +000024252
cristy3ed852e2009-09-05 21:47:34 +000024253else
cristy8b350f62009-11-15 23:12:43 +000024254 if test "$ac_cv_type_off_t" = yes; then
24255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024257as_fn_error 77 "cannot compute sizeof (off_t)
24258See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024259 else
24260 ac_cv_sizeof_off_t=0
24261 fi
24262fi
cristy8b350f62009-11-15 23:12:43 +000024263
cristy3ed852e2009-09-05 21:47:34 +000024264fi
cristy8b350f62009-11-15 23:12:43 +000024265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024266$as_echo "$ac_cv_sizeof_off_t" >&6; }
24267
24268
24269
24270cat >>confdefs.h <<_ACEOF
24271#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24272_ACEOF
24273
24274
24275
24276# Obtain size of size_t and define as SIZEOF_SIZE_T
24277# The cast to long int works around a bug in the HP C Compiler
24278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24280# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024283if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024284 $as_echo_n "(cached) " >&6
24285else
cristy8b350f62009-11-15 23:12:43 +000024286 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 +000024287
cristy3ed852e2009-09-05 21:47:34 +000024288else
cristy8b350f62009-11-15 23:12:43 +000024289 if test "$ac_cv_type_size_t" = yes; then
24290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024292as_fn_error 77 "cannot compute sizeof (size_t)
24293See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024294 else
24295 ac_cv_sizeof_size_t=0
24296 fi
24297fi
cristy8b350f62009-11-15 23:12:43 +000024298
cristy3ed852e2009-09-05 21:47:34 +000024299fi
cristy8b350f62009-11-15 23:12:43 +000024300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024301$as_echo "$ac_cv_sizeof_size_t" >&6; }
24302
24303
24304
24305cat >>confdefs.h <<_ACEOF
24306#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24307_ACEOF
24308
24309
24310
cristy330e9352010-06-01 18:42:49 +000024311# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24312# The cast to long int works around a bug in the HP C Compiler
24313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24315# This bug is HP SR number 8606223364.
24316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24317$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024318if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024319 $as_echo_n "(cached) " >&6
24320else
24321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24322
24323else
24324 if test "$ac_cv_type_ssize_t" = yes; then
24325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024327as_fn_error 77 "cannot compute sizeof (ssize_t)
24328See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024329 else
24330 ac_cv_sizeof_ssize_t=0
24331 fi
24332fi
24333
24334fi
24335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24336$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24337
24338
24339
24340cat >>confdefs.h <<_ACEOF
24341#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24342_ACEOF
24343
24344
24345
cristy3ed852e2009-09-05 21:47:34 +000024346# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24347# The cast to long int works around a bug in the HP C Compiler
24348# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24349# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24350# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024352$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024353if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024354 $as_echo_n "(cached) " >&6
24355else
cristy8b350f62009-11-15 23:12:43 +000024356 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 +000024357
cristy3ed852e2009-09-05 21:47:34 +000024358else
cristy8b350f62009-11-15 23:12:43 +000024359 if test "$ac_cv_type_unsigned_intp" = yes; then
24360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024362as_fn_error 77 "cannot compute sizeof (unsigned int*)
24363See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024364 else
24365 ac_cv_sizeof_unsigned_intp=0
24366 fi
24367fi
cristy8b350f62009-11-15 23:12:43 +000024368
cristy3ed852e2009-09-05 21:47:34 +000024369fi
cristy8b350f62009-11-15 23:12:43 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024371$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24372
24373
24374
24375cat >>confdefs.h <<_ACEOF
24376#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24377_ACEOF
24378
24379
24380
24381#
24382# Compute sized types for current CPU and compiler options.
24383#
24384
cristy8b350f62009-11-15 23:12:43 +000024385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024386$as_echo_n "checking for signed 8-bit type... " >&6; }
24387INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024388{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24389$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024390
24391
cristy8b350f62009-11-15 23:12:43 +000024392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024393$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24394UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024395{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24396$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024397
24398
cristy8b350f62009-11-15 23:12:43 +000024399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024400$as_echo_n "checking for signed 16-bit type... " >&6; }
24401INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024402{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24403$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024404
24405
cristy8b350f62009-11-15 23:12:43 +000024406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024407$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24408UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024409{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24410$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024411
24412
cristy8b350f62009-11-15 23:12:43 +000024413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024414$as_echo_n "checking for signed 32-bit type... " >&6; }
24415INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024416INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024417if test $ac_cv_sizeof_signed_int -eq 4; then
24418 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024419 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024420elif test $ac_cv_sizeof_signed_long -eq 4; then
24421 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024422 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024423fi
cristy09b53e12011-10-14 12:47:22 +000024424{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24425$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024426
24427
cristy6d5e20f2011-04-25 13:48:54 +000024428
cristy8b350f62009-11-15 23:12:43 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024430$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24431UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024432UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024433if test $ac_cv_sizeof_unsigned_int -eq 4; then
24434 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024435 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024436elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24437 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024438 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024439fi
cristy09b53e12011-10-14 12:47:22 +000024440{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24441$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024442
24443
cristy6d5e20f2011-04-25 13:48:54 +000024444
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo_n "checking for signed 64-bit type... " >&6; }
24447INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024448INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024449if test $ac_cv_sizeof_signed_long -eq 8; then
24450 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024451 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024452elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24453 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024454 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024455fi
cristy3a99dcf2011-12-17 01:29:40 +000024456case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024457 mingw* )
24458 INT64_F='"I64"'
24459 ;;
24460esac
cristy09b53e12011-10-14 12:47:22 +000024461{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24462$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024463
24464
cristy6d5e20f2011-04-25 13:48:54 +000024465
cristy8b350f62009-11-15 23:12:43 +000024466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024467$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24468UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024469UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024470if test $ac_cv_sizeof_unsigned_long -eq 8; then
24471 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024472 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024473elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24474 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024475 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024476fi
cristy3a99dcf2011-12-17 01:29:40 +000024477case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024478 mingw* )
24479 UINT64_F='"I64"'
24480 ;;
24481esac
cristy09b53e12011-10-14 12:47:22 +000024482{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24483$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024484
24485
cristy6d5e20f2011-04-25 13:48:54 +000024486
cristy8b350f62009-11-15 23:12:43 +000024487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024488$as_echo_n "checking for unsigned maximum type... " >&6; }
24489UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024490UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024491if test "$UINT64_T" != 'none'; then
24492 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024493 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024494elif test "$UINT32_T" != 'none'; then
24495 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024496 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024497fi
cristy09b53e12011-10-14 12:47:22 +000024498{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24499$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024500
24501
cristy6d5e20f2011-04-25 13:48:54 +000024502
cristy8b350f62009-11-15 23:12:43 +000024503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024504$as_echo_n "checking for pointer difference type... " >&6; }
24505UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024506UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024507if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24508 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024509 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024510elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24511 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024512 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024513fi
cristy09b53e12011-10-14 12:47:22 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24515$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024516
24517
cristy6d5e20f2011-04-25 13:48:54 +000024518
cristy8b350f62009-11-15 23:12:43 +000024519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024520$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024522/* end confdefs.h. */
24523
24524int
24525main ()
24526{
24527{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24528 ;
24529 return 0;
24530}
24531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024532if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024533 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24534$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024535else
cristy09b53e12011-10-14 12:47:22 +000024536 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24537$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024539$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024541/* end confdefs.h. */
24542
24543int
24544main ()
24545{
24546{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24547 ;
24548 return 0;
24549}
24550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024551if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024552 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24553$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024554
cristy8b350f62009-11-15 23:12:43 +000024555$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024556
24557else
cristy09b53e12011-10-14 12:47:22 +000024558 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24559$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024560
cristy8b350f62009-11-15 23:12:43 +000024561$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024562
24563fi
cristy3ed852e2009-09-05 21:47:34 +000024564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24565fi
cristy3ed852e2009-09-05 21:47:34 +000024566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24567
24568########
24569#
24570# Check for functions
24571#
24572########
cristy73bd4a52010-10-05 11:24:23 +000024573for ac_header in stdlib.h unistd.h
24574do :
24575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24576ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024577if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024578 cat >>confdefs.h <<_ACEOF
24579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24580_ACEOF
24581
24582fi
24583
24584done
24585
24586for ac_func in getpagesize
24587do :
24588 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024589if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024590 cat >>confdefs.h <<_ACEOF
24591#define HAVE_GETPAGESIZE 1
24592_ACEOF
24593
24594fi
24595done
24596
24597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24598$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024599if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024600 $as_echo_n "(cached) " >&6
24601else
24602 if test "$cross_compiling" = yes; then :
24603 magick_cv_func_mmap_fileio=no
24604else
24605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24606/* end confdefs.h. */
24607$ac_includes_default
24608/* malloc might have been renamed as rpl_malloc. */
24609#undef malloc
24610
24611/*
24612 This test is derived from GNU Autoconf's similar macro.
24613 The purpose of this test is to verify that files may be memory
24614 mapped, and that memory mapping and file I/O are coherent.
24615
24616 The test creates a test file, memory maps the file, updates
24617 the file using the memory map, and then reads the file using
24618 file I/O to verify that the file contains the updates.
24619*/
24620
24621#include <fcntl.h>
24622#include <sys/mman.h>
24623
24624#if !STDC_HEADERS && !HAVE_STDLIB_H
24625char *malloc ();
24626#endif
24627
24628/* This mess was copied from the GNU getpagesize.h. */
24629#if !HAVE_GETPAGESIZE
24630/* Assume that all systems that can run configure have sys/param.h. */
24631# if !HAVE_SYS_PARAM_H
24632# define HAVE_SYS_PARAM_H 1
24633# endif
24634
24635# ifdef _SC_PAGESIZE
24636# define getpagesize() sysconf(_SC_PAGESIZE)
24637# else /* no _SC_PAGESIZE */
24638# if HAVE_SYS_PARAM_H
24639# include <sys/param.h>
24640# ifdef EXEC_PAGESIZE
24641# define getpagesize() EXEC_PAGESIZE
24642# else /* no EXEC_PAGESIZE */
24643# ifdef NBPG
24644# define getpagesize() NBPG * CLSIZE
24645# ifndef CLSIZE
24646# define CLSIZE 1
24647# endif /* no CLSIZE */
24648# else /* no NBPG */
24649# ifdef NBPC
24650# define getpagesize() NBPC
24651# else /* no NBPC */
24652# ifdef PAGESIZE
24653# define getpagesize() PAGESIZE
24654# endif /* PAGESIZE */
24655# endif /* no NBPC */
24656# endif /* no NBPG */
24657# endif /* no EXEC_PAGESIZE */
24658# else /* no HAVE_SYS_PARAM_H */
24659# define getpagesize() 8192 /* punt totally */
24660# endif /* no HAVE_SYS_PARAM_H */
24661# endif /* no _SC_PAGESIZE */
24662
24663#endif /* no HAVE_GETPAGESIZE */
24664
24665int
24666main ()
24667{
24668 char *data, *data2, *data3;
24669 int i, pagesize;
24670 int fd;
24671
24672 pagesize = getpagesize ();
24673
24674 /* First, make a file with some known garbage in it. */
24675 data = (char *) malloc (pagesize);
24676 if (!data)
24677 exit (1);
24678 for (i = 0; i < pagesize; ++i)
24679 *(data + i) = rand ();
24680 umask (0);
24681 fd = creat ("conftest.mmap", 0600);
24682 if (fd < 0)
24683 exit (1);
24684 if (write (fd, data, pagesize) != pagesize)
24685 exit (1);
24686 close (fd);
24687
24688 /* Mmap the file as read/write/shared and verify that we see the
24689 same garbage. */
24690 fd = open ("conftest.mmap", O_RDWR);
24691 if (fd < 0)
24692 exit (1);
24693 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24694 if (data2 == 0)
24695 exit (1);
24696 for (i = 0; i < pagesize; ++i)
24697 if (*(data + i) != *(data2 + i))
24698 exit (1);
24699
24700 /* Finally, make sure that changes to the mapped area
24701 percolate back to the file as seen by read(). */
24702 for (i = 0; i < pagesize; ++i)
24703 *(data2 + i) = *(data2 + i) + 1;
24704 data3 = (char *) malloc (pagesize);
24705 if (!data3)
24706 exit (1);
24707 if (read (fd, data3, pagesize) != pagesize)
24708 exit (1);
24709 for (i = 0; i < pagesize; ++i)
24710 if (*(data2 + i) != *(data3 + i))
24711 exit (1);
24712 close (fd);
24713 exit (0);
24714}
24715_ACEOF
24716if ac_fn_c_try_run "$LINENO"; then :
24717 magick_cv_func_mmap_fileio=yes
24718else
24719 magick_cv_func_mmap_fileio=no
24720fi
24721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24722 conftest.$ac_objext conftest.beam conftest.$ac_ext
24723fi
24724
24725fi
24726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24727$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24728if test $magick_cv_func_mmap_fileio = yes; then
24729
24730$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24731
24732fi
24733rm -f conftest.mmap
24734
cristy8b350f62009-11-15 23:12:43 +000024735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024736$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024737if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024738 $as_echo_n "(cached) " >&6
24739else
cristy8b350f62009-11-15 23:12:43 +000024740 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 ac_cv_func_closedir_void=yes
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024744/* end confdefs.h. */
24745$ac_includes_default
24746#include <$ac_header_dirent>
24747#ifndef __cplusplus
24748int closedir ();
24749#endif
24750
24751int
24752main ()
24753{
24754return closedir (opendir (".")) != 0;
24755 ;
24756 return 0;
24757}
24758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024759if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 ac_cv_func_closedir_void=no
24761else
cristy8b350f62009-11-15 23:12:43 +000024762 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024763fi
cristy8b350f62009-11-15 23:12:43 +000024764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24765 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024766fi
24767
cristy3ed852e2009-09-05 21:47:34 +000024768fi
cristy8b350f62009-11-15 23:12:43 +000024769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024770$as_echo "$ac_cv_func_closedir_void" >&6; }
24771if test $ac_cv_func_closedir_void = yes; then
24772
cristy8b350f62009-11-15 23:12:43 +000024773$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024774
24775fi
24776
cristycd4c5312009-11-22 01:19:08 +000024777
24778
24779
24780 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024781do :
24782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024783ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24784"
cristy98dddb52010-11-04 00:30:15 +000024785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024786 cat >>confdefs.h <<_ACEOF
24787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24788_ACEOF
24789
24790fi
24791
24792done
24793
cristycd4c5312009-11-22 01:19:08 +000024794
24795
24796
24797
24798
24799
24800
cristy3ed852e2009-09-05 21:47:34 +000024801for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024802do :
24803 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024804if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024806#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024807_ACEOF
24808
24809fi
24810done
24811
cristy8b350f62009-11-15 23:12:43 +000024812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024813$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024814if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024815 $as_echo_n "(cached) " >&6
24816else
cristy8b350f62009-11-15 23:12:43 +000024817 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024818 ac_cv_func_mmap_fixed_mapped=no
24819else
cristy8b350f62009-11-15 23:12:43 +000024820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024821/* end confdefs.h. */
24822$ac_includes_default
24823/* malloc might have been renamed as rpl_malloc. */
24824#undef malloc
24825
24826/* Thanks to Mike Haertel and Jim Avera for this test.
24827 Here is a matrix of mmap possibilities:
24828 mmap private not fixed
24829 mmap private fixed at somewhere currently unmapped
24830 mmap private fixed at somewhere already mapped
24831 mmap shared not fixed
24832 mmap shared fixed at somewhere currently unmapped
24833 mmap shared fixed at somewhere already mapped
24834 For private mappings, we should verify that changes cannot be read()
24835 back from the file, nor mmap's back from the file at a different
24836 address. (There have been systems where private was not correctly
24837 implemented like the infamous i386 svr4.0, and systems where the
24838 VM page cache was not coherent with the file system buffer cache
24839 like early versions of FreeBSD and possibly contemporary NetBSD.)
24840 For shared mappings, we should conversely verify that changes get
24841 propagated back to all the places they're supposed to be.
24842
24843 Grep wants private fixed already mapped.
24844 The main things grep needs to know about mmap are:
24845 * does it exist and is it safe to write into the mmap'd area
24846 * how to use it (BSD variants) */
24847
24848#include <fcntl.h>
24849#include <sys/mman.h>
24850
24851#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24852char *malloc ();
24853#endif
24854
24855/* This mess was copied from the GNU getpagesize.h. */
24856#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024857# ifdef _SC_PAGESIZE
24858# define getpagesize() sysconf(_SC_PAGESIZE)
24859# else /* no _SC_PAGESIZE */
24860# ifdef HAVE_SYS_PARAM_H
24861# include <sys/param.h>
24862# ifdef EXEC_PAGESIZE
24863# define getpagesize() EXEC_PAGESIZE
24864# else /* no EXEC_PAGESIZE */
24865# ifdef NBPG
24866# define getpagesize() NBPG * CLSIZE
24867# ifndef CLSIZE
24868# define CLSIZE 1
24869# endif /* no CLSIZE */
24870# else /* no NBPG */
24871# ifdef NBPC
24872# define getpagesize() NBPC
24873# else /* no NBPC */
24874# ifdef PAGESIZE
24875# define getpagesize() PAGESIZE
24876# endif /* PAGESIZE */
24877# endif /* no NBPC */
24878# endif /* no NBPG */
24879# endif /* no EXEC_PAGESIZE */
24880# else /* no HAVE_SYS_PARAM_H */
24881# define getpagesize() 8192 /* punt totally */
24882# endif /* no HAVE_SYS_PARAM_H */
24883# endif /* no _SC_PAGESIZE */
24884
24885#endif /* no HAVE_GETPAGESIZE */
24886
24887int
24888main ()
24889{
24890 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024891 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024892 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024893 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024894
24895 pagesize = getpagesize ();
24896
24897 /* First, make a file with some known garbage in it. */
24898 data = (char *) malloc (pagesize);
24899 if (!data)
24900 return 1;
24901 for (i = 0; i < pagesize; ++i)
24902 *(data + i) = rand ();
24903 umask (0);
24904 fd = creat ("conftest.mmap", 0600);
24905 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024906 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024907 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024908 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024909 close (fd);
24910
cristycd4c5312009-11-22 01:19:08 +000024911 /* Next, check that the tail of a page is zero-filled. File must have
24912 non-zero length, otherwise we risk SIGBUS for entire page. */
24913 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24914 if (fd2 < 0)
24915 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024916 cdata2 = "";
24917 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024918 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024919 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024920 if (data2 == MAP_FAILED)
24921 return 6;
24922 for (i = 0; i < pagesize; ++i)
24923 if (*(data2 + i))
24924 return 7;
24925 close (fd2);
24926 if (munmap (data2, pagesize))
24927 return 8;
24928
cristy3ed852e2009-09-05 21:47:34 +000024929 /* Next, try to mmap the file at a fixed address which already has
24930 something else allocated at it. If we can, also make sure that
24931 we see the same garbage. */
24932 fd = open ("conftest.mmap", O_RDWR);
24933 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024934 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024935 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24936 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024937 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024938 for (i = 0; i < pagesize; ++i)
24939 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024940 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024941
24942 /* Finally, make sure that changes to the mapped area do not
24943 percolate back to the file as seen by read(). (This is a bug on
24944 some variants of i386 svr4.0.) */
24945 for (i = 0; i < pagesize; ++i)
24946 *(data2 + i) = *(data2 + i) + 1;
24947 data3 = (char *) malloc (pagesize);
24948 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024949 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024950 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024951 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024952 for (i = 0; i < pagesize; ++i)
24953 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024954 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024955 close (fd);
24956 return 0;
24957}
24958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024959if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024960 ac_cv_func_mmap_fixed_mapped=yes
24961else
cristy8b350f62009-11-15 23:12:43 +000024962 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024963fi
cristy8b350f62009-11-15 23:12:43 +000024964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24965 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024966fi
24967
cristy3ed852e2009-09-05 21:47:34 +000024968fi
cristy8b350f62009-11-15 23:12:43 +000024969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024970$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24971if test $ac_cv_func_mmap_fixed_mapped = yes; then
24972
cristy8b350f62009-11-15 23:12:43 +000024973$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024974
24975fi
cristycd4c5312009-11-22 01:19:08 +000024976rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024977
cristy3ed852e2009-09-05 21:47:34 +000024978for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024979do :
24980 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024981if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024982 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024983#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024984_ACEOF
24985
24986fi
24987
24988done
24989
cristy3ed852e2009-09-05 21:47:34 +000024990for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024991do :
24992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24993ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024994if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 cat >>confdefs.h <<_ACEOF
24996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24997_ACEOF
24998
24999fi
25000done
25001
25002if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025004$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025005if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025006 $as_echo_n "(cached) " >&6
25007else
cristy8b350f62009-11-15 23:12:43 +000025008 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 ac_cv_func_fork_works=cross
25010else
cristy8b350f62009-11-15 23:12:43 +000025011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025012/* end confdefs.h. */
25013$ac_includes_default
25014int
25015main ()
25016{
25017
25018 /* By Ruediger Kuhlmann. */
25019 return fork () < 0;
25020
25021 ;
25022 return 0;
25023}
25024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025025if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025026 ac_cv_func_fork_works=yes
25027else
cristy8b350f62009-11-15 23:12:43 +000025028 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025029fi
cristy8b350f62009-11-15 23:12:43 +000025030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25031 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025032fi
25033
cristy3ed852e2009-09-05 21:47:34 +000025034fi
cristy8b350f62009-11-15 23:12:43 +000025035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025036$as_echo "$ac_cv_func_fork_works" >&6; }
25037
25038else
25039 ac_cv_func_fork_works=$ac_cv_func_fork
25040fi
25041if test "x$ac_cv_func_fork_works" = xcross; then
25042 case $host in
25043 *-*-amigaos* | *-*-msdosdjgpp*)
25044 # Override, as these systems have only a dummy fork() stub
25045 ac_cv_func_fork_works=no
25046 ;;
25047 *)
25048 ac_cv_func_fork_works=yes
25049 ;;
25050 esac
cristy8b350f62009-11-15 23:12:43 +000025051 { $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 +000025052$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25053fi
25054ac_cv_func_vfork_works=$ac_cv_func_vfork
25055if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025058if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025059 $as_echo_n "(cached) " >&6
25060else
cristy8b350f62009-11-15 23:12:43 +000025061 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025062 ac_cv_func_vfork_works=cross
25063else
cristy8b350f62009-11-15 23:12:43 +000025064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025065/* end confdefs.h. */
25066/* Thanks to Paul Eggert for this test. */
25067$ac_includes_default
25068#include <sys/wait.h>
25069#ifdef HAVE_VFORK_H
25070# include <vfork.h>
25071#endif
25072/* On some sparc systems, changes by the child to local and incoming
25073 argument registers are propagated back to the parent. The compiler
25074 is told about this with #include <vfork.h>, but some compilers
25075 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25076 static variable whose address is put into a register that is
25077 clobbered by the vfork. */
25078static void
25079#ifdef __cplusplus
25080sparc_address_test (int arg)
25081# else
25082sparc_address_test (arg) int arg;
25083#endif
25084{
25085 static pid_t child;
25086 if (!child) {
25087 child = vfork ();
25088 if (child < 0) {
25089 perror ("vfork");
25090 _exit(2);
25091 }
25092 if (!child) {
25093 arg = getpid();
25094 write(-1, "", 0);
25095 _exit (arg);
25096 }
25097 }
25098}
25099
25100int
25101main ()
25102{
25103 pid_t parent = getpid ();
25104 pid_t child;
25105
25106 sparc_address_test (0);
25107
25108 child = vfork ();
25109
25110 if (child == 0) {
25111 /* Here is another test for sparc vfork register problems. This
25112 test uses lots of local variables, at least as many local
25113 variables as main has allocated so far including compiler
25114 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25115 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25116 reuse the register of parent for one of the local variables,
25117 since it will think that parent can't possibly be used any more
25118 in this routine. Assigning to the local variable will thus
25119 munge parent in the parent process. */
25120 pid_t
25121 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25122 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25123 /* Convince the compiler that p..p7 are live; otherwise, it might
25124 use the same hardware register for all 8 local variables. */
25125 if (p != p1 || p != p2 || p != p3 || p != p4
25126 || p != p5 || p != p6 || p != p7)
25127 _exit(1);
25128
25129 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25130 from child file descriptors. If the child closes a descriptor
25131 before it execs or exits, this munges the parent's descriptor
25132 as well. Test for this by closing stdout in the child. */
25133 _exit(close(fileno(stdout)) != 0);
25134 } else {
25135 int status;
25136 struct stat st;
25137
25138 while (wait(&status) != child)
25139 ;
25140 return (
25141 /* Was there some problem with vforking? */
25142 child < 0
25143
25144 /* Did the child fail? (This shouldn't happen.) */
25145 || status
25146
25147 /* Did the vfork/compiler bug occur? */
25148 || parent != getpid()
25149
25150 /* Did the file descriptor bug occur? */
25151 || fstat(fileno(stdout), &st) != 0
25152 );
25153 }
25154}
25155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025156if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025157 ac_cv_func_vfork_works=yes
25158else
cristy8b350f62009-11-15 23:12:43 +000025159 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025160fi
cristy8b350f62009-11-15 23:12:43 +000025161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25162 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025163fi
25164
cristy3ed852e2009-09-05 21:47:34 +000025165fi
cristy8b350f62009-11-15 23:12:43 +000025166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025167$as_echo "$ac_cv_func_vfork_works" >&6; }
25168
25169fi;
25170if test "x$ac_cv_func_fork_works" = xcross; then
25171 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025172 { $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 +000025173$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25174fi
25175
25176if test "x$ac_cv_func_vfork_works" = xyes; then
25177
cristy8b350f62009-11-15 23:12:43 +000025178$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025179
25180else
25181
cristy8b350f62009-11-15 23:12:43 +000025182$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025183
25184fi
25185if test "x$ac_cv_func_fork_works" = xyes; then
25186
cristy8b350f62009-11-15 23:12:43 +000025187$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025188
25189fi
25190
cristy8b350f62009-11-15 23:12:43 +000025191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025192$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025193if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025194 $as_echo_n "(cached) " >&6
25195else
cristy8b350f62009-11-15 23:12:43 +000025196 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025197 ac_cv_func_memcmp_working=no
25198else
cristy8b350f62009-11-15 23:12:43 +000025199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025200/* end confdefs.h. */
25201$ac_includes_default
25202int
25203main ()
25204{
25205
25206 /* Some versions of memcmp are not 8-bit clean. */
25207 char c0 = '\100', c1 = '\200', c2 = '\201';
25208 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25209 return 1;
25210
25211 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25212 or more and with at least one buffer not starting on a 4-byte boundary.
25213 William Lewis provided this test program. */
25214 {
25215 char foo[21];
25216 char bar[21];
25217 int i;
25218 for (i = 0; i < 4; i++)
25219 {
25220 char *a = foo + i;
25221 char *b = bar + i;
25222 strcpy (a, "--------01111111");
25223 strcpy (b, "--------10000000");
25224 if (memcmp (a, b, 16) >= 0)
25225 return 1;
25226 }
25227 return 0;
25228 }
25229
25230 ;
25231 return 0;
25232}
25233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025234if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025235 ac_cv_func_memcmp_working=yes
25236else
cristy8b350f62009-11-15 23:12:43 +000025237 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025238fi
cristy8b350f62009-11-15 23:12:43 +000025239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25240 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025241fi
25242
cristy3ed852e2009-09-05 21:47:34 +000025243fi
cristy8b350f62009-11-15 23:12:43 +000025244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025245$as_echo "$ac_cv_func_memcmp_working" >&6; }
25246test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25247 *" memcmp.$ac_objext "* ) ;;
25248 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25249 ;;
25250esac
25251
25252
cristy3ed852e2009-09-05 21:47:34 +000025253for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025254do :
25255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25256ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025257if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025258 cat >>confdefs.h <<_ACEOF
25259#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25260_ACEOF
25261
25262fi
25263
25264done
25265
cristy8b350f62009-11-15 23:12:43 +000025266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025268if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025269 $as_echo_n "(cached) " >&6
25270else
25271 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25272 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25273 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025275/* end confdefs.h. */
25276$ac_includes_default
25277#ifdef HAVE_SYS_SELECT_H
25278# include <sys/select.h>
25279#endif
25280#ifdef HAVE_SYS_SOCKET_H
25281# include <sys/socket.h>
25282#endif
25283
25284int
25285main ()
25286{
25287extern int select ($ac_arg1,
25288 $ac_arg234, $ac_arg234, $ac_arg234,
25289 $ac_arg5);
25290 ;
25291 return 0;
25292}
25293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025295 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025296fi
cristy3ed852e2009-09-05 21:47:34 +000025297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 done
25299 done
25300done
25301# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025302: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025303
25304fi
cristy8b350f62009-11-15 23:12:43 +000025305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025306$as_echo "$ac_cv_func_select_args" >&6; }
25307ac_save_IFS=$IFS; IFS=','
25308set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25309IFS=$ac_save_IFS
25310shift
25311
25312cat >>confdefs.h <<_ACEOF
25313#define SELECT_TYPE_ARG1 $1
25314_ACEOF
25315
25316
25317cat >>confdefs.h <<_ACEOF
25318#define SELECT_TYPE_ARG234 ($2)
25319_ACEOF
25320
25321
25322cat >>confdefs.h <<_ACEOF
25323#define SELECT_TYPE_ARG5 ($3)
25324_ACEOF
25325
25326rm -f conftest*
25327
cristyda16f162011-02-19 23:52:17 +000025328if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025329 $as_echo_n "(cached) " >&6
25330else
25331 ac_cv_func_setvbuf_reversed=no
25332fi
25333
25334
cristy8b350f62009-11-15 23:12:43 +000025335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025337if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025338 $as_echo_n "(cached) " >&6
25339else
cristy8b350f62009-11-15 23:12:43 +000025340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025341/* end confdefs.h. */
25342#include <sys/types.h>
25343#include <signal.h>
25344
25345int
25346main ()
25347{
25348return *(signal (0, 0)) (0) == 1;
25349 ;
25350 return 0;
25351}
25352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025353if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025354 ac_cv_type_signal=int
25355else
cristy8b350f62009-11-15 23:12:43 +000025356 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025357fi
cristy3ed852e2009-09-05 21:47:34 +000025358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25359fi
cristy8b350f62009-11-15 23:12:43 +000025360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025361$as_echo "$ac_cv_type_signal" >&6; }
25362
25363cat >>confdefs.h <<_ACEOF
25364#define RETSIGTYPE $ac_cv_type_signal
25365_ACEOF
25366
25367
cristy8b350f62009-11-15 23:12:43 +000025368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025370if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025371 $as_echo_n "(cached) " >&6
25372else
cristy8b350f62009-11-15 23:12:43 +000025373 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025374 ac_cv_func_strtod=no
25375else
cristy8b350f62009-11-15 23:12:43 +000025376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025377/* end confdefs.h. */
25378
25379$ac_includes_default
25380#ifndef strtod
25381double strtod ();
25382#endif
25383int
25384main()
25385{
25386 {
25387 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25388 char *string = " +69";
25389 char *term;
25390 double value;
25391 value = strtod (string, &term);
25392 if (value != 69 || term != (string + 4))
25393 return 1;
25394 }
25395
25396 {
25397 /* Under Solaris 2.4, strtod returns the wrong value for the
25398 terminating character under some conditions. */
25399 char *string = "NaN";
25400 char *term;
25401 strtod (string, &term);
25402 if (term != string && *(term - 1) == 0)
25403 return 1;
25404 }
25405 return 0;
25406}
25407
25408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025409if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025410 ac_cv_func_strtod=yes
25411else
cristy8b350f62009-11-15 23:12:43 +000025412 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025413fi
cristy8b350f62009-11-15 23:12:43 +000025414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25415 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025416fi
25417
cristy3ed852e2009-09-05 21:47:34 +000025418fi
cristy8b350f62009-11-15 23:12:43 +000025419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025420$as_echo "$ac_cv_func_strtod" >&6; }
25421if test $ac_cv_func_strtod = no; then
25422 case " $LIBOBJS " in
25423 *" strtod.$ac_objext "* ) ;;
25424 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25425 ;;
25426esac
25427
cristy8b350f62009-11-15 23:12:43 +000025428ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025429if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025430
cristy3ed852e2009-09-05 21:47:34 +000025431fi
25432
cristy3ed852e2009-09-05 21:47:34 +000025433if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025435$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025436if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025437 $as_echo_n "(cached) " >&6
25438else
25439 ac_check_lib_save_LIBS=$LIBS
25440LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025442/* end confdefs.h. */
25443
25444/* Override any GCC internal prototype to avoid an error.
25445 Use char because int might match the return type of a GCC
25446 builtin and then its argument prototype would still apply. */
25447#ifdef __cplusplus
25448extern "C"
25449#endif
25450char pow ();
25451int
25452main ()
25453{
25454return pow ();
25455 ;
25456 return 0;
25457}
25458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025459if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 ac_cv_lib_m_pow=yes
25461else
cristy8b350f62009-11-15 23:12:43 +000025462 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025463fi
cristy8b350f62009-11-15 23:12:43 +000025464rm -f core conftest.err conftest.$ac_objext \
25465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466LIBS=$ac_check_lib_save_LIBS
25467fi
cristy8b350f62009-11-15 23:12:43 +000025468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025469$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025470if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025471 POW_LIB=-lm
25472else
cristy8b350f62009-11-15 23:12:43 +000025473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025474$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25475fi
25476
25477fi
25478
25479fi
25480
cristy7d4a1d62011-10-13 15:54:12 +000025481ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25482if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25483 ac_have_decl=1
25484else
25485 ac_have_decl=0
25486fi
25487
25488cat >>confdefs.h <<_ACEOF
25489#define HAVE_DECL_STRERROR_R $ac_have_decl
25490_ACEOF
25491
25492for ac_func in strerror_r
25493do :
25494 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25495if test "x$ac_cv_func_strerror_r" = xyes; then :
25496 cat >>confdefs.h <<_ACEOF
25497#define HAVE_STRERROR_R 1
25498_ACEOF
25499
25500fi
25501done
25502
25503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25504$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25505if ${ac_cv_func_strerror_r_char_p+:} false; then :
25506 $as_echo_n "(cached) " >&6
25507else
25508
25509 ac_cv_func_strerror_r_char_p=no
25510 if test $ac_cv_have_decl_strerror_r = yes; then
25511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512/* end confdefs.h. */
25513$ac_includes_default
25514int
25515main ()
25516{
25517
25518 char buf[100];
25519 char x = *strerror_r (0, buf, sizeof buf);
25520 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025521 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025522
25523 ;
25524 return 0;
25525}
25526_ACEOF
25527if ac_fn_c_try_compile "$LINENO"; then :
25528 ac_cv_func_strerror_r_char_p=yes
25529fi
25530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 else
25532 # strerror_r is not declared. Choose between
25533 # systems that have relatively inaccessible declarations for the
25534 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25535 # former has a strerror_r that returns char*, while the latter
25536 # has a strerror_r that returns `int'.
25537 # This test should segfault on the DEC system.
25538 if test "$cross_compiling" = yes; then :
25539 :
25540else
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542/* end confdefs.h. */
25543$ac_includes_default
25544 extern char *strerror_r ();
25545int
25546main ()
25547{
25548char buf[100];
25549 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025550 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025551 ;
25552 return 0;
25553}
25554_ACEOF
25555if ac_fn_c_try_run "$LINENO"; then :
25556 ac_cv_func_strerror_r_char_p=yes
25557fi
25558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25559 conftest.$ac_objext conftest.beam conftest.$ac_ext
25560fi
25561
25562 fi
25563
25564fi
25565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25566$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25567if test $ac_cv_func_strerror_r_char_p = yes; then
25568
25569$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25570
25571fi
25572
cristy3ed852e2009-09-05 21:47:34 +000025573for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025574do :
25575 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025576if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025577 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025578#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025579_ACEOF
25580
cristy8b350f62009-11-15 23:12:43 +000025581ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025582if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025583
cristy8b350f62009-11-15 23:12:43 +000025584$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025585
25586fi
25587
25588fi
25589done
25590
25591
25592
cristy161b9262010-03-20 19:34:32 +000025593#
25594# Find math library
25595#
25596MATH_LIBS=''
25597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25598$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025599if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025600 $as_echo_n "(cached) " >&6
25601else
25602 ac_check_lib_save_LIBS=$LIBS
25603LIBS="-lm $LIBS"
25604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605/* end confdefs.h. */
25606
25607/* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613char sqrt ();
25614int
25615main ()
25616{
25617return sqrt ();
25618 ;
25619 return 0;
25620}
25621_ACEOF
25622if ac_fn_c_try_link "$LINENO"; then :
25623 ac_cv_lib_m_sqrt=yes
25624else
25625 ac_cv_lib_m_sqrt=no
25626fi
25627rm -f core conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
25629LIBS=$ac_check_lib_save_LIBS
25630fi
25631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25632$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025633if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025634 MATH_LIBS="-lm"
25635fi
25636
25637LIBS="$MATH_LIBS $LIBS"
25638
25639
cristy568c2d42012-07-27 01:41:20 +000025640for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025641do :
25642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25643ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025644if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025645 cat >>confdefs.h <<_ACEOF
25646#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25647_ACEOF
25648
25649fi
25650done
25651
25652
cristye43a45e2009-09-28 14:49:00 +000025653#
25654# Check for clock_gettime().
25655#
cristy8b350f62009-11-15 23:12:43 +000025656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025657$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025658if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025659 $as_echo_n "(cached) " >&6
25660else
25661 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025663/* end confdefs.h. */
25664
25665/* Override any GCC internal prototype to avoid an error.
25666 Use char because int might match the return type of a GCC
25667 builtin and then its argument prototype would still apply. */
25668#ifdef __cplusplus
25669extern "C"
25670#endif
25671char clock_gettime ();
25672int
25673main ()
25674{
25675return clock_gettime ();
25676 ;
25677 return 0;
25678}
25679_ACEOF
25680for ac_lib in '' rt; do
25681 if test -z "$ac_lib"; then
25682 ac_res="none required"
25683 else
25684 ac_res=-l$ac_lib
25685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25686 fi
cristy8b350f62009-11-15 23:12:43 +000025687 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025688 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025689fi
cristy8b350f62009-11-15 23:12:43 +000025690rm -f core conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025692 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025693 break
25694fi
25695done
cristyda16f162011-02-19 23:52:17 +000025696if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025697
cristye43a45e2009-09-28 14:49:00 +000025698else
25699 ac_cv_search_clock_gettime=no
25700fi
25701rm conftest.$ac_ext
25702LIBS=$ac_func_search_save_LIBS
25703fi
cristy8b350f62009-11-15 23:12:43 +000025704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025705$as_echo "$ac_cv_search_clock_gettime" >&6; }
25706ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025707if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25709
25710
cristy8b350f62009-11-15 23:12:43 +000025711$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025712
cristy8b350f62009-11-15 23:12:43 +000025713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025714$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025716/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025717
25718 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025719int
25720main ()
25721{
25722clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025723 ;
25724 return 0;
25725}
25726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025727if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025728
cristy09b53e12011-10-14 12:47:22 +000025729 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25730$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025731
cristy8b350f62009-11-15 23:12:43 +000025732$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025733
25734
25735else
cristy09b53e12011-10-14 12:47:22 +000025736 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25737$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025738
25739fi
cristye43a45e2009-09-28 14:49:00 +000025740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741
25742else
25743
cristy8b350f62009-11-15 23:12:43 +000025744 for ac_func in gettimeofday ftime
25745do :
25746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25747ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025748if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025749 cat >>confdefs.h <<_ACEOF
25750#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25751_ACEOF
25752 break
25753fi
25754done
25755
25756
25757
25758fi
25759
25760
cristy3ed852e2009-09-05 21:47:34 +000025761########
25762#
25763# Check for function prototypes
25764#
25765########
25766
cristy8b350f62009-11-15 23:12:43 +000025767ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025768#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025769"
cristyda16f162011-02-19 23:52:17 +000025770if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025771 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025772else
cristy8b350f62009-11-15 23:12:43 +000025773 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025774fi
25775
cristy3ed852e2009-09-05 21:47:34 +000025776cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025777#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025779ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025780#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025781"
cristyda16f162011-02-19 23:52:17 +000025782if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025783 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025784else
cristy8b350f62009-11-15 23:12:43 +000025785 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025786fi
25787
cristy3ed852e2009-09-05 21:47:34 +000025788cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025789#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025790_ACEOF
25791
25792
cristy8b350f62009-11-15 23:12:43 +000025793ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025794#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025795"
cristyda16f162011-02-19 23:52:17 +000025796if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025797 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025798else
cristy8b350f62009-11-15 23:12:43 +000025799 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025800fi
25801
cristy3ed852e2009-09-05 21:47:34 +000025802cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025803#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025804_ACEOF
25805
25806
cristy8b350f62009-11-15 23:12:43 +000025807ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025808#include <stdio.h>
25809#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025810"
cristyda16f162011-02-19 23:52:17 +000025811if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025812 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025813else
cristy8b350f62009-11-15 23:12:43 +000025814 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025815fi
25816
cristy3ed852e2009-09-05 21:47:34 +000025817cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025818#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025819_ACEOF
25820
25821
cristy3ed852e2009-09-05 21:47:34 +000025822########
25823#
25824# C++ Support Tests (For Magick++)
25825#
25826########
25827have_magick_plus_plus='no'
25828if test "$with_magick_plus_plus" = 'yes'; then
25829 OLIBS="$LIBS"
25830 LIBS=''
25831 ac_ext=cpp
25832ac_cpp='$CXXCPP $CPPFLAGS'
25833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25836
25837
25838 # Full set of headers used...
25839 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25840 # functional iomanip iosfwd iostream iterator list string strstream utility
25841 ac_ext=cpp
25842ac_cpp='$CXXCPP $CPPFLAGS'
25843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25846
25847 ac_ext=cpp
25848ac_cpp='$CXXCPP $CPPFLAGS'
25849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25852if test -z "$CXX"; then
25853 if test -n "$CCC"; then
25854 CXX=$CCC
25855 else
25856 if test -n "$ac_tool_prefix"; then
25857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25858 do
25859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25860set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025862$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025863if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025864 $as_echo_n "(cached) " >&6
25865else
25866 if test -n "$CXX"; then
25867 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25868else
25869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25870for as_dir in $PATH
25871do
25872 IFS=$as_save_IFS
25873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025876 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025878 break 2
25879 fi
25880done
cristy8b350f62009-11-15 23:12:43 +000025881 done
cristy3ed852e2009-09-05 21:47:34 +000025882IFS=$as_save_IFS
25883
25884fi
25885fi
25886CXX=$ac_cv_prog_CXX
25887if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo "$CXX" >&6; }
25890else
cristy8b350f62009-11-15 23:12:43 +000025891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025892$as_echo "no" >&6; }
25893fi
25894
25895
25896 test -n "$CXX" && break
25897 done
25898fi
25899if test -z "$CXX"; then
25900 ac_ct_CXX=$CXX
25901 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25902do
25903 # Extract the first word of "$ac_prog", so it can be a program name with args.
25904set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025907if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025908 $as_echo_n "(cached) " >&6
25909else
25910 if test -n "$ac_ct_CXX"; then
25911 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25912else
25913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25914for as_dir in $PATH
25915do
25916 IFS=$as_save_IFS
25917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025920 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922 break 2
25923 fi
25924done
cristy8b350f62009-11-15 23:12:43 +000025925 done
cristy3ed852e2009-09-05 21:47:34 +000025926IFS=$as_save_IFS
25927
25928fi
25929fi
25930ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25931if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025933$as_echo "$ac_ct_CXX" >&6; }
25934else
cristy8b350f62009-11-15 23:12:43 +000025935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025936$as_echo "no" >&6; }
25937fi
25938
25939
25940 test -n "$ac_ct_CXX" && break
25941done
25942
25943 if test "x$ac_ct_CXX" = x; then
25944 CXX="g++"
25945 else
25946 case $cross_compiling:$ac_tool_warned in
25947yes:)
cristy8b350f62009-11-15 23:12:43 +000025948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25950ac_tool_warned=yes ;;
25951esac
25952 CXX=$ac_ct_CXX
25953 fi
25954fi
25955
25956 fi
25957fi
25958# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025959$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025960set X $ac_compile
25961ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025962for ac_option in --version -v -V -qversion; do
25963 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025964case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25967esac
cristy8b350f62009-11-15 23:12:43 +000025968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25969$as_echo "$ac_try_echo"; } >&5
25970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025971 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025972 if test -s conftest.err; then
25973 sed '10a\
25974... rest of stderr output deleted ...
25975 10q' conftest.err >conftest.er1
25976 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025977 fi
cristycd4c5312009-11-22 01:19:08 +000025978 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25980 test $ac_status = 0; }
25981done
cristy3ed852e2009-09-05 21:47:34 +000025982
cristy8b350f62009-11-15 23:12:43 +000025983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025984$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025985if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025986 $as_echo_n "(cached) " >&6
25987else
cristy8b350f62009-11-15 23:12:43 +000025988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025989/* end confdefs.h. */
25990
25991int
25992main ()
25993{
25994#ifndef __GNUC__
25995 choke me
25996#endif
25997
25998 ;
25999 return 0;
26000}
26001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026002if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 ac_compiler_gnu=yes
26004else
cristy8b350f62009-11-15 23:12:43 +000026005 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026006fi
cristy3ed852e2009-09-05 21:47:34 +000026007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26009
26010fi
cristy8b350f62009-11-15 23:12:43 +000026011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26013if test $ac_compiler_gnu = yes; then
26014 GXX=yes
26015else
26016 GXX=
26017fi
26018ac_test_CXXFLAGS=${CXXFLAGS+set}
26019ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026021$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026022if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026023 $as_echo_n "(cached) " >&6
26024else
26025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26026 ac_cxx_werror_flag=yes
26027 ac_cv_prog_cxx_g=no
26028 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026030/* end confdefs.h. */
26031
26032int
26033main ()
26034{
26035
26036 ;
26037 return 0;
26038}
26039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026040if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 ac_cv_prog_cxx_g=yes
26042else
cristy8b350f62009-11-15 23:12:43 +000026043 CXXFLAGS=""
26044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026045/* end confdefs.h. */
26046
26047int
26048main ()
26049{
26050
26051 ;
26052 return 0;
26053}
26054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026055if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026056
cristy8b350f62009-11-15 23:12:43 +000026057else
26058 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026059 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026061/* end confdefs.h. */
26062
26063int
26064main ()
26065{
26066
26067 ;
26068 return 0;
26069}
26070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026071if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026072 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026073fi
cristy3ed852e2009-09-05 21:47:34 +000026074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26075fi
cristy3ed852e2009-09-05 21:47:34 +000026076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26077fi
cristy3ed852e2009-09-05 21:47:34 +000026078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26080fi
cristy8b350f62009-11-15 23:12:43 +000026081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026082$as_echo "$ac_cv_prog_cxx_g" >&6; }
26083if test "$ac_test_CXXFLAGS" = set; then
26084 CXXFLAGS=$ac_save_CXXFLAGS
26085elif test $ac_cv_prog_cxx_g = yes; then
26086 if test "$GXX" = yes; then
26087 CXXFLAGS="-g -O2"
26088 else
26089 CXXFLAGS="-g"
26090 fi
26091else
26092 if test "$GXX" = yes; then
26093 CXXFLAGS="-O2"
26094 else
26095 CXXFLAGS=
26096 fi
26097fi
26098ac_ext=cpp
26099ac_cpp='$CXXCPP $CPPFLAGS'
26100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26103
cristy73bd4a52010-10-05 11:24:23 +000026104depcc="$CXX" am_compiler_list=
26105
26106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26107$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026108if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026109 $as_echo_n "(cached) " >&6
26110else
26111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26112 # We make a subdir and do the tests there. Otherwise we can end up
26113 # making bogus files that we don't know about and never remove. For
26114 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026115 # making a dummy file named 'D' -- because '-MD' means "put the output
26116 # in D".
cristy7247bba2012-02-05 16:37:27 +000026117 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026118 mkdir conftest.dir
26119 # Copy depcomp to subdir because otherwise we won't find it if we're
26120 # using a relative directory.
26121 cp "$am_depcomp" conftest.dir
26122 cd conftest.dir
26123 # We will build objects and dependencies in a subdirectory because
26124 # it helps to detect inapplicable dependency modes. For instance
26125 # both Tru64's cc and ICC support -MD to output dependencies as a
26126 # side effect of compilation, but ICC will put the dependencies in
26127 # the current directory while Tru64 will put them in the object
26128 # directory.
26129 mkdir sub
26130
26131 am_cv_CXX_dependencies_compiler_type=none
26132 if test "$am_compiler_list" = ""; then
26133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26134 fi
26135 am__universal=false
26136 case " $depcc " in #(
26137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26138 esac
26139
26140 for depmode in $am_compiler_list; do
26141 # Setup a source with many dependencies, because some compilers
26142 # like to wrap large dependency lists on column 80 (with \), and
26143 # we should not choose a depcomp mode which is confused by this.
26144 #
26145 # We need to recreate these files for each test, as the compiler may
26146 # overwrite some of them when testing with obscure command lines.
26147 # This happens at least with the AIX C compiler.
26148 : > sub/conftest.c
26149 for i in 1 2 3 4 5 6; do
26150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026151 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26152 # Solaris 10 /bin/sh.
26153 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026154 done
26155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26156
cristyc0890a62012-07-19 00:18:20 +000026157 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026158 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026159 # handle '-M -o', and we need to detect this. Also, some Intel
26160 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026161 am__obj=sub/conftest.${OBJEXT-o}
26162 am__minus_obj="-o $am__obj"
26163 case $depmode in
26164 gcc)
26165 # This depmode causes a compiler race in universal mode.
26166 test "$am__universal" = false || continue
26167 ;;
26168 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026169 # After this tag, mechanisms are not by side-effect, so they'll
26170 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026171 if test "x$enable_dependency_tracking" = xyes; then
26172 continue
26173 else
26174 break
26175 fi
26176 ;;
cristy7247bba2012-02-05 16:37:27 +000026177 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026178 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026179 # not run yet. These depmodes are late enough in the game, and
26180 # so weak that their functioning should not be impacted.
26181 am__obj=conftest.${OBJEXT-o}
26182 am__minus_obj=
26183 ;;
26184 none) break ;;
26185 esac
26186 if depmode=$depmode \
26187 source=sub/conftest.c object=$am__obj \
26188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26190 >/dev/null 2>conftest.err &&
26191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26195 # icc doesn't choke on unknown options, it will just issue warnings
26196 # or remarks (even with -Werror). So we grep stderr for any message
26197 # that says an option was ignored or not supported.
26198 # When given -MP, icc 7.0 and 7.1 complain thusly:
26199 # icc: Command line warning: ignoring option '-M'; no argument required
26200 # The diagnosis changed in icc 8.0:
26201 # icc: Command line remark: option '-MP' not supported
26202 if (grep 'ignoring option' conftest.err ||
26203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26204 am_cv_CXX_dependencies_compiler_type=$depmode
26205 break
26206 fi
26207 fi
26208 done
26209
26210 cd ..
26211 rm -rf conftest.dir
26212else
26213 am_cv_CXX_dependencies_compiler_type=none
26214fi
26215
26216fi
26217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26218$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26219CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26220
26221 if
26222 test "x$enable_dependency_tracking" != xno \
26223 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26224 am__fastdepCXX_TRUE=
26225 am__fastdepCXX_FALSE='#'
26226else
26227 am__fastdepCXX_TRUE='#'
26228 am__fastdepCXX_FALSE=
26229fi
26230
26231
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26233$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026234if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026235 $as_echo_n "(cached) " >&6
26236else
26237
26238 ac_ext=cpp
26239ac_cpp='$CXXCPP $CPPFLAGS'
26240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26243
26244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26245/* end confdefs.h. */
26246
26247int f(int x){return 1;}
26248int f(char x){return 1;}
26249int f(bool x){return 1;}
26250
26251int
26252main ()
26253{
26254bool b = true; return f(b);
26255 ;
26256 return 0;
26257}
26258_ACEOF
26259if ac_fn_cxx_try_compile "$LINENO"; then :
26260 ax_cv_cxx_bool=yes
26261else
26262 ax_cv_cxx_bool=no
26263fi
26264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26265 ac_ext=cpp
26266ac_cpp='$CXXCPP $CPPFLAGS'
26267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26270
26271
26272fi
26273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26274$as_echo "$ax_cv_cxx_bool" >&6; }
26275if test "$ax_cv_cxx_bool" = yes; then
26276
26277$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26278
26279fi
26280
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26282$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026283if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026284 $as_echo_n "(cached) " >&6
26285else
26286
26287 ac_ext=cpp
26288ac_cpp='$CXXCPP $CPPFLAGS'
26289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26292
26293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26294/* end confdefs.h. */
26295namespace Outer { namespace Inner { int i = 0; }}
26296int
26297main ()
26298{
26299using namespace Outer::Inner; return i;
26300 ;
26301 return 0;
26302}
26303_ACEOF
26304if ac_fn_cxx_try_compile "$LINENO"; then :
26305 ax_cv_cxx_namespaces=yes
26306else
26307 ax_cv_cxx_namespaces=no
26308fi
26309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26310 ac_ext=cpp
26311ac_cpp='$CXXCPP $CPPFLAGS'
26312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26315
26316
26317fi
26318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26319$as_echo "$ax_cv_cxx_namespaces" >&6; }
26320if test "$ax_cv_cxx_namespaces" = yes; then
26321
26322$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26323
26324fi
26325
26326
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26328$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026329if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026330 $as_echo_n "(cached) " >&6
26331else
26332
26333 ac_ext=cpp
26334ac_cpp='$CXXCPP $CPPFLAGS'
26335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26338
26339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26340/* end confdefs.h. */
26341#include <iostream>
26342 std::istream& is = std::cin;
26343int
26344main ()
26345{
26346
26347 ;
26348 return 0;
26349}
26350_ACEOF
26351if ac_fn_cxx_try_compile "$LINENO"; then :
26352 ax_cv_cxx_have_std_namespace=yes
26353else
26354 ax_cv_cxx_have_std_namespace=no
26355fi
26356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357 ac_ext=cpp
26358ac_cpp='$CXXCPP $CPPFLAGS'
26359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26362
26363
26364fi
26365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26366$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26367 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26368
26369$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26370
26371 fi
26372
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26374$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026375if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026376 $as_echo_n "(cached) " >&6
26377else
26378
26379
26380 ac_ext=cpp
26381ac_cpp='$CXXCPP $CPPFLAGS'
26382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26385
26386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26387/* end confdefs.h. */
26388#include <iostream>
26389#include <map>
26390#include <iomanip>
26391#include <cmath>
26392#ifdef HAVE_NAMESPACES
26393using namespace std;
26394#endif
26395int
26396main ()
26397{
26398return 0;
26399 ;
26400 return 0;
26401}
26402_ACEOF
26403if ac_fn_cxx_try_compile "$LINENO"; then :
26404 ac_cv_cxx_have_std_libs=yes
26405else
26406 ac_cv_cxx_have_std_libs=no
26407fi
26408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26409 ac_ext=cpp
26410ac_cpp='$CXXCPP $CPPFLAGS'
26411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26414
26415
26416fi
26417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26418$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26419if test "$ac_cv_cxx_have_std_libs" = yes; then
26420
26421$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26422
26423fi
26424
cristy3ed852e2009-09-05 21:47:34 +000026425
26426 OPENMP_CXXFLAGS=
26427 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026428if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026429 enableval=$enable_openmp;
26430fi
26431
26432 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26434$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026435if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026436 $as_echo_n "(cached) " >&6
26437else
cristy8b350f62009-11-15 23:12:43 +000026438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26439/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026440
26441#ifndef _OPENMP
26442 choke me
26443#endif
26444#include <omp.h>
26445int main () { return omp_get_num_threads (); }
26446
26447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026448if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026449 ac_cv_prog_cxx_openmp='none needed'
26450else
cristy8b350f62009-11-15 23:12:43 +000026451 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026452 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26453 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026454 ac_save_CXXFLAGS=$CXXFLAGS
26455 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26457/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026458
26459#ifndef _OPENMP
26460 choke me
26461#endif
26462#include <omp.h>
26463int main () { return omp_get_num_threads (); }
26464
26465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026466if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026467 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026468fi
cristy8b350f62009-11-15 23:12:43 +000026469rm -f core conftest.err conftest.$ac_objext \
26470 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026471 CXXFLAGS=$ac_save_CXXFLAGS
26472 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26473 break
26474 fi
26475 done
26476fi
cristy8b350f62009-11-15 23:12:43 +000026477rm -f core conftest.err conftest.$ac_objext \
26478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026479fi
cristy8b350f62009-11-15 23:12:43 +000026480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026481$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26482 case $ac_cv_prog_cxx_openmp in #(
26483 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026484 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026485 *)
cristy8b350f62009-11-15 23:12:43 +000026486 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026487 esac
26488 fi
26489
26490
26491 ac_ext=c
26492ac_cpp='$CPP $CPPFLAGS'
26493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26495ac_compiler_gnu=$ac_cv_c_compiler_gnu
26496
26497
cristy8b350f62009-11-15 23:12:43 +000026498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026499$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26500 if \
cristy964cb7f2010-04-25 23:18:00 +000026501 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026502 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026503 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026504 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026505 have_magick_plus_plus='yes'
26506 else
26507 have_magick_plus_plus='no (failed tests)'
26508 fi
cristy09b53e12011-10-14 12:47:22 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26510$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026511 LIBS="$OLIBS"
26512fi
cristy73bd4a52010-10-05 11:24:23 +000026513 if test "$have_magick_plus_plus" = 'yes'; then
26514 WITH_MAGICK_PLUS_PLUS_TRUE=
26515 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26516else
26517 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26518 WITH_MAGICK_PLUS_PLUS_FALSE=
26519fi
26520
cristy3ed852e2009-09-05 21:47:34 +000026521
26522# Only check for delegate libraries in subdirectories if requested.
26523if test "$enable_delegate_build" != 'no'; then
26524 # Check for delegate sub-directories and add -I & -L options as required.
26525 # This presumes that delegates are installed as detailed in the ImageMagick
26526 # README. If delegates are installed in a standard location where the
26527 # compiler will automatically find them then these options should not be
26528 # required.
26529
26530 #
26531 # Most delegates have includes in the same directory as the library, but not all...
26532 #
26533 # Includes
cristy2542fc62011-12-06 17:50:25 +000026534 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026535 if test -d "$builddir/$dir"; then
26536 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26537 else
26538 if test -d "$srcdirfull/$dir"; then
26539 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26540 fi
26541 fi
26542 done
26543
26544 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026545 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026546 if test -d "$builddir/$dir/.libs"; then
26547 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26548 else
26549 if test -d "$srcdirfull/$dir/.libs"; then
26550 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26551 fi
26552 fi
26553 if test -d "$builddir/$dir"; then
26554 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26555 else
26556 if test -d "$srcdirfull/$dir"; then
26557 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26558 fi
26559 fi
26560 done
26561fi
26562
26563# Assume that delegate headers reside under same directory as ImageMagick
26564# installation prefix.
26565MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26566
26567#
26568# Find the X11 RGB database
26569#
cristy8b350f62009-11-15 23:12:43 +000026570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026571$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026572if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 $as_echo_n "(cached) " >&6
26574else
26575 # Look for the header file in a standard set of common directories.
26576# Check X11 before X11Rn because it is often a symlink to the current release.
26577 for ac_dir in \
26578 /lib/usr/lib/X11 \
26579 /usr/X11/lib \
26580 /usr/X11R4/lib \
26581 /usr/X11R5/lib \
26582 /usr/X11R6/lib \
26583 /usr/X11R7/lib \
26584 /usr/X386/lib \
26585 /usr/XFree86/lib/X11 \
26586 /usr/athena/lib \
26587 /usr/lib \
26588 /usr/lib/X11 \
26589 /usr/lib/X11R4 \
26590 /usr/lib/X11R5 \
26591 /usr/lib/X11R6 \
26592 /usr/lib/X11R7 \
26593 /usr/local/X11/lib \
26594 /usr/local/X11R4/lib \
26595 /usr/local/X11R5/lib \
26596 /usr/local/X11R6/lib \
26597 /usr/local/lib \
26598 /usr/local/lib/X11 \
26599 /usr/local/lib/X11R4 \
26600 /usr/local/lib/X11R5 \
26601 /usr/local/lib/X11R6 \
26602 /usr/local/lib/X11R7 \
26603 /usr/local/x11r5/lib \
26604 /usr/lpp/Xamples/lib \
26605 /usr/openwin/lib \
26606 /usr/openwin/share/lib \
26607 /usr/unsupported/lib \
26608 /usr/x386/lib \
26609 ; do
26610 if test -f "$ac_dir/X11/rgb.txt"; then
26611 im_cv_x_configure="$ac_dir/X11/"
26612 break
26613 elif test -f "$ac_dir/rgb.txt"; then
26614 im_cv_x_configure="$ac_dir/"
26615 break
26616 fi
26617
26618 done
26619fi
cristy8b350f62009-11-15 23:12:43 +000026620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo "$im_cv_x_configure" >&6; }
26622X11_CONFIGURE_PATH="$im_cv_x_configure"
26623case "${build_os}" in
26624 mingw* )
26625 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26626 ;;
26627esac
26628
26629cat >>confdefs.h <<_ACEOF
26630#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26631_ACEOF
26632
26633
26634#
26635# Find OpenMP library
26636#
26637GOMP_LIBS=''
26638if test "$enable_openmp" != 'no'; then
26639 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026640 # Open64 (passes for GCC but uses different OpenMP implementation)
26641 if test "x$GOMP_LIBS" = x ; then
26642 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26644$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26645if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26646 $as_echo_n "(cached) " >&6
26647else
26648 ac_check_lib_save_LIBS=$LIBS
26649LIBS="-lopenmp $LIBS"
26650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651/* end confdefs.h. */
26652
26653/* Override any GCC internal prototype to avoid an error.
26654 Use char because int might match the return type of a GCC
26655 builtin and then its argument prototype would still apply. */
26656#ifdef __cplusplus
26657extern "C"
26658#endif
26659char omp_get_num_procs ();
26660int
26661main ()
26662{
26663return omp_get_num_procs ();
26664 ;
26665 return 0;
26666}
26667_ACEOF
26668if ac_fn_c_try_link "$LINENO"; then :
26669 ac_cv_lib_openmp_omp_get_num_procs=yes
26670else
26671 ac_cv_lib_openmp_omp_get_num_procs=no
26672fi
26673rm -f core conftest.err conftest.$ac_objext \
26674 conftest$ac_exeext conftest.$ac_ext
26675LIBS=$ac_check_lib_save_LIBS
26676fi
26677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26678$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26679if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26680 GOMP_LIBS="-lopenmp"
26681fi
26682
26683 fi
26684 fi
26685 # GCC
26686 if test "x$GOMP_LIBS" = x ; then
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026689if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026690 $as_echo_n "(cached) " >&6
26691else
26692 ac_check_lib_save_LIBS=$LIBS
26693LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026695/* end confdefs.h. */
26696
26697/* Override any GCC internal prototype to avoid an error.
26698 Use char because int might match the return type of a GCC
26699 builtin and then its argument prototype would still apply. */
26700#ifdef __cplusplus
26701extern "C"
26702#endif
26703char GOMP_parallel_start ();
26704int
26705main ()
26706{
26707return GOMP_parallel_start ();
26708 ;
26709 return 0;
26710}
26711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026713 ac_cv_lib_gomp_GOMP_parallel_start=yes
26714else
cristy8b350f62009-11-15 23:12:43 +000026715 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026716fi
cristy8b350f62009-11-15 23:12:43 +000026717rm -f core conftest.err conftest.$ac_objext \
26718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026719LIBS=$ac_check_lib_save_LIBS
26720fi
cristy8b350f62009-11-15 23:12:43 +000026721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026722$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026723if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 GOMP_LIBS="-lgomp"
26725fi
cristy18307f12011-12-30 01:20:16 +000026726
26727 fi
cristy3ed852e2009-09-05 21:47:34 +000026728 else
cristy18307f12011-12-30 01:20:16 +000026729 # Sun CC
26730 if test "x$GOMP_LIBS" = x ; then
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026733if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 $as_echo_n "(cached) " >&6
26735else
26736 ac_check_lib_save_LIBS=$LIBS
26737LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026739/* end confdefs.h. */
26740
26741/* Override any GCC internal prototype to avoid an error.
26742 Use char because int might match the return type of a GCC
26743 builtin and then its argument prototype would still apply. */
26744#ifdef __cplusplus
26745extern "C"
26746#endif
26747char sunw_mp_register_warn ();
26748int
26749main ()
26750{
26751return sunw_mp_register_warn ();
26752 ;
26753 return 0;
26754}
26755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26758else
cristy8b350f62009-11-15 23:12:43 +000026759 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026760fi
cristy8b350f62009-11-15 23:12:43 +000026761rm -f core conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026763LIBS=$ac_check_lib_save_LIBS
26764fi
cristy8b350f62009-11-15 23:12:43 +000026765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026766$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026767if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026768 GOMP_LIBS="-lmtsk"
26769fi
cristy18307f12011-12-30 01:20:16 +000026770
26771 fi
26772 # AIX xlc
26773 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026775$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026776if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026777 $as_echo_n "(cached) " >&6
26778else
26779 ac_check_lib_save_LIBS=$LIBS
26780LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026782/* end confdefs.h. */
26783
26784/* Override any GCC internal prototype to avoid an error.
26785 Use char because int might match the return type of a GCC
26786 builtin and then its argument prototype would still apply. */
26787#ifdef __cplusplus
26788extern "C"
26789#endif
26790char _xlsmpFlush ();
26791int
26792main ()
26793{
26794return _xlsmpFlush ();
26795 ;
26796 return 0;
26797}
26798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 ac_cv_lib_xlsmp__xlsmpFlush=yes
26801else
cristy8b350f62009-11-15 23:12:43 +000026802 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026803fi
cristy8b350f62009-11-15 23:12:43 +000026804rm -f core conftest.err conftest.$ac_objext \
26805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026806LIBS=$ac_check_lib_save_LIBS
26807fi
cristy8b350f62009-11-15 23:12:43 +000026808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026810if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026811 GOMP_LIBS="-lxlsmp"
26812fi
cristy18307f12011-12-30 01:20:16 +000026813
26814 fi
26815 # SGI IRIX 6.5 MIPSpro C/C++
26816 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026819if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026820 $as_echo_n "(cached) " >&6
26821else
26822 ac_check_lib_save_LIBS=$LIBS
26823LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026825/* end confdefs.h. */
26826
26827/* Override any GCC internal prototype to avoid an error.
26828 Use char because int might match the return type of a GCC
26829 builtin and then its argument prototype would still apply. */
26830#ifdef __cplusplus
26831extern "C"
26832#endif
26833char mp_destroy ();
26834int
26835main ()
26836{
26837return mp_destroy ();
26838 ;
26839 return 0;
26840}
26841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026842if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 ac_cv_lib_mp_mp_destroy=yes
26844else
cristy8b350f62009-11-15 23:12:43 +000026845 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026846fi
cristy8b350f62009-11-15 23:12:43 +000026847rm -f core conftest.err conftest.$ac_objext \
26848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026849LIBS=$ac_check_lib_save_LIBS
26850fi
cristy8b350f62009-11-15 23:12:43 +000026851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026852$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026853if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026854 GOMP_LIBS="-lmp"
26855fi
cristy18307f12011-12-30 01:20:16 +000026856
26857 fi
cristy3ed852e2009-09-05 21:47:34 +000026858 fi
26859 LIBS="$GOMP_LIBS $LIBS"
26860fi
26861
26862
26863#
26864# Find Posix threads library
26865#
26866THREAD_LIBS=''
26867if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26868
26869 if test "x$PTHREAD_LIBS" = "x"; then
26870 case "${host_cpu}-${host_os}" in
26871 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026872
26873
26874
26875ac_ext=c
26876ac_cpp='$CPP $CPPFLAGS'
26877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26879ac_compiler_gnu=$ac_cv_c_compiler_gnu
26880
26881magick_pthread_lib_ok=no
26882
26883LIB=-lc_r
26884save_LIBS="$LIBS"
26885LIBS="$LIBS $LIB"
26886
26887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26888$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26890/* end confdefs.h. */
26891#include <pthread.h>
26892int
26893main ()
26894{
26895 pthread_t th;
26896 pthread_join(th, 0);
26897 pthread_attr_init(0);
26898 pthread_cleanup_push(0, 0);
26899 pthread_create(0,0,0,0);
26900 pthread_cleanup_pop(0);
26901 ;
26902 return 0;
26903}
26904_ACEOF
26905if ac_fn_c_try_link "$LINENO"; then :
26906 magick_pthread_lib_ok=yes
26907fi
26908rm -f core conftest.err conftest.$ac_objext \
26909 conftest$ac_exeext conftest.$ac_ext
26910
26911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26912$as_echo "${magick_pthread_lib_ok}" >&6; }
26913if test "$magick_pthread_lib_ok" = yes
26914then
26915 PTHREAD_LIBS=-lc_r
26916 :
26917else
26918
26919 :
26920fi
26921
26922LIBS="$save_LIBS"
26923
26924ac_ext=c
26925ac_cpp='$CPP $CPPFLAGS'
26926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26928ac_compiler_gnu=$ac_cv_c_compiler_gnu
26929
26930 ;;
cristy3ed852e2009-09-05 21:47:34 +000026931 esac
26932 fi
26933
26934 for lib in pthread pthreads; do
26935 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026936
26937
26938
26939ac_ext=c
26940ac_cpp='$CPP $CPPFLAGS'
26941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26943ac_compiler_gnu=$ac_cv_c_compiler_gnu
26944
26945magick_pthread_lib_ok=no
26946
26947LIB=-l$lib
26948save_LIBS="$LIBS"
26949LIBS="$LIBS $LIB"
26950
26951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26952$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26954/* end confdefs.h. */
26955#include <pthread.h>
26956int
26957main ()
26958{
26959 pthread_t th;
26960 pthread_join(th, 0);
26961 pthread_attr_init(0);
26962 pthread_cleanup_push(0, 0);
26963 pthread_create(0,0,0,0);
26964 pthread_cleanup_pop(0);
26965 ;
26966 return 0;
26967}
26968_ACEOF
26969if ac_fn_c_try_link "$LINENO"; then :
26970 magick_pthread_lib_ok=yes
26971fi
26972rm -f core conftest.err conftest.$ac_objext \
26973 conftest$ac_exeext conftest.$ac_ext
26974
26975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26976$as_echo "${magick_pthread_lib_ok}" >&6; }
26977if test "$magick_pthread_lib_ok" = yes
26978then
26979 PTHREAD_LIBS=-l$lib
26980 :
26981else
26982
26983 :
26984fi
26985
26986LIBS="$save_LIBS"
26987
26988ac_ext=c
26989ac_cpp='$CPP $CPPFLAGS'
26990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26992ac_compiler_gnu=$ac_cv_c_compiler_gnu
26993
26994
cristy3ed852e2009-09-05 21:47:34 +000026995 fi
26996 done
26997
26998 THREAD_LIBS="$PTHREAD_LIBS"
26999 LIBS="$LIBS $THREAD_LIBS"
27000fi
27001
27002
27003#
27004# Check for umem.
27005#
27006have_umem='no'
27007UMEM_LIBS=''
27008if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27012$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027013 failed=0
27014 passed=0
cristy8b350f62009-11-15 23:12:43 +000027015 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027016if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027017 passed=`expr $passed + 1`
27018else
27019 failed=`expr $failed + 1`
27020fi
27021
27022
cristy8b350f62009-11-15 23:12:43 +000027023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027024$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027025if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027026 $as_echo_n "(cached) " >&6
27027else
27028 ac_check_lib_save_LIBS=$LIBS
27029LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027031/* end confdefs.h. */
27032
27033/* Override any GCC internal prototype to avoid an error.
27034 Use char because int might match the return type of a GCC
27035 builtin and then its argument prototype would still apply. */
27036#ifdef __cplusplus
27037extern "C"
27038#endif
27039char umem_alloc ();
27040int
27041main ()
27042{
27043return umem_alloc ();
27044 ;
27045 return 0;
27046}
27047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027049 ac_cv_lib_umem_umem_alloc=yes
27050else
cristy8b350f62009-11-15 23:12:43 +000027051 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027052fi
cristy8b350f62009-11-15 23:12:43 +000027053rm -f core conftest.err conftest.$ac_objext \
27054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027055LIBS=$ac_check_lib_save_LIBS
27056fi
cristy8b350f62009-11-15 23:12:43 +000027057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027058$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027059if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027060 passed=`expr $passed + 1`
27061else
27062 failed=`expr $failed + 1`
27063fi
27064
cristy8b350f62009-11-15 23:12:43 +000027065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027066$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027067if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 $as_echo_n "(cached) " >&6
27069else
27070 ac_check_lib_save_LIBS=$LIBS
27071LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027073/* end confdefs.h. */
27074
27075/* Override any GCC internal prototype to avoid an error.
27076 Use char because int might match the return type of a GCC
27077 builtin and then its argument prototype would still apply. */
27078#ifdef __cplusplus
27079extern "C"
27080#endif
27081char umem_free ();
27082int
27083main ()
27084{
27085return umem_free ();
27086 ;
27087 return 0;
27088}
27089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027091 ac_cv_lib_umem_umem_free=yes
27092else
cristy8b350f62009-11-15 23:12:43 +000027093 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027094fi
cristy8b350f62009-11-15 23:12:43 +000027095rm -f core conftest.err conftest.$ac_objext \
27096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027097LIBS=$ac_check_lib_save_LIBS
27098fi
cristy8b350f62009-11-15 23:12:43 +000027099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027101if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027102 passed=`expr $passed + 1`
27103else
27104 failed=`expr $failed + 1`
27105fi
27106
cristy8b350f62009-11-15 23:12:43 +000027107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027108$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27109 if test $passed -gt 0; then
27110 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027111 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27112$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027113 have_umem='no (failed tests)'
27114 else
27115 UMEM_LIBS='-lumem'
27116 LIBS="$UMEM_LIBS $LIBS"
27117
cristy8b350f62009-11-15 23:12:43 +000027118$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027119
cristy09b53e12011-10-14 12:47:22 +000027120 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27121$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027122 have_umem='yes'
27123 fi
27124 else
cristy09b53e12011-10-14 12:47:22 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27126$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027127 fi
27128fi
cristy73bd4a52010-10-05 11:24:23 +000027129 if test "$have_umem" = 'yes'; then
27130 HasUMEM_TRUE=
27131 HasUMEM_FALSE='#'
27132else
27133 HasUMEM_TRUE='#'
27134 HasUMEM_FALSE=
27135fi
27136
cristy3ed852e2009-09-05 21:47:34 +000027137
27138
27139#
27140# Add support for ccmalloc memory debugging library if requested
27141#
27142have_ccmalloc='no'
27143CCMALLOC_LIBS=''
27144if test "$enable_ccmalloc" = 'yes'; then
27145 # Extract the first word of "ccmalloc", so it can be a program name with args.
27146set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027148$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027149if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027150 $as_echo_n "(cached) " >&6
27151else
27152 case $CCMALLOCDelegate in
27153 [\\/]* | ?:[\\/]*)
27154 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27155 ;;
27156 *)
27157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27158for as_dir in $PATH
27159do
27160 IFS=$as_save_IFS
27161 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027164 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027166 break 2
27167 fi
27168done
cristy8b350f62009-11-15 23:12:43 +000027169 done
cristy3ed852e2009-09-05 21:47:34 +000027170IFS=$as_save_IFS
27171
27172 ;;
27173esac
27174fi
27175CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27176if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo "$CCMALLOCDelegate" >&6; }
27179else
cristy8b350f62009-11-15 23:12:43 +000027180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027181$as_echo "no" >&6; }
27182fi
27183
27184
27185 if test -n "$CCMALLOCDelegate"; then
27186 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27187 OLIBS="$LIBS"
27188 # Assume that gcc is used with ccmalloc.
27189 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027191$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027192if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027193 $as_echo_n "(cached) " >&6
27194else
27195 ac_check_lib_save_LIBS=$LIBS
27196LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198/* end confdefs.h. */
27199
27200/* Override any GCC internal prototype to avoid an error.
27201 Use char because int might match the return type of a GCC
27202 builtin and then its argument prototype would still apply. */
27203#ifdef __cplusplus
27204extern "C"
27205#endif
27206char ccmalloc_malloc ();
27207int
27208main ()
27209{
27210return ccmalloc_malloc ();
27211 ;
27212 return 0;
27213}
27214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27217else
cristy8b350f62009-11-15 23:12:43 +000027218 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027219fi
cristy8b350f62009-11-15 23:12:43 +000027220rm -f core conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027222LIBS=$ac_check_lib_save_LIBS
27223fi
cristy8b350f62009-11-15 23:12:43 +000027224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027226if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27228fi
27229
27230 if test -n "$CCMALLOC_LIBS"; then
27231 LIBS="$OLIBS"
27232 LIBS="$LIBS $CCMALLOC_LIBS"
27233 have_ccmalloc='yes'
27234 else
27235 LIBS="$OLIBS"
27236 fi
27237 fi
27238fi
27239
27240#
27241# Add support for efence memory debugging library if requested
27242#
27243if test "$enable_efence" = 'yes'; then
27244 EFENCE_LIBS='-lefence'
27245 LIBS="$EFENCE_LIBS $LIBS"
27246fi
27247
cristy3ed852e2009-09-05 21:47:34 +000027248
27249#
27250# Check for BZLIB
27251#
27252
27253
27254# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027255if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 withval=$with_bzlib; with_bzlib=$withval
27257else
27258 with_bzlib='yes'
27259fi
27260
27261
27262if test "$with_bzlib" != 'yes'; then
27263 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27264fi
27265
27266have_bzlib='no'
27267if test "$with_bzlib" != 'no'; then
27268 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027269 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27270$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027272$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27274$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027275 failed=0
27276 passed=0
27277 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027278 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027279if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 passed=`expr $passed + 1`
27281else
27282 failed=`expr $failed + 1`
27283fi
27284
27285
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027288if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027289 $as_echo_n "(cached) " >&6
27290else
27291 ac_check_lib_save_LIBS=$LIBS
27292LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294/* end confdefs.h. */
27295
27296/* Override any GCC internal prototype to avoid an error.
27297 Use char because int might match the return type of a GCC
27298 builtin and then its argument prototype would still apply. */
27299#ifdef __cplusplus
27300extern "C"
27301#endif
27302char BZ2_bzDecompress ();
27303int
27304main ()
27305{
27306return BZ2_bzDecompress ();
27307 ;
27308 return 0;
27309}
27310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27313else
cristy8b350f62009-11-15 23:12:43 +000027314 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027315fi
cristy8b350f62009-11-15 23:12:43 +000027316rm -f core conftest.err conftest.$ac_objext \
27317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027318LIBS=$ac_check_lib_save_LIBS
27319fi
cristy8b350f62009-11-15 23:12:43 +000027320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027321$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027322if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027323 found_libbz=`expr $found_libbz + 1`
27324fi
27325
27326 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027328$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027329if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 $as_echo_n "(cached) " >&6
27331else
27332 ac_check_lib_save_LIBS=$LIBS
27333LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027335/* end confdefs.h. */
27336
27337/* Override any GCC internal prototype to avoid an error.
27338 Use char because int might match the return type of a GCC
27339 builtin and then its argument prototype would still apply. */
27340#ifdef __cplusplus
27341extern "C"
27342#endif
27343char _imp__BZ2_decompress ();
27344int
27345main ()
27346{
27347return _imp__BZ2_decompress ();
27348 ;
27349 return 0;
27350}
27351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27354else
cristy8b350f62009-11-15 23:12:43 +000027355 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027356fi
cristy8b350f62009-11-15 23:12:43 +000027357rm -f core conftest.err conftest.$ac_objext \
27358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027359LIBS=$ac_check_lib_save_LIBS
27360fi
cristy8b350f62009-11-15 23:12:43 +000027361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027363if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027364 found_libbz=`expr $found_libbz + 1`
27365fi
27366
27367 fi
27368 if test $found_libbz -gt 0; then
27369 passed=`expr $passed + 1`
27370 else
27371 failed=`expr $failed + 1`
27372 fi
cristy8b350f62009-11-15 23:12:43 +000027373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo_n "checking if BZLIB package is complete... " >&6; }
27375 if test $passed -gt 0; then
27376 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027377 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27378$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027379 have_bzlib='no (failed tests)'
27380 else
27381 BZLIB_LIBS='-lbz2'
27382 LIBS="$BZLIB_LIBS $LIBS"
27383
cristy8b350f62009-11-15 23:12:43 +000027384$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027385
cristy09b53e12011-10-14 12:47:22 +000027386 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27387$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027388 have_bzlib='yes'
27389 fi
27390 else
cristy09b53e12011-10-14 12:47:22 +000027391 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27392$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027393 fi
27394fi
cristy73bd4a52010-10-05 11:24:23 +000027395 if test "$have_bzlib" = 'yes'; then
27396 BZLIB_DELEGATE_TRUE=
27397 BZLIB_DELEGATE_FALSE='#'
27398else
27399 BZLIB_DELEGATE_TRUE='#'
27400 BZLIB_DELEGATE_FALSE=
27401fi
27402
cristy3ed852e2009-09-05 21:47:34 +000027403
27404
27405#
27406# Find the X11 include and library directories.
27407#
27408IPC_LIBS=''
27409X11_LIBS=''
27410XEXT_LIBS=''
27411XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027413$as_echo_n "checking for X... " >&6; }
27414
27415
27416# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027417if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027418 withval=$with_x;
27419fi
27420
27421# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27422if test "x$with_x" = xno; then
27423 # The user explicitly disabled X.
27424 have_x=disabled
27425else
27426 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027427 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027428 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027429 $as_echo_n "(cached) " >&6
27430else
27431 # One or both of the vars are not set, and there is no cached value.
27432ac_x_includes=no ac_x_libraries=no
27433rm -f -r conftest.dir
27434if mkdir conftest.dir; then
27435 cd conftest.dir
27436 cat >Imakefile <<'_ACEOF'
27437incroot:
27438 @echo incroot='${INCROOT}'
27439usrlibdir:
27440 @echo usrlibdir='${USRLIBDIR}'
27441libdir:
27442 @echo libdir='${LIBDIR}'
27443_ACEOF
27444 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027445 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027446 for ac_var in incroot usrlibdir libdir; do
27447 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27448 done
27449 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27450 for ac_extension in a so sl dylib la dll; do
27451 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27452 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27453 ac_im_usrlibdir=$ac_im_libdir; break
27454 fi
27455 done
27456 # Screen out bogus values from the imake configuration. They are
27457 # bogus both because they are the default anyway, and because
27458 # using them would break gcc on systems where it needs fixed includes.
27459 case $ac_im_incroot in
27460 /usr/include) ac_x_includes= ;;
27461 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27462 esac
27463 case $ac_im_usrlibdir in
27464 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27465 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27466 esac
27467 fi
27468 cd ..
27469 rm -f -r conftest.dir
27470fi
27471
27472# Standard set of common directories for X headers.
27473# Check X11 before X11Rn because it is often a symlink to the current release.
27474ac_x_header_dirs='
27475/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027476/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027477/usr/X11R6/include
27478/usr/X11R5/include
27479/usr/X11R4/include
27480
27481/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027482/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027483/usr/include/X11R6
27484/usr/include/X11R5
27485/usr/include/X11R4
27486
27487/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027488/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027489/usr/local/X11R6/include
27490/usr/local/X11R5/include
27491/usr/local/X11R4/include
27492
27493/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027494/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027495/usr/local/include/X11R6
27496/usr/local/include/X11R5
27497/usr/local/include/X11R4
27498
27499/usr/X386/include
27500/usr/x386/include
27501/usr/XFree86/include/X11
27502
27503/usr/include
27504/usr/local/include
27505/usr/unsupported/include
27506/usr/athena/include
27507/usr/local/x11r5/include
27508/usr/lpp/Xamples/include
27509
27510/usr/openwin/include
27511/usr/openwin/share/include'
27512
27513if test "$ac_x_includes" = no; then
27514 # Guess where to find include files, by looking for Xlib.h.
27515 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027517/* end confdefs.h. */
27518#include <X11/Xlib.h>
27519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027520if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027521 # We can compile using X headers with no special include directory.
27522ac_x_includes=
27523else
cristyc7083c12009-10-14 03:16:55 +000027524 for ac_dir in $ac_x_header_dirs; do
27525 if test -r "$ac_dir/X11/Xlib.h"; then
27526 ac_x_includes=$ac_dir
27527 break
27528 fi
27529done
27530fi
cristyda16f162011-02-19 23:52:17 +000027531rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027532fi # $ac_x_includes = no
27533
27534if test "$ac_x_libraries" = no; then
27535 # Check for the libraries.
27536 # See if we find them without any special options.
27537 # Don't add to $LIBS permanently.
27538 ac_save_LIBS=$LIBS
27539 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027541/* end confdefs.h. */
27542#include <X11/Xlib.h>
27543int
27544main ()
27545{
27546XrmInitialize ()
27547 ;
27548 return 0;
27549}
27550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027551if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027552 LIBS=$ac_save_LIBS
27553# We can link X programs with no special library path.
27554ac_x_libraries=
27555else
cristy8b350f62009-11-15 23:12:43 +000027556 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027557for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27558do
27559 # Don't even attempt the hair of trying to link an X program!
27560 for ac_extension in a so sl dylib la dll; do
27561 if test -r "$ac_dir/libX11.$ac_extension"; then
27562 ac_x_libraries=$ac_dir
27563 break 2
27564 fi
27565 done
27566done
27567fi
cristy8b350f62009-11-15 23:12:43 +000027568rm -f core conftest.err conftest.$ac_objext \
27569 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027570fi # $ac_x_libraries = no
27571
27572case $ac_x_includes,$ac_x_libraries in #(
27573 no,* | *,no | *\'*)
27574 # Didn't find X, or a directory has "'" in its name.
27575 ac_cv_have_x="have_x=no";; #(
27576 *)
27577 # Record where we found X for the cache.
27578 ac_cv_have_x="have_x=yes\
27579 ac_x_includes='$ac_x_includes'\
27580 ac_x_libraries='$ac_x_libraries'"
27581esac
27582fi
27583;; #(
27584 *) have_x=yes;;
27585 esac
27586 eval "$ac_cv_have_x"
27587fi # $with_x != no
27588
27589if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027591$as_echo "$have_x" >&6; }
27592 no_x=yes
27593else
27594 # If each of the values was on the command line, it overrides each guess.
27595 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27596 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27597 # Update the cache value to reflect the command line values.
27598 ac_cv_have_x="have_x=yes\
27599 ac_x_includes='$x_includes'\
27600 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027602$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27603fi
27604
cristy3ed852e2009-09-05 21:47:34 +000027605if test "$no_x" = yes; then
27606 # Not all programs may use this symbol, but it does not hurt to define it.
27607
cristy8b350f62009-11-15 23:12:43 +000027608$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027609
27610 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27611else
27612 if test -n "$x_includes"; then
27613 X_CFLAGS="$X_CFLAGS -I$x_includes"
27614 fi
27615
27616 # It would also be nice to do this for all -L options, not just this one.
27617 if test -n "$x_libraries"; then
27618 X_LIBS="$X_LIBS -L$x_libraries"
27619 # For Solaris; some versions of Sun CC require a space after -R and
27620 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027622$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27623 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27624 ac_xsave_c_werror_flag=$ac_c_werror_flag
27625 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627/* end confdefs.h. */
27628
27629int
27630main ()
27631{
27632
27633 ;
27634 return 0;
27635}
27636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027637if ac_fn_c_try_link "$LINENO"; then :
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo "no" >&6; }
27640 X_LIBS="$X_LIBS -R$x_libraries"
27641else
cristy8b350f62009-11-15 23:12:43 +000027642 LIBS="$ac_xsave_LIBS -R $x_libraries"
27643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027644/* end confdefs.h. */
27645
27646int
27647main ()
27648{
27649
27650 ;
27651 return 0;
27652}
27653_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027654if ac_fn_c_try_link "$LINENO"; then :
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027656$as_echo "yes" >&6; }
27657 X_LIBS="$X_LIBS -R $x_libraries"
27658else
cristy8b350f62009-11-15 23:12:43 +000027659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo "neither works" >&6; }
27661fi
cristy8b350f62009-11-15 23:12:43 +000027662rm -f core conftest.err conftest.$ac_objext \
27663 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027664fi
cristy8b350f62009-11-15 23:12:43 +000027665rm -f core conftest.err conftest.$ac_objext \
27666 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027667 ac_c_werror_flag=$ac_xsave_c_werror_flag
27668 LIBS=$ac_xsave_LIBS
27669 fi
27670
27671 # Check for system-dependent libraries X programs must link with.
27672 # Do this before checking for the system-independent R6 libraries
27673 # (-lICE), since we may need -lsocket or whatever for X linking.
27674
27675 if test "$ISC" = yes; then
27676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27677 else
27678 # Martyn Johnson says this is needed for Ultrix, if the X
27679 # libraries were built with DECnet support. And Karl Berry says
27680 # the Alpha needs dnet_stub (dnet does not exist).
27681 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027683/* end confdefs.h. */
27684
27685/* Override any GCC internal prototype to avoid an error.
27686 Use char because int might match the return type of a GCC
27687 builtin and then its argument prototype would still apply. */
27688#ifdef __cplusplus
27689extern "C"
27690#endif
27691char XOpenDisplay ();
27692int
27693main ()
27694{
27695return XOpenDisplay ();
27696 ;
27697 return 0;
27698}
27699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027701
cristy8b350f62009-11-15 23:12:43 +000027702else
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027705if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 $as_echo_n "(cached) " >&6
27707else
27708 ac_check_lib_save_LIBS=$LIBS
27709LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027711/* end confdefs.h. */
27712
27713/* Override any GCC internal prototype to avoid an error.
27714 Use char because int might match the return type of a GCC
27715 builtin and then its argument prototype would still apply. */
27716#ifdef __cplusplus
27717extern "C"
27718#endif
27719char dnet_ntoa ();
27720int
27721main ()
27722{
27723return dnet_ntoa ();
27724 ;
27725 return 0;
27726}
27727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 ac_cv_lib_dnet_dnet_ntoa=yes
27730else
cristy8b350f62009-11-15 23:12:43 +000027731 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027732fi
cristy8b350f62009-11-15 23:12:43 +000027733rm -f core conftest.err conftest.$ac_objext \
27734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735LIBS=$ac_check_lib_save_LIBS
27736fi
cristy8b350f62009-11-15 23:12:43 +000027737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027739if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027740 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27741fi
27742
27743 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027745$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027746if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027747 $as_echo_n "(cached) " >&6
27748else
27749 ac_check_lib_save_LIBS=$LIBS
27750LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027752/* end confdefs.h. */
27753
27754/* Override any GCC internal prototype to avoid an error.
27755 Use char because int might match the return type of a GCC
27756 builtin and then its argument prototype would still apply. */
27757#ifdef __cplusplus
27758extern "C"
27759#endif
27760char dnet_ntoa ();
27761int
27762main ()
27763{
27764return dnet_ntoa ();
27765 ;
27766 return 0;
27767}
27768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027770 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27771else
cristy8b350f62009-11-15 23:12:43 +000027772 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027773fi
cristy8b350f62009-11-15 23:12:43 +000027774rm -f core conftest.err conftest.$ac_objext \
27775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776LIBS=$ac_check_lib_save_LIBS
27777fi
cristy8b350f62009-11-15 23:12:43 +000027778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027779$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027780if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027781 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27782fi
27783
27784 fi
27785fi
cristy8b350f62009-11-15 23:12:43 +000027786rm -f core conftest.err conftest.$ac_objext \
27787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027788 LIBS="$ac_xsave_LIBS"
27789
27790 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27791 # to get the SysV transport functions.
27792 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27793 # needs -lnsl.
27794 # The nsl library prevents programs from opening the X display
27795 # on Irix 5.2, according to T.E. Dickey.
27796 # The functions gethostbyname, getservbyname, and inet_addr are
27797 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027798 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027799if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027800
cristy3ed852e2009-09-05 21:47:34 +000027801fi
27802
cristy3ed852e2009-09-05 21:47:34 +000027803 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027806if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 $as_echo_n "(cached) " >&6
27808else
27809 ac_check_lib_save_LIBS=$LIBS
27810LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027812/* end confdefs.h. */
27813
27814/* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820char gethostbyname ();
27821int
27822main ()
27823{
27824return gethostbyname ();
27825 ;
27826 return 0;
27827}
27828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027830 ac_cv_lib_nsl_gethostbyname=yes
27831else
cristy8b350f62009-11-15 23:12:43 +000027832 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027833fi
cristy8b350f62009-11-15 23:12:43 +000027834rm -f core conftest.err conftest.$ac_objext \
27835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027836LIBS=$ac_check_lib_save_LIBS
27837fi
cristy8b350f62009-11-15 23:12:43 +000027838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027840if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27842fi
27843
27844 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027846$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027847if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027848 $as_echo_n "(cached) " >&6
27849else
27850 ac_check_lib_save_LIBS=$LIBS
27851LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027853/* end confdefs.h. */
27854
27855/* Override any GCC internal prototype to avoid an error.
27856 Use char because int might match the return type of a GCC
27857 builtin and then its argument prototype would still apply. */
27858#ifdef __cplusplus
27859extern "C"
27860#endif
27861char gethostbyname ();
27862int
27863main ()
27864{
27865return gethostbyname ();
27866 ;
27867 return 0;
27868}
27869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027871 ac_cv_lib_bsd_gethostbyname=yes
27872else
cristy8b350f62009-11-15 23:12:43 +000027873 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027874fi
cristy8b350f62009-11-15 23:12:43 +000027875rm -f core conftest.err conftest.$ac_objext \
27876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027877LIBS=$ac_check_lib_save_LIBS
27878fi
cristy8b350f62009-11-15 23:12:43 +000027879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027880$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027881if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27883fi
27884
27885 fi
27886 fi
27887
27888 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27889 # socket/setsockopt and other routines are undefined under SCO ODT
27890 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27891 # on later versions), says Simon Leinen: it contains gethostby*
27892 # variants that don't use the name server (or something). -lsocket
27893 # must be given before -lnsl if both are needed. We assume that
27894 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027895 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027896if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027897
cristy3ed852e2009-09-05 21:47:34 +000027898fi
27899
cristy3ed852e2009-09-05 21:47:34 +000027900 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027902$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027903if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027904 $as_echo_n "(cached) " >&6
27905else
27906 ac_check_lib_save_LIBS=$LIBS
27907LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027909/* end confdefs.h. */
27910
27911/* Override any GCC internal prototype to avoid an error.
27912 Use char because int might match the return type of a GCC
27913 builtin and then its argument prototype would still apply. */
27914#ifdef __cplusplus
27915extern "C"
27916#endif
27917char connect ();
27918int
27919main ()
27920{
27921return connect ();
27922 ;
27923 return 0;
27924}
27925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 ac_cv_lib_socket_connect=yes
27928else
cristy8b350f62009-11-15 23:12:43 +000027929 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027930fi
cristy8b350f62009-11-15 23:12:43 +000027931rm -f core conftest.err conftest.$ac_objext \
27932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027933LIBS=$ac_check_lib_save_LIBS
27934fi
cristy8b350f62009-11-15 23:12:43 +000027935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027936$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027937if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027938 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27939fi
27940
27941 fi
27942
27943 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027944 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027945if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027946
cristy3ed852e2009-09-05 21:47:34 +000027947fi
27948
cristy3ed852e2009-09-05 21:47:34 +000027949 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027951$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027952if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027953 $as_echo_n "(cached) " >&6
27954else
27955 ac_check_lib_save_LIBS=$LIBS
27956LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027958/* end confdefs.h. */
27959
27960/* Override any GCC internal prototype to avoid an error.
27961 Use char because int might match the return type of a GCC
27962 builtin and then its argument prototype would still apply. */
27963#ifdef __cplusplus
27964extern "C"
27965#endif
27966char remove ();
27967int
27968main ()
27969{
27970return remove ();
27971 ;
27972 return 0;
27973}
27974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027975if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027976 ac_cv_lib_posix_remove=yes
27977else
cristy8b350f62009-11-15 23:12:43 +000027978 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027979fi
cristy8b350f62009-11-15 23:12:43 +000027980rm -f core conftest.err conftest.$ac_objext \
27981 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027982LIBS=$ac_check_lib_save_LIBS
27983fi
cristy8b350f62009-11-15 23:12:43 +000027984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027985$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027986if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027987 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27988fi
27989
27990 fi
27991
27992 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027993 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027994if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027995
cristy3ed852e2009-09-05 21:47:34 +000027996fi
27997
cristy3ed852e2009-09-05 21:47:34 +000027998 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028000$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028001if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028002 $as_echo_n "(cached) " >&6
28003else
28004 ac_check_lib_save_LIBS=$LIBS
28005LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028007/* end confdefs.h. */
28008
28009/* Override any GCC internal prototype to avoid an error.
28010 Use char because int might match the return type of a GCC
28011 builtin and then its argument prototype would still apply. */
28012#ifdef __cplusplus
28013extern "C"
28014#endif
28015char shmat ();
28016int
28017main ()
28018{
28019return shmat ();
28020 ;
28021 return 0;
28022}
28023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 ac_cv_lib_ipc_shmat=yes
28026else
cristy8b350f62009-11-15 23:12:43 +000028027 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028028fi
cristy8b350f62009-11-15 23:12:43 +000028029rm -f core conftest.err conftest.$ac_objext \
28030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028031LIBS=$ac_check_lib_save_LIBS
28032fi
cristy8b350f62009-11-15 23:12:43 +000028033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028034$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028035if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28037fi
28038
28039 fi
28040 fi
28041
28042 # Check for libraries that X11R6 Xt/Xaw programs need.
28043 ac_save_LDFLAGS=$LDFLAGS
28044 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28045 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28046 # check for ICE first), but we must link in the order -lSM -lICE or
28047 # we get undefined symbols. So assume we have SM if we have ICE.
28048 # These have to be linked with before -lX11, unlike the other
28049 # libraries we check for below, so use a different variable.
28050 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028052$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028053if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028054 $as_echo_n "(cached) " >&6
28055else
28056 ac_check_lib_save_LIBS=$LIBS
28057LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028059/* end confdefs.h. */
28060
28061/* Override any GCC internal prototype to avoid an error.
28062 Use char because int might match the return type of a GCC
28063 builtin and then its argument prototype would still apply. */
28064#ifdef __cplusplus
28065extern "C"
28066#endif
28067char IceConnectionNumber ();
28068int
28069main ()
28070{
28071return IceConnectionNumber ();
28072 ;
28073 return 0;
28074}
28075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028076if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 ac_cv_lib_ICE_IceConnectionNumber=yes
28078else
cristy8b350f62009-11-15 23:12:43 +000028079 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028080fi
cristy8b350f62009-11-15 23:12:43 +000028081rm -f core conftest.err conftest.$ac_objext \
28082 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028083LIBS=$ac_check_lib_save_LIBS
28084fi
cristy8b350f62009-11-15 23:12:43 +000028085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028086$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028087if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028088 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28089fi
28090
28091 LDFLAGS=$ac_save_LDFLAGS
28092
28093fi
28094
28095if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028096 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28097$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028099$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028100 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28101$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028102 LDFLAGS="$LDFLAGS $X_LIBS"
28103 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28104 LIBS="$X11_LIBS $LIBS"
28105 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28106
28107
cristy8b350f62009-11-15 23:12:43 +000028108$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028109
28110 #
28111 # Check for X11 shared memory extension
28112 #
28113 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028114 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028115if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028116 have_shmctl='yes'
28117fi
28118
28119 if test "$have_shmctl" != 'yes'; then
28120 PERSIST_LIBS=$LIBS
28121 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028123/* end confdefs.h. */
28124
28125/* Override any GCC internal prototype to avoid an error.
28126 Use char because int might match the return type of a GCC
28127 builtin and then its argument prototype would still apply. */
28128#ifdef __cplusplus
28129extern "C"
28130#endif
28131char shmctl ();
28132int
28133main ()
28134{
28135return shmctl ();
28136 ;
28137 return 0;
28138}
28139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028141 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028142fi
cristy8b350f62009-11-15 23:12:43 +000028143rm -f core conftest.err conftest.$ac_objext \
28144 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028145 LIBS=$PERSIST_LIBS
28146 fi
28147
28148 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028150$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028151if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 $as_echo_n "(cached) " >&6
28153else
28154 ac_check_lib_save_LIBS=$LIBS
28155LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028157/* end confdefs.h. */
28158
28159/* Override any GCC internal prototype to avoid an error.
28160 Use char because int might match the return type of a GCC
28161 builtin and then its argument prototype would still apply. */
28162#ifdef __cplusplus
28163extern "C"
28164#endif
28165char XShmAttach ();
28166int
28167main ()
28168{
28169return XShmAttach ();
28170 ;
28171 return 0;
28172}
28173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 ac_cv_lib_Xext_XShmAttach=yes
28176else
cristy8b350f62009-11-15 23:12:43 +000028177 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028178fi
cristy8b350f62009-11-15 23:12:43 +000028179rm -f core conftest.err conftest.$ac_objext \
28180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028181LIBS=$ac_check_lib_save_LIBS
28182fi
cristy8b350f62009-11-15 23:12:43 +000028183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028185if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028186 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028187$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028188
28189fi
28190
28191 fi
28192
28193 #
28194 # Check for X11 shape extension
28195 #
cristy8b350f62009-11-15 23:12:43 +000028196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028197$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028198if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028199 $as_echo_n "(cached) " >&6
28200else
28201 ac_check_lib_save_LIBS=$LIBS
28202LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028204/* end confdefs.h. */
28205
28206/* Override any GCC internal prototype to avoid an error.
28207 Use char because int might match the return type of a GCC
28208 builtin and then its argument prototype would still apply. */
28209#ifdef __cplusplus
28210extern "C"
28211#endif
28212char XShapeCombineMask ();
28213int
28214main ()
28215{
28216return XShapeCombineMask ();
28217 ;
28218 return 0;
28219}
28220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028221if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 ac_cv_lib_Xext_XShapeCombineMask=yes
28223else
cristy8b350f62009-11-15 23:12:43 +000028224 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028225fi
cristy8b350f62009-11-15 23:12:43 +000028226rm -f core conftest.err conftest.$ac_objext \
28227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028228LIBS=$ac_check_lib_save_LIBS
28229fi
cristy8b350f62009-11-15 23:12:43 +000028230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028231$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028232if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028233 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028234$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028235
28236fi
28237
cristy8b350f62009-11-15 23:12:43 +000028238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028239$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028240if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028241 $as_echo_n "(cached) " >&6
28242else
28243 ac_check_lib_save_LIBS=$LIBS
28244LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028246/* end confdefs.h. */
28247
28248/* Override any GCC internal prototype to avoid an error.
28249 Use char because int might match the return type of a GCC
28250 builtin and then its argument prototype would still apply. */
28251#ifdef __cplusplus
28252extern "C"
28253#endif
28254char XtSetEventDispatcher ();
28255int
28256main ()
28257{
28258return XtSetEventDispatcher ();
28259 ;
28260 return 0;
28261}
28262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028263if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028264 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28265else
cristy8b350f62009-11-15 23:12:43 +000028266 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028267fi
cristy8b350f62009-11-15 23:12:43 +000028268rm -f core conftest.err conftest.$ac_objext \
28269 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028270LIBS=$ac_check_lib_save_LIBS
28271fi
cristy8b350f62009-11-15 23:12:43 +000028272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028273$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028274if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028275 XT_LIBS='-lXt'
28276fi
28277
28278 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28279fi
28280if test "$no_x" != 'yes'; then
28281 have_x='yes'
28282else
28283 have_x='no'
28284fi
cristy73bd4a52010-10-05 11:24:23 +000028285 if test "$have_x" = 'yes'; then
28286 X11_DELEGATE_TRUE=
28287 X11_DELEGATE_FALSE='#'
28288else
28289 X11_DELEGATE_TRUE='#'
28290 X11_DELEGATE_FALSE=
28291fi
28292
cristy3ed852e2009-09-05 21:47:34 +000028293
28294
28295
28296
28297#
28298# Check for ZLIB
28299#
28300
28301# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028302if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028303 withval=$with_zlib; with_zlib=$withval
28304else
28305 with_zlib='yes'
28306fi
28307
28308
28309if test "$with_zlib" != 'yes'; then
28310 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28311fi
28312
28313have_zlib='no'
28314ZLIB_LIBS=''
28315if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028316 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28317$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028319$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028320 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28321$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028322 ZLIB_LIBS=''
28323 failed=0
28324 passed=0
cristy8b350f62009-11-15 23:12:43 +000028325 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028326if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028327 passed=`expr $passed + 1`
28328else
28329 failed=`expr $failed + 1`
28330fi
28331
28332
cristy8b350f62009-11-15 23:12:43 +000028333 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028334if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 passed=`expr $passed + 1`
28336else
28337 failed=`expr $failed + 1`
28338fi
28339
28340
cristy8b350f62009-11-15 23:12:43 +000028341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028343if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028344 $as_echo_n "(cached) " >&6
28345else
28346 ac_check_lib_save_LIBS=$LIBS
28347LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028349/* end confdefs.h. */
28350
28351/* Override any GCC internal prototype to avoid an error.
28352 Use char because int might match the return type of a GCC
28353 builtin and then its argument prototype would still apply. */
28354#ifdef __cplusplus
28355extern "C"
28356#endif
28357char compress ();
28358int
28359main ()
28360{
28361return compress ();
28362 ;
28363 return 0;
28364}
28365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028367 ac_cv_lib_z_compress=yes
28368else
cristy8b350f62009-11-15 23:12:43 +000028369 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028370fi
cristy8b350f62009-11-15 23:12:43 +000028371rm -f core conftest.err conftest.$ac_objext \
28372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028373LIBS=$ac_check_lib_save_LIBS
28374fi
cristy8b350f62009-11-15 23:12:43 +000028375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028377if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028378 passed=`expr $passed + 1`
28379else
28380 failed=`expr $failed + 1`
28381fi
28382
cristy8b350f62009-11-15 23:12:43 +000028383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028385if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028386 $as_echo_n "(cached) " >&6
28387else
28388 ac_check_lib_save_LIBS=$LIBS
28389LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028391/* end confdefs.h. */
28392
28393/* Override any GCC internal prototype to avoid an error.
28394 Use char because int might match the return type of a GCC
28395 builtin and then its argument prototype would still apply. */
28396#ifdef __cplusplus
28397extern "C"
28398#endif
28399char uncompress ();
28400int
28401main ()
28402{
28403return uncompress ();
28404 ;
28405 return 0;
28406}
28407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 ac_cv_lib_z_uncompress=yes
28410else
cristy8b350f62009-11-15 23:12:43 +000028411 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028412fi
cristy8b350f62009-11-15 23:12:43 +000028413rm -f core conftest.err conftest.$ac_objext \
28414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028415LIBS=$ac_check_lib_save_LIBS
28416fi
cristy8b350f62009-11-15 23:12:43 +000028417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028418$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028419if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 passed=`expr $passed + 1`
28421else
28422 failed=`expr $failed + 1`
28423fi
28424
cristy8b350f62009-11-15 23:12:43 +000028425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028426$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028427if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028428 $as_echo_n "(cached) " >&6
28429else
28430 ac_check_lib_save_LIBS=$LIBS
28431LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028433/* end confdefs.h. */
28434
28435/* Override any GCC internal prototype to avoid an error.
28436 Use char because int might match the return type of a GCC
28437 builtin and then its argument prototype would still apply. */
28438#ifdef __cplusplus
28439extern "C"
28440#endif
28441char deflate ();
28442int
28443main ()
28444{
28445return deflate ();
28446 ;
28447 return 0;
28448}
28449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028450if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028451 ac_cv_lib_z_deflate=yes
28452else
cristy8b350f62009-11-15 23:12:43 +000028453 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028454fi
cristy8b350f62009-11-15 23:12:43 +000028455rm -f core conftest.err conftest.$ac_objext \
28456 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028457LIBS=$ac_check_lib_save_LIBS
28458fi
cristy8b350f62009-11-15 23:12:43 +000028459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028460$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028461if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028462 passed=`expr $passed + 1`
28463else
28464 failed=`expr $failed + 1`
28465fi
28466
cristy8b350f62009-11-15 23:12:43 +000028467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028469if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 $as_echo_n "(cached) " >&6
28471else
28472 ac_check_lib_save_LIBS=$LIBS
28473LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028475/* end confdefs.h. */
28476
28477/* Override any GCC internal prototype to avoid an error.
28478 Use char because int might match the return type of a GCC
28479 builtin and then its argument prototype would still apply. */
28480#ifdef __cplusplus
28481extern "C"
28482#endif
28483char inflate ();
28484int
28485main ()
28486{
28487return inflate ();
28488 ;
28489 return 0;
28490}
28491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 ac_cv_lib_z_inflate=yes
28494else
cristy8b350f62009-11-15 23:12:43 +000028495 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028496fi
cristy8b350f62009-11-15 23:12:43 +000028497rm -f core conftest.err conftest.$ac_objext \
28498 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028499LIBS=$ac_check_lib_save_LIBS
28500fi
cristy8b350f62009-11-15 23:12:43 +000028501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028502$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028503if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028504 passed=`expr $passed + 1`
28505else
28506 failed=`expr $failed + 1`
28507fi
28508
cristy8b350f62009-11-15 23:12:43 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028511if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 $as_echo_n "(cached) " >&6
28513else
28514 ac_check_lib_save_LIBS=$LIBS
28515LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028517/* end confdefs.h. */
28518
28519/* Override any GCC internal prototype to avoid an error.
28520 Use char because int might match the return type of a GCC
28521 builtin and then its argument prototype would still apply. */
28522#ifdef __cplusplus
28523extern "C"
28524#endif
28525char gzseek ();
28526int
28527main ()
28528{
28529return gzseek ();
28530 ;
28531 return 0;
28532}
28533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028534if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028535 ac_cv_lib_z_gzseek=yes
28536else
cristy8b350f62009-11-15 23:12:43 +000028537 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028538fi
cristy8b350f62009-11-15 23:12:43 +000028539rm -f core conftest.err conftest.$ac_objext \
28540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028541LIBS=$ac_check_lib_save_LIBS
28542fi
cristy8b350f62009-11-15 23:12:43 +000028543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028544$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028545if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028546 passed=`expr $passed + 1`
28547else
28548 failed=`expr $failed + 1`
28549fi
28550
cristy8b350f62009-11-15 23:12:43 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028553if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028554 $as_echo_n "(cached) " >&6
28555else
28556 ac_check_lib_save_LIBS=$LIBS
28557LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028559/* end confdefs.h. */
28560
28561/* Override any GCC internal prototype to avoid an error.
28562 Use char because int might match the return type of a GCC
28563 builtin and then its argument prototype would still apply. */
28564#ifdef __cplusplus
28565extern "C"
28566#endif
28567char gztell ();
28568int
28569main ()
28570{
28571return gztell ();
28572 ;
28573 return 0;
28574}
28575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028576if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028577 ac_cv_lib_z_gztell=yes
28578else
cristy8b350f62009-11-15 23:12:43 +000028579 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028580fi
cristy8b350f62009-11-15 23:12:43 +000028581rm -f core conftest.err conftest.$ac_objext \
28582 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028583LIBS=$ac_check_lib_save_LIBS
28584fi
cristy8b350f62009-11-15 23:12:43 +000028585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028586$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028587if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028588 passed=`expr $passed + 1`
28589else
28590 failed=`expr $failed + 1`
28591fi
28592
cristy8b350f62009-11-15 23:12:43 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo_n "checking if ZLIB package is complete... " >&6; }
28595 if test $passed -gt 0; then
28596 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028597 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28598$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028599 have_zlib='no (failed tests)'
28600 else
28601 ZLIB_LIBS='-lz'
28602 LIBS="$ZLIB_LIBS $LIBS"
28603
cristy8b350f62009-11-15 23:12:43 +000028604$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028605
cristy09b53e12011-10-14 12:47:22 +000028606 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28607$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028608 have_zlib='yes'
28609 fi
28610 else
cristy09b53e12011-10-14 12:47:22 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28612$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028613 fi
28614fi
cristy73bd4a52010-10-05 11:24:23 +000028615 if test "$have_zlib" = 'yes'; then
28616 ZLIB_DELEGATE_TRUE=
28617 ZLIB_DELEGATE_FALSE='#'
28618else
28619 ZLIB_DELEGATE_TRUE='#'
28620 ZLIB_DELEGATE_FALSE=
28621fi
28622
cristy3ed852e2009-09-05 21:47:34 +000028623
28624
28625#
28626# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28627#
28628LIB_DL=''
28629if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028631$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028632if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028633 $as_echo_n "(cached) " >&6
28634else
28635 ac_check_lib_save_LIBS=$LIBS
28636LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028638/* end confdefs.h. */
28639
28640/* Override any GCC internal prototype to avoid an error.
28641 Use char because int might match the return type of a GCC
28642 builtin and then its argument prototype would still apply. */
28643#ifdef __cplusplus
28644extern "C"
28645#endif
28646char dlopen ();
28647int
28648main ()
28649{
28650return dlopen ();
28651 ;
28652 return 0;
28653}
28654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028656 ac_cv_lib_dl_dlopen=yes
28657else
cristy8b350f62009-11-15 23:12:43 +000028658 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028659fi
cristy8b350f62009-11-15 23:12:43 +000028660rm -f core conftest.err conftest.$ac_objext \
28661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028662LIBS=$ac_check_lib_save_LIBS
28663fi
cristy8b350f62009-11-15 23:12:43 +000028664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028665$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028666if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028667 LIB_DL='-ldl'
28668fi
28669
28670 LIBS="$LIB_DL $LIBS"
28671fi
28672
28673
28674
28675#
28676# Check for Autotrace delegate library.
28677#
28678
28679# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028680if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 withval=$with_autotrace; with_autotrace=$withval
28682else
28683 with_autotrace='no'
28684fi
28685
28686
28687if test "$with_autotrace" != 'yes'; then
28688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28689fi
28690
28691have_autotrace='no'
28692AUTOTRACE_CFLAGS=""
28693AUTOTRACE_LIBS=""
28694AUTOTRACE_PKG=""
28695if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028696 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28697$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028698
28699pkg_failed=no
28700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28701$as_echo_n "checking for AUTOTRACE... " >&6; }
28702
28703if test -n "$AUTOTRACE_CFLAGS"; then
28704 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28705 elif test -n "$PKG_CONFIG"; then
28706 if test -n "$PKG_CONFIG" && \
28707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28708 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28709 ac_status=$?
28710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28711 test $ac_status = 0; }; then
28712 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28713else
28714 pkg_failed=yes
28715fi
28716 else
28717 pkg_failed=untried
28718fi
28719if test -n "$AUTOTRACE_LIBS"; then
28720 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28721 elif test -n "$PKG_CONFIG"; then
28722 if test -n "$PKG_CONFIG" && \
28723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28724 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28725 ac_status=$?
28726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28727 test $ac_status = 0; }; then
28728 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28729else
28730 pkg_failed=yes
28731fi
28732 else
28733 pkg_failed=untried
28734fi
28735
28736
28737
28738if test $pkg_failed = yes; then
28739
28740if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28741 _pkg_short_errors_supported=yes
28742else
28743 _pkg_short_errors_supported=no
28744fi
28745 if test $_pkg_short_errors_supported = yes; then
28746 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28747 else
28748 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28749 fi
28750 # Put the nasty error message in config.log where it belongs
28751 echo "$AUTOTRACE_PKG_ERRORS" >&5
28752
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28754$as_echo "no" >&6; }
28755 have_autotrace=no
28756elif test $pkg_failed = untried; then
28757 have_autotrace=no
28758else
28759 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28760 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28762$as_echo "yes" >&6; }
28763 have_autotrace=yes
28764fi
cristy09b53e12011-10-14 12:47:22 +000028765 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28766$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028767fi
28768
28769if test "$have_autotrace" = 'yes'; then
28770 failed=0
28771
cristy8b350f62009-11-15 23:12:43 +000028772$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028773
28774 if test "$with_modules" = 'no'; then
28775 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28776 fi
28777fi
28778
cristy73bd4a52010-10-05 11:24:23 +000028779 if test "$have_autotrace" = 'yes'; then
28780 AUTOTRACE_DELEGATE_TRUE=
28781 AUTOTRACE_DELEGATE_FALSE='#'
28782else
28783 AUTOTRACE_DELEGATE_TRUE='#'
28784 AUTOTRACE_DELEGATE_FALSE=
28785fi
28786
cristy3ed852e2009-09-05 21:47:34 +000028787
28788
28789
28790
28791#
28792# Check for Display Postscript delegate library.
28793#
28794
28795# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028796if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028797 withval=$with_dps; with_dps=$withval
28798else
28799 with_dps='yes'
28800fi
28801
28802
28803if test "$with_dps" != 'yes'; then
28804 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28805fi
28806
28807have_dps='no'
28808DPS_LIBS=''
28809if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028810 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28811$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028813$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028814 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28815$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028816 failed=0
28817 passed=0
28818 PERSIST_CPPFLAGS="$CPPFLAGS"
28819 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028820 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 +000028821if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028822 passed=`expr $passed + 1`
28823else
28824 failed=`expr $failed + 1`
28825fi
28826
28827
28828 # DPS issues:
28829 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28830 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28831 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28832 # ImageMagick itself doesn't use -lXt.
28833 have_libdps='no'
28834 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028836$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028837if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028838 $as_echo_n "(cached) " >&6
28839else
28840 ac_check_lib_save_LIBS=$LIBS
28841LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028843/* end confdefs.h. */
28844
28845/* Override any GCC internal prototype to avoid an error.
28846 Use char because int might match the return type of a GCC
28847 builtin and then its argument prototype would still apply. */
28848#ifdef __cplusplus
28849extern "C"
28850#endif
28851char DPSInitialize ();
28852int
28853main ()
28854{
28855return DPSInitialize ();
28856 ;
28857 return 0;
28858}
28859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028860if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 ac_cv_lib_dps_DPSInitialize=yes
28862else
cristy8b350f62009-11-15 23:12:43 +000028863 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028864fi
cristy8b350f62009-11-15 23:12:43 +000028865rm -f core conftest.err conftest.$ac_objext \
28866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028867LIBS=$ac_check_lib_save_LIBS
28868fi
cristy8b350f62009-11-15 23:12:43 +000028869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028870$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028871if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028872 have_libdps='yes'
28873else
28874 have_libdps='no'
28875fi
28876
28877 if test "$have_libdps" != 'yes'; then
28878 # Unset cache variable so we can try again.
28879 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028881$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028882if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028883 $as_echo_n "(cached) " >&6
28884else
28885 ac_check_lib_save_LIBS=$LIBS
28886LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028888/* end confdefs.h. */
28889
28890/* Override any GCC internal prototype to avoid an error.
28891 Use char because int might match the return type of a GCC
28892 builtin and then its argument prototype would still apply. */
28893#ifdef __cplusplus
28894extern "C"
28895#endif
28896char DPSInitialize ();
28897int
28898main ()
28899{
28900return DPSInitialize ();
28901 ;
28902 return 0;
28903}
28904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028906 ac_cv_lib_dps_DPSInitialize=yes
28907else
cristy8b350f62009-11-15 23:12:43 +000028908 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028909fi
cristy8b350f62009-11-15 23:12:43 +000028910rm -f core conftest.err conftest.$ac_objext \
28911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028912LIBS=$ac_check_lib_save_LIBS
28913fi
cristy8b350f62009-11-15 23:12:43 +000028914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028915$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028916if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028917 have_libdps='yes'
28918else
28919 have_libdps='no'
28920fi
28921
28922 if test "$have_libdps" = 'yes'; then
28923 LIBDPS_XT='-lXt'
28924 fi
28925 fi
28926 if test "$have_libdps" = 'yes'; then
28927 passed=`expr $passed + 1`
28928 else
28929 failed=`expr $failed + 1`
28930 fi
cristy8b350f62009-11-15 23:12:43 +000028931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028932$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028933if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 $as_echo_n "(cached) " >&6
28935else
28936 ac_check_lib_save_LIBS=$LIBS
28937LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028939/* end confdefs.h. */
28940
28941/* Override any GCC internal prototype to avoid an error.
28942 Use char because int might match the return type of a GCC
28943 builtin and then its argument prototype would still apply. */
28944#ifdef __cplusplus
28945extern "C"
28946#endif
28947char XDPSPixelsPerPoint ();
28948int
28949main ()
28950{
28951return XDPSPixelsPerPoint ();
28952 ;
28953 return 0;
28954}
28955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28958else
cristy8b350f62009-11-15 23:12:43 +000028959 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028960fi
cristy8b350f62009-11-15 23:12:43 +000028961rm -f core conftest.err conftest.$ac_objext \
28962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028963LIBS=$ac_check_lib_save_LIBS
28964fi
cristy8b350f62009-11-15 23:12:43 +000028965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028966$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028967if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028968 passed=`expr $passed + 1`
28969else
28970 failed=`expr $failed + 1`
28971fi
28972
cristy8b350f62009-11-15 23:12:43 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028974$as_echo_n "checking if DPS package is complete... " >&6; }
28975 if test $passed -gt 0; then
28976 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28978$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028979 have_dps='no (failed tests)'
28980 CPPFLAGS="$PERSIST_CPPFLAGS"
28981 else
28982 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28983 LIBS="$DPS_LIBS $LIBS"
28984
cristy8b350f62009-11-15 23:12:43 +000028985$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028986
cristy09b53e12011-10-14 12:47:22 +000028987 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28988$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028989 have_dps='yes'
28990 fi
28991 else
cristy09b53e12011-10-14 12:47:22 +000028992 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28993$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028994 CPPFLAGS=$PERSIST_CPPFLAGS
28995 fi
28996fi
cristy73bd4a52010-10-05 11:24:23 +000028997 if test "$have_dps" = 'yes'; then
28998 DPS_DELEGATE_TRUE=
28999 DPS_DELEGATE_FALSE='#'
29000else
29001 DPS_DELEGATE_TRUE='#'
29002 DPS_DELEGATE_FALSE=
29003fi
29004
cristy3ed852e2009-09-05 21:47:34 +000029005
29006
29007
29008#
29009# Check for DJVU delegate library.
29010#
29011
29012# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029013if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029014 withval=$with_djvu; with_djvu=$withval
29015else
29016 with_djvu='yes'
29017fi
29018
29019
29020if test "$with_djvu" != 'yes'; then
29021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29022fi
29023
29024have_djvu='no'
29025DJVU_LIBS=''
29026if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029027 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29028$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029030$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029031 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29032$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029033 failed=0
29034 passed=0
cristy8b350f62009-11-15 23:12:43 +000029035 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 +000029036if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029037 passed=`expr $passed + 1`
29038else
29039 failed=`expr $failed + 1`
29040fi
29041
29042
cristy8b350f62009-11-15 23:12:43 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029045if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029046 $as_echo_n "(cached) " >&6
29047else
29048 ac_check_lib_save_LIBS=$LIBS
29049LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029051/* end confdefs.h. */
29052
29053/* Override any GCC internal prototype to avoid an error.
29054 Use char because int might match the return type of a GCC
29055 builtin and then its argument prototype would still apply. */
29056#ifdef __cplusplus
29057extern "C"
29058#endif
29059char ddjvu_context_create ();
29060int
29061main ()
29062{
29063return ddjvu_context_create ();
29064 ;
29065 return 0;
29066}
29067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029068if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029069 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29070else
cristy8b350f62009-11-15 23:12:43 +000029071 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029072fi
cristy8b350f62009-11-15 23:12:43 +000029073rm -f core conftest.err conftest.$ac_objext \
29074 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029075LIBS=$ac_check_lib_save_LIBS
29076fi
cristy8b350f62009-11-15 23:12:43 +000029077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029078$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029079if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029080 passed=`expr $passed + 1`
29081else
29082 failed=`expr $failed + 1`
29083fi
29084
cristy8b350f62009-11-15 23:12:43 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029086$as_echo_n "checking if DJVU package is complete... " >&6; }
29087 if test $passed -gt 0; then
29088 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029089 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29090$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029091 have_djvu='no (failed tests)'
29092 else
29093 DJVU_LIBS='-ldjvulibre'
29094 LIBS="$DJVU_LIBS $LIBS"
29095
cristy8b350f62009-11-15 23:12:43 +000029096$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029097
cristy09b53e12011-10-14 12:47:22 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29099$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029100 have_djvu='yes'
29101 fi
29102 else
cristy09b53e12011-10-14 12:47:22 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29104$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029105 fi
29106fi
cristy73bd4a52010-10-05 11:24:23 +000029107 if test "$have_djvu" = 'yes'; then
29108 DJVU_DELEGATE_TRUE=
29109 DJVU_DELEGATE_FALSE='#'
29110else
29111 DJVU_DELEGATE_TRUE='#'
29112 DJVU_DELEGATE_FALSE=
29113fi
29114
cristy3ed852e2009-09-05 21:47:34 +000029115
29116
29117
29118#
cristy430a7312010-01-21 20:44:04 +000029119# Set DejaVu font directory.
29120#
29121
29122# Check whether --with-dejavu-font-dir was given.
29123if test "${with_dejavu_font_dir+set}" = set; then :
29124 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29125else
29126 with_dejavu_font_dir='default'
29127fi
29128
29129
29130if test "$with_dejavu_font_dir" != 'default'; then
29131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29132fi
29133
29134
29135#
cristy3ed852e2009-09-05 21:47:34 +000029136# Check for FFTW delegate library.
29137#
29138
29139# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029140if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029141 withval=$with_fftw; with_fftw=$withval
29142else
29143 with_fftw='yes'
29144fi
29145
29146
29147if test "$with_fftw" != 'yes'; then
29148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29149fi
29150
cristy81beccd2011-10-03 18:17:24 +000029151have_fftw='no'
29152FFTW_LIBS=''
29153if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029154 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29155$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29157$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029158 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29159$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029160 failed=0
29161 passed=0
29162 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29163if test "x$ac_cv_header_fftw3_h" = xyes; then :
29164 passed=`expr $passed + 1`
29165else
29166 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029167fi
29168
cristy81beccd2011-10-03 18:17:24 +000029169
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29171$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29172if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29173 $as_echo_n "(cached) " >&6
29174else
29175 ac_check_lib_save_LIBS=$LIBS
29176LIBS="-lfftw3 $LIBS"
29177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29178/* end confdefs.h. */
29179
29180/* Override any GCC internal prototype to avoid an error.
29181 Use char because int might match the return type of a GCC
29182 builtin and then its argument prototype would still apply. */
29183#ifdef __cplusplus
29184extern "C"
29185#endif
29186char fftw_execute ();
29187int
29188main ()
29189{
29190return fftw_execute ();
29191 ;
29192 return 0;
29193}
29194_ACEOF
29195if ac_fn_c_try_link "$LINENO"; then :
29196 ac_cv_lib_fftw3_fftw_execute=yes
29197else
29198 ac_cv_lib_fftw3_fftw_execute=no
29199fi
29200rm -f core conftest.err conftest.$ac_objext \
29201 conftest$ac_exeext conftest.$ac_ext
29202LIBS=$ac_check_lib_save_LIBS
29203fi
29204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29205$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29206if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29207 passed=`expr $passed + 1`
29208else
29209 failed=`expr $failed + 1`
29210fi
29211
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29213$as_echo_n "checking if FFTW package is complete... " >&6; }
29214 if test $passed -gt 0; then
29215 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029216 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29217$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029218 have_fftw='no (failed tests)'
29219 else
29220 FFTW_LIBS='-lfftw3'
29221 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029222
cristy8b350f62009-11-15 23:12:43 +000029223$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029224
cristy09b53e12011-10-14 12:47:22 +000029225 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29226$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029227 have_fftw='yes'
29228 fi
29229 else
cristy09b53e12011-10-14 12:47:22 +000029230 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29231$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029232 fi
29233fi
cristy73bd4a52010-10-05 11:24:23 +000029234 if test "$have_fftw" = 'yes'; then
29235 FFTW_DELEGATE_TRUE=
29236 FFTW_DELEGATE_FALSE='#'
29237else
29238 FFTW_DELEGATE_TRUE='#'
29239 FFTW_DELEGATE_FALSE=
29240fi
29241
cristy3ed852e2009-09-05 21:47:34 +000029242
29243
29244
29245#
29246# Check for FlashPIX delegate library.
29247#
29248
29249# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029250if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029251 withval=$with_fpx; with_fpx=$withval
29252else
29253 with_fpx='yes'
29254fi
29255
29256
29257if test "$with_fpx" != 'yes'; then
29258 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29259fi
29260
29261have_fpx='no'
29262FPX_LIBS=''
29263if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029264 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29265$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029267$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029268 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29269$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029270 failed=0
29271 passed=0
29272 ac_ext=cpp
29273ac_cpp='$CXXCPP $CPPFLAGS'
29274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29277
29278
cristy8b350f62009-11-15 23:12:43 +000029279ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029280if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029281 passed=`expr $passed + 1`
29282else
29283 failed=`expr $failed + 1`
29284fi
29285
29286
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029289if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029290 $as_echo_n "(cached) " >&6
29291else
29292 ac_check_lib_save_LIBS=$LIBS
29293LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029295/* end confdefs.h. */
29296
29297/* Override any GCC internal prototype to avoid an error.
29298 Use char because int might match the return type of a GCC
29299 builtin and then its argument prototype would still apply. */
29300#ifdef __cplusplus
29301extern "C"
29302#endif
29303char FPX_OpenImageByFilename ();
29304int
29305main ()
29306{
29307return FPX_OpenImageByFilename ();
29308 ;
29309 return 0;
29310}
29311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029312if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029313 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29314else
cristy8b350f62009-11-15 23:12:43 +000029315 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029316fi
cristy8b350f62009-11-15 23:12:43 +000029317rm -f core conftest.err conftest.$ac_objext \
29318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029319LIBS=$ac_check_lib_save_LIBS
29320fi
cristy8b350f62009-11-15 23:12:43 +000029321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029322$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029323if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029324 passed=`expr $passed + 1`
29325else
29326 failed=`expr $failed + 1`
29327fi
29328
29329 ac_ext=c
29330ac_cpp='$CPP $CPPFLAGS'
29331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29333ac_compiler_gnu=$ac_cv_c_compiler_gnu
29334
cristy8b350f62009-11-15 23:12:43 +000029335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29337 if test $passed -gt 0; then
29338 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29340$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029341 have_fpx='no (failed tests)'
29342 else
29343 FPX_LIBS='-lfpx'
29344
cristy8b350f62009-11-15 23:12:43 +000029345$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029346
cristy09b53e12011-10-14 12:47:22 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29348$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029349 have_fpx='yes'
29350 PERLMAINCC="$CXX"
29351 fi
29352 else
cristy09b53e12011-10-14 12:47:22 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29354$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029355 fi
29356fi
cristy73bd4a52010-10-05 11:24:23 +000029357 if test "$have_fpx" = 'yes'; then
29358 FPX_DELEGATE_TRUE=
29359 FPX_DELEGATE_FALSE='#'
29360else
29361 FPX_DELEGATE_TRUE='#'
29362 FPX_DELEGATE_FALSE=
29363fi
29364
cristy3ed852e2009-09-05 21:47:34 +000029365
29366
29367
29368#
29369# Check for fontconfig delegate library.
29370#
29371
29372# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029373if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 withval=$with_fontconfig; with_fontconfig=$withval
29375else
cristyfc3d0222012-02-07 15:05:57 +000029376 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029377fi
29378
29379
29380if test "$with_fontconfig" != 'yes'; then
29381 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29382fi
29383
29384have_fontconfig='no'
29385FONTCONFIG_CFLAGS=""
29386FONTCONFIG_LIBS=""
29387FONTCONFIG_PKG=""
29388if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29390$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029391
29392pkg_failed=no
29393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29394$as_echo_n "checking for FONTCONFIG... " >&6; }
29395
29396if test -n "$FONTCONFIG_CFLAGS"; then
29397 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29398 elif test -n "$PKG_CONFIG"; then
29399 if test -n "$PKG_CONFIG" && \
29400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29401 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29402 ac_status=$?
29403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29404 test $ac_status = 0; }; then
29405 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29406else
29407 pkg_failed=yes
29408fi
29409 else
29410 pkg_failed=untried
29411fi
29412if test -n "$FONTCONFIG_LIBS"; then
29413 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29414 elif test -n "$PKG_CONFIG"; then
29415 if test -n "$PKG_CONFIG" && \
29416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29417 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29418 ac_status=$?
29419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29420 test $ac_status = 0; }; then
29421 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29422else
29423 pkg_failed=yes
29424fi
29425 else
29426 pkg_failed=untried
29427fi
29428
29429
29430
29431if test $pkg_failed = yes; then
29432
29433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29434 _pkg_short_errors_supported=yes
29435else
29436 _pkg_short_errors_supported=no
29437fi
29438 if test $_pkg_short_errors_supported = yes; then
29439 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29440 else
29441 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29442 fi
29443 # Put the nasty error message in config.log where it belongs
29444 echo "$FONTCONFIG_PKG_ERRORS" >&5
29445
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29447$as_echo "no" >&6; }
29448 have_fontconfig=no
29449elif test $pkg_failed = untried; then
29450 have_fontconfig=no
29451else
29452 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29453 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29455$as_echo "yes" >&6; }
29456 have_fontconfig=yes
29457fi
cristy09b53e12011-10-14 12:47:22 +000029458 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29459$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029460fi
29461
29462if test "$have_fontconfig" = 'yes'; then
29463
cristy8b350f62009-11-15 23:12:43 +000029464$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029465
cristyd09bcf92010-03-25 03:04:45 +000029466 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029467 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029468 fi
cristy3ed852e2009-09-05 21:47:34 +000029469fi
29470
cristy73bd4a52010-10-05 11:24:23 +000029471 if test "$have_fontconfig" = 'yes'; then
29472 FONTCONFIG_DELEGATE_TRUE=
29473 FONTCONFIG_DELEGATE_FALSE='#'
29474else
29475 FONTCONFIG_DELEGATE_TRUE='#'
29476 FONTCONFIG_DELEGATE_FALSE=
29477fi
29478
cristy3ed852e2009-09-05 21:47:34 +000029479
29480
29481
29482
29483#
cristy81beccd2011-10-03 18:17:24 +000029484# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029485#
29486
29487# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029488if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029489 withval=$with_freetype; with_freetype=$withval
29490else
29491 with_freetype='yes'
29492fi
29493
29494
cristy81beccd2011-10-03 18:17:24 +000029495
cristy3ed852e2009-09-05 21:47:34 +000029496if test "$with_freetype" != 'yes'; then
29497 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29498fi
29499
cristy81beccd2011-10-03 18:17:24 +000029500have_freetype='no'
29501FREETYPE_LIBS=''
29502if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029503 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29504$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29506$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029507 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29508$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029509 failed=0
29510 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029511 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029512 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029513 freetype_config=''
29514 # Allow the user to specify the location of freetype.
29515 if test "$with_freetype" != 'yes'; then
29516 if test -x "${with_freetype}/bin/freetype-config"; then
29517 freetype_config="${with_freetype}/bin/freetype-config"
29518 elif test -x "${with_freetype}"; then
29519 freetype_config=${with_freetype}
29520 fi
29521 fi
29522 if test -z "$freetype_config"; then
29523 # Extract the first word of "freetype-config", so it can be a program name with args.
29524set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29526$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029527if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029528 $as_echo_n "(cached) " >&6
29529else
cristy98ca0f52011-10-08 23:19:10 +000029530 case $freetype_config in
29531 [\\/]* | ?:[\\/]*)
29532 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29533 ;;
29534 *)
29535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029536for as_dir in $PATH
29537do
29538 IFS=$as_save_IFS
29539 test -z "$as_dir" && as_dir=.
29540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029542 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29544 break 2
29545 fi
29546done
29547 done
29548IFS=$as_save_IFS
29549
cristy98ca0f52011-10-08 23:19:10 +000029550 ;;
29551esac
cristy81beccd2011-10-03 18:17:24 +000029552fi
cristy98ca0f52011-10-08 23:19:10 +000029553freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029554if test -n "$freetype_config"; then
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29556$as_echo "$freetype_config" >&6; }
29557else
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29559$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029560fi
29561
cristy98ca0f52011-10-08 23:19:10 +000029562 fi
29563 if test -n "$freetype_config"; then
29564 freetype_prefix=`${freetype_config} --prefix`
29565 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29566 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29567 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029568 fi
29569
29570 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029572$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29573if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29574 $as_echo_n "(cached) " >&6
29575else
29576 ac_check_lib_save_LIBS=$LIBS
29577LIBS="-lfreetype $LIBS"
29578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29579/* end confdefs.h. */
29580
29581/* Override any GCC internal prototype to avoid an error.
29582 Use char because int might match the return type of a GCC
29583 builtin and then its argument prototype would still apply. */
29584#ifdef __cplusplus
29585extern "C"
29586#endif
29587char FT_Init_FreeType ();
29588int
29589main ()
29590{
29591return FT_Init_FreeType ();
29592 ;
29593 return 0;
29594}
29595_ACEOF
29596if ac_fn_c_try_link "$LINENO"; then :
29597 ac_cv_lib_freetype_FT_Init_FreeType=yes
29598else
29599 ac_cv_lib_freetype_FT_Init_FreeType=no
29600fi
29601rm -f core conftest.err conftest.$ac_objext \
29602 conftest$ac_exeext conftest.$ac_ext
29603LIBS=$ac_check_lib_save_LIBS
29604fi
29605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29606$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29607if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29608 FREETYPE_LIBS='-lfreetype'
29609fi
29610
cristy98ca0f52011-10-08 23:19:10 +000029611 if test "$FREETYPE_LIBS" != ''; then
29612 passed=`expr $passed + 1`
29613 else
29614 failed=`expr $failed + 1`
29615 LDFLAGS="$PERSIST_LDFLAGS"
29616 fi
cristy81beccd2011-10-03 18:17:24 +000029617 fi
29618
29619 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29620if test "x$ac_cv_header_ft2build_h" = xyes; then :
29621 FT2BUILD_H='#include <ft2build.h>'
29622else
29623 ft2build=''
29624fi
29625
29626
29627 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29628"
29629if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29630 have_freetype_h='yes'
29631else
29632 have_freetype_h='no'
29633fi
29634
29635
cristy98ca0f52011-10-08 23:19:10 +000029636 if test "$have_freetype_h" = 'yes'; then
29637 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029638 else
cristy98ca0f52011-10-08 23:19:10 +000029639 failed=`expr $failed + 1`
29640 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029641 fi
29642
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29644$as_echo_n "checking if FreeType package is complete... " >&6; }
29645 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029646 if test $failed -gt 0; then
29647 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29649$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029650 have_freetype='no (failed tests)'
29651 else
29652 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029653
cristy8b350f62009-11-15 23:12:43 +000029654$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029655
cristy98ca0f52011-10-08 23:19:10 +000029656 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029657
29658$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29659
cristy81beccd2011-10-03 18:17:24 +000029660 fi
cristy09b53e12011-10-14 12:47:22 +000029661 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29662$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029663 have_freetype='yes'
29664 fi
cristy81beccd2011-10-03 18:17:24 +000029665 else
cristy09b53e12011-10-14 12:47:22 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29667$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029668 fi
29669fi
cristy73bd4a52010-10-05 11:24:23 +000029670 if test "$have_freetype" = 'yes'; then
29671 FREETYPE_DELEGATE_TRUE=
29672 FREETYPE_DELEGATE_FALSE='#'
29673else
29674 FREETYPE_DELEGATE_TRUE='#'
29675 FREETYPE_DELEGATE_FALSE=
29676fi
29677
cristy3ed852e2009-09-05 21:47:34 +000029678
29679
29680
cristy3ed852e2009-09-05 21:47:34 +000029681#
29682# Check for Ghostscript library or framework.
29683#
29684# Test for iapi.h & test for gsapi_new_instance in -lgs
29685# or -framework Ghostscript
29686
29687
29688# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029689if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029690 withval=$with_gslib; with_gslib=$withval
29691else
29692 with_gslib='no'
29693fi
29694
29695
cristyb7931f12009-09-25 10:22:21 +000029696gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029697if test "$with_gslib" != 'yes'; then
29698 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29699fi
29700
29701have_gslib='no'
29702GS_LIBS=''
29703if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029704 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29705$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029707$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29709$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029710 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029711 failed=0
29712 passed=0
cristy8b350f62009-11-15 23:12:43 +000029713 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 +000029714if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029715 passed=`expr $passed + 1`
29716else
29717 failed=`expr $failed + 1`
29718fi
29719
29720
cristy8b350f62009-11-15 23:12:43 +000029721 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 +000029722if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029723 passed=`expr $passed + 1`
29724else
29725 failed=`expr $failed + 1`
29726fi
29727
29728
cristy73bd4a52010-10-05 11:24:23 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29730$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029731if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029732 $as_echo_n "(cached) " >&6
29733else
29734 ac_check_framework_save_LIBS=$LIBS
29735LIBS="-framework Ghostscript $LIBS"
29736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29737/* end confdefs.h. */
29738
29739/* Override any GCC internal prototype to avoid an error.
29740 Use char because int might match the return type of a GCC
29741 builtin and then its argument prototype would still apply. */
29742#ifdef __cplusplus
29743extern "C"
29744#endif
29745char gsapi_new_instance ();
29746int
29747main ()
29748{
29749return gsapi_new_instance ();
29750 ;
29751 return 0;
29752}
29753_ACEOF
29754if ac_fn_c_try_link "$LINENO"; then :
29755 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29756else
29757 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29758fi
29759rm -f core conftest.err conftest.$ac_objext \
29760 conftest$ac_exeext conftest.$ac_ext
29761LIBS=$ac_check_framework_save_LIBS
29762fi
29763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29764$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29765if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29766 framework=`expr $framework + 1`
29767else
29768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029769$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029770if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029771 $as_echo_n "(cached) " >&6
29772else
29773 ac_check_lib_save_LIBS=$LIBS
29774LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029776/* end confdefs.h. */
29777
29778/* Override any GCC internal prototype to avoid an error.
29779 Use char because int might match the return type of a GCC
29780 builtin and then its argument prototype would still apply. */
29781#ifdef __cplusplus
29782extern "C"
29783#endif
29784char gsapi_new_instance ();
29785int
29786main ()
29787{
29788return gsapi_new_instance ();
29789 ;
29790 return 0;
29791}
29792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029794 ac_cv_lib_gs_gsapi_new_instance=yes
29795else
cristy8b350f62009-11-15 23:12:43 +000029796 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029797fi
cristy8b350f62009-11-15 23:12:43 +000029798rm -f core conftest.err conftest.$ac_objext \
29799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029800LIBS=$ac_check_lib_save_LIBS
29801fi
cristy8b350f62009-11-15 23:12:43 +000029802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029803$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029804if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029805 passed=`expr $passed + 1`
29806else
29807 failed=`expr $failed + 1`
29808fi
cristy73bd4a52010-10-05 11:24:23 +000029809
29810fi
cristy8b350f62009-11-15 23:12:43 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29813 if test $passed -gt 0; then
29814 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29816$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029817 have_gslib='no (failed tests)'
29818 else
29819 if test $framework -gt 0; then
29820 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029821 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029822 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29823$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029824 else
cristy09b53e12011-10-14 12:47:22 +000029825 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29826$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029827 GS_LIBS='-lgs'
29828 fi
29829 LIBS="$GS_LIBS $LIBS"
29830
cristy8b350f62009-11-15 23:12:43 +000029831$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029832
29833 have_gslib='yes'
29834 fi
29835 else
cristy09b53e12011-10-14 12:47:22 +000029836 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29837$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029838 fi
29839fi
cristy73bd4a52010-10-05 11:24:23 +000029840 if test "$have_gslib" = 'yes'; then
29841 GS_DELEGATE_TRUE=
29842 GS_DELEGATE_FALSE='#'
29843else
29844 GS_DELEGATE_TRUE='#'
29845 GS_DELEGATE_FALSE=
29846fi
29847
cristy3ed852e2009-09-05 21:47:34 +000029848
29849
29850# Set default font search path
29851
29852# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029853if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029854 withval=$with_fontpath; with_fontpath=$withval
29855else
29856 with_fontpath=''
29857fi
29858
29859
29860if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29861 with_fontpath=''
29862else
29863
29864cat >>confdefs.h <<_ACEOF
29865#define MAGICK_FONT_PATH "$with_fontpath"
29866_ACEOF
29867
29868fi
29869if test "$with_fontpath=" != ''; then
29870 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29871fi
29872
29873# Set Ghostscript font directory
29874
29875# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029876if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29878else
29879 with_gs_font_dir='default'
29880fi
29881
29882
29883if test "$with_gs_font_dir" != 'default'; then
29884 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29885fi
29886
29887
29888#
29889# Check for GVC delegate library.
29890#
29891
29892# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029893if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029894 withval=$with_gvc; with_gvc=$withval
29895else
cristy1b70dc82012-07-01 23:15:05 +000029896 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029897fi
29898
29899
29900if test "$with_gvc" != 'yes'; then
29901 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29902fi
29903
29904GVC_PKG=""
29905if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29907$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029908
29909pkg_failed=no
29910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29911$as_echo_n "checking for GVC... " >&6; }
29912
29913if test -n "$GVC_CFLAGS"; then
29914 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29915 elif test -n "$PKG_CONFIG"; then
29916 if test -n "$PKG_CONFIG" && \
29917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29918 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29919 ac_status=$?
29920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29921 test $ac_status = 0; }; then
29922 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29923else
29924 pkg_failed=yes
29925fi
29926 else
29927 pkg_failed=untried
29928fi
29929if test -n "$GVC_LIBS"; then
29930 pkg_cv_GVC_LIBS="$GVC_LIBS"
29931 elif test -n "$PKG_CONFIG"; then
29932 if test -n "$PKG_CONFIG" && \
29933 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29934 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29935 ac_status=$?
29936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29937 test $ac_status = 0; }; then
29938 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29939else
29940 pkg_failed=yes
29941fi
29942 else
29943 pkg_failed=untried
29944fi
29945
29946
29947
29948if test $pkg_failed = yes; then
29949
29950if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29951 _pkg_short_errors_supported=yes
29952else
29953 _pkg_short_errors_supported=no
29954fi
29955 if test $_pkg_short_errors_supported = yes; then
29956 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29957 else
29958 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29959 fi
29960 # Put the nasty error message in config.log where it belongs
29961 echo "$GVC_PKG_ERRORS" >&5
29962
29963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29964$as_echo "no" >&6; }
29965 have_gvc=no
29966elif test $pkg_failed = untried; then
29967 have_gvc=no
29968else
29969 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29970 GVC_LIBS=$pkg_cv_GVC_LIBS
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29972$as_echo "yes" >&6; }
29973 have_gvc=yes
29974fi
cristy09b53e12011-10-14 12:47:22 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29976$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029977fi
29978
29979if test "$have_gvc" = 'yes'; then
29980
cristy8b350f62009-11-15 23:12:43 +000029981$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029982
29983 if test "$with_modules" = 'no'; then
29984 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29985 fi
29986fi
29987
cristy73bd4a52010-10-05 11:24:23 +000029988 if test "$have_gvc" = 'yes'; then
29989 GVC_DELEGATE_TRUE=
29990 GVC_DELEGATE_FALSE='#'
29991else
29992 GVC_DELEGATE_TRUE='#'
29993 GVC_DELEGATE_FALSE=
29994fi
29995
cristy3ed852e2009-09-05 21:47:34 +000029996
29997
29998
29999
30000#
30001# Check for JBIG delegate library.
30002#
30003
30004
30005# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030006if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030007 withval=$with_jbig; with_jbig=$withval
30008else
30009 with_jbig='yes'
30010fi
30011
30012
30013have_jbig='no'
30014JBIG_LIBS=''
30015if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30017$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030019$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30021$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030022 failed=0
30023 passed=0
cristy8b350f62009-11-15 23:12:43 +000030024 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030025if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030026 passed=`expr $passed + 1`
30027else
30028 failed=`expr $failed + 1`
30029fi
30030
30031
cristy8b350f62009-11-15 23:12:43 +000030032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030033$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030034if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030035 $as_echo_n "(cached) " >&6
30036else
30037 ac_check_lib_save_LIBS=$LIBS
30038LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030040/* end confdefs.h. */
30041
30042/* Override any GCC internal prototype to avoid an error.
30043 Use char because int might match the return type of a GCC
30044 builtin and then its argument prototype would still apply. */
30045#ifdef __cplusplus
30046extern "C"
30047#endif
30048char jbg_dec_init ();
30049int
30050main ()
30051{
30052return jbg_dec_init ();
30053 ;
30054 return 0;
30055}
30056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 ac_cv_lib_jbig_jbg_dec_init=yes
30059else
cristy8b350f62009-11-15 23:12:43 +000030060 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030061fi
cristy8b350f62009-11-15 23:12:43 +000030062rm -f core conftest.err conftest.$ac_objext \
30063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030064LIBS=$ac_check_lib_save_LIBS
30065fi
cristy8b350f62009-11-15 23:12:43 +000030066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030067$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030068if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030069 passed=`expr $passed + 1`
30070else
30071 failed=`expr $failed + 1`
30072fi
30073
cristy8b350f62009-11-15 23:12:43 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030075$as_echo_n "checking if JBIG package is complete... " >&6; }
30076 if test $passed -gt 0; then
30077 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30079$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030080 have_jbig='no (failed tests)'
30081 else
30082 JBIG_LIBS='-ljbig'
30083 LIBS="$JBIG_LIBS $LIBS"
30084
cristy8b350f62009-11-15 23:12:43 +000030085$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030086
cristy09b53e12011-10-14 12:47:22 +000030087 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30088$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030089 have_jbig='yes'
30090 fi
30091 else
cristy09b53e12011-10-14 12:47:22 +000030092 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30093$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030094 fi
30095fi
cristy73bd4a52010-10-05 11:24:23 +000030096 if test "$have_jbig" = 'yes'; then
30097 JBIG_DELEGATE_TRUE=
30098 JBIG_DELEGATE_FALSE='#'
30099else
30100 JBIG_DELEGATE_TRUE='#'
30101 JBIG_DELEGATE_FALSE=
30102fi
30103
cristy3ed852e2009-09-05 21:47:34 +000030104
30105
30106
30107#
30108# Check for JPEG delegate library.
30109#
30110
30111# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030112if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030113 withval=$with_jpeg; with_jpeg=$withval
30114else
30115 with_jpeg='yes'
30116fi
30117
30118
30119if test "$with_jpeg" != 'yes'; then
30120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30121fi
30122
30123have_jpeg='no'
30124JPEG_LIBS=''
30125if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030126 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30127$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030129$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030130 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30131$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030132 failed=0
30133 passed=0
cristy8b350f62009-11-15 23:12:43 +000030134 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030135if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030136 passed=`expr $passed + 1`
30137else
30138 failed=`expr $failed + 1`
30139fi
30140
30141
cristy8b350f62009-11-15 23:12:43 +000030142 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030143if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030144 passed=`expr $passed + 1`
30145else
30146 failed=`expr $failed + 1`
30147fi
30148
30149
cristy8b350f62009-11-15 23:12:43 +000030150 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030151if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 passed=`expr $passed + 1`
30153else
30154 failed=`expr $failed + 1`
30155fi
30156
30157
cristy8b350f62009-11-15 23:12:43 +000030158 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030159if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030160 passed=`expr $passed + 1`
30161else
30162 failed=`expr $failed + 1`
30163fi
30164
30165
cristy8b350f62009-11-15 23:12:43 +000030166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030167$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030168if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030169 $as_echo_n "(cached) " >&6
30170else
30171 ac_check_lib_save_LIBS=$LIBS
30172LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030174/* end confdefs.h. */
30175
30176/* Override any GCC internal prototype to avoid an error.
30177 Use char because int might match the return type of a GCC
30178 builtin and then its argument prototype would still apply. */
30179#ifdef __cplusplus
30180extern "C"
30181#endif
30182char jpeg_read_header ();
30183int
30184main ()
30185{
30186return jpeg_read_header ();
30187 ;
30188 return 0;
30189}
30190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030192 ac_cv_lib_jpeg_jpeg_read_header=yes
30193else
cristy8b350f62009-11-15 23:12:43 +000030194 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030195fi
cristy8b350f62009-11-15 23:12:43 +000030196rm -f core conftest.err conftest.$ac_objext \
30197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030198LIBS=$ac_check_lib_save_LIBS
30199fi
cristy8b350f62009-11-15 23:12:43 +000030200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030202if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030203 passed=`expr $passed + 1`
30204else
30205 failed=`expr $failed + 1`
30206fi
30207
30208
30209# Test for compatible JPEG library
30210if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030212$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030213if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030214 $as_echo_n "(cached) " >&6
30215else
cristy8b350f62009-11-15 23:12:43 +000030216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030217/* end confdefs.h. */
30218#include <stdio.h>
30219#include <stdlib.h>
30220#include <jpeglib.h>
30221
30222int
30223main ()
30224{
30225
30226#if JPEG_LIB_VERSION < 62
30227#error IJG JPEG library must be version 6b or newer!
30228#endif
30229return 0;
30230
30231 ;
30232 return 0;
30233}
30234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030236 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30237else
cristy8b350f62009-11-15 23:12:43 +000030238 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030239fi
cristy3ed852e2009-09-05 21:47:34 +000030240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30241fi
cristy8b350f62009-11-15 23:12:43 +000030242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030243$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30244fi
cristy8b350f62009-11-15 23:12:43 +000030245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030246$as_echo_n "checking if JPEG package is complete... " >&6; }
30247 if test $passed -gt 0; then
30248 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30250$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030251 have_jpeg='no (failed tests)'
30252 else
30253 JPEG_LIBS='-ljpeg'
30254 LIBS="$JPEG_LIBS $LIBS"
30255
cristy8b350f62009-11-15 23:12:43 +000030256$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030257
cristy09b53e12011-10-14 12:47:22 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30259$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030260 have_jpeg='yes'
30261 fi
30262 else
cristy09b53e12011-10-14 12:47:22 +000030263 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30264$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030265 fi
30266fi
cristy73bd4a52010-10-05 11:24:23 +000030267 if test "$have_jpeg" = 'yes'; then
30268 JPEG_DELEGATE_TRUE=
30269 JPEG_DELEGATE_FALSE='#'
30270else
30271 JPEG_DELEGATE_TRUE='#'
30272 JPEG_DELEGATE_FALSE=
30273fi
30274
cristy3ed852e2009-09-05 21:47:34 +000030275
30276
30277
30278#
30279# Check for JPEG Version 2 delegate library.
30280#
30281
30282# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030283if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030284 withval=$with_jp2; with_jp2=$withval
30285else
30286 with_jp2='yes'
30287fi
30288
30289
30290if test "$with_jp2" != 'yes'; then
30291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30292fi
30293
30294have_jp2='no'
30295JP2_LIBS=''
30296if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030297 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30298$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030300$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30302$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030303 failed=0
30304 passed=0
cristy8b350f62009-11-15 23:12:43 +000030305 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 +000030306if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030307 passed=`expr $passed + 1`
30308else
30309 failed=`expr $failed + 1`
30310fi
30311
30312
cristy8b350f62009-11-15 23:12:43 +000030313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030315if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030316 $as_echo_n "(cached) " >&6
30317else
30318 ac_check_lib_save_LIBS=$LIBS
30319LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030321/* end confdefs.h. */
30322
30323/* Override any GCC internal prototype to avoid an error.
30324 Use char because int might match the return type of a GCC
30325 builtin and then its argument prototype would still apply. */
30326#ifdef __cplusplus
30327extern "C"
30328#endif
30329char jas_stream_fopen ();
30330int
30331main ()
30332{
30333return jas_stream_fopen ();
30334 ;
30335 return 0;
30336}
30337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030339 ac_cv_lib_jasper_jas_stream_fopen=yes
30340else
cristy8b350f62009-11-15 23:12:43 +000030341 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030342fi
cristy8b350f62009-11-15 23:12:43 +000030343rm -f core conftest.err conftest.$ac_objext \
30344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030345LIBS=$ac_check_lib_save_LIBS
30346fi
cristy8b350f62009-11-15 23:12:43 +000030347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030348$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030349if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030350 passed=`expr $passed + 1`
30351else
30352 failed=`expr $failed + 1`
30353fi
30354
cristy8b350f62009-11-15 23:12:43 +000030355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30357 if test $passed -gt 0; then
30358 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030359 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30360$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030361 have_jp2='no (failed tests)'
30362 else
30363 JP2_LIBS='-ljasper'
30364 LIBS="$JP2_LIBS $LIBS"
30365
cristy8b350f62009-11-15 23:12:43 +000030366$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030367
cristy09b53e12011-10-14 12:47:22 +000030368 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30369$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030370 have_jp2='yes'
30371 fi
30372 else
cristy09b53e12011-10-14 12:47:22 +000030373 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30374$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030375 fi
30376fi
cristy73bd4a52010-10-05 11:24:23 +000030377 if test "$have_jp2" = 'yes'; then
30378 JP2_DELEGATE_TRUE=
30379 JP2_DELEGATE_FALSE='#'
30380else
30381 JP2_DELEGATE_TRUE='#'
30382 JP2_DELEGATE_FALSE=
30383fi
30384
cristy3ed852e2009-09-05 21:47:34 +000030385
30386
30387
30388#
30389# Check for LCMS delegate library.
30390#
cristy71203402010-06-18 13:12:03 +000030391# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030392
30393# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030394if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030395 withval=$with_lcms; with_lcms=$withval
30396else
30397 with_lcms='yes'
30398fi
30399
cristy71203402010-06-18 13:12:03 +000030400if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030401 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30402fi
30403
cristy71203402010-06-18 13:12:03 +000030404# Disable LCMS2.
30405
30406# Check whether --with-lcms2 was given.
30407if test "${with_lcms2+set}" = set; then :
30408 withval=$with_lcms2; with_lcms2=$withval
30409else
30410 with_lcms2='yes'
30411fi
30412
30413if test "$with_lcms2" != 'yes' ; then
30414 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30415fi
30416
30417have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030418LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030419if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30421$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30423$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030424 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30425$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030426 failed=0
30427 passed=0
30428 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030429
30430 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030431 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030432if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030433 have_lcms_header='yes'
30434fi
30435
30436
30437 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030438
30439$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30440
cristy71203402010-06-18 13:12:03 +000030441 passed=`expr $passed + 1`
30442 fi
30443
30444 # Check for <lcms2/lcms2.h)
30445 if test "$have_lcms_header" != 'yes'; then
30446 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 +000030447if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030448 have_lcms_header='yes'
30449fi
30450
30451
cristy71203402010-06-18 13:12:03 +000030452 if test "$have_lcms_header" = 'yes'; then
30453 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030454
cristy71203402010-06-18 13:12:03 +000030455$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030456
cristy71203402010-06-18 13:12:03 +000030457 fi
cristyd09bcf92010-03-25 03:04:45 +000030458 fi
cristy71203402010-06-18 13:12:03 +000030459
30460 # Failed to find lcms header?
30461 if test "$have_lcms_header" != 'yes'; then
30462 failed=`expr $failed + 1`
30463 fi
30464
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30466$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030467if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030468 $as_echo_n "(cached) " >&6
30469else
30470 ac_check_lib_save_LIBS=$LIBS
30471LIBS="-llcms2 $LIBS"
30472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30473/* end confdefs.h. */
30474
30475/* Override any GCC internal prototype to avoid an error.
30476 Use char because int might match the return type of a GCC
30477 builtin and then its argument prototype would still apply. */
30478#ifdef __cplusplus
30479extern "C"
30480#endif
cristy71203402010-06-18 13:12:03 +000030481char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030482int
30483main ()
30484{
cristy71203402010-06-18 13:12:03 +000030485return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030486 ;
30487 return 0;
30488}
30489_ACEOF
30490if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030491 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030492else
cristy71203402010-06-18 13:12:03 +000030493 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030494fi
30495rm -f core conftest.err conftest.$ac_objext \
30496 conftest$ac_exeext conftest.$ac_ext
30497LIBS=$ac_check_lib_save_LIBS
30498fi
cristy71203402010-06-18 13:12:03 +000030499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30500$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030501if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030502 passed=`expr $passed + 1`
30503else
30504 failed=`expr $failed + 1`
30505fi
30506
cristy71203402010-06-18 13:12:03 +000030507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30508$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030509 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030510 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30512$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030513 have_lcms2='no (failed tests)'
30514 else
30515 LCMS_LIBS='-llcms2'
30516 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030517 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30518$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030519 have_lcms2='yes'
30520 fi
cristyd09bcf92010-03-25 03:04:45 +000030521 else
cristy09b53e12011-10-14 12:47:22 +000030522 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30523$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030524 fi
30525fi
30526
cristy71203402010-06-18 13:12:03 +000030527#
30528# Check for LCMS v1 (1.11 or later)
30529#
30530if test $have_lcms2 = 'yes'; then
30531 with_lcms='no'
30532fi
30533
30534have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030535if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030536 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30537$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30539$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30541$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030542 failed=0
30543 passed=0
30544 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030545
30546 # Check for <lcms.h>
30547 if test "$have_lcms_header" != 'yes'; then
30548 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030549if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030550 have_lcms_header='yes'
30551fi
30552
30553
cristy71203402010-06-18 13:12:03 +000030554 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030555 passed=`expr $passed + 1`
30556
cristy8b350f62009-11-15 23:12:43 +000030557$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030558
cristy71203402010-06-18 13:12:03 +000030559 fi
30560 fi
30561
30562 # Check for <lcms/lcms.h>
30563 if test "$have_lcms_header" != 'yes'; then
30564 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 +000030565if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030566 have_lcms_header='yes'
30567fi
30568
30569
cristy71203402010-06-18 13:12:03 +000030570 if test "$have_lcms_header" = 'yes'; then
30571 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030572
cristy8b350f62009-11-15 23:12:43 +000030573$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030574
cristy71203402010-06-18 13:12:03 +000030575 fi
cristy3ed852e2009-09-05 21:47:34 +000030576 fi
cristy71203402010-06-18 13:12:03 +000030577
30578 # Failed to find lcms header?
30579 if test "$have_lcms_header" != 'yes'; then
30580 failed=`expr $failed + 1`
30581 fi
30582
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30584$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030585if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030586 $as_echo_n "(cached) " >&6
30587else
30588 ac_check_lib_save_LIBS=$LIBS
30589LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030591/* end confdefs.h. */
30592
30593/* Override any GCC internal prototype to avoid an error.
30594 Use char because int might match the return type of a GCC
30595 builtin and then its argument prototype would still apply. */
30596#ifdef __cplusplus
30597extern "C"
30598#endif
cristy71203402010-06-18 13:12:03 +000030599char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030600int
30601main ()
30602{
cristy71203402010-06-18 13:12:03 +000030603return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030604 ;
30605 return 0;
30606}
30607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030608if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030609 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030610else
cristy71203402010-06-18 13:12:03 +000030611 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030612fi
cristy8b350f62009-11-15 23:12:43 +000030613rm -f core conftest.err conftest.$ac_objext \
30614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030615LIBS=$ac_check_lib_save_LIBS
30616fi
cristy71203402010-06-18 13:12:03 +000030617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30618$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030619if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030620 passed=`expr $passed + 1`
30621else
30622 failed=`expr $failed + 1`
30623fi
30624
cristy8b350f62009-11-15 23:12:43 +000030625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030626$as_echo_n "checking if LCMS package is complete... " >&6; }
30627 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030628 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30630$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030631 have_lcms='no (failed tests)'
30632 else
30633 LCMS_LIBS='-llcms'
30634 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030635 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30636$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030637 have_lcms='yes'
30638 fi
cristy3ed852e2009-09-05 21:47:34 +000030639 else
cristy09b53e12011-10-14 12:47:22 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30641$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030642 fi
30643fi
cristy71203402010-06-18 13:12:03 +000030644
cristy73bd4a52010-10-05 11:24:23 +000030645 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30646 LCMS_DELEGATE_TRUE=
30647 LCMS_DELEGATE_FALSE='#'
30648else
30649 LCMS_DELEGATE_TRUE='#'
30650 LCMS_DELEGATE_FALSE=
30651fi
30652
cristy71203402010-06-18 13:12:03 +000030653if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30654
30655$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30656
30657fi
30658
cristy3ed852e2009-09-05 21:47:34 +000030659
30660
30661
30662#
30663# Check for the LQR (Liquid Rescale) delegate library.
30664#
30665
30666# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030667if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030668 withval=$with_lqr; with_lqr=$withval
30669else
30670 with_lqr='yes'
30671fi
30672
30673
30674if test "$with_lqr" != 'yes'; then
30675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30676fi
30677
30678have_lqr='no'
30679LQR_CFLAGS=""
30680LQR_LIBS=""
30681LQR_PKG=""
30682if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030683 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30684$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030685
30686pkg_failed=no
30687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30688$as_echo_n "checking for LQR... " >&6; }
30689
30690if test -n "$LQR_CFLAGS"; then
30691 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30692 elif test -n "$PKG_CONFIG"; then
30693 if test -n "$PKG_CONFIG" && \
30694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30695 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30696 ac_status=$?
30697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30698 test $ac_status = 0; }; then
30699 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30700else
30701 pkg_failed=yes
30702fi
30703 else
30704 pkg_failed=untried
30705fi
30706if test -n "$LQR_LIBS"; then
30707 pkg_cv_LQR_LIBS="$LQR_LIBS"
30708 elif test -n "$PKG_CONFIG"; then
30709 if test -n "$PKG_CONFIG" && \
30710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30711 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30712 ac_status=$?
30713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30714 test $ac_status = 0; }; then
30715 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30716else
30717 pkg_failed=yes
30718fi
30719 else
30720 pkg_failed=untried
30721fi
30722
30723
30724
30725if test $pkg_failed = yes; then
30726
30727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30728 _pkg_short_errors_supported=yes
30729else
30730 _pkg_short_errors_supported=no
30731fi
30732 if test $_pkg_short_errors_supported = yes; then
30733 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30734 else
30735 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30736 fi
30737 # Put the nasty error message in config.log where it belongs
30738 echo "$LQR_PKG_ERRORS" >&5
30739
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30741$as_echo "no" >&6; }
30742 have_lqr=no
30743elif test $pkg_failed = untried; then
30744 have_lqr=no
30745else
30746 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30747 LQR_LIBS=$pkg_cv_LQR_LIBS
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30749$as_echo "yes" >&6; }
30750 have_lqr=yes
30751fi
cristy09b53e12011-10-14 12:47:22 +000030752 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30753$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030754fi
30755
30756if test "$have_lqr" = 'yes'; then
30757
cristy8b350f62009-11-15 23:12:43 +000030758$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030759
30760 CFLAGS="$LQR_CFLAGS $CFLAGS"
30761fi
30762
cristy73bd4a52010-10-05 11:24:23 +000030763 if test "$have_lqr" = 'yes'; then
30764 LQR_DELEGATE_TRUE=
30765 LQR_DELEGATE_FALSE='#'
30766else
30767 LQR_DELEGATE_TRUE='#'
30768 LQR_DELEGATE_FALSE=
30769fi
30770
cristy3ed852e2009-09-05 21:47:34 +000030771
30772
30773
30774
cristy81beccd2011-10-03 18:17:24 +000030775# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030776
30777# Check whether --with-lzma was given.
30778if test "${with_lzma+set}" = set; then :
30779 withval=$with_lzma; with_lzma=$withval
30780else
30781 with_lzma='yes'
30782fi
30783
cristy81beccd2011-10-03 18:17:24 +000030784if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30786fi
30787
cristyb94e5002011-11-14 13:20:10 +000030788LZMA_PKG=""
30789if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030790 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30791$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030792
30793pkg_failed=no
30794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030795$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030796
30797if test -n "$LZMA_CFLAGS"; then
30798 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30799 elif test -n "$PKG_CONFIG"; then
30800 if test -n "$PKG_CONFIG" && \
30801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30802 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30803 ac_status=$?
30804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30805 test $ac_status = 0; }; then
30806 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30807else
30808 pkg_failed=yes
30809fi
30810 else
30811 pkg_failed=untried
30812fi
30813if test -n "$LZMA_LIBS"; then
30814 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30815 elif test -n "$PKG_CONFIG"; then
30816 if test -n "$PKG_CONFIG" && \
30817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30818 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30819 ac_status=$?
30820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30821 test $ac_status = 0; }; then
30822 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30823else
30824 pkg_failed=yes
30825fi
30826 else
30827 pkg_failed=untried
30828fi
30829
30830
30831
30832if test $pkg_failed = yes; then
30833
30834if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30835 _pkg_short_errors_supported=yes
30836else
30837 _pkg_short_errors_supported=no
30838fi
30839 if test $_pkg_short_errors_supported = yes; then
30840 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30841 else
30842 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30843 fi
30844 # Put the nasty error message in config.log where it belongs
30845 echo "$LZMA_PKG_ERRORS" >&5
30846
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30848$as_echo "no" >&6; }
30849 have_lzma=no
30850elif test $pkg_failed = untried; then
30851 have_lzma=no
30852else
30853 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30854 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856$as_echo "yes" >&6; }
30857 have_lzma=yes
30858fi
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030860$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030861fi
30862
cristyb94e5002011-11-14 13:20:10 +000030863if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030864
30865$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30866
cristyb94e5002011-11-14 13:20:10 +000030867 if test "$with_modules" = 'no'; then
30868 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030869 fi
cristyfbb0ef02010-12-19 02:32:11 +000030870fi
cristyb94e5002011-11-14 13:20:10 +000030871
cristyfbb0ef02010-12-19 02:32:11 +000030872 if test "$have_lzma" = 'yes'; then
30873 LZMA_DELEGATE_TRUE=
30874 LZMA_DELEGATE_FALSE='#'
30875else
30876 LZMA_DELEGATE_TRUE='#'
30877 LZMA_DELEGATE_FALSE=
30878fi
30879
30880
30881
30882
cristyb94e5002011-11-14 13:20:10 +000030883
cristy3ed852e2009-09-05 21:47:34 +000030884#
30885# Check for the OpenEXR delegate library.
30886#
30887
30888# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030889if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030890 withval=$with_openexr; with_openexr=$withval
30891else
30892 with_openexr='yes'
30893fi
30894
30895
30896if test "$with_openexr" != 'yes'; then
30897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30898fi
30899
30900have_openexr='no'
30901OPENEXR_CFLAGS=""
30902OPENEXR_LIBS=""
30903OPENEXR_PKG=""
30904if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030905 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30906$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030907
30908pkg_failed=no
30909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30910$as_echo_n "checking for OPENEXR... " >&6; }
30911
30912if test -n "$OPENEXR_CFLAGS"; then
30913 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30914 elif test -n "$PKG_CONFIG"; then
30915 if test -n "$PKG_CONFIG" && \
30916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30917 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30918 ac_status=$?
30919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30920 test $ac_status = 0; }; then
30921 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30922else
30923 pkg_failed=yes
30924fi
30925 else
30926 pkg_failed=untried
30927fi
30928if test -n "$OPENEXR_LIBS"; then
30929 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30930 elif test -n "$PKG_CONFIG"; then
30931 if test -n "$PKG_CONFIG" && \
30932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30933 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30934 ac_status=$?
30935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30936 test $ac_status = 0; }; then
30937 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30938else
30939 pkg_failed=yes
30940fi
30941 else
30942 pkg_failed=untried
30943fi
30944
30945
30946
30947if test $pkg_failed = yes; then
30948
30949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30950 _pkg_short_errors_supported=yes
30951else
30952 _pkg_short_errors_supported=no
30953fi
30954 if test $_pkg_short_errors_supported = yes; then
30955 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30956 else
30957 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30958 fi
30959 # Put the nasty error message in config.log where it belongs
30960 echo "$OPENEXR_PKG_ERRORS" >&5
30961
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30963$as_echo "no" >&6; }
30964 have_openexr=no
30965elif test $pkg_failed = untried; then
30966 have_openexr=no
30967else
30968 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30969 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30971$as_echo "yes" >&6; }
30972 have_openexr=yes
30973fi
cristy09b53e12011-10-14 12:47:22 +000030974 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30975$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030976fi
30977
30978if test "$have_openexr" = 'yes'; then
30979
cristy8b350f62009-11-15 23:12:43 +000030980$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030981
30982 if test "$with_modules" = 'no'; then
30983 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30984 fi
30985fi
30986
cristy73bd4a52010-10-05 11:24:23 +000030987 if test "$have_openexr" = 'yes'; then
30988 OPENEXR_DELEGATE_TRUE=
30989 OPENEXR_DELEGATE_FALSE='#'
30990else
30991 OPENEXR_DELEGATE_TRUE='#'
30992 OPENEXR_DELEGATE_FALSE=
30993fi
30994
cristy3ed852e2009-09-05 21:47:34 +000030995
30996
30997
30998
30999#
cristy41cbe8a2011-10-27 01:35:18 +000031000# Check for PANGO delegate library.
31001#
31002
31003# Check whether --with-pango was given.
31004if test "${with_pango+set}" = set; then :
31005 withval=$with_pango; with_pango=$withval
31006else
cristyfc3d0222012-02-07 15:05:57 +000031007 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031008fi
31009
31010
31011if test "$with_pango" != 'yes'; then
31012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31013fi
31014
31015have_pango='no'
cristya054b762012-03-26 23:16:00 +000031016have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031017PANGO_CFLAGS=""
31018PANGO_LIBS=""
31019PANGO_PKG=""
31020if test "x$with_pango" = "xyes"; then
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31022$as_echo "-------------------------------------------------------------" >&6; }
31023
31024pkg_failed=no
31025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31026$as_echo_n "checking for PANGO... " >&6; }
31027
31028if test -n "$PANGO_CFLAGS"; then
31029 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31030 elif test -n "$PKG_CONFIG"; then
31031 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31033 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031034 ac_status=$?
31035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31036 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031037 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031038else
31039 pkg_failed=yes
31040fi
31041 else
31042 pkg_failed=untried
31043fi
31044if test -n "$PANGO_LIBS"; then
31045 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31046 elif test -n "$PKG_CONFIG"; then
31047 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031048 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31049 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031050 ac_status=$?
31051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31052 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031053 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031054else
31055 pkg_failed=yes
31056fi
31057 else
31058 pkg_failed=untried
31059fi
31060
31061
31062
31063if test $pkg_failed = yes; then
31064
31065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31066 _pkg_short_errors_supported=yes
31067else
31068 _pkg_short_errors_supported=no
31069fi
31070 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031071 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031072 else
cristya054b762012-03-26 23:16:00 +000031073 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031074 fi
31075 # Put the nasty error message in config.log where it belongs
31076 echo "$PANGO_PKG_ERRORS" >&5
31077
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31079$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031080 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031081elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031082 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031083else
31084 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31085 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31087$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031088 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031089fi
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31091$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031092
31093pkg_failed=no
31094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31095$as_echo_n "checking for PANGO... " >&6; }
31096
31097if test -n "$PANGO_CFLAGS"; then
31098 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31099 elif test -n "$PKG_CONFIG"; then
31100 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31102 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031103 ac_status=$?
31104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31105 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031106 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031107else
31108 pkg_failed=yes
31109fi
31110 else
31111 pkg_failed=untried
31112fi
31113if test -n "$PANGO_LIBS"; then
31114 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31115 elif test -n "$PKG_CONFIG"; then
31116 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31118 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031119 ac_status=$?
31120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31121 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031122 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031123else
31124 pkg_failed=yes
31125fi
31126 else
31127 pkg_failed=untried
31128fi
31129
31130
31131
31132if test $pkg_failed = yes; then
31133
31134if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31135 _pkg_short_errors_supported=yes
31136else
31137 _pkg_short_errors_supported=no
31138fi
31139 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031140 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031141 else
cristy2542fc62011-12-06 17:50:25 +000031142 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031143 fi
31144 # Put the nasty error message in config.log where it belongs
31145 echo "$PANGO_PKG_ERRORS" >&5
31146
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31148$as_echo "no" >&6; }
31149 have_pango=no
31150elif test $pkg_failed = untried; then
31151 have_pango=no
31152else
31153 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31154 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31156$as_echo "yes" >&6; }
31157 have_pango=yes
31158fi
31159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31160$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031161fi
31162
31163if test "$have_pango" = 'yes'; then
31164
31165$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31166
31167 if test "$with_modules" = 'no'; then
31168 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31169 fi
31170fi
31171
cristya054b762012-03-26 23:16:00 +000031172if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031173
cristya054b762012-03-26 23:16:00 +000031174$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031175
31176 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031177 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031178 fi
31179fi
31180
31181 if test "$have_pango" = 'yes'; then
31182 PANGO_DELEGATE_TRUE=
31183 PANGO_DELEGATE_FALSE='#'
31184else
31185 PANGO_DELEGATE_TRUE='#'
31186 PANGO_DELEGATE_FALSE=
31187fi
31188
cristya054b762012-03-26 23:16:00 +000031189 if test "$have_pangocairo" = 'yes'; then
31190 PANGOCAIRO_DELEGATE_TRUE=
31191 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031192else
cristya054b762012-03-26 23:16:00 +000031193 PANGOCAIRO_DELEGATE_TRUE='#'
31194 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031195fi
31196
31197
31198
31199
31200
31201#
cristy3ed852e2009-09-05 21:47:34 +000031202# Check for PNG delegate library.
31203#
31204
31205# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031206if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031207 withval=$with_png; with_png=$withval
31208else
31209 with_png='yes'
31210fi
31211
31212
31213if test "$with_png" != 'yes'; then
31214 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31215fi
31216
cristy81beccd2011-10-03 18:17:24 +000031217have_png='no'
31218PNG_LIBS=''
31219
31220if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031221 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31222$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31224$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031225 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31226$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031227 failed=0
31228 passed=0
31229 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31230if test "x$ac_cv_header_png_h" = xyes; then :
31231 passed=`expr $passed + 1`
31232else
31233 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031234fi
31235
cristy81beccd2011-10-03 18:17:24 +000031236
31237
31238 if test $passed -gt 0; then
31239 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031240 if test "$have_png" = 'no' ; then
31241 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031242 pnglib='png'
31243 else
31244 pnglib="png1${var}"
31245 fi
31246
31247# Test for compatible LIBPNG library
31248 failed=0
31249 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031250 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031251 if test "${pnglib}" != 'png' ; then
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31253$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31255/* end confdefs.h. */
31256#include <stdio.h>
31257#include <stdlib.h>
31258#include <png.h>
31259
31260int
31261main ()
31262{
31263
31264#if PNG_LIBPNG_VER_MINOR != ${var}
31265#error LIBPNG library must be version 1${var}!
31266Kaboom, Kaboom
31267#endif
31268return 0;
31269
31270 ;
31271 return 0;
31272}
31273_ACEOF
31274if ac_fn_c_try_compile "$LINENO"; then :
31275 ac_cv_libpng_ok='yes'
31276else
31277 ac_cv_libpng_ok='no'
31278fi
31279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31280 if test "$ac_cv_libpng_ok" = 'yes' ; then
31281 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031282 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31283$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031284 else
31285 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031286 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31287$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031288 fi
31289 else
31290 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031291 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31292$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031293 fi
31294 fi
31295
31296 if test $passed -gt 0 -a $failed -le 0; then
31297 if test "1${var}" = '15' ; then
31298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31299$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31300if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31301 $as_echo_n "(cached) " >&6
31302else
31303 ac_check_lib_save_LIBS=$LIBS
31304LIBS="-lpng15 $LIBS"
31305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31306/* end confdefs.h. */
31307
31308/* Override any GCC internal prototype to avoid an error.
31309 Use char because int might match the return type of a GCC
31310 builtin and then its argument prototype would still apply. */
31311#ifdef __cplusplus
31312extern "C"
31313#endif
31314char png_get_io_ptr ();
31315int
31316main ()
31317{
31318return png_get_io_ptr ();
31319 ;
31320 return 0;
31321}
31322_ACEOF
31323if ac_fn_c_try_link "$LINENO"; then :
31324 ac_cv_lib_png15_png_get_io_ptr=yes
31325else
31326 ac_cv_lib_png15_png_get_io_ptr=no
31327fi
31328rm -f core conftest.err conftest.$ac_objext \
31329 conftest$ac_exeext conftest.$ac_ext
31330LIBS=$ac_check_lib_save_LIBS
31331fi
31332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31333$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31334if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31335 passed=`expr $passed + 1`
31336else
31337 failed=`expr $failed + 1`
31338fi
31339
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31341$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31342if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31343 $as_echo_n "(cached) " >&6
31344else
31345 ac_check_lib_save_LIBS=$LIBS
31346LIBS="-lpng15 $LIBS"
31347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31348/* end confdefs.h. */
31349
31350/* Override any GCC internal prototype to avoid an error.
31351 Use char because int might match the return type of a GCC
31352 builtin and then its argument prototype would still apply. */
31353#ifdef __cplusplus
31354extern "C"
31355#endif
31356char png_longjmp ();
31357int
31358main ()
31359{
31360return png_longjmp ();
31361 ;
31362 return 0;
31363}
31364_ACEOF
31365if ac_fn_c_try_link "$LINENO"; then :
31366 ac_cv_lib_png15_png_longjmp=yes
31367else
31368 ac_cv_lib_png15_png_longjmp=no
31369fi
31370rm -f core conftest.err conftest.$ac_objext \
31371 conftest$ac_exeext conftest.$ac_ext
31372LIBS=$ac_check_lib_save_LIBS
31373fi
31374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31375$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31376if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31377 passed=`expr $passed + 1`
31378else
31379 failed=`expr $failed + 1`
31380fi
31381
31382 fi
31383 if test "1${var}" = '14' ; then
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31385$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31386if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31387 $as_echo_n "(cached) " >&6
31388else
31389 ac_check_lib_save_LIBS=$LIBS
31390LIBS="-lpng14 $LIBS"
31391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31392/* end confdefs.h. */
31393
31394/* Override any GCC internal prototype to avoid an error.
31395 Use char because int might match the return type of a GCC
31396 builtin and then its argument prototype would still apply. */
31397#ifdef __cplusplus
31398extern "C"
31399#endif
31400char png_get_io_ptr ();
31401int
31402main ()
31403{
31404return png_get_io_ptr ();
31405 ;
31406 return 0;
31407}
31408_ACEOF
31409if ac_fn_c_try_link "$LINENO"; then :
31410 ac_cv_lib_png14_png_get_io_ptr=yes
31411else
31412 ac_cv_lib_png14_png_get_io_ptr=no
31413fi
31414rm -f core conftest.err conftest.$ac_objext \
31415 conftest$ac_exeext conftest.$ac_ext
31416LIBS=$ac_check_lib_save_LIBS
31417fi
31418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31419$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31420if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31421 passed=`expr $passed + 1`
31422else
31423 failed=`expr $failed + 1`
31424fi
31425
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31427$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31428if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31429 $as_echo_n "(cached) " >&6
31430else
31431 ac_check_lib_save_LIBS=$LIBS
31432LIBS="-lpng14 $LIBS"
31433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31434/* end confdefs.h. */
31435
31436/* Override any GCC internal prototype to avoid an error.
31437 Use char because int might match the return type of a GCC
31438 builtin and then its argument prototype would still apply. */
31439#ifdef __cplusplus
31440extern "C"
31441#endif
31442char png_get_io_state ();
31443int
31444main ()
31445{
31446return png_get_io_state ();
31447 ;
31448 return 0;
31449}
31450_ACEOF
31451if ac_fn_c_try_link "$LINENO"; then :
31452 ac_cv_lib_png14_png_get_io_state=yes
31453else
31454 ac_cv_lib_png14_png_get_io_state=no
31455fi
31456rm -f core conftest.err conftest.$ac_objext \
31457 conftest$ac_exeext conftest.$ac_ext
31458LIBS=$ac_check_lib_save_LIBS
31459fi
31460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31461$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31462if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31463 passed=`expr $passed + 1`
31464else
31465 failed=`expr $failed + 1`
31466fi
31467
31468 fi
31469 if test "1${var}" = '12' ; then
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31471$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31472if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31473 $as_echo_n "(cached) " >&6
31474else
31475 ac_check_lib_save_LIBS=$LIBS
31476LIBS="-lpng12 $LIBS"
31477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31478/* end confdefs.h. */
31479
31480/* Override any GCC internal prototype to avoid an error.
31481 Use char because int might match the return type of a GCC
31482 builtin and then its argument prototype would still apply. */
31483#ifdef __cplusplus
31484extern "C"
31485#endif
31486char png_get_io_ptr ();
31487int
31488main ()
31489{
31490return png_get_io_ptr ();
31491 ;
31492 return 0;
31493}
31494_ACEOF
31495if ac_fn_c_try_link "$LINENO"; then :
31496 ac_cv_lib_png12_png_get_io_ptr=yes
31497else
31498 ac_cv_lib_png12_png_get_io_ptr=no
31499fi
31500rm -f core conftest.err conftest.$ac_objext \
31501 conftest$ac_exeext conftest.$ac_ext
31502LIBS=$ac_check_lib_save_LIBS
31503fi
31504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31505$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31506if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31507 passed=`expr $passed + 1`
31508else
31509 failed=`expr $failed + 1`
31510fi
31511
31512 fi
31513 if test "1${var}" = '1' ; then
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31515$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31516if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31517 $as_echo_n "(cached) " >&6
31518else
31519 ac_check_lib_save_LIBS=$LIBS
31520LIBS="-lpng $LIBS"
31521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31522/* end confdefs.h. */
31523
31524/* Override any GCC internal prototype to avoid an error.
31525 Use char because int might match the return type of a GCC
31526 builtin and then its argument prototype would still apply. */
31527#ifdef __cplusplus
31528extern "C"
31529#endif
31530char png_get_io_ptr ();
31531int
31532main ()
31533{
31534return png_get_io_ptr ();
31535 ;
31536 return 0;
31537}
31538_ACEOF
31539if ac_fn_c_try_link "$LINENO"; then :
31540 ac_cv_lib_png_png_get_io_ptr=yes
31541else
31542 ac_cv_lib_png_png_get_io_ptr=no
31543fi
31544rm -f core conftest.err conftest.$ac_objext \
31545 conftest$ac_exeext conftest.$ac_ext
31546LIBS=$ac_check_lib_save_LIBS
31547fi
31548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31549$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31550if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31551 passed=`expr $passed + 1`
31552else
31553 failed=`expr $failed + 1`
31554fi
31555
31556 fi
31557 if test $passed -gt 0 -a $failed -le 0 ; then
31558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31559$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31560 if test $passed -gt 0 ; then
31561 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031562 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31563$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031564 have_png='no (failed tests)'
31565 else
31566 PNG_LIBS="-l${pnglib}"
31567 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031568
cristy8b350f62009-11-15 23:12:43 +000031569$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031570
cristy09b53e12011-10-14 12:47:22 +000031571 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31572$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031573 have_png='yes'
31574 fi
31575 fi
31576 fi
31577 fi
31578 fi
31579 done
31580 fi
cristy3ed852e2009-09-05 21:47:34 +000031581fi
cristy64877302011-08-23 19:10:31 +000031582
cristy73bd4a52010-10-05 11:24:23 +000031583 if test "$have_png" = 'yes'; then
31584 PNG_DELEGATE_TRUE=
31585 PNG_DELEGATE_FALSE='#'
31586else
31587 PNG_DELEGATE_TRUE='#'
31588 PNG_DELEGATE_FALSE=
31589fi
31590
cristy3ed852e2009-09-05 21:47:34 +000031591
cristy50d3f5c2011-09-10 20:09:06 +000031592
cristy3ed852e2009-09-05 21:47:34 +000031593
31594
31595#
31596# Check for RSVG delegate library.
31597#
31598
31599# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031600if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031601 withval=$with_rsvg; with_rsvg=$withval
31602else
cristy1164d5f2012-08-15 00:58:25 +000031603 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031604fi
31605
31606
31607if test "$with_rsvg" != 'yes'; then
31608 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31609fi
31610
31611have_rsvg='no'
31612have_cairo='no'
31613RSVG_CFLAGS=""
31614RSVG_LIBS=""
31615RSVG_PKG=""
31616if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31618$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031619
31620pkg_failed=no
31621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31622$as_echo_n "checking for RSVG... " >&6; }
31623
31624if test -n "$RSVG_CFLAGS"; then
31625 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31626 elif test -n "$PKG_CONFIG"; then
31627 if test -n "$PKG_CONFIG" && \
31628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31629 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31630 ac_status=$?
31631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31632 test $ac_status = 0; }; then
31633 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31634else
31635 pkg_failed=yes
31636fi
31637 else
31638 pkg_failed=untried
31639fi
31640if test -n "$RSVG_LIBS"; then
31641 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31642 elif test -n "$PKG_CONFIG"; then
31643 if test -n "$PKG_CONFIG" && \
31644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31645 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31646 ac_status=$?
31647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31648 test $ac_status = 0; }; then
31649 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31650else
31651 pkg_failed=yes
31652fi
31653 else
31654 pkg_failed=untried
31655fi
31656
31657
31658
31659if test $pkg_failed = yes; then
31660
31661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31662 _pkg_short_errors_supported=yes
31663else
31664 _pkg_short_errors_supported=no
31665fi
31666 if test $_pkg_short_errors_supported = yes; then
31667 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31668 else
31669 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31670 fi
31671 # Put the nasty error message in config.log where it belongs
31672 echo "$RSVG_PKG_ERRORS" >&5
31673
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31675$as_echo "no" >&6; }
31676 have_rsvg=no
31677elif test $pkg_failed = untried; then
31678 have_rsvg=no
31679else
31680 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31681 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31683$as_echo "yes" >&6; }
31684 have_rsvg=yes
31685fi
cristy09b53e12011-10-14 12:47:22 +000031686 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31687$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031688
31689pkg_failed=no
31690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31691$as_echo_n "checking for CAIRO_SVG... " >&6; }
31692
31693if test -n "$CAIRO_SVG_CFLAGS"; then
31694 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31695 elif test -n "$PKG_CONFIG"; then
31696 if test -n "$PKG_CONFIG" && \
31697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31698 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31699 ac_status=$?
31700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31701 test $ac_status = 0; }; then
31702 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31703else
31704 pkg_failed=yes
31705fi
31706 else
31707 pkg_failed=untried
31708fi
31709if test -n "$CAIRO_SVG_LIBS"; then
31710 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31711 elif test -n "$PKG_CONFIG"; then
31712 if test -n "$PKG_CONFIG" && \
31713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31714 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31715 ac_status=$?
31716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31717 test $ac_status = 0; }; then
31718 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31719else
31720 pkg_failed=yes
31721fi
31722 else
31723 pkg_failed=untried
31724fi
31725
31726
31727
31728if test $pkg_failed = yes; then
31729
31730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31731 _pkg_short_errors_supported=yes
31732else
31733 _pkg_short_errors_supported=no
31734fi
31735 if test $_pkg_short_errors_supported = yes; then
31736 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31737 else
31738 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31739 fi
31740 # Put the nasty error message in config.log where it belongs
31741 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31742
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31744$as_echo "no" >&6; }
31745 have_cairo=no
31746elif test $pkg_failed = untried; then
31747 have_cairo=no
31748else
31749 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31750 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31752$as_echo "yes" >&6; }
31753 have_cairo=yes
31754fi
cristy09b53e12011-10-14 12:47:22 +000031755 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31756$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031757fi
31758
31759if test "$have_rsvg" = 'yes'; then
31760
cristy8b350f62009-11-15 23:12:43 +000031761$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031762
31763 if test "$with_modules" = 'no'; then
31764 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31765 fi
31766fi
31767
31768if test "$have_cairo" = 'yes'; then
31769
cristy8b350f62009-11-15 23:12:43 +000031770$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031771
31772 if test "$with_modules" = 'no'; then
31773 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31774 fi
31775fi
31776
cristy73bd4a52010-10-05 11:24:23 +000031777 if test "$have_rsvg" = 'yes'; then
31778 RSVG_DELEGATE_TRUE=
31779 RSVG_DELEGATE_FALSE='#'
31780else
31781 RSVG_DELEGATE_TRUE='#'
31782 RSVG_DELEGATE_FALSE=
31783fi
31784
31785 if test "$have_cairo" = 'yes'; then
31786 CAIRO_DELEGATE_TRUE=
31787 CAIRO_DELEGATE_FALSE='#'
31788else
31789 CAIRO_DELEGATE_TRUE='#'
31790 CAIRO_DELEGATE_FALSE=
31791fi
31792
cristy3ed852e2009-09-05 21:47:34 +000031793
31794
31795
31796
31797#
31798# Check for TIFF delegate library.
31799#
31800
31801# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031802if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031803 withval=$with_tiff; with_tiff=$withval
31804else
31805 with_tiff='yes'
31806fi
31807
31808
31809if test "$with_tiff" != 'yes'; then
31810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31811fi
31812
31813have_tiff='no'
31814TIFF_LIBS=''
31815if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031816 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31817$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031819$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031820 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31821$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031822 failed=0
31823 passed=0
cristy8b350f62009-11-15 23:12:43 +000031824 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031825if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031826 passed=`expr $passed + 1`
31827else
31828 failed=`expr $failed + 1`
31829fi
31830
31831
cristy8b350f62009-11-15 23:12:43 +000031832 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031833if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031834 passed=`expr $passed + 1`
31835else
31836 failed=`expr $failed + 1`
31837fi
31838
31839
cristy8b350f62009-11-15 23:12:43 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031842if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031843 $as_echo_n "(cached) " >&6
31844else
31845 ac_check_lib_save_LIBS=$LIBS
31846LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031848/* end confdefs.h. */
31849
31850/* Override any GCC internal prototype to avoid an error.
31851 Use char because int might match the return type of a GCC
31852 builtin and then its argument prototype would still apply. */
31853#ifdef __cplusplus
31854extern "C"
31855#endif
31856char TIFFOpen ();
31857int
31858main ()
31859{
31860return TIFFOpen ();
31861 ;
31862 return 0;
31863}
31864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031866 ac_cv_lib_tiff_TIFFOpen=yes
31867else
cristy8b350f62009-11-15 23:12:43 +000031868 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031869fi
cristy8b350f62009-11-15 23:12:43 +000031870rm -f core conftest.err conftest.$ac_objext \
31871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031872LIBS=$ac_check_lib_save_LIBS
31873fi
cristy8b350f62009-11-15 23:12:43 +000031874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031875$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031876if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031877 passed=`expr $passed + 1`
31878else
31879 failed=`expr $failed + 1`
31880fi
31881
cristy8b350f62009-11-15 23:12:43 +000031882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031883$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031884if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031885 $as_echo_n "(cached) " >&6
31886else
31887 ac_check_lib_save_LIBS=$LIBS
31888LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031890/* end confdefs.h. */
31891
31892/* Override any GCC internal prototype to avoid an error.
31893 Use char because int might match the return type of a GCC
31894 builtin and then its argument prototype would still apply. */
31895#ifdef __cplusplus
31896extern "C"
31897#endif
31898char TIFFClientOpen ();
31899int
31900main ()
31901{
31902return TIFFClientOpen ();
31903 ;
31904 return 0;
31905}
31906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031908 ac_cv_lib_tiff_TIFFClientOpen=yes
31909else
cristy8b350f62009-11-15 23:12:43 +000031910 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031911fi
cristy8b350f62009-11-15 23:12:43 +000031912rm -f core conftest.err conftest.$ac_objext \
31913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031914LIBS=$ac_check_lib_save_LIBS
31915fi
cristy8b350f62009-11-15 23:12:43 +000031916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031917$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031918if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031919 passed=`expr $passed + 1`
31920else
31921 failed=`expr $failed + 1`
31922fi
31923
cristy8b350f62009-11-15 23:12:43 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031926if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031927 $as_echo_n "(cached) " >&6
31928else
31929 ac_check_lib_save_LIBS=$LIBS
31930LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031932/* end confdefs.h. */
31933
31934/* Override any GCC internal prototype to avoid an error.
31935 Use char because int might match the return type of a GCC
31936 builtin and then its argument prototype would still apply. */
31937#ifdef __cplusplus
31938extern "C"
31939#endif
31940char TIFFIsByteSwapped ();
31941int
31942main ()
31943{
31944return TIFFIsByteSwapped ();
31945 ;
31946 return 0;
31947}
31948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031950 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31951else
cristy8b350f62009-11-15 23:12:43 +000031952 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031953fi
cristy8b350f62009-11-15 23:12:43 +000031954rm -f core conftest.err conftest.$ac_objext \
31955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031956LIBS=$ac_check_lib_save_LIBS
31957fi
cristy8b350f62009-11-15 23:12:43 +000031958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031960if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031961 passed=`expr $passed + 1`
31962else
31963 failed=`expr $failed + 1`
31964fi
31965
cristy8b350f62009-11-15 23:12:43 +000031966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031967$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031968if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031969 $as_echo_n "(cached) " >&6
31970else
31971 ac_check_lib_save_LIBS=$LIBS
31972LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031974/* end confdefs.h. */
31975
31976/* Override any GCC internal prototype to avoid an error.
31977 Use char because int might match the return type of a GCC
31978 builtin and then its argument prototype would still apply. */
31979#ifdef __cplusplus
31980extern "C"
31981#endif
31982char TIFFReadRGBATile ();
31983int
31984main ()
31985{
31986return TIFFReadRGBATile ();
31987 ;
31988 return 0;
31989}
31990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031992 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31993else
cristy8b350f62009-11-15 23:12:43 +000031994 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031995fi
cristy8b350f62009-11-15 23:12:43 +000031996rm -f core conftest.err conftest.$ac_objext \
31997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031998LIBS=$ac_check_lib_save_LIBS
31999fi
cristy8b350f62009-11-15 23:12:43 +000032000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032001$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032002if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032003 passed=`expr $passed + 1`
32004else
32005 failed=`expr $failed + 1`
32006fi
32007
cristy8b350f62009-11-15 23:12:43 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032010if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032011 $as_echo_n "(cached) " >&6
32012else
32013 ac_check_lib_save_LIBS=$LIBS
32014LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032016/* end confdefs.h. */
32017
32018/* Override any GCC internal prototype to avoid an error.
32019 Use char because int might match the return type of a GCC
32020 builtin and then its argument prototype would still apply. */
32021#ifdef __cplusplus
32022extern "C"
32023#endif
32024char TIFFReadRGBAStrip ();
32025int
32026main ()
32027{
32028return TIFFReadRGBAStrip ();
32029 ;
32030 return 0;
32031}
32032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032034 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32035else
cristy8b350f62009-11-15 23:12:43 +000032036 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032037fi
cristy8b350f62009-11-15 23:12:43 +000032038rm -f core conftest.err conftest.$ac_objext \
32039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032040LIBS=$ac_check_lib_save_LIBS
32041fi
cristy8b350f62009-11-15 23:12:43 +000032042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032044if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032045 passed=`expr $passed + 1`
32046else
32047 failed=`expr $failed + 1`
32048fi
32049
cristy8b350f62009-11-15 23:12:43 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo_n "checking if TIFF package is complete... " >&6; }
32052 if test $passed -gt 0; then
32053 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032054 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32055$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032056 have_tiff='no (failed tests)'
32057 else
32058 TIFF_LIBS='-ltiff'
32059 LIBS="$TIFF_LIBS $LIBS"
32060
cristy8b350f62009-11-15 23:12:43 +000032061$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032062
cristy09b53e12011-10-14 12:47:22 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32064$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032065 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032066 for ac_header in tiffconf.h
32067do :
32068 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032069if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032070 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032071#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032072_ACEOF
32073
32074fi
32075
32076done
32077
cristy8b350f62009-11-15 23:12:43 +000032078 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032079 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32080 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32081 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032082do :
32083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032085if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032086 cat >>confdefs.h <<_ACEOF
32087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32088_ACEOF
32089
32090fi
32091done
32092
32093 fi
32094 else
cristy09b53e12011-10-14 12:47:22 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32096$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032097 fi
32098fi
cristy73bd4a52010-10-05 11:24:23 +000032099 if test "$have_tiff" = 'yes'; then
32100 TIFF_DELEGATE_TRUE=
32101 TIFF_DELEGATE_FALSE='#'
32102else
32103 TIFF_DELEGATE_TRUE='#'
32104 TIFF_DELEGATE_FALSE=
32105fi
32106
cristy3ed852e2009-09-05 21:47:34 +000032107
32108
32109
32110#
cristyb1860752011-03-14 00:27:46 +000032111# Check for WEBP delegate library.
32112#
32113
32114# Check whether --with-webp was given.
32115if test "${with_webp+set}" = set; then :
32116 withval=$with_webp; with_webp=$withval
32117else
32118 with_webp='yes'
32119fi
32120
32121
32122if test "$with_webp" != 'yes'; then
32123 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32124fi
32125
32126have_webp='no'
32127WEBP_LIBS=''
32128if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032129 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32130$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32132$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032133 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32134$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032135 failed=0
32136 passed=0
32137 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32138if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32139 passed=`expr $passed + 1`
32140else
32141 failed=`expr $failed + 1`
32142fi
32143
32144
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32146$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32147if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32148 $as_echo_n "(cached) " >&6
32149else
32150 ac_check_lib_save_LIBS=$LIBS
32151LIBS="-lwebp $LIBS"
32152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32153/* end confdefs.h. */
32154
32155/* Override any GCC internal prototype to avoid an error.
32156 Use char because int might match the return type of a GCC
32157 builtin and then its argument prototype would still apply. */
32158#ifdef __cplusplus
32159extern "C"
32160#endif
32161char WebPDecodeRGB ();
32162int
32163main ()
32164{
32165return WebPDecodeRGB ();
32166 ;
32167 return 0;
32168}
32169_ACEOF
32170if ac_fn_c_try_link "$LINENO"; then :
32171 ac_cv_lib_webp_WebPDecodeRGB=yes
32172else
32173 ac_cv_lib_webp_WebPDecodeRGB=no
32174fi
32175rm -f core conftest.err conftest.$ac_objext \
32176 conftest$ac_exeext conftest.$ac_ext
32177LIBS=$ac_check_lib_save_LIBS
32178fi
32179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32180$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32181if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32182 passed=`expr $passed + 1`
32183else
32184 failed=`expr $failed + 1`
32185fi
32186
32187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32188$as_echo_n "checking if WEBP package is complete... " >&6; }
32189 if test $passed -gt 0; then
32190 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032191 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32192$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032193 have_webp='no (failed tests)'
32194 else
32195 WEBP_LIBS='-lwebp'
32196 LIBS="$WEBP_LIBS $LIBS"
32197
32198$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32199
cristy09b53e12011-10-14 12:47:22 +000032200 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32201$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032202 have_webp='yes'
32203 fi
32204 else
cristy09b53e12011-10-14 12:47:22 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32206$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032207 fi
32208fi
32209 if test "$have_webp" = 'yes'; then
32210 WEBP_DELEGATE_TRUE=
32211 WEBP_DELEGATE_FALSE='#'
32212else
32213 WEBP_DELEGATE_TRUE='#'
32214 WEBP_DELEGATE_FALSE=
32215fi
32216
32217
32218
32219
32220#
cristy3ed852e2009-09-05 21:47:34 +000032221# Set Windows font directory.
32222#
32223
32224# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032225if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032226 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32227else
32228 with_windows_font_dir=''
32229fi
32230
32231if test "$with_windows_font_dir" != '' ; then
32232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32233fi
32234
32235
32236#
32237# Check for WMF delegate library.
32238#
32239
32240# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032241if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032242 withval=$with_wmf; with_wmf=$withval
32243else
cristyfc3d0222012-02-07 15:05:57 +000032244 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032245fi
32246
32247
32248if test "$with_wmf" != 'yes'; then
32249 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32250fi
32251
32252have_wmf='no'
32253WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032254WMF_LIBS_DEPS=''
32255OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032256if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32258$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032260$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32262$as_echo "" >&6; }
32263 have_libwmf='no'
32264 have_libwmflite='no'
32265 have_libwmf_ipa_h='no'
32266
32267 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32268"
32269if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32270 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032271fi
32272
32273
cristy03f7cf92011-12-15 01:40:41 +000032274 if test "$have_libwmf_ipa_h" = 'yes'; then
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32276$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32277if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032278 $as_echo_n "(cached) " >&6
32279else
32280 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032281LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032283/* end confdefs.h. */
32284
32285/* Override any GCC internal prototype to avoid an error.
32286 Use char because int might match the return type of a GCC
32287 builtin and then its argument prototype would still apply. */
32288#ifdef __cplusplus
32289extern "C"
32290#endif
cristy03f7cf92011-12-15 01:40:41 +000032291char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032292int
32293main ()
32294{
cristy03f7cf92011-12-15 01:40:41 +000032295return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032296 ;
32297 return 0;
32298}
32299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032300if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032301 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032302else
cristy03f7cf92011-12-15 01:40:41 +000032303 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032304fi
cristy8b350f62009-11-15 23:12:43 +000032305rm -f core conftest.err conftest.$ac_objext \
32306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032307LIBS=$ac_check_lib_save_LIBS
32308fi
cristy03f7cf92011-12-15 01:40:41 +000032309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32310$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32311if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32312 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032313fi
32314
cristy03f7cf92011-12-15 01:40:41 +000032315 if test "$have_libwmflite" = 'yes'; then
32316
32317$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32318
32319 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032320 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032321 have_wmf='yes'
32322 else
32323 WMF_LIBS_DEPS=''
32324 WMF_CONFIG_LIBS=`libwmf-config --libs`
32325 for lib in xml2 expat freetype jpeg png z; do
32326 testlib="-l${lib}"
32327 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32328 done
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32330$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32331if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32332 $as_echo_n "(cached) " >&6
32333else
32334 ac_check_lib_save_LIBS=$LIBS
32335LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32337/* end confdefs.h. */
32338
32339/* Override any GCC internal prototype to avoid an error.
32340 Use char because int might match the return type of a GCC
32341 builtin and then its argument prototype would still apply. */
32342#ifdef __cplusplus
32343extern "C"
32344#endif
32345char wmf_api_create ();
32346int
32347main ()
32348{
32349return wmf_api_create ();
32350 ;
32351 return 0;
32352}
32353_ACEOF
32354if ac_fn_c_try_link "$LINENO"; then :
32355 ac_cv_lib_wmf_wmf_api_create=yes
32356else
32357 ac_cv_lib_wmf_wmf_api_create=no
32358fi
32359rm -f core conftest.err conftest.$ac_objext \
32360 conftest$ac_exeext conftest.$ac_ext
32361LIBS=$ac_check_lib_save_LIBS
32362fi
32363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32364$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32365if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32366 have_libwmf='yes'
32367fi
32368
32369 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032370
cristy8b350f62009-11-15 23:12:43 +000032371$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032372
cristy03f7cf92011-12-15 01:40:41 +000032373 WMF_LIBS='-lwmf'
32374 LIBS="$WMF_LIBS $LIBS"
32375 have_wmf='yes'
32376 else
32377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32378$as_echo "no -- some components failed test" >&6; }
32379 have_wmf='no (failed tests)'
32380 have_wmflite='no (failed tests)'
32381 LIBS="$OLIBS"
32382 WMF_LIBS=''
32383 fi
glennrp33e524b2011-08-24 17:41:57 +000032384 fi
cristy03f7cf92011-12-15 01:40:41 +000032385 fi
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32387$as_echo_n "checking if WMF package is complete... " >&6; }
32388 if test "$have_wmf" = 'yes'; then
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32390$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032391 else
cristy03f7cf92011-12-15 01:40:41 +000032392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32393$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032394 fi
cristy3ed852e2009-09-05 21:47:34 +000032395fi
cristy73bd4a52010-10-05 11:24:23 +000032396 if test "$have_wmf" = 'yes'; then
32397 WMF_DELEGATE_TRUE=
32398 WMF_DELEGATE_FALSE='#'
32399else
32400 WMF_DELEGATE_TRUE='#'
32401 WMF_DELEGATE_FALSE=
32402fi
32403
cristy3ed852e2009-09-05 21:47:34 +000032404
32405
32406
cristy81beccd2011-10-03 18:17:24 +000032407
32408
cristy3ed852e2009-09-05 21:47:34 +000032409#
32410# Check for XML delegate library.
32411#
32412
32413# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032414if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032415 withval=$with_xml; with_xml=$withval
32416else
cristyfc3d0222012-02-07 15:05:57 +000032417 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032418fi
32419
32420
cristy81beccd2011-10-03 18:17:24 +000032421if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32423fi
32424
cristy81beccd2011-10-03 18:17:24 +000032425have_xml='no'
32426XML_LIBS=''
32427if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032428 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32429$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32431$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032432 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32433$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032434 PERSIST_LDFLAGS=$LDFLAGS
32435 PERSIST_CPPFLAGS=$CPPFLAGS
32436 xml2_config=''
32437 # Extract the first word of "xml2-config", so it can be a program name with args.
32438set dummy xml2-config; ac_word=$2
32439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32440$as_echo_n "checking for $ac_word... " >&6; }
32441if ${ac_cv_path_xml2_config+:} false; then :
32442 $as_echo_n "(cached) " >&6
32443else
32444 case $xml2_config in
32445 [\\/]* | ?:[\\/]*)
32446 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32447 ;;
32448 *)
32449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450for as_dir in $PATH
32451do
32452 IFS=$as_save_IFS
32453 test -z "$as_dir" && as_dir=.
32454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032456 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32458 break 2
32459 fi
32460done
32461 done
32462IFS=$as_save_IFS
32463
32464 ;;
32465esac
32466fi
32467xml2_config=$ac_cv_path_xml2_config
32468if test -n "$xml2_config"; then
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32470$as_echo "$xml2_config" >&6; }
32471else
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32473$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032474fi
32475
cristy81beccd2011-10-03 18:17:24 +000032476 if test -n "$xml2_config"; then
32477 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32478 # the shared library installed under /usr/lib, whereas the package
32479 # installs itself under $prefix/libxml and $prefix/lib.
32480 xml2_prefix=`xml2-config --prefix`
32481 if test -d "${xml2_prefix}/include/libxml2"; then
32482 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32483 fi
32484 if test "${xml2_prefix}" != '/usr'; then
32485 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32486 fi
32487 fi
32488 failed=0
32489 passed=0
32490 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32491if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32492 passed=`expr $passed + 1`
32493else
32494 failed=`expr $failed + 1`
32495fi
32496
32497
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32499$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32500if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32501 $as_echo_n "(cached) " >&6
32502else
32503 ac_check_lib_save_LIBS=$LIBS
32504LIBS="-lxml2 $LIBS"
32505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32506/* end confdefs.h. */
32507
32508/* Override any GCC internal prototype to avoid an error.
32509 Use char because int might match the return type of a GCC
32510 builtin and then its argument prototype would still apply. */
32511#ifdef __cplusplus
32512extern "C"
32513#endif
32514char xmlSAXVersion ();
32515int
32516main ()
32517{
32518return xmlSAXVersion ();
32519 ;
32520 return 0;
32521}
32522_ACEOF
32523if ac_fn_c_try_link "$LINENO"; then :
32524 ac_cv_lib_xml2_xmlSAXVersion=yes
32525else
32526 ac_cv_lib_xml2_xmlSAXVersion=no
32527fi
32528rm -f core conftest.err conftest.$ac_objext \
32529 conftest$ac_exeext conftest.$ac_ext
32530LIBS=$ac_check_lib_save_LIBS
32531fi
32532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32533$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32534if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32535 passed=`expr $passed + 1`
32536else
32537 failed=`expr $failed + 1`
32538fi
32539
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32541$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32542if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32543 $as_echo_n "(cached) " >&6
32544else
32545 ac_check_lib_save_LIBS=$LIBS
32546LIBS="-lxml2 $LIBS"
32547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32548/* end confdefs.h. */
32549
32550/* Override any GCC internal prototype to avoid an error.
32551 Use char because int might match the return type of a GCC
32552 builtin and then its argument prototype would still apply. */
32553#ifdef __cplusplus
32554extern "C"
32555#endif
32556char xmlParseChunk ();
32557int
32558main ()
32559{
32560return xmlParseChunk ();
32561 ;
32562 return 0;
32563}
32564_ACEOF
32565if ac_fn_c_try_link "$LINENO"; then :
32566 ac_cv_lib_xml2_xmlParseChunk=yes
32567else
32568 ac_cv_lib_xml2_xmlParseChunk=no
32569fi
32570rm -f core conftest.err conftest.$ac_objext \
32571 conftest$ac_exeext conftest.$ac_ext
32572LIBS=$ac_check_lib_save_LIBS
32573fi
32574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32575$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32576if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32577 passed=`expr $passed + 1`
32578else
32579 failed=`expr $failed + 1`
32580fi
32581
32582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32583$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32584if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32585 $as_echo_n "(cached) " >&6
32586else
32587 ac_check_lib_save_LIBS=$LIBS
32588LIBS="-lxml2 $LIBS"
32589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32590/* end confdefs.h. */
32591
32592/* Override any GCC internal prototype to avoid an error.
32593 Use char because int might match the return type of a GCC
32594 builtin and then its argument prototype would still apply. */
32595#ifdef __cplusplus
32596extern "C"
32597#endif
32598char xmlCreatePushParserCtxt ();
32599int
32600main ()
32601{
32602return xmlCreatePushParserCtxt ();
32603 ;
32604 return 0;
32605}
32606_ACEOF
32607if ac_fn_c_try_link "$LINENO"; then :
32608 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32609else
32610 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32611fi
32612rm -f core conftest.err conftest.$ac_objext \
32613 conftest$ac_exeext conftest.$ac_ext
32614LIBS=$ac_check_lib_save_LIBS
32615fi
32616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32617$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32618if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32619 passed=`expr $passed + 1`
32620else
32621 failed=`expr $failed + 1`
32622fi
32623
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32625$as_echo_n "checking if XML package is complete... " >&6; }
32626 if test $passed -gt 0; then
32627 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032628 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32629$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032630 have_xml='no (failed tests)'
32631 LDFLAGS="$PERSIST_LDFLAGS"
32632 CPPFLAGS="$PERSIST_CPPFLAGS"
32633 else
32634 XML_LIBS='-lxml2'
32635 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032636
cristy8b350f62009-11-15 23:12:43 +000032637$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032638
cristy09b53e12011-10-14 12:47:22 +000032639 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32640$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032641 have_xml='yes'
32642 fi
32643 else
cristy09b53e12011-10-14 12:47:22 +000032644 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32645$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032646 fi
32647fi
cristy73bd4a52010-10-05 11:24:23 +000032648 if test "$have_xml" = 'yes'; then
32649 XML_DELEGATE_TRUE=
32650 XML_DELEGATE_FALSE='#'
32651else
32652 XML_DELEGATE_TRUE='#'
32653 XML_DELEGATE_FALSE=
32654fi
32655
cristy3ed852e2009-09-05 21:47:34 +000032656
32657
32658
32659# Substitute compiler name to build/link PerlMagick
32660#
32661
32662
32663#
32664# Configure install Paths
32665#
cristy7def36a2011-10-28 19:04:41 +000032666
cristy2a11bef2011-10-28 18:33:11 +000032667# Path to ImageMagick header files
32668INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032669INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32670DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032671case "${build_os}" in
32672 mingw* )
32673 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32674 ;;
32675esac
32676
32677cat >>confdefs.h <<_ACEOF
32678#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32679_ACEOF
32680
32681
cristy3ed852e2009-09-05 21:47:34 +000032682
32683# Subdirectory under lib to place ImageMagick lib files
32684LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32685
32686cat >>confdefs.h <<_ACEOF
32687#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32688_ACEOF
32689
32690
32691# Path to ImageMagick bin directory
32692EXECUTABLE_PATH="${BIN_DIR}"
32693DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32694case "${build_os}" in
32695 mingw* )
32696 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32697 ;;
32698esac
32699
32700cat >>confdefs.h <<_ACEOF
32701#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32702_ACEOF
32703
32704
32705
32706# Path to ImageMagick lib
32707LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32708DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32709case "${build_os}" in
32710 mingw* )
32711 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32712 ;;
32713esac
32714
32715cat >>confdefs.h <<_ACEOF
32716#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32717_ACEOF
32718
32719
32720
cristy3ed852e2009-09-05 21:47:34 +000032721#
32722# Subdirectory under lib to place ImageMagick coder module files
32723CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32724
32725cat >>confdefs.h <<_ACEOF
32726#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32727_ACEOF
32728
32729CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32730DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32731case "${build_os}" in
32732 mingw* )
32733 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32734 ;;
32735esac
32736
32737cat >>confdefs.h <<_ACEOF
32738#define CODER_PATH "$DEFINE_CODER_PATH"
32739_ACEOF
32740
32741
32742
32743#
32744# Subdirectory under lib to place ImageMagick filter module files
32745FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32746
32747cat >>confdefs.h <<_ACEOF
32748#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32749_ACEOF
32750
32751FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32752DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32753case "${build_os}" in
32754 mingw* )
32755 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32756 ;;
32757esac
32758
32759cat >>confdefs.h <<_ACEOF
32760#define FILTER_PATH "$DEFINE_FILTER_PATH"
32761_ACEOF
32762
32763
32764
32765#
32766# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032767DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032768DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32769DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032770case "${build_os}" in
32771 mingw* )
32772 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32773 ;;
32774esac
32775
32776cat >>confdefs.h <<_ACEOF
32777#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32778_ACEOF
32779
32780
32781
cristy2a11bef2011-10-28 18:33:11 +000032782# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032783CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032784
32785cat >>confdefs.h <<_ACEOF
32786#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32787_ACEOF
32788
cristy7def36a2011-10-28 19:04:41 +000032789CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032790DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32791case "${build_os}" in
32792 mingw* )
32793 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32794 ;;
32795esac
32796
32797cat >>confdefs.h <<_ACEOF
32798#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32799_ACEOF
32800
32801
32802
cristy2a11bef2011-10-28 18:33:11 +000032803# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032804SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032805
32806cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032807#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032808_ACEOF
32809
cristy670aa3c2011-11-03 00:54:00 +000032810SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032811DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032812case "${build_os}" in
32813 mingw* )
cristy4f820712011-04-01 12:35:43 +000032814 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032815 ;;
32816esac
32817
32818cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032819#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032820_ACEOF
32821
32822
32823
cristy408ebcd2011-11-14 01:36:57 +000032824# Subdirectory to place architecture-dependent configuration files
32825SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032826
32827cat >>confdefs.h <<_ACEOF
32828#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32829_ACEOF
32830
cristy408ebcd2011-11-14 01:36:57 +000032831SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32832DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032833case "${build_os}" in
32834 mingw* )
32835 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32836 ;;
32837esac
32838
32839cat >>confdefs.h <<_ACEOF
32840#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32841_ACEOF
32842
32843
32844
cristy3ed852e2009-09-05 21:47:34 +000032845#
32846# program_transform_name is formed for use in a Makefile, so create a
32847# modified version for use in a shell script.
32848configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32849
32850# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032851{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32852$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032855{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32856$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032857AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032858BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032859BZIPDelegateDefault='bzip2'
32860BrowseDelegateDefault='xdg-open'
32861CGMDecodeDelegateDefault='ralcgm'
32862CatDelegateDefault='cat'
32863DNGDecodeDelegateDefault='ufraw-batch'
32864GVCDecodeDelegateDefault='dot'
32865DVIDecodeDelegateDefault='dvips'
32866EchoDelegateDefault='echo'
32867EditorDelegateDefault='xterm'
32868FIGDecodeDelegateDefault='fig2dev'
32869ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32870DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32871MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32872GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032873HPGLDecodeDelegateDefault='hp2xx'
32874HTMLDecodeDelegateDefault='html2ps'
32875ILBMDecodeDelegateDefault='ilbmtoppm'
32876ILBMEncodeDelegateDefault='ppmtoilbm'
32877LPDelegateDefault='lp'
32878LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032879LaunchDelegateDefault='gimp'
32880MANDelegateDefault='groff'
32881MPEGDecodeDelegateDefault='ffmpeg'
32882MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032883MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032884MVDelegateDefault='mv'
32885PCLDelegateDefault='pcl6'
32886PGPDecodeDelegateDefault='pgpv'
32887POVDelegateDefault='povray'
32888if test "$native_win32_build" = 'yes'; then
32889 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032890elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032891 PSDelegateDefault='gsc'
32892else
32893 PSDelegateDefault='gs'
32894fi
32895RLEEncodeDelegateDefault='rawtorle'
32896RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032897RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032898SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032899SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032900TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032901UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032902WMFDecodeDelegateDefault='wmf2eps'
32903WWWDecodeDelegateDefault='curl'
32904XPSDelegateDefault='gxps'
32905ZipDelegateDefault='gzip'
32906
32907# Search for delegates
32908# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32909set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032912if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032913 $as_echo_n "(cached) " >&6
32914else
32915 case $AutotraceDecodeDelegate in
32916 [\\/]* | ?:[\\/]*)
32917 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32918 ;;
32919 *)
32920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32921for as_dir in $PATH
32922do
32923 IFS=$as_save_IFS
32924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032927 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929 break 2
32930 fi
32931done
cristy8b350f62009-11-15 23:12:43 +000032932 done
cristy3ed852e2009-09-05 21:47:34 +000032933IFS=$as_save_IFS
32934
32935 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32936 ;;
32937esac
32938fi
32939AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32940if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo "$AutotraceDecodeDelegate" >&6; }
32943else
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo "no" >&6; }
32946fi
32947
32948
cristy3ed852e2009-09-05 21:47:34 +000032949# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32950set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032953if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032954 $as_echo_n "(cached) " >&6
32955else
32956 case $BlenderDecodeDelegate in
32957 [\\/]* | ?:[\\/]*)
32958 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32959 ;;
32960 *)
32961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32962for as_dir in $PATH
32963do
32964 IFS=$as_save_IFS
32965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032968 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970 break 2
32971 fi
32972done
cristy8b350f62009-11-15 23:12:43 +000032973 done
cristy3ed852e2009-09-05 21:47:34 +000032974IFS=$as_save_IFS
32975
32976 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32977 ;;
32978esac
32979fi
32980BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32981if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "$BlenderDecodeDelegate" >&6; }
32984else
cristy8b350f62009-11-15 23:12:43 +000032985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo "no" >&6; }
32987fi
32988
32989
32990# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32991set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032994if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032995 $as_echo_n "(cached) " >&6
32996else
32997 case $BZIPDelegate in
32998 [\\/]* | ?:[\\/]*)
32999 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33000 ;;
33001 *)
33002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33003for as_dir in $PATH
33004do
33005 IFS=$as_save_IFS
33006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033009 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011 break 2
33012 fi
33013done
cristy8b350f62009-11-15 23:12:43 +000033014 done
cristy3ed852e2009-09-05 21:47:34 +000033015IFS=$as_save_IFS
33016
33017 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33018 ;;
33019esac
33020fi
33021BZIPDelegate=$ac_cv_path_BZIPDelegate
33022if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo "$BZIPDelegate" >&6; }
33025else
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "no" >&6; }
33028fi
33029
33030
cristyc59f0e72012-08-27 12:59:33 +000033031for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33032do
33033 # Extract the first word of "$ac_prog", so it can be a program name with args.
33034set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033037if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033038 $as_echo_n "(cached) " >&6
33039else
33040 case $BrowseDelegate in
33041 [\\/]* | ?:[\\/]*)
33042 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33043 ;;
33044 *)
33045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33046for as_dir in $PATH
33047do
33048 IFS=$as_save_IFS
33049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033052 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054 break 2
33055 fi
33056done
cristy8b350f62009-11-15 23:12:43 +000033057 done
cristy3ed852e2009-09-05 21:47:34 +000033058IFS=$as_save_IFS
33059
cristy3ed852e2009-09-05 21:47:34 +000033060 ;;
33061esac
33062fi
33063BrowseDelegate=$ac_cv_path_BrowseDelegate
33064if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo "$BrowseDelegate" >&6; }
33067else
cristy8b350f62009-11-15 23:12:43 +000033068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033069$as_echo "no" >&6; }
33070fi
33071
33072
cristyc59f0e72012-08-27 12:59:33 +000033073 test -n "$BrowseDelegate" && break
33074done
33075test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33076
cristy3ed852e2009-09-05 21:47:34 +000033077# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33078set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033081if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033082 $as_echo_n "(cached) " >&6
33083else
33084 case $CGMDecodeDelegate in
33085 [\\/]* | ?:[\\/]*)
33086 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33087 ;;
33088 *)
33089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090for as_dir in $PATH
33091do
33092 IFS=$as_save_IFS
33093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033096 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098 break 2
33099 fi
33100done
cristy8b350f62009-11-15 23:12:43 +000033101 done
cristy3ed852e2009-09-05 21:47:34 +000033102IFS=$as_save_IFS
33103
33104 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33105 ;;
33106esac
33107fi
33108CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33109if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033111$as_echo "$CGMDecodeDelegate" >&6; }
33112else
cristy8b350f62009-11-15 23:12:43 +000033113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114$as_echo "no" >&6; }
33115fi
33116
33117
33118# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33119set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033122if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033123 $as_echo_n "(cached) " >&6
33124else
33125 case $CatDelegate in
33126 [\\/]* | ?:[\\/]*)
33127 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33128 ;;
33129 *)
33130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33131for as_dir in $PATH
33132do
33133 IFS=$as_save_IFS
33134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033137 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139 break 2
33140 fi
33141done
cristy8b350f62009-11-15 23:12:43 +000033142 done
cristy3ed852e2009-09-05 21:47:34 +000033143IFS=$as_save_IFS
33144
33145 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33146 ;;
33147esac
33148fi
33149CatDelegate=$ac_cv_path_CatDelegate
33150if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033152$as_echo "$CatDelegate" >&6; }
33153else
cristy8b350f62009-11-15 23:12:43 +000033154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155$as_echo "no" >&6; }
33156fi
33157
33158
33159# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33160set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033163if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033164 $as_echo_n "(cached) " >&6
33165else
33166 case $DNGDecodeDelegate in
33167 [\\/]* | ?:[\\/]*)
33168 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33169 ;;
33170 *)
33171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33172for as_dir in $PATH
33173do
33174 IFS=$as_save_IFS
33175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033178 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033180 break 2
33181 fi
33182done
cristy8b350f62009-11-15 23:12:43 +000033183 done
cristy3ed852e2009-09-05 21:47:34 +000033184IFS=$as_save_IFS
33185
33186 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33187 ;;
33188esac
33189fi
33190DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33191if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033193$as_echo "$DNGDecodeDelegate" >&6; }
33194else
cristy8b350f62009-11-15 23:12:43 +000033195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196$as_echo "no" >&6; }
33197fi
33198
33199
33200# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33201set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033204if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033205 $as_echo_n "(cached) " >&6
33206else
33207 case $GVCDecodeDelegate in
33208 [\\/]* | ?:[\\/]*)
33209 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33210 ;;
33211 *)
33212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33213for as_dir in $PATH
33214do
33215 IFS=$as_save_IFS
33216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033219 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221 break 2
33222 fi
33223done
cristy8b350f62009-11-15 23:12:43 +000033224 done
cristy3ed852e2009-09-05 21:47:34 +000033225IFS=$as_save_IFS
33226
33227 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33228 ;;
33229esac
33230fi
33231GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33232if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234$as_echo "$GVCDecodeDelegate" >&6; }
33235else
cristy8b350f62009-11-15 23:12:43 +000033236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237$as_echo "no" >&6; }
33238fi
33239
33240
33241# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33242set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033245if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033246 $as_echo_n "(cached) " >&6
33247else
33248 case $DVIDecodeDelegate in
33249 [\\/]* | ?:[\\/]*)
33250 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33251 ;;
33252 *)
33253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33254for as_dir in $PATH
33255do
33256 IFS=$as_save_IFS
33257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033260 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033262 break 2
33263 fi
33264done
cristy8b350f62009-11-15 23:12:43 +000033265 done
cristy3ed852e2009-09-05 21:47:34 +000033266IFS=$as_save_IFS
33267
33268 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33269 ;;
33270esac
33271fi
33272DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33273if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033275$as_echo "$DVIDecodeDelegate" >&6; }
33276else
cristy8b350f62009-11-15 23:12:43 +000033277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278$as_echo "no" >&6; }
33279fi
33280
33281
33282# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33283set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033286if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033287 $as_echo_n "(cached) " >&6
33288else
33289 case $EchoDelegate in
33290 [\\/]* | ?:[\\/]*)
33291 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33292 ;;
33293 *)
33294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33295for as_dir in $PATH
33296do
33297 IFS=$as_save_IFS
33298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033301 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303 break 2
33304 fi
33305done
cristy8b350f62009-11-15 23:12:43 +000033306 done
cristy3ed852e2009-09-05 21:47:34 +000033307IFS=$as_save_IFS
33308
33309 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33310 ;;
33311esac
33312fi
33313EchoDelegate=$ac_cv_path_EchoDelegate
33314if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033316$as_echo "$EchoDelegate" >&6; }
33317else
cristy8b350f62009-11-15 23:12:43 +000033318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319$as_echo "no" >&6; }
33320fi
33321
33322
33323# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33324set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033327if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033328 $as_echo_n "(cached) " >&6
33329else
33330 case $EditorDelegate in
33331 [\\/]* | ?:[\\/]*)
33332 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33333 ;;
33334 *)
33335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33336for as_dir in $PATH
33337do
33338 IFS=$as_save_IFS
33339 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033342 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344 break 2
33345 fi
33346done
cristy8b350f62009-11-15 23:12:43 +000033347 done
cristy3ed852e2009-09-05 21:47:34 +000033348IFS=$as_save_IFS
33349
33350 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33351 ;;
33352esac
33353fi
33354EditorDelegate=$ac_cv_path_EditorDelegate
33355if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033357$as_echo "$EditorDelegate" >&6; }
33358else
cristy8b350f62009-11-15 23:12:43 +000033359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360$as_echo "no" >&6; }
33361fi
33362
33363
33364# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33365set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033368if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033369 $as_echo_n "(cached) " >&6
33370else
33371 case $FIGDecodeDelegate in
33372 [\\/]* | ?:[\\/]*)
33373 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33374 ;;
33375 *)
33376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33377for as_dir in $PATH
33378do
33379 IFS=$as_save_IFS
33380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033383 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385 break 2
33386 fi
33387done
cristy8b350f62009-11-15 23:12:43 +000033388 done
cristy3ed852e2009-09-05 21:47:34 +000033389IFS=$as_save_IFS
33390
33391 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33392 ;;
33393esac
33394fi
33395FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33396if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033398$as_echo "$FIGDecodeDelegate" >&6; }
33399else
cristy8b350f62009-11-15 23:12:43 +000033400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401$as_echo "no" >&6; }
33402fi
33403
33404
33405# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33406set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033409if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033410 $as_echo_n "(cached) " >&6
33411else
33412 case $ConvertDelegate in
33413 [\\/]* | ?:[\\/]*)
33414 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33415 ;;
33416 *)
33417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33418for as_dir in $PATH
33419do
33420 IFS=$as_save_IFS
33421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033424 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033426 break 2
33427 fi
33428done
cristy8b350f62009-11-15 23:12:43 +000033429 done
cristy3ed852e2009-09-05 21:47:34 +000033430IFS=$as_save_IFS
33431
33432 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33433 ;;
33434esac
33435fi
33436ConvertDelegate=$ac_cv_path_ConvertDelegate
33437if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033439$as_echo "$ConvertDelegate" >&6; }
33440else
cristy8b350f62009-11-15 23:12:43 +000033441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo "no" >&6; }
33443fi
33444
33445
33446# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33447set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033450if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033451 $as_echo_n "(cached) " >&6
33452else
33453 case $DisplayDelegate in
33454 [\\/]* | ?:[\\/]*)
33455 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33456 ;;
33457 *)
33458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33459for as_dir in $PATH
33460do
33461 IFS=$as_save_IFS
33462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033465 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033467 break 2
33468 fi
33469done
cristy8b350f62009-11-15 23:12:43 +000033470 done
cristy3ed852e2009-09-05 21:47:34 +000033471IFS=$as_save_IFS
33472
33473 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33474 ;;
33475esac
33476fi
33477DisplayDelegate=$ac_cv_path_DisplayDelegate
33478if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033480$as_echo "$DisplayDelegate" >&6; }
33481else
cristy8b350f62009-11-15 23:12:43 +000033482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483$as_echo "no" >&6; }
33484fi
33485
33486
33487# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33488set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033491if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033492 $as_echo_n "(cached) " >&6
33493else
33494 case $MogrifyDelegate in
33495 [\\/]* | ?:[\\/]*)
33496 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33497 ;;
33498 *)
33499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33500for as_dir in $PATH
33501do
33502 IFS=$as_save_IFS
33503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033506 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033508 break 2
33509 fi
33510done
cristy8b350f62009-11-15 23:12:43 +000033511 done
cristy3ed852e2009-09-05 21:47:34 +000033512IFS=$as_save_IFS
33513
33514 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33515 ;;
33516esac
33517fi
33518MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33519if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "$MogrifyDelegate" >&6; }
33522else
cristy8b350f62009-11-15 23:12:43 +000033523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo "no" >&6; }
33525fi
33526
33527
33528# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33529set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033532if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033533 $as_echo_n "(cached) " >&6
33534else
33535 case $GnuplotDecodeDelegate in
33536 [\\/]* | ?:[\\/]*)
33537 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33538 ;;
33539 *)
33540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33541for as_dir in $PATH
33542do
33543 IFS=$as_save_IFS
33544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033547 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033549 break 2
33550 fi
33551done
cristy8b350f62009-11-15 23:12:43 +000033552 done
cristy3ed852e2009-09-05 21:47:34 +000033553IFS=$as_save_IFS
33554
33555 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33556 ;;
33557esac
33558fi
33559GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33560if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562$as_echo "$GnuplotDecodeDelegate" >&6; }
33563else
cristy8b350f62009-11-15 23:12:43 +000033564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565$as_echo "no" >&6; }
33566fi
33567
33568
cristy3ed852e2009-09-05 21:47:34 +000033569# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33570set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033573if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033574 $as_echo_n "(cached) " >&6
33575else
33576 case $HPGLDecodeDelegate in
33577 [\\/]* | ?:[\\/]*)
33578 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33579 ;;
33580 *)
33581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33582for as_dir in $PATH
33583do
33584 IFS=$as_save_IFS
33585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033588 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033590 break 2
33591 fi
33592done
cristy8b350f62009-11-15 23:12:43 +000033593 done
cristy3ed852e2009-09-05 21:47:34 +000033594IFS=$as_save_IFS
33595
33596 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33597 ;;
33598esac
33599fi
33600HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33601if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo "$HPGLDecodeDelegate" >&6; }
33604else
cristy8b350f62009-11-15 23:12:43 +000033605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606$as_echo "no" >&6; }
33607fi
33608
33609
33610# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33611set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033614if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033615 $as_echo_n "(cached) " >&6
33616else
33617 case $HTMLDecodeDelegate in
33618 [\\/]* | ?:[\\/]*)
33619 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33620 ;;
33621 *)
33622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33623for as_dir in $PATH
33624do
33625 IFS=$as_save_IFS
33626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033629 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033631 break 2
33632 fi
33633done
cristy8b350f62009-11-15 23:12:43 +000033634 done
cristy3ed852e2009-09-05 21:47:34 +000033635IFS=$as_save_IFS
33636
33637 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33638 ;;
33639esac
33640fi
33641HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33642if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644$as_echo "$HTMLDecodeDelegate" >&6; }
33645else
cristy8b350f62009-11-15 23:12:43 +000033646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647$as_echo "no" >&6; }
33648fi
33649
33650
33651# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33652set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033655if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033656 $as_echo_n "(cached) " >&6
33657else
33658 case $ILBMDecodeDelegate in
33659 [\\/]* | ?:[\\/]*)
33660 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33661 ;;
33662 *)
33663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33664for as_dir in $PATH
33665do
33666 IFS=$as_save_IFS
33667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033670 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672 break 2
33673 fi
33674done
cristy8b350f62009-11-15 23:12:43 +000033675 done
cristy3ed852e2009-09-05 21:47:34 +000033676IFS=$as_save_IFS
33677
33678 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33679 ;;
33680esac
33681fi
33682ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33683if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo "$ILBMDecodeDelegate" >&6; }
33686else
cristy8b350f62009-11-15 23:12:43 +000033687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688$as_echo "no" >&6; }
33689fi
33690
33691
33692# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33693set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033696if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033697 $as_echo_n "(cached) " >&6
33698else
33699 case $ILBMEncodeDelegate in
33700 [\\/]* | ?:[\\/]*)
33701 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33702 ;;
33703 *)
33704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33705for as_dir in $PATH
33706do
33707 IFS=$as_save_IFS
33708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033711 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033713 break 2
33714 fi
33715done
cristy8b350f62009-11-15 23:12:43 +000033716 done
cristy3ed852e2009-09-05 21:47:34 +000033717IFS=$as_save_IFS
33718
33719 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33720 ;;
33721esac
33722fi
33723ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33724if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033726$as_echo "$ILBMEncodeDelegate" >&6; }
33727else
cristy8b350f62009-11-15 23:12:43 +000033728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033729$as_echo "no" >&6; }
33730fi
33731
33732
33733# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33734set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033737if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033738 $as_echo_n "(cached) " >&6
33739else
33740 case $LPDelegate in
33741 [\\/]* | ?:[\\/]*)
33742 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33743 ;;
33744 *)
33745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33746for as_dir in $PATH
33747do
33748 IFS=$as_save_IFS
33749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033752 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033754 break 2
33755 fi
33756done
cristy8b350f62009-11-15 23:12:43 +000033757 done
cristy3ed852e2009-09-05 21:47:34 +000033758IFS=$as_save_IFS
33759
33760 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33761 ;;
33762esac
33763fi
33764LPDelegate=$ac_cv_path_LPDelegate
33765if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033767$as_echo "$LPDelegate" >&6; }
33768else
cristy8b350f62009-11-15 23:12:43 +000033769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770$as_echo "no" >&6; }
33771fi
33772
33773
33774# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33775set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033778if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033779 $as_echo_n "(cached) " >&6
33780else
33781 case $LPRDelegate in
33782 [\\/]* | ?:[\\/]*)
33783 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33784 ;;
33785 *)
33786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33787for as_dir in $PATH
33788do
33789 IFS=$as_save_IFS
33790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033793 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795 break 2
33796 fi
33797done
cristy8b350f62009-11-15 23:12:43 +000033798 done
cristy3ed852e2009-09-05 21:47:34 +000033799IFS=$as_save_IFS
33800
33801 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33802 ;;
33803esac
33804fi
33805LPRDelegate=$ac_cv_path_LPRDelegate
33806if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033808$as_echo "$LPRDelegate" >&6; }
33809else
cristy8b350f62009-11-15 23:12:43 +000033810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo "no" >&6; }
33812fi
33813
33814
cristy3ed852e2009-09-05 21:47:34 +000033815# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33816set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033819if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033820 $as_echo_n "(cached) " >&6
33821else
33822 case $LaunchDelegate in
33823 [\\/]* | ?:[\\/]*)
33824 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33825 ;;
33826 *)
33827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33828for as_dir in $PATH
33829do
33830 IFS=$as_save_IFS
33831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033834 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836 break 2
33837 fi
33838done
cristy8b350f62009-11-15 23:12:43 +000033839 done
cristy3ed852e2009-09-05 21:47:34 +000033840IFS=$as_save_IFS
33841
33842 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33843 ;;
33844esac
33845fi
33846LaunchDelegate=$ac_cv_path_LaunchDelegate
33847if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo "$LaunchDelegate" >&6; }
33850else
cristy8b350f62009-11-15 23:12:43 +000033851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852$as_echo "no" >&6; }
33853fi
33854
33855
33856# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33857set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033860if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033861 $as_echo_n "(cached) " >&6
33862else
33863 case $MANDelegate in
33864 [\\/]* | ?:[\\/]*)
33865 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33866 ;;
33867 *)
33868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33869for as_dir in $PATH
33870do
33871 IFS=$as_save_IFS
33872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033875 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877 break 2
33878 fi
33879done
cristy8b350f62009-11-15 23:12:43 +000033880 done
cristy3ed852e2009-09-05 21:47:34 +000033881IFS=$as_save_IFS
33882
33883 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33884 ;;
33885esac
33886fi
33887MANDelegate=$ac_cv_path_MANDelegate
33888if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "$MANDelegate" >&6; }
33891else
cristy8b350f62009-11-15 23:12:43 +000033892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893$as_echo "no" >&6; }
33894fi
33895
33896
33897# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33898set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033901if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033902 $as_echo_n "(cached) " >&6
33903else
33904 case $MPEGDecodeDelegate in
33905 [\\/]* | ?:[\\/]*)
33906 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33907 ;;
33908 *)
33909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33910for as_dir in $PATH
33911do
33912 IFS=$as_save_IFS
33913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033916 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918 break 2
33919 fi
33920done
cristy8b350f62009-11-15 23:12:43 +000033921 done
cristy3ed852e2009-09-05 21:47:34 +000033922IFS=$as_save_IFS
33923
33924 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33925 ;;
33926esac
33927fi
33928MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33929if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "$MPEGDecodeDelegate" >&6; }
33932else
cristy8b350f62009-11-15 23:12:43 +000033933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934$as_echo "no" >&6; }
33935fi
33936
33937
33938# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33939set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033942if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033943 $as_echo_n "(cached) " >&6
33944else
33945 case $MPEGEncodeDelegate in
33946 [\\/]* | ?:[\\/]*)
33947 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33948 ;;
33949 *)
33950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33951for as_dir in $PATH
33952do
33953 IFS=$as_save_IFS
33954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033957 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033959 break 2
33960 fi
33961done
cristy8b350f62009-11-15 23:12:43 +000033962 done
cristy3ed852e2009-09-05 21:47:34 +000033963IFS=$as_save_IFS
33964
33965 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33966 ;;
33967esac
33968fi
33969MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33970if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033972$as_echo "$MPEGEncodeDelegate" >&6; }
33973else
cristy8b350f62009-11-15 23:12:43 +000033974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033975$as_echo "no" >&6; }
33976fi
33977
33978
cristy935c86e2010-06-05 23:50:07 +000033979# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33980set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033983if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033984 $as_echo_n "(cached) " >&6
33985else
33986 case $MrSIDDecodeDelegate in
33987 [\\/]* | ?:[\\/]*)
33988 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33989 ;;
33990 *)
33991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33992for as_dir in $PATH
33993do
33994 IFS=$as_save_IFS
33995 test -z "$as_dir" && as_dir=.
33996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033998 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34000 break 2
34001 fi
34002done
34003 done
34004IFS=$as_save_IFS
34005
34006 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34007 ;;
34008esac
34009fi
34010MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34011if test -n "$MrSIDDecodeDelegate"; then
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34013$as_echo "$MrSIDDecodeDelegate" >&6; }
34014else
34015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34016$as_echo "no" >&6; }
34017fi
34018
34019
cristy3ed852e2009-09-05 21:47:34 +000034020# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34021set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034024if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034025 $as_echo_n "(cached) " >&6
34026else
34027 case $MVDelegate in
34028 [\\/]* | ?:[\\/]*)
34029 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34030 ;;
34031 *)
34032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34033for as_dir in $PATH
34034do
34035 IFS=$as_save_IFS
34036 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034039 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034041 break 2
34042 fi
34043done
cristy8b350f62009-11-15 23:12:43 +000034044 done
cristy3ed852e2009-09-05 21:47:34 +000034045IFS=$as_save_IFS
34046
34047 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34048 ;;
34049esac
34050fi
34051MVDelegate=$ac_cv_path_MVDelegate
34052if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054$as_echo "$MVDelegate" >&6; }
34055else
cristy8b350f62009-11-15 23:12:43 +000034056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034057$as_echo "no" >&6; }
34058fi
34059
34060
34061# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34062set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034065if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034066 $as_echo_n "(cached) " >&6
34067else
34068 case $PCLDelegate in
34069 [\\/]* | ?:[\\/]*)
34070 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34071 ;;
34072 *)
34073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34074for as_dir in $PATH
34075do
34076 IFS=$as_save_IFS
34077 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034080 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034082 break 2
34083 fi
34084done
cristy8b350f62009-11-15 23:12:43 +000034085 done
cristy3ed852e2009-09-05 21:47:34 +000034086IFS=$as_save_IFS
34087
34088 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34089 ;;
34090esac
34091fi
34092PCLDelegate=$ac_cv_path_PCLDelegate
34093if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095$as_echo "$PCLDelegate" >&6; }
34096else
cristy8b350f62009-11-15 23:12:43 +000034097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034098$as_echo "no" >&6; }
34099fi
34100
34101
34102# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34103set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034106if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034107 $as_echo_n "(cached) " >&6
34108else
34109 case $PGPDecodeDelegate in
34110 [\\/]* | ?:[\\/]*)
34111 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34112 ;;
34113 *)
34114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34115for as_dir in $PATH
34116do
34117 IFS=$as_save_IFS
34118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034121 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034123 break 2
34124 fi
34125done
cristy8b350f62009-11-15 23:12:43 +000034126 done
cristy3ed852e2009-09-05 21:47:34 +000034127IFS=$as_save_IFS
34128
34129 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34130 ;;
34131esac
34132fi
34133PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34134if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034136$as_echo "$PGPDecodeDelegate" >&6; }
34137else
cristy8b350f62009-11-15 23:12:43 +000034138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034139$as_echo "no" >&6; }
34140fi
34141
34142
34143# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34144set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034147if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034148 $as_echo_n "(cached) " >&6
34149else
34150 case $POVDelegate in
34151 [\\/]* | ?:[\\/]*)
34152 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34153 ;;
34154 *)
34155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34156for as_dir in $PATH
34157do
34158 IFS=$as_save_IFS
34159 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034160 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034162 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034164 break 2
34165 fi
34166done
cristy8b350f62009-11-15 23:12:43 +000034167 done
cristy3ed852e2009-09-05 21:47:34 +000034168IFS=$as_save_IFS
34169
34170 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34171 ;;
34172esac
34173fi
34174POVDelegate=$ac_cv_path_POVDelegate
34175if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177$as_echo "$POVDelegate" >&6; }
34178else
cristy8b350f62009-11-15 23:12:43 +000034179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180$as_echo "no" >&6; }
34181fi
34182
34183
34184for ac_prog in gsx gsc "$PSDelegateDefault"
34185do
34186 # Extract the first word of "$ac_prog", so it can be a program name with args.
34187set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034190if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034191 $as_echo_n "(cached) " >&6
34192else
34193 case $PSDelegate in
34194 [\\/]* | ?:[\\/]*)
34195 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34196 ;;
34197 *)
34198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34199for as_dir in $PATH
34200do
34201 IFS=$as_save_IFS
34202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034205 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207 break 2
34208 fi
34209done
cristy8b350f62009-11-15 23:12:43 +000034210 done
cristy3ed852e2009-09-05 21:47:34 +000034211IFS=$as_save_IFS
34212
34213 ;;
34214esac
34215fi
34216PSDelegate=$ac_cv_path_PSDelegate
34217if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034219$as_echo "$PSDelegate" >&6; }
34220else
cristy8b350f62009-11-15 23:12:43 +000034221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034222$as_echo "no" >&6; }
34223fi
34224
34225
34226 test -n "$PSDelegate" && break
34227done
34228test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34229
34230# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34231set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034234if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034235 $as_echo_n "(cached) " >&6
34236else
34237 case $RLEEncodeDelegate in
34238 [\\/]* | ?:[\\/]*)
34239 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34240 ;;
34241 *)
34242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34243for as_dir in $PATH
34244do
34245 IFS=$as_save_IFS
34246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034249 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034251 break 2
34252 fi
34253done
cristy8b350f62009-11-15 23:12:43 +000034254 done
cristy3ed852e2009-09-05 21:47:34 +000034255IFS=$as_save_IFS
34256
34257 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34258 ;;
34259esac
34260fi
34261RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34262if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264$as_echo "$RLEEncodeDelegate" >&6; }
34265else
cristy8b350f62009-11-15 23:12:43 +000034266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034267$as_echo "no" >&6; }
34268fi
34269
34270
34271# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34272set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034275if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034276 $as_echo_n "(cached) " >&6
34277else
34278 case $RMDelegate in
34279 [\\/]* | ?:[\\/]*)
34280 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34281 ;;
34282 *)
34283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34284for as_dir in $PATH
34285do
34286 IFS=$as_save_IFS
34287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034290 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034292 break 2
34293 fi
34294done
cristy8b350f62009-11-15 23:12:43 +000034295 done
cristy3ed852e2009-09-05 21:47:34 +000034296IFS=$as_save_IFS
34297
34298 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34299 ;;
34300esac
34301fi
34302RMDelegate=$ac_cv_path_RMDelegate
34303if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034305$as_echo "$RMDelegate" >&6; }
34306else
cristy8b350f62009-11-15 23:12:43 +000034307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034308$as_echo "no" >&6; }
34309fi
34310
34311
cristy4689cf02010-02-17 21:15:45 +000034312# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34313set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034316if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034317 $as_echo_n "(cached) " >&6
34318else
34319 case $RSVGDecodeDelegate in
34320 [\\/]* | ?:[\\/]*)
34321 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34322 ;;
34323 *)
34324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34325for as_dir in $PATH
34326do
34327 IFS=$as_save_IFS
34328 test -z "$as_dir" && as_dir=.
34329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034331 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34333 break 2
34334 fi
34335done
34336 done
34337IFS=$as_save_IFS
34338
34339 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34340 ;;
34341esac
34342fi
34343RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34344if test -n "$RSVGDecodeDelegate"; then
34345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34346$as_echo "$RSVGDecodeDelegate" >&6; }
34347else
34348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34349$as_echo "no" >&6; }
34350fi
34351
34352
cristy3ed852e2009-09-05 21:47:34 +000034353# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34354set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034357if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034358 $as_echo_n "(cached) " >&6
34359else
34360 case $SCANDecodeDelegate in
34361 [\\/]* | ?:[\\/]*)
34362 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34363 ;;
34364 *)
34365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34366for as_dir in $PATH
34367do
34368 IFS=$as_save_IFS
34369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034372 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034374 break 2
34375 fi
34376done
cristy8b350f62009-11-15 23:12:43 +000034377 done
cristy3ed852e2009-09-05 21:47:34 +000034378IFS=$as_save_IFS
34379
34380 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34381 ;;
34382esac
34383fi
34384SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34385if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034387$as_echo "$SCANDecodeDelegate" >&6; }
34388else
cristy8b350f62009-11-15 23:12:43 +000034389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390$as_echo "no" >&6; }
34391fi
34392
34393
cristyec6934f2012-08-14 18:38:40 +000034394# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34395set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34397$as_echo_n "checking for $ac_word... " >&6; }
34398if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34399 $as_echo_n "(cached) " >&6
34400else
34401 case $SVGDecodeDelegate in
34402 [\\/]* | ?:[\\/]*)
34403 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34404 ;;
34405 *)
34406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34407for as_dir in $PATH
34408do
34409 IFS=$as_save_IFS
34410 test -z "$as_dir" && as_dir=.
34411 for ac_exec_ext in '' $ac_executable_extensions; do
34412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34413 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34415 break 2
34416 fi
34417done
34418 done
34419IFS=$as_save_IFS
34420
34421 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34422 ;;
34423esac
34424fi
34425SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34426if test -n "$SVGDecodeDelegate"; then
34427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34428$as_echo "$SVGDecodeDelegate" >&6; }
34429else
34430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34431$as_echo "no" >&6; }
34432fi
34433
34434
cristy3ed852e2009-09-05 21:47:34 +000034435# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34436set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034439if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034440 $as_echo_n "(cached) " >&6
34441else
34442 case $TXTDelegate in
34443 [\\/]* | ?:[\\/]*)
34444 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34445 ;;
34446 *)
34447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34448for as_dir in $PATH
34449do
34450 IFS=$as_save_IFS
34451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034454 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456 break 2
34457 fi
34458done
cristy8b350f62009-11-15 23:12:43 +000034459 done
cristy3ed852e2009-09-05 21:47:34 +000034460IFS=$as_save_IFS
34461
34462 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34463 ;;
34464esac
34465fi
34466TXTDelegate=$ac_cv_path_TXTDelegate
34467if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034469$as_echo "$TXTDelegate" >&6; }
34470else
cristy8b350f62009-11-15 23:12:43 +000034471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472$as_echo "no" >&6; }
34473fi
34474
34475
cristy5ac9ac82010-07-29 13:24:24 +000034476# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34477set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034480if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034481 $as_echo_n "(cached) " >&6
34482else
34483 case $UniconvertorDelegate in
34484 [\\/]* | ?:[\\/]*)
34485 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34486 ;;
34487 *)
34488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34489for as_dir in $PATH
34490do
34491 IFS=$as_save_IFS
34492 test -z "$as_dir" && as_dir=.
34493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034495 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34497 break 2
34498 fi
34499done
34500 done
34501IFS=$as_save_IFS
34502
34503 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34504 ;;
34505esac
34506fi
34507UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34508if test -n "$UniconvertorDelegate"; then
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34510$as_echo "$UniconvertorDelegate" >&6; }
34511else
34512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34513$as_echo "no" >&6; }
34514fi
34515
34516
cristy3ed852e2009-09-05 21:47:34 +000034517# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34518set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034521if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034522 $as_echo_n "(cached) " >&6
34523else
34524 case $WMFDecodeDelegate in
34525 [\\/]* | ?:[\\/]*)
34526 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34527 ;;
34528 *)
34529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34530for as_dir in $PATH
34531do
34532 IFS=$as_save_IFS
34533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034536 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034538 break 2
34539 fi
34540done
cristy8b350f62009-11-15 23:12:43 +000034541 done
cristy3ed852e2009-09-05 21:47:34 +000034542IFS=$as_save_IFS
34543
34544 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34545 ;;
34546esac
34547fi
34548WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34549if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034551$as_echo "$WMFDecodeDelegate" >&6; }
34552else
cristy8b350f62009-11-15 23:12:43 +000034553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554$as_echo "no" >&6; }
34555fi
34556
34557
34558# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34559set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034562if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034563 $as_echo_n "(cached) " >&6
34564else
34565 case $WWWDecodeDelegate in
34566 [\\/]* | ?:[\\/]*)
34567 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34568 ;;
34569 *)
34570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34571for as_dir in $PATH
34572do
34573 IFS=$as_save_IFS
34574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034577 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034579 break 2
34580 fi
34581done
cristy8b350f62009-11-15 23:12:43 +000034582 done
cristy3ed852e2009-09-05 21:47:34 +000034583IFS=$as_save_IFS
34584
34585 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34586 ;;
34587esac
34588fi
34589WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34590if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592$as_echo "$WWWDecodeDelegate" >&6; }
34593else
cristy8b350f62009-11-15 23:12:43 +000034594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034595$as_echo "no" >&6; }
34596fi
34597
34598
34599# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34600set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034603if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034604 $as_echo_n "(cached) " >&6
34605else
34606 case $XPSDelegate in
34607 [\\/]* | ?:[\\/]*)
34608 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34609 ;;
34610 *)
34611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34612for as_dir in $PATH
34613do
34614 IFS=$as_save_IFS
34615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034618 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034620 break 2
34621 fi
34622done
cristy8b350f62009-11-15 23:12:43 +000034623 done
cristy3ed852e2009-09-05 21:47:34 +000034624IFS=$as_save_IFS
34625
34626 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34627 ;;
34628esac
34629fi
34630XPSDelegate=$ac_cv_path_XPSDelegate
34631if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633$as_echo "$XPSDelegate" >&6; }
34634else
cristy8b350f62009-11-15 23:12:43 +000034635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034636$as_echo "no" >&6; }
34637fi
34638
34639
34640# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34641set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034644if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034645 $as_echo_n "(cached) " >&6
34646else
34647 case $ZipDelegate in
34648 [\\/]* | ?:[\\/]*)
34649 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34650 ;;
34651 *)
34652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34653for as_dir in $PATH
34654do
34655 IFS=$as_save_IFS
34656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034659 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034661 break 2
34662 fi
34663done
cristy8b350f62009-11-15 23:12:43 +000034664 done
cristy3ed852e2009-09-05 21:47:34 +000034665IFS=$as_save_IFS
34666
34667 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34668 ;;
34669esac
34670fi
34671ZipDelegate=$ac_cv_path_ZipDelegate
34672if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674$as_echo "$ZipDelegate" >&6; }
34675else
cristy8b350f62009-11-15 23:12:43 +000034676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034677$as_echo "no" >&6; }
34678fi
34679
34680
34681
34682# Prefer lpr to lp; lp needs options tacked on.
34683if test "$LPRDelegate" != no; then
34684 PrintDelegate="$LPRDelegate"
34685else
34686 PrintDelegate="$LPDelegate -c -s"
34687fi
34688
34689
34690# Installed ImageMagick utiltity paths
34691ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34692DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34693MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34694
34695# Set delegate booleans
34696have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34697have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34698have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34699have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34700have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034701have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034702have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34703have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034704have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34705have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34706
34707#
34708# Test for font directories
34709#
34710type_include_files=''
34711
cristy430a7312010-01-21 20:44:04 +000034712# Dejavu fonts.
34713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34714$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34715dejavu_font_dir=''
34716if test "${with_dejavu_font_dir}" != 'default'; then
34717 dejavu_font_dir="${with_dejavu_font_dir}/"
34718else
34719 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34720 if test -f "${font_dir}DejaVuSerif.ttf"; then
34721 dejavu_font_dir="${font_dir}"
34722 break 1
34723 fi
34724 done
34725fi
34726if test "${dejavu_font_dir}x" != 'x'; then
34727 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034728 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34729$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034730else
cristy09b53e12011-10-14 12:47:22 +000034731 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34732$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034733fi
34734
34735
cristy3ed852e2009-09-05 21:47:34 +000034736# Windows
34737windows_font_dir=''
34738if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34739 windows_font_dir="${with_windows_font_dir}/"
34740fi
cristy430a7312010-01-21 20:44:04 +000034741if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034742 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34743 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34744 fi
34745 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34746 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34747 fi
34748 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34749 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34750 fi
34751fi
cristy430a7312010-01-21 20:44:04 +000034752if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034753 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34754fi
34755
34756
34757# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034759$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34760ghostscript_font_dir=''
34761if test "${with_gs_font_dir}" != 'default'; then
34762 ghostscript_font_dir="${with_gs_font_dir}/"
34763else
34764 if test "${native_win32_build}" = 'yes'; then
34765 # Native Windows Build
34766 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34767 if test -f "${font_dir}a010013l.pfb"; then
34768 ghostscript_font_dir="$font_dir"
34769 break 1
34770 fi
34771 done
34772 if test "${PSDelegate}" != 'gswin32c'; then
34773 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34774 fi
34775 else
34776 # Linux / Mac OS X / Unix Build
34777 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
34778 if test -f "${font_dir}a010013l.pfb"; then
34779 ghostscript_font_dir="${font_dir}"
34780 break 1
34781 fi
34782 done
34783 if test "${ghostscript_font_dir}x" = 'x'; then
34784 if test "$PSDelegate" != 'gs'; then
34785 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34786 fi
34787 fi
34788 fi
34789fi
34790if test "${ghostscript_font_dir}x" != 'x'; then
34791 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034792 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34793$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034794else
cristy09b53e12011-10-14 12:47:22 +000034795 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34796$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034797fi
34798
34799case "${build_os}" in
34800 mingw* )
34801 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34802 ;;
34803esac
34804
34805
34806
34807#
34808# Handle case where user doesn't want frozen paths
34809#
34810if test "$with_frozenpaths" != 'yes'; then
34811 # Re-set delegate definitions to default (no paths)
34812 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034813 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34814 BZIPDelegate="$BZIPDelegateDefault"
34815 BrowseDelegate="$BrowseDelegateDefault"
34816 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34817 CatDelegate="$CatDelegateDefault"
34818 ConvertDelegate="$ConvertDelegateDefault"
34819 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34820 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34821 EchoDelegate="$EchoDelegateDefault"
34822 EditorDelegate="$EditorDelegateDefault"
34823 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34824 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34825 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34826 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34827 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34828 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34829 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034830 LaunchDelegate="$LaunchDelegateDefault"
34831 MANDelegate="$MANDelegateDefault"
34832 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34833 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034834 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034835 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34836 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034837 PCLDelegate="$PCLDelegateDefault"
34838 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34839 POVDelegate="$POVDelegateDefault"
34840 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034841 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34842 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034843 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034844 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034845 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034846 ShowImageDelegate="$ShowImageDelegateDefault"
34847 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034848 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034849 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34850 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34851 XPSDelegate="$XPSDelegateDefault"
34852 ZipDelegate="$ZipDelegateDefault"
34853fi
34854
34855# Delegate substitutions
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
cristy3ed852e2009-09-05 21:47:34 +000034896#
34897# RPM support.
34898#
34899RPM=''
34900for ac_prog in gnutar gtar tar
34901do
34902 # Extract the first word of "$ac_prog", so it can be a program name with args.
34903set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034906if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034907 $as_echo_n "(cached) " >&6
34908else
34909 if test -n "$TAR"; then
34910 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34911else
34912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34913for as_dir in $PATH
34914do
34915 IFS=$as_save_IFS
34916 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034919 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034921 break 2
34922 fi
34923done
cristy8b350f62009-11-15 23:12:43 +000034924 done
cristy3ed852e2009-09-05 21:47:34 +000034925IFS=$as_save_IFS
34926
34927fi
34928fi
34929TAR=$ac_cv_prog_TAR
34930if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034932$as_echo "$TAR" >&6; }
34933else
cristy8b350f62009-11-15 23:12:43 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034935$as_echo "no" >&6; }
34936fi
34937
34938
34939 test -n "$TAR" && break
34940done
34941
34942for ac_prog in perl
34943do
34944 # Extract the first word of "$ac_prog", so it can be a program name with args.
34945set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034948if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034949 $as_echo_n "(cached) " >&6
34950else
34951 if test -n "$PERL"; then
34952 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34953else
34954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34955for as_dir in $PATH
34956do
34957 IFS=$as_save_IFS
34958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034961 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034963 break 2
34964 fi
34965done
cristy8b350f62009-11-15 23:12:43 +000034966 done
cristy3ed852e2009-09-05 21:47:34 +000034967IFS=$as_save_IFS
34968
34969fi
34970fi
34971PERL=$ac_cv_prog_PERL
34972if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034974$as_echo "$PERL" >&6; }
34975else
cristy8b350f62009-11-15 23:12:43 +000034976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034977$as_echo "no" >&6; }
34978fi
34979
34980
34981 test -n "$PERL" && break
34982done
34983
34984for ac_prog in rpmbuild rpm
34985do
34986 # Extract the first word of "$ac_prog", so it can be a program name with args.
34987set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034990if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034991 $as_echo_n "(cached) " >&6
34992else
34993 if test -n "$RPM"; then
34994 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34995else
34996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34997for as_dir in $PATH
34998do
34999 IFS=$as_save_IFS
35000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035003 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035005 break 2
35006 fi
35007done
cristy8b350f62009-11-15 23:12:43 +000035008 done
cristy3ed852e2009-09-05 21:47:34 +000035009IFS=$as_save_IFS
35010
35011fi
35012fi
35013RPM=$ac_cv_prog_RPM
35014if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035016$as_echo "$RPM" >&6; }
35017else
cristy8b350f62009-11-15 23:12:43 +000035018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo "no" >&6; }
35020fi
35021
35022
35023 test -n "$RPM" && break
35024done
35025
35026
cristy73bd4a52010-10-05 11:24:23 +000035027ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35028
35029
35030AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35031
35032
35033AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35034
35035
35036AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35037
35038
35039 if test "x$RPM" != "x" ; then
35040 RPM_DELEGATE_TRUE=
35041 RPM_DELEGATE_FALSE='#'
35042else
35043 RPM_DELEGATE_TRUE='#'
35044 RPM_DELEGATE_FALSE=
35045fi
35046
cristy3ed852e2009-09-05 21:47:34 +000035047
35048#
35049# 7ZIP support (http://p7zip.sourceforge.net/)
35050#
35051P7ZIP=''
35052for ac_prog in 7za
35053do
35054 # Extract the first word of "$ac_prog", so it can be a program name with args.
35055set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035057$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035058if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035059 $as_echo_n "(cached) " >&6
35060else
35061 if test -n "$P7ZIP"; then
35062 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35063else
35064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35065for as_dir in $PATH
35066do
35067 IFS=$as_save_IFS
35068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035071 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073 break 2
35074 fi
35075done
cristy8b350f62009-11-15 23:12:43 +000035076 done
cristy3ed852e2009-09-05 21:47:34 +000035077IFS=$as_save_IFS
35078
35079fi
35080fi
35081P7ZIP=$ac_cv_prog_P7ZIP
35082if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035084$as_echo "$P7ZIP" >&6; }
35085else
cristy8b350f62009-11-15 23:12:43 +000035086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035087$as_echo "no" >&6; }
35088fi
35089
35090
35091 test -n "$P7ZIP" && break
35092done
35093
35094
cristy73bd4a52010-10-05 11:24:23 +000035095 if test "x$P7ZIP" != "x" ; then
35096 P7ZIP_DELEGATE_TRUE=
35097 P7ZIP_DELEGATE_FALSE='#'
35098else
35099 P7ZIP_DELEGATE_TRUE='#'
35100 P7ZIP_DELEGATE_FALSE=
35101fi
35102
cristy3ed852e2009-09-05 21:47:34 +000035103
35104#
35105# ZIP support (http://www.info-zip.org/Zip.html)
35106#
35107ZIP=''
35108for ac_prog in zip
35109do
35110 # Extract the first word of "$ac_prog", so it can be a program name with args.
35111set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035114if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035115 $as_echo_n "(cached) " >&6
35116else
35117 if test -n "$ZIP"; then
35118 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35119else
35120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35121for as_dir in $PATH
35122do
35123 IFS=$as_save_IFS
35124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035127 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035129 break 2
35130 fi
35131done
cristy8b350f62009-11-15 23:12:43 +000035132 done
cristy3ed852e2009-09-05 21:47:34 +000035133IFS=$as_save_IFS
35134
35135fi
35136fi
35137ZIP=$ac_cv_prog_ZIP
35138if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035140$as_echo "$ZIP" >&6; }
35141else
cristy8b350f62009-11-15 23:12:43 +000035142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035143$as_echo "no" >&6; }
35144fi
35145
35146
35147 test -n "$ZIP" && break
35148done
35149
35150
cristy73bd4a52010-10-05 11:24:23 +000035151 if test "x$ZIP" != "x" ; then
35152 ZIP_DELEGATE_TRUE=
35153 ZIP_DELEGATE_FALSE='#'
35154else
35155 ZIP_DELEGATE_TRUE='#'
35156 ZIP_DELEGATE_FALSE=
35157fi
35158
cristy3ed852e2009-09-05 21:47:34 +000035159
35160#
35161# GhostPCL related configuration.
35162#
35163PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035164PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035165PCLMonoDevice=pbmraw
35166if test -z "$PCLVersion"; then
35167 PCLVersion='unknown'
35168fi
35169if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35171$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035173$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035174 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35175$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035176 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035178$as_echo_n "checking for pcl color device... " >&6; }
35179 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35180 :
35181 else
35182 PCLColorDevice=ppmraw
35183 fi
cristy09b53e12011-10-14 12:47:22 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35185$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035186
35187 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035189$as_echo_n "checking for pcl CMYK device... " >&6; }
35190 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35191 :
35192 else
35193 PCLCMYKDevice=$PCLColorDevice
35194 fi
cristy09b53e12011-10-14 12:47:22 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35196$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035197
35198 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200$as_echo_n "checking for pcl mono device... " >&6; }
35201 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35202 :
35203 else
35204 PCLMonoDevice=$PCLColorDevice
35205 fi
cristy09b53e12011-10-14 12:47:22 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35207$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035208fi
35209
35210
35211
35212
35213
35214
35215#
35216# GhostXPS related configuration.
35217#
35218XPSColorDevice=ppmraw
35219XPSCMYKDevice=bmpsep8
35220XPSMonoDevice=pbmraw
35221if test -z "$XPSVersion"; then
35222 XPSVersion='unknown'
35223fi
35224if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35226$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035228$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035229 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35230$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035231 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035233$as_echo_n "checking for xps color device... " >&6; }
35234 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35235 :
35236 else
35237 XPSColorDevice=ppmraw
35238 fi
cristy09b53e12011-10-14 12:47:22 +000035239 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35240$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035241
35242 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035244$as_echo_n "checking for xps CMYK device... " >&6; }
35245 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35246 :
35247 else
35248 XPSCMYKDevice=$XPSColorDevice
35249 fi
cristy09b53e12011-10-14 12:47:22 +000035250 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35251$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035252
35253 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035255$as_echo_n "checking for xps mono device... " >&6; }
35256 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35257 :
35258 else
35259 XPSMonoDevice=$XPSColorDevice
35260 fi
cristy09b53e12011-10-14 12:47:22 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35262$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035263fi
35264
35265
35266
35267
35268
35269
35270#
35271# Ghostscript related configuration.
35272#
cristya97426c2011-02-04 01:41:27 +000035273GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035274GSColorDevice=pnmraw
35275GSCMYKDevice=pam
35276GSMonoDevice=pbmraw
35277GSPDFDevice=pdfwrite
35278GSPSDevice=pswrite
35279GSEPSDevice=epswrite
35280GSVersion='unknown'
35281if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035282 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35283$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035285$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035286 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35287$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035289$as_echo_n "checking for Ghostscript version... " >&6; }
35290 if GSVersion=`$PSDelegate --version`; then
35291 :
35292 else
35293 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35294 fi
cristy09b53e12011-10-14 12:47:22 +000035295 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35296$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035297
35298 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035300$as_echo_n "checking for gs alpha device... " >&6; }
35301 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35302 :
35303 else
35304 GSAlphaDevice=pnmraw
35305 fi
cristy09b53e12011-10-14 12:47:22 +000035306 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35307$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035308
35309 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035311$as_echo_n "checking for gs color device... " >&6; }
35312 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35313 :
35314 else
35315 GSColorDevice=pnmraw
35316 fi
cristy09b53e12011-10-14 12:47:22 +000035317 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35318$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035319
35320 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035322$as_echo_n "checking for gs CMYK device... " >&6; }
35323 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35324 :
35325 else
35326 GSCMYKDevice=bmpsep8
35327 fi
cristy09b53e12011-10-14 12:47:22 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35329$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035330
35331 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035333$as_echo_n "checking for gs mono device... " >&6; }
35334 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35335 :
35336 else
35337 GSMonoDevice=$GSColorDevice
35338 fi
cristy09b53e12011-10-14 12:47:22 +000035339 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35340$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035341
35342 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035344$as_echo_n "checking for gs PDF writing device... " >&6; }
35345 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35346 :
35347 else
35348 GSPDFDevice=nodevice
35349 fi
cristy09b53e12011-10-14 12:47:22 +000035350 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35351$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035352
35353 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035355$as_echo_n "checking for gs PS writing device... " >&6; }
35356 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35357 :
35358 else
35359 GSPSDevice=nodevice
35360 fi
cristy09b53e12011-10-14 12:47:22 +000035361 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35362$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035363
35364 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035366$as_echo_n "checking for gs EPS writing device... " >&6; }
35367 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35368 :
35369 else
35370 GSEPSDevice=nodevice
35371 fi
cristy09b53e12011-10-14 12:47:22 +000035372 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35373$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035374fi
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385#
35386# PerlMagick-related configuration
35387#
35388
35389# Look for PERL if PerlMagick requested
35390# If name/path of desired PERL interpreter is specified, look for that one first
35391have_perl='no'
35392if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035393 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35394$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035396$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035397 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35398$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035399 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035401$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035402if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035403 $as_echo_n "(cached) " >&6
35404else
35405 ac_cv_path_PERL="$with_perl"
35406fi
cristy8b350f62009-11-15 23:12:43 +000035407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035408$as_echo "$ac_cv_path_PERL" >&6; };
35409 PERL=$ac_cv_path_PERL
35410 have_perl="$ac_cv_path_PERL"
35411 else
35412 for ac_prog in perl perl5
35413do
35414 # Extract the first word of "$ac_prog", so it can be a program name with args.
35415set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035418if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035419 $as_echo_n "(cached) " >&6
35420else
35421 case $PERL in
35422 [\\/]* | ?:[\\/]*)
35423 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35424 ;;
35425 *)
35426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35427for as_dir in $PATH
35428do
35429 IFS=$as_save_IFS
35430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035433 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035435 break 2
35436 fi
35437done
cristy8b350f62009-11-15 23:12:43 +000035438 done
cristy3ed852e2009-09-05 21:47:34 +000035439IFS=$as_save_IFS
35440
35441 ;;
35442esac
35443fi
35444PERL=$ac_cv_path_PERL
35445if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035447$as_echo "$PERL" >&6; }
35448else
cristy8b350f62009-11-15 23:12:43 +000035449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035450$as_echo "no" >&6; }
35451fi
35452
35453
35454 test -n "$PERL" && break
35455done
35456 if test "$ac_cv_path_PERL"; then
35457 have_perl="$ac_cv_path_PERL"
35458 fi
35459 fi
35460fi
35461
cristy949301e2010-01-06 01:38:40 +000035462if test "$with_perl" != 'yes' ; then
35463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35464fi
35465
35466PERL_SUPPORTS_DESTDIR='no'
35467
cristy3ed852e2009-09-05 21:47:34 +000035468with_perl_static='no'
35469with_perl_dynamic='no'
35470if test "$have_perl" != 'no'; then
35471 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35472 with_perl_static='yes'
35473 fi
35474 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35475 with_perl_dynamic='yes'
35476 fi
35477 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035478
35479
35480
35481
35482 if test -n "$PERL"; then :
35483
35484 ax_perl_version="5.8.1"
35485
35486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35487$as_echo_n "checking for perl version... " >&6; }
35488
35489 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35490
35491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35492$as_echo "$perl_version" >&6; }
35493
35494 PERL_VERSION=$perl_version
35495
35496
35497
35498
35499
35500 # Used to indicate true or false condition
35501 ax_compare_version=false
35502
35503 # Convert the two version strings to be compared into a format that
35504 # allows a simple string comparison. The end result is that a version
35505 # string of the form 1.12.5-r617 will be converted to the form
35506 # 0001001200050617. In other words, each number is zero padded to four
35507 # digits, and non digits are removed.
35508
35509 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35510 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35511 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35512 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35513 -e 's/[^0-9]//g'`
35514
35515
35516 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35517 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35518 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35519 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35520 -e 's/[^0-9]//g'`
35521
35522
35523 ax_compare_version=`echo "x$ax_compare_version_A
35524x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35525
35526
35527
35528 if test "$ax_compare_version" = "true" ; then
35529
35530 :
35531 PERL_SUPPORTS_DESTDIR='yes'
35532
35533 else
35534 :
35535 PERL_SUPPORTS_DESTDIR='no'
35536
35537 fi
35538
35539
35540else
35541
35542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35543$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35544 PERL_SUPPORTS_DESTDIR='no'
35545
cristy3ed852e2009-09-05 21:47:34 +000035546fi
cristy73bd4a52010-10-05 11:24:23 +000035547
35548fi
35549 if test "$have_perl" != 'no'; then
35550 WITH_PERL_TRUE=
35551 WITH_PERL_FALSE='#'
35552else
35553 WITH_PERL_TRUE='#'
35554 WITH_PERL_FALSE=
35555fi
35556
35557 if test $with_perl_static = 'yes'; then
35558 WITH_PERL_STATIC_TRUE=
35559 WITH_PERL_STATIC_FALSE='#'
35560else
35561 WITH_PERL_STATIC_TRUE='#'
35562 WITH_PERL_STATIC_FALSE=
35563fi
35564
35565 if test $with_perl_dynamic = 'yes'; then
35566 WITH_PERL_DYNAMIC_TRUE=
35567 WITH_PERL_DYNAMIC_FALSE='#'
35568else
35569 WITH_PERL_DYNAMIC_TRUE='#'
35570 WITH_PERL_DYNAMIC_FALSE=
35571fi
35572
cristy3ed852e2009-09-05 21:47:34 +000035573
35574
35575# Determine path to pick up MagickCore library from for use with building PerlMagick
35576MAGICKCORE_PATH="${LIB_DIR}"
35577if test $with_perl_static = 'yes'; then
35578 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35579 libtool_objdir=$objdir
35580
35581 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035582 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035583fi
35584
35585
35586# Create a simple string containing format names for all delegate libraries
35587DELEGATES=''
35588if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35589if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35590if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35591if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35592if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35593if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35594if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35595if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35596if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35597if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35598if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35599if test "$have_jpeg" = 'yes'; then
35600 DELEGATES="$DELEGATES jpeg";
35601 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35602fi
35603if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035604if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035605if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35606if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035607if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035608if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35609if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035610if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035611if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35612if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35613if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35614if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35615if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35616if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35617if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35618
35619
35620
35621#
35622# Handle special compiler flags
35623#
35624
35625# Add '-p' if prof source profiling support enabled
35626if test "$enable_prof" = 'yes'; then
35627 CFLAGS="-p $CFLAGS"
35628 CXXFLAGS="-p $CXXFLAGS"
35629 LDFLAGS="-p $LDFLAGS"
35630fi
35631
35632# Add '-pg' if gprof source profiling support enabled
35633if test "$enable_gprof" = 'yes'; then
35634 CFLAGS="-pg $CFLAGS"
35635 CXXFLAGS="-pg $CXXFLAGS"
35636 LDFLAGS="-pg $LDFLAGS"
35637fi
35638
35639# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35640# This is a gcc-specific feature
35641if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035643$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035644if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035645 $as_echo_n "(cached) " >&6
35646else
35647 ac_check_lib_save_LIBS=$LIBS
35648LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035650/* end confdefs.h. */
35651
35652/* Override any GCC internal prototype to avoid an error.
35653 Use char because int might match the return type of a GCC
35654 builtin and then its argument prototype would still apply. */
35655#ifdef __cplusplus
35656extern "C"
35657#endif
35658char _gcov_init ();
35659int
35660main ()
35661{
35662return _gcov_init ();
35663 ;
35664 return 0;
35665}
35666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035668 ac_cv_lib_gcov__gcov_init=yes
35669else
cristy8b350f62009-11-15 23:12:43 +000035670 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035671fi
cristy8b350f62009-11-15 23:12:43 +000035672rm -f core conftest.err conftest.$ac_objext \
35673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035674LIBS=$ac_check_lib_save_LIBS
35675fi
cristy8b350f62009-11-15 23:12:43 +000035676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035677$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035678if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035679 cat >>confdefs.h <<_ACEOF
35680#define HAVE_LIBGCOV 1
35681_ACEOF
35682
35683 LIBS="-lgcov $LIBS"
35684
35685fi
35686
cristy8b350f62009-11-15 23:12:43 +000035687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035688$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035689if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035690 $as_echo_n "(cached) " >&6
35691else
35692 ac_check_lib_save_LIBS=$LIBS
35693LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035695/* end confdefs.h. */
35696
35697/* Override any GCC internal prototype to avoid an error.
35698 Use char because int might match the return type of a GCC
35699 builtin and then its argument prototype would still apply. */
35700#ifdef __cplusplus
35701extern "C"
35702#endif
35703char __gcov_init ();
35704int
35705main ()
35706{
35707return __gcov_init ();
35708 ;
35709 return 0;
35710}
35711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035713 ac_cv_lib_gcov___gcov_init=yes
35714else
cristy8b350f62009-11-15 23:12:43 +000035715 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035716fi
cristy8b350f62009-11-15 23:12:43 +000035717rm -f core conftest.err conftest.$ac_objext \
35718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035719LIBS=$ac_check_lib_save_LIBS
35720fi
cristy8b350f62009-11-15 23:12:43 +000035721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035722$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035723if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035724 cat >>confdefs.h <<_ACEOF
35725#define HAVE_LIBGCOV 1
35726_ACEOF
35727
35728 LIBS="-lgcov $LIBS"
35729
35730fi
35731
35732 case "$target_os" in
35733 darwin*)
35734 OSX_GCOV_LDFLAG="-Wl,-single_module"
35735 ;;
35736 *)
35737 OSX_GCOV_LDFLAG=""
35738 ;;
35739 esac
35740
35741 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35742 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35743 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35744fi
35745
35746#
35747# Build library dependency list for libMagickCore
35748#
35749
35750MAGICK_LIBLTDL='' # Libltdl for build
35751MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35752MAGICK_LTDLDEPS='' # extra libltdl dependencies
35753if test "$with_ltdl" != 'no'
35754then
35755 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35756 MAGICK_API_LIBLTDL='-lltdl'
35757 fi
35758 MAGICK_LIBLTDL=${LIBLTDL}
35759 MAGICK_LTDLDEPS=${LTDLDEPS}
35760fi
35761
35762
35763
35764if test "$with_modules" != 'no'; then
cristy3a75f062012-09-08 23:29:40 +000035765 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_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 $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035766else
cristy3a75f062012-09-08 23:29:40 +000035767 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 $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035768fi
35769
35770
35771#
35772# Remove extraneous spaces from output variables (asthetic)
35773#
35774X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35775X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35776X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35777X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35778
35779CC=`echo $CC | sed -e 's/ */ /g'`
35780CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35781CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35782CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35783DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35784DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35785LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35786TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35787MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35788#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35789
35790# Pass only user-provided LIBS as "global" libraries
35791LIBS=$USER_LIBS
35792
35793#AC_SUBST(CPPFLAGS)
35794
35795#AC_SUBST(LDFLAGS)
35796#AC_SUBST(X_PRE_LIBS)
35797#AC_SUBST(X_LIBS)
35798#AC_SUBST(X_EXTRA_LIBS)
35799
35800MAGICK_CFLAGS=$CFLAGS
35801MAGICK_CXXFLAGS="$CXXFLAGS"
35802MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35803MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35804MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35805MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35806
35807
35808
35809
35810
35811
35812
35813
cristyfd9dcd42010-08-08 18:07:02 +000035814
cristy3ed852e2009-09-05 21:47:34 +000035815# Set configured scripts to executable.
35816ac_config_commands="$ac_config_commands default"
35817
cristy2bd4b6e2012-07-22 15:29:11 +000035818ac_config_commands="$ac_config_commands magick.sh.in"
35819
cristy3ed852e2009-09-05 21:47:34 +000035820ac_config_commands="$ac_config_commands MagickCore-config.in"
35821
cristy3ed852e2009-09-05 21:47:34 +000035822ac_config_commands="$ac_config_commands MagickWand-config.in"
35823
cristy3ed852e2009-09-05 21:47:34 +000035824ac_config_commands="$ac_config_commands Magick++-config.in"
35825
35826ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35827
35828
cristy09b53e12011-10-14 12:47:22 +000035829{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35830$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35831{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35832$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035833cat >confcache <<\_ACEOF
35834# This file is a shell script that caches the results of configure
35835# tests run on this system so they can be shared between configure
35836# scripts and configure runs, see configure's option --config-cache.
35837# It is not useful on other systems. If it contains results you don't
35838# want to keep, you may remove or edit it.
35839#
35840# config.status only pays attention to the cache file if you give it
35841# the --recheck option to rerun configure.
35842#
35843# `ac_cv_env_foo' variables (set or unset) will be overridden when
35844# loading this file, other *unset* `ac_cv_foo' will be assigned the
35845# following values.
35846
35847_ACEOF
35848
35849# The following way of writing the cache mishandles newlines in values,
35850# but we know of no workaround that is simple, portable, and efficient.
35851# So, we kill variables containing newlines.
35852# Ultrix sh set writes to stderr and can't be redirected directly,
35853# and sets the high bit in the cache file unless we assign to the vars.
35854(
35855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35856 eval ac_val=\$$ac_var
35857 case $ac_val in #(
35858 *${as_nl}*)
35859 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35862 esac
35863 case $ac_var in #(
35864 _ | IFS | as_nl) ;; #(
35865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035866 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035867 esac ;;
35868 esac
35869 done
35870
35871 (set) 2>&1 |
35872 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35873 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035874 # `set' does not quote correctly, so add quotes: double-quote
35875 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035876 sed -n \
35877 "s/'/'\\\\''/g;
35878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35879 ;; #(
35880 *)
35881 # `set' quotes correctly as required by POSIX, so do not add quotes.
35882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35883 ;;
35884 esac |
35885 sort
35886) |
35887 sed '
35888 /^ac_cv_env_/b end
35889 t clear
35890 :clear
35891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35892 t end
35893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35894 :end' >>confcache
35895if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35896 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035897 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035898 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035899$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035900 if test ! -f "$cache_file" || test -h "$cache_file"; then
35901 cat confcache >"$cache_file"
35902 else
35903 case $cache_file in #(
35904 */* | ?:*)
35905 mv -f confcache "$cache_file"$$ &&
35906 mv -f "$cache_file"$$ "$cache_file" ;; #(
35907 *)
35908 mv -f confcache "$cache_file" ;;
35909 esac
35910 fi
35911 fi
cristy3ed852e2009-09-05 21:47:34 +000035912 else
cristy8b350f62009-11-15 23:12:43 +000035913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035914$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35915 fi
35916fi
35917rm -f confcache
35918
35919test "x$prefix" = xNONE && prefix=$ac_default_prefix
35920# Let make expand exec_prefix.
35921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35922
35923DEFS=-DHAVE_CONFIG_H
35924
35925ac_libobjs=
35926ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035927U=
cristy3ed852e2009-09-05 21:47:34 +000035928for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35929 # 1. Remove the extension, and $U if already installed.
35930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35933 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035936done
35937LIBOBJS=$ac_libobjs
35938
35939LTLIBOBJS=$ac_ltlibobjs
35940
35941
cristyc0890a62012-07-19 00:18:20 +000035942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35943$as_echo_n "checking that generated files are newer than configure... " >&6; }
35944 if test -n "$am_sleep_pid"; then
35945 # Hide warnings about reused PIDs.
35946 wait $am_sleep_pid 2>/dev/null
35947 fi
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35949$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035950 if test -n "$EXEEXT"; then
35951 am__EXEEXT_TRUE=
35952 am__EXEEXT_FALSE='#'
35953else
35954 am__EXEEXT_TRUE='#'
35955 am__EXEEXT_FALSE=
35956fi
cristy3ed852e2009-09-05 21:47:34 +000035957
cristy73bd4a52010-10-05 11:24:23 +000035958if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035959 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035960Usually this means the macro was only invoked conditionally." "$LINENO" 5
35961fi
35962if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035963 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035964Usually this means the macro was only invoked conditionally." "$LINENO" 5
35965fi
35966if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035968Usually this means the macro was only invoked conditionally." "$LINENO" 5
35969fi
35970if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035971 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035972Usually this means the macro was only invoked conditionally." "$LINENO" 5
35973fi
35974if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035975 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035976Usually this means the macro was only invoked conditionally." "$LINENO" 5
35977fi
35978if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035979 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035980Usually this means the macro was only invoked conditionally." "$LINENO" 5
35981fi
35982if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035983 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035984Usually this means the macro was only invoked conditionally." "$LINENO" 5
35985fi
35986if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035987 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035988Usually this means the macro was only invoked conditionally." "$LINENO" 5
35989fi
cristy73bd4a52010-10-05 11:24:23 +000035990if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035991 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035992Usually this means the macro was only invoked conditionally." "$LINENO" 5
35993fi
35994if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035995 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035996Usually this means the macro was only invoked conditionally." "$LINENO" 5
35997fi
35998LT_CONFIG_H=config/config.h
35999
36000 _ltdl_libobjs=
36001 _ltdl_ltlibobjs=
36002 if test -n "$_LT_LIBOBJS"; then
36003 # Remove the extension.
36004 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36005 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36006 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36007 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36008 done
36009 fi
36010 ltdl_LIBOBJS=$_ltdl_libobjs
36011
36012 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36013
36014
36015if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
36019if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036020 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036021Usually this means the macro was only invoked conditionally." "$LINENO" 5
36022fi
36023if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036024 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036028 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036029Usually this means the macro was only invoked conditionally." "$LINENO" 5
36030fi
cristy71d8c202012-03-20 17:05:01 +000036031if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36032 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36033Usually this means the macro was only invoked conditionally." "$LINENO" 5
36034fi
cristy73bd4a52010-10-05 11:24:23 +000036035
36036if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036037 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036038Usually this means the macro was only invoked conditionally." "$LINENO" 5
36039fi
36040if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036041 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036042Usually this means the macro was only invoked conditionally." "$LINENO" 5
36043fi
36044if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036045 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036049 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
36052if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036053 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
36056if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036057 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
36060if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036061 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
36064if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036065 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036066Usually this means the macro was only invoked conditionally." "$LINENO" 5
36067fi
36068if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036069 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036070Usually this means the macro was only invoked conditionally." "$LINENO" 5
36071fi
36072if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036073 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036074Usually this means the macro was only invoked conditionally." "$LINENO" 5
36075fi
36076if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036077 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036078Usually this means the macro was only invoked conditionally." "$LINENO" 5
36079fi
36080if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036081 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036082Usually this means the macro was only invoked conditionally." "$LINENO" 5
36083fi
36084if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036085 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036086Usually this means the macro was only invoked conditionally." "$LINENO" 5
36087fi
36088if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036089 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
36092if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036093 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
36096if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036097 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036098Usually this means the macro was only invoked conditionally." "$LINENO" 5
36099fi
36100if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036101 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036102Usually this means the macro was only invoked conditionally." "$LINENO" 5
36103fi
36104if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036105 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036106Usually this means the macro was only invoked conditionally." "$LINENO" 5
36107fi
36108if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036113 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
cristyfbb0ef02010-12-19 02:32:11 +000036116if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36117 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
cristy73bd4a52010-10-05 11:24:23 +000036120if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036121 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
cristy41cbe8a2011-10-27 01:35:18 +000036124if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36125 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
cristya054b762012-03-26 23:16:00 +000036128if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36129 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
cristy73bd4a52010-10-05 11:24:23 +000036132if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036133 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
36136if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036137 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
36140if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036141 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036142Usually this means the macro was only invoked conditionally." "$LINENO" 5
36143fi
36144if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036145 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036146Usually this means the macro was only invoked conditionally." "$LINENO" 5
36147fi
cristyb1860752011-03-14 00:27:46 +000036148if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36149 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36150Usually this means the macro was only invoked conditionally." "$LINENO" 5
36151fi
cristy73bd4a52010-10-05 11:24:23 +000036152if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036153 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036154Usually this means the macro was only invoked conditionally." "$LINENO" 5
36155fi
36156if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036157 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036158Usually this means the macro was only invoked conditionally." "$LINENO" 5
36159fi
36160if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036161 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036162Usually this means the macro was only invoked conditionally." "$LINENO" 5
36163fi
36164if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036165 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036166Usually this means the macro was only invoked conditionally." "$LINENO" 5
36167fi
36168if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036169 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036170Usually this means the macro was only invoked conditionally." "$LINENO" 5
36171fi
36172if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036173 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036174Usually this means the macro was only invoked conditionally." "$LINENO" 5
36175fi
36176if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036177 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036178Usually this means the macro was only invoked conditionally." "$LINENO" 5
36179fi
36180if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036181 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036182Usually this means the macro was only invoked conditionally." "$LINENO" 5
36183fi
cristy3ed852e2009-09-05 21:47:34 +000036184
cristyda16f162011-02-19 23:52:17 +000036185: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036186ac_write_fail=0
36187ac_clean_files_save=$ac_clean_files
36188ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036189{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036190$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036191as_write_fail=0
36192cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036193#! $SHELL
36194# Generated by $as_me.
36195# Run this file to recreate the current configuration.
36196# Compiler output produced by configure, useful for debugging
36197# configure, is in config.log if it exists.
36198
36199debug=false
36200ac_cs_recheck=false
36201ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036202
cristy8b350f62009-11-15 23:12:43 +000036203SHELL=\${CONFIG_SHELL-$SHELL}
36204export SHELL
36205_ASEOF
36206cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36207## -------------------- ##
36208## M4sh Initialization. ##
36209## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036210
36211# Be more Bourne compatible
36212DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036213if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036214 emulate sh
36215 NULLCMD=:
36216 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36217 # is contrary to our usage. Disable this feature.
36218 alias -g '${1+"$@"}'='"$@"'
36219 setopt NO_GLOB_SUBST
36220else
cristy8b350f62009-11-15 23:12:43 +000036221 case `(set -o) 2>/dev/null` in #(
36222 *posix*) :
36223 set -o posix ;; #(
36224 *) :
36225 ;;
cristy3ed852e2009-09-05 21:47:34 +000036226esac
cristy3ed852e2009-09-05 21:47:34 +000036227fi
36228
36229
cristy3ed852e2009-09-05 21:47:34 +000036230as_nl='
36231'
36232export as_nl
36233# Printing a long string crashes Solaris 7 /usr/bin/printf.
36234as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36235as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36236as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036237# Prefer a ksh shell builtin over an external printf program on Solaris,
36238# but without wasting forks for bash or zsh.
36239if test -z "$BASH_VERSION$ZSH_VERSION" \
36240 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36241 as_echo='print -r --'
36242 as_echo_n='print -rn --'
36243elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036244 as_echo='printf %s\n'
36245 as_echo_n='printf %s'
36246else
36247 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36248 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36249 as_echo_n='/usr/ucb/echo -n'
36250 else
36251 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36252 as_echo_n_body='eval
36253 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036254 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036255 *"$as_nl"*)
36256 expr "X$arg" : "X\\(.*\\)$as_nl";
36257 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36258 esac;
36259 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36260 '
36261 export as_echo_n_body
36262 as_echo_n='sh -c $as_echo_n_body as_echo'
36263 fi
36264 export as_echo_body
36265 as_echo='sh -c $as_echo_body as_echo'
36266fi
36267
36268# The user is always right.
36269if test "${PATH_SEPARATOR+set}" != set; then
36270 PATH_SEPARATOR=:
36271 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36272 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36273 PATH_SEPARATOR=';'
36274 }
36275fi
36276
cristy3ed852e2009-09-05 21:47:34 +000036277
36278# IFS
36279# We need space, tab and new line, in precisely that order. Quoting is
36280# there to prevent editors from complaining about space-tab.
36281# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36282# splitting by setting IFS to empty value.)
36283IFS=" "" $as_nl"
36284
36285# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036286as_myself=
cristy8b350f62009-11-15 23:12:43 +000036287case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036288 *[\\/]* ) as_myself=$0 ;;
36289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36290for as_dir in $PATH
36291do
36292 IFS=$as_save_IFS
36293 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036294 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36295 done
cristy3ed852e2009-09-05 21:47:34 +000036296IFS=$as_save_IFS
36297
36298 ;;
36299esac
36300# We did not find ourselves, most probably we were run as `sh COMMAND'
36301# in which case we are not to be found in the path.
36302if test "x$as_myself" = x; then
36303 as_myself=$0
36304fi
36305if test ! -f "$as_myself"; then
36306 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036307 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036308fi
36309
cristy8b350f62009-11-15 23:12:43 +000036310# Unset variables that we do not need and which cause bugs (e.g. in
36311# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36312# suppresses any "Segmentation fault" message there. '((' could
36313# trigger a bug in pdksh 5.2.14.
36314for as_var in BASH_ENV ENV MAIL MAILPATH
36315do eval test x\${$as_var+set} = xset \
36316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036317done
36318PS1='$ '
36319PS2='> '
36320PS4='+ '
36321
36322# NLS nuisances.
36323LC_ALL=C
36324export LC_ALL
36325LANGUAGE=C
36326export LANGUAGE
36327
cristy8b350f62009-11-15 23:12:43 +000036328# CDPATH.
36329(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36330
36331
cristy98dddb52010-11-04 00:30:15 +000036332# as_fn_error STATUS ERROR [LINENO LOG_FD]
36333# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036334# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36335# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036336# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036337as_fn_error ()
36338{
cristy98dddb52010-11-04 00:30:15 +000036339 as_status=$1; test $as_status -eq 0 && as_status=1
36340 if test "$4"; then
36341 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36342 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036343 fi
cristy98dddb52010-11-04 00:30:15 +000036344 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036345 as_fn_exit $as_status
36346} # as_fn_error
36347
36348
36349# as_fn_set_status STATUS
36350# -----------------------
36351# Set $? to STATUS, without forking.
36352as_fn_set_status ()
36353{
36354 return $1
36355} # as_fn_set_status
36356
36357# as_fn_exit STATUS
36358# -----------------
36359# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36360as_fn_exit ()
36361{
36362 set +e
36363 as_fn_set_status $1
36364 exit $1
36365} # as_fn_exit
36366
36367# as_fn_unset VAR
36368# ---------------
36369# Portably unset VAR.
36370as_fn_unset ()
36371{
36372 { eval $1=; unset $1;}
36373}
36374as_unset=as_fn_unset
36375# as_fn_append VAR VALUE
36376# ----------------------
36377# Append the text in VALUE to the end of the definition contained in VAR. Take
36378# advantage of any shell optimizations that allow amortized linear growth over
36379# repeated appends, instead of the typical quadratic growth present in naive
36380# implementations.
36381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36382 eval 'as_fn_append ()
36383 {
36384 eval $1+=\$2
36385 }'
36386else
36387 as_fn_append ()
36388 {
36389 eval $1=\$$1\$2
36390 }
36391fi # as_fn_append
36392
36393# as_fn_arith ARG...
36394# ------------------
36395# Perform arithmetic evaluation on the ARGs, and store the result in the
36396# global $as_val. Take advantage of shells that can avoid forks. The arguments
36397# must be portable across $(()) and expr.
36398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36399 eval 'as_fn_arith ()
36400 {
36401 as_val=$(( $* ))
36402 }'
36403else
36404 as_fn_arith ()
36405 {
36406 as_val=`expr "$@" || test $? -eq 1`
36407 }
36408fi # as_fn_arith
36409
36410
cristy3ed852e2009-09-05 21:47:34 +000036411if expr a : '\(a\)' >/dev/null 2>&1 &&
36412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36413 as_expr=expr
36414else
36415 as_expr=false
36416fi
36417
36418if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36419 as_basename=basename
36420else
36421 as_basename=false
36422fi
36423
cristy8b350f62009-11-15 23:12:43 +000036424if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36425 as_dirname=dirname
36426else
36427 as_dirname=false
36428fi
cristy3ed852e2009-09-05 21:47:34 +000036429
cristy3ed852e2009-09-05 21:47:34 +000036430as_me=`$as_basename -- "$0" ||
36431$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36432 X"$0" : 'X\(//\)$' \| \
36433 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36434$as_echo X/"$0" |
36435 sed '/^.*\/\([^/][^/]*\)\/*$/{
36436 s//\1/
36437 q
36438 }
36439 /^X\/\(\/\/\)$/{
36440 s//\1/
36441 q
36442 }
36443 /^X\/\(\/\).*/{
36444 s//\1/
36445 q
36446 }
36447 s/.*/./; q'`
36448
cristy8b350f62009-11-15 23:12:43 +000036449# Avoid depending upon Character Ranges.
36450as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36451as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36452as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36453as_cr_digits='0123456789'
36454as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036455
36456ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036457case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036458-n*)
cristy8b350f62009-11-15 23:12:43 +000036459 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036461 xy) ECHO_C='\c';;
36462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36463 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036464 esac;;
36465*)
36466 ECHO_N='-n';;
36467esac
cristy3ed852e2009-09-05 21:47:34 +000036468
36469rm -f conf$$ conf$$.exe conf$$.file
36470if test -d conf$$.dir; then
36471 rm -f conf$$.dir/conf$$.file
36472else
36473 rm -f conf$$.dir
36474 mkdir conf$$.dir 2>/dev/null
36475fi
36476if (echo >conf$$.file) 2>/dev/null; then
36477 if ln -s conf$$.file conf$$ 2>/dev/null; then
36478 as_ln_s='ln -s'
36479 # ... but there are two gotchas:
36480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036482 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036484 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036485 elif ln conf$$.file conf$$ 2>/dev/null; then
36486 as_ln_s=ln
36487 else
cristy14fefe52012-05-21 00:59:18 +000036488 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036489 fi
36490else
cristy14fefe52012-05-21 00:59:18 +000036491 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036492fi
36493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36494rmdir conf$$.dir 2>/dev/null
36495
cristy8b350f62009-11-15 23:12:43 +000036496
36497# as_fn_mkdir_p
36498# -------------
36499# Create "$as_dir" as a directory, including parents if necessary.
36500as_fn_mkdir_p ()
36501{
36502
36503 case $as_dir in #(
36504 -*) as_dir=./$as_dir;;
36505 esac
36506 test -d "$as_dir" || eval $as_mkdir_p || {
36507 as_dirs=
36508 while :; do
36509 case $as_dir in #(
36510 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36511 *) as_qdir=$as_dir;;
36512 esac
36513 as_dirs="'$as_qdir' $as_dirs"
36514 as_dir=`$as_dirname -- "$as_dir" ||
36515$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36516 X"$as_dir" : 'X\(//\)[^/]' \| \
36517 X"$as_dir" : 'X\(//\)$' \| \
36518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36519$as_echo X"$as_dir" |
36520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36521 s//\1/
36522 q
36523 }
36524 /^X\(\/\/\)[^/].*/{
36525 s//\1/
36526 q
36527 }
36528 /^X\(\/\/\)$/{
36529 s//\1/
36530 q
36531 }
36532 /^X\(\/\).*/{
36533 s//\1/
36534 q
36535 }
36536 s/.*/./; q'`
36537 test -d "$as_dir" && break
36538 done
36539 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036540 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036541
36542
36543} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036544if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036545 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036546else
36547 test -d ./-p && rmdir ./-p
36548 as_mkdir_p=false
36549fi
36550
cristy14fefe52012-05-21 00:59:18 +000036551
36552# as_fn_executable_p FILE
36553# -----------------------
36554# Test if FILE is an executable regular file.
36555as_fn_executable_p ()
36556{
36557 test -f "$1" && test -x "$1"
36558} # as_fn_executable_p
36559as_test_x='test -x'
36560as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036561
36562# Sed expression to map a string onto a valid CPP name.
36563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36564
36565# Sed expression to map a string onto a valid variable name.
36566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36567
36568
36569exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036570## ----------------------------------- ##
36571## Main body of $CONFIG_STATUS script. ##
36572## ----------------------------------- ##
36573_ASEOF
36574test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036575
cristy8b350f62009-11-15 23:12:43 +000036576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36577# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036578# report actual input values of CONFIG_FILES etc. instead of their
36579# values after options handling.
36580ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036581This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036582generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036583
36584 CONFIG_FILES = $CONFIG_FILES
36585 CONFIG_HEADERS = $CONFIG_HEADERS
36586 CONFIG_LINKS = $CONFIG_LINKS
36587 CONFIG_COMMANDS = $CONFIG_COMMANDS
36588 $ $0 $@
36589
36590on `(hostname || uname -n) 2>/dev/null | sed 1q`
36591"
36592
36593_ACEOF
36594
36595case $ac_config_files in *"
36596"*) set x $ac_config_files; shift; ac_config_files=$*;;
36597esac
36598
36599case $ac_config_headers in *"
36600"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36601esac
36602
36603
36604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36605# Files that config.status was made for.
36606config_files="$ac_config_files"
36607config_headers="$ac_config_headers"
36608config_commands="$ac_config_commands"
36609
36610_ACEOF
36611
36612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36613ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036614\`$as_me' instantiates files and other configuration actions
36615from templates according to the current configuration. Unless the files
36616and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036617
cristy8b350f62009-11-15 23:12:43 +000036618Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036619
36620 -h, --help print this help, then exit
36621 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036622 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036623 -q, --quiet, --silent
36624 do not print progress messages
36625 -d, --debug don't remove temporary files
36626 --recheck update $as_me by reconfiguring in the same conditions
36627 --file=FILE[:TEMPLATE]
36628 instantiate the configuration file FILE
36629 --header=FILE[:TEMPLATE]
36630 instantiate the configuration header FILE
36631
36632Configuration files:
36633$config_files
36634
36635Configuration headers:
36636$config_headers
36637
36638Configuration commands:
36639$config_commands
36640
cristy8b350f62009-11-15 23:12:43 +000036641Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036642
36643_ACEOF
36644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036645ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036646ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036647ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036648configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036649 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036650
cristy14fefe52012-05-21 00:59:18 +000036651Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036652This config.status script is free software; the Free Software Foundation
36653gives unlimited permission to copy, distribute and modify it."
36654
36655ac_pwd='$ac_pwd'
36656srcdir='$srcdir'
36657INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036658MKDIR_P='$MKDIR_P'
36659AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036660test -n "\$AWK" || AWK=awk
36661_ACEOF
36662
36663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36664# The default lists apply if the user does not specify any file.
36665ac_need_defaults=:
36666while test $# != 0
36667do
36668 case $1 in
cristyda16f162011-02-19 23:52:17 +000036669 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36671 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36672 ac_shift=:
36673 ;;
cristyda16f162011-02-19 23:52:17 +000036674 --*=)
36675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36676 ac_optarg=
36677 ac_shift=:
36678 ;;
cristy3ed852e2009-09-05 21:47:34 +000036679 *)
36680 ac_option=$1
36681 ac_optarg=$2
36682 ac_shift=shift
36683 ;;
36684 esac
36685
36686 case $ac_option in
36687 # Handling of the options.
36688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36689 ac_cs_recheck=: ;;
36690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36691 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036692 --config | --confi | --conf | --con | --co | --c )
36693 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036694 --debug | --debu | --deb | --de | --d | -d )
36695 debug=: ;;
36696 --file | --fil | --fi | --f )
36697 $ac_shift
36698 case $ac_optarg in
36699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036700 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036701 esac
cristy8b350f62009-11-15 23:12:43 +000036702 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036703 ac_need_defaults=false;;
36704 --header | --heade | --head | --hea )
36705 $ac_shift
36706 case $ac_optarg in
36707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36708 esac
cristy8b350f62009-11-15 23:12:43 +000036709 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036710 ac_need_defaults=false;;
36711 --he | --h)
36712 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036713 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036714Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036715 --help | --hel | -h )
36716 $as_echo "$ac_cs_usage"; exit ;;
36717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36718 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36719 ac_cs_silent=: ;;
36720
36721 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036722 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036723Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036724
cristy8b350f62009-11-15 23:12:43 +000036725 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036726 ac_need_defaults=false ;;
36727
36728 esac
36729 shift
36730done
36731
36732ac_configure_extra_args=
36733
36734if $ac_cs_silent; then
36735 exec 6>/dev/null
36736 ac_configure_extra_args="$ac_configure_extra_args --silent"
36737fi
36738
36739_ACEOF
36740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36741if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036742 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036743 shift
36744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36745 CONFIG_SHELL='$SHELL'
36746 export CONFIG_SHELL
36747 exec "\$@"
36748fi
36749
36750_ACEOF
36751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36752exec 5>>config.log
36753{
36754 echo
36755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36756## Running $as_me. ##
36757_ASBOX
36758 $as_echo "$ac_log"
36759} >&5
36760
36761_ACEOF
36762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036763#
36764# INIT-COMMANDS
36765#
36766PACKAGE="$PACKAGE"
36767AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36768
36769
36770# The HP-UX ksh and POSIX shell print the target directory to stdout
36771# if CDPATH is set.
36772(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36773
36774sed_quote_subst='$sed_quote_subst'
36775double_quote_subst='$double_quote_subst'
36776delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036777SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36778Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36779GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36780EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36781FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36782SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36783ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36784LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36785macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36786macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36787AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36788DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36789OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36790enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36791enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36792pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36793enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036794PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036795host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36796host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36797host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36798build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36799build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36800build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36801NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36802LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36803max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36804ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36805exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36806lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36807lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36808lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036809lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36810lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036811reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36812reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36813deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36814file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036815file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36816want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36817sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036818AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36819AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036820archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036821STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36822RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36823old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36824old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36825old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36826lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36827CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36828CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36829compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36830GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36831lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36832lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36833lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36834lt_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 +000036835nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36836lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036837objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36838MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36839lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036840lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036841lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036842lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36843lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36844need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036845MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036846DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36847NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36848LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36849OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36850OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36851libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36852shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36853extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36854archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36855enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36856export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36857whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36858compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36859old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36860old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36861archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36862archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36863module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36864module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36865with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36866allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36867no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36868hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036869hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36870hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36871hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36872hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36873hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36874hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36875inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36876link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036877always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36878export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36879exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36880include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36881prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036882postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036883file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36884variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36885need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36886need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36887version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36888runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36889shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36890shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36891libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36892library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36893soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36894install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36895postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36896postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36897finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36898finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36899hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36900sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36901sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36902hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36903enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36904enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36905enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36906old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36907striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36908compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36909predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36910postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36911predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36912postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36913compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36914LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36915reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36916reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36917old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36918compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36919GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36920lt_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 +000036921lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036922lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036923lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36924lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36925archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36926enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36927export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36928whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36929compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36930old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36931old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36932archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36933archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36934module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36935module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36936with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36937allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36938no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36939hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036940hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36941hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36942hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36943hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36944hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36945hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36946inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36947link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036948always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36949export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36950exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36951include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36952prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036953postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036954file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36955hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36956compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36957predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36958postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36959predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36960postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36961compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036962
36963LTCC='$LTCC'
36964LTCFLAGS='$LTCFLAGS'
36965compiler='$compiler_DEFAULT'
36966
cristy0c60a692010-11-04 01:09:47 +000036967# A function that is used when there is no print builtin or printf.
36968func_fallback_echo ()
36969{
36970 eval 'cat <<_LTECHO_EOF
36971\$1
36972_LTECHO_EOF'
36973}
36974
cristy73bd4a52010-10-05 11:24:23 +000036975# Quote evaled strings.
36976for var in SED \
36977GREP \
36978EGREP \
36979FGREP \
cristy0c60a692010-11-04 01:09:47 +000036980SHELL \
36981ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036982LD \
cristy0c60a692010-11-04 01:09:47 +000036983AS \
36984DLLTOOL \
36985OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036986PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036987NM \
36988LN_S \
36989lt_SP2NL \
36990lt_NL2SP \
36991reload_flag \
36992deplibs_check_method \
36993file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036994file_magic_glob \
36995want_nocaseglob \
36996sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036997AR \
36998AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036999archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037000STRIP \
37001RANLIB \
37002CC \
37003CFLAGS \
37004compiler \
37005lt_cv_sys_global_symbol_pipe \
37006lt_cv_sys_global_symbol_to_cdecl \
37007lt_cv_sys_global_symbol_to_c_name_address \
37008lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037009nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037010lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037011lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037012lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037013lt_prog_compiler_static \
37014lt_cv_prog_compiler_c_o \
37015need_locks \
cristyda16f162011-02-19 23:52:17 +000037016MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037017DSYMUTIL \
37018NMEDIT \
37019LIPO \
37020OTOOL \
37021OTOOL64 \
37022shrext_cmds \
37023export_dynamic_flag_spec \
37024whole_archive_flag_spec \
37025compiler_needs_object \
37026with_gnu_ld \
37027allow_undefined_flag \
37028no_undefined_flag \
37029hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037030hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037031exclude_expsyms \
37032include_expsyms \
37033file_list_spec \
37034variables_saved_for_relink \
37035libname_spec \
37036library_names_spec \
37037soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037038install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037039finish_eval \
37040old_striplib \
37041striplib \
37042compiler_lib_search_dirs \
37043predep_objects \
37044postdep_objects \
37045predeps \
37046postdeps \
37047compiler_lib_search_path \
37048LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037049reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037050compiler_CXX \
37051lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037052lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037053lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037054lt_prog_compiler_static_CXX \
37055lt_cv_prog_compiler_c_o_CXX \
37056export_dynamic_flag_spec_CXX \
37057whole_archive_flag_spec_CXX \
37058compiler_needs_object_CXX \
37059with_gnu_ld_CXX \
37060allow_undefined_flag_CXX \
37061no_undefined_flag_CXX \
37062hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037063hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037064exclude_expsyms_CXX \
37065include_expsyms_CXX \
37066file_list_spec_CXX \
37067compiler_lib_search_dirs_CXX \
37068predep_objects_CXX \
37069postdep_objects_CXX \
37070predeps_CXX \
37071postdeps_CXX \
37072compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037073 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037074 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037075 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037076 ;;
37077 *)
37078 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37079 ;;
37080 esac
37081done
37082
37083# Double-quote double-evaled strings.
37084for var in reload_cmds \
37085old_postinstall_cmds \
37086old_postuninstall_cmds \
37087old_archive_cmds \
37088extract_expsyms_cmds \
37089old_archive_from_new_cmds \
37090old_archive_from_expsyms_cmds \
37091archive_cmds \
37092archive_expsym_cmds \
37093module_cmds \
37094module_expsym_cmds \
37095export_symbols_cmds \
37096prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037097postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037098postinstall_cmds \
37099postuninstall_cmds \
37100finish_cmds \
37101sys_lib_search_path_spec \
37102sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037103reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037104old_archive_cmds_CXX \
37105old_archive_from_new_cmds_CXX \
37106old_archive_from_expsyms_cmds_CXX \
37107archive_cmds_CXX \
37108archive_expsym_cmds_CXX \
37109module_cmds_CXX \
37110module_expsym_cmds_CXX \
37111export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037112prelink_cmds_CXX \
37113postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037114 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037115 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037116 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037117 ;;
37118 *)
37119 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37120 ;;
37121 esac
37122done
37123
cristy73bd4a52010-10-05 11:24:23 +000037124ac_aux_dir='$ac_aux_dir'
37125xsi_shell='$xsi_shell'
37126lt_shell_append='$lt_shell_append'
37127
37128# See if we are running on zsh, and set the options which allow our
37129# commands through without removal of \ escapes INIT.
37130if test -n "\${ZSH_VERSION+set}" ; then
37131 setopt NO_GLOB_SUBST
37132fi
37133
37134
37135 PACKAGE='$PACKAGE'
37136 VERSION='$VERSION'
37137 TIMESTAMP='$TIMESTAMP'
37138 RM='$RM'
37139 ofile='$ofile'
37140
37141
37142
37143
37144
37145
cristy3ed852e2009-09-05 21:47:34 +000037146_ACEOF
37147
37148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37149
37150# Handling of arguments.
37151for ac_config_target in $ac_config_targets
37152do
37153 case $ac_config_target in
37154 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037155 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037156 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37157 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37158 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37159 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37160 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037161 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037162 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37163 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37164 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37165 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37166 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037167 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037168 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37169 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037170 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37171 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37172 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037173 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37174 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37175 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37176 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37177 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy0cf6da52012-08-25 00:35:24 +000037178 "tests/common.shi") CONFIG_FILES="$CONFIG_FILES tests/common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037179 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37180 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37181 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37182 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37183 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37184 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37185 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37186 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37187 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37188 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37189 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37190 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037191 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37192 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37194 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037195 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037196 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037197 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037198 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037199 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37200 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37201
cristy98dddb52010-11-04 00:30:15 +000037202 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037203 esac
37204done
37205
37206
37207# If the user did not use the arguments to specify the items to instantiate,
37208# then the envvar interface is used. Set only those that are not.
37209# We use the long form for the default assignment because of an extremely
37210# bizarre bug on SunOS 4.1.3.
37211if $ac_need_defaults; then
37212 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37213 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37214 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37215fi
37216
37217# Have a temporary directory for convenience. Make it in the build tree
37218# simply because there is no reason against having it here, and in addition,
37219# creating and moving files from /tmp can sometimes cause problems.
37220# Hook for its removal unless debugging.
37221# Note that there is a small window in which the directory will not be cleaned:
37222# after its creation but before its name has been assigned to `$tmp'.
37223$debug ||
37224{
cristyda16f162011-02-19 23:52:17 +000037225 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037226 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037227 : "${ac_tmp:=$tmp}"
37228 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037229' 0
cristy8b350f62009-11-15 23:12:43 +000037230 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037231}
37232# Create a (secure) tmp directory for tmp files.
37233
37234{
37235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037236 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037237} ||
37238{
37239 tmp=./conf$$-$RANDOM
37240 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037241} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037242ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037243
37244# Set up the scripts for CONFIG_FILES section.
37245# No need to generate them if there are no CONFIG_FILES.
37246# This happens for instance with `./config.status config.h'.
37247if test -n "$CONFIG_FILES"; then
37248
37249
cristy8b350f62009-11-15 23:12:43 +000037250ac_cr=`echo X | tr X '\015'`
37251# On cygwin, bash can eat \r inside `` if the user requested igncr.
37252# But we know of no other shell where ac_cr would be empty at this
37253# point, so we can use a bashism as a fallback.
37254if test "x$ac_cr" = x; then
37255 eval ac_cr=\$\'\\r\'
37256fi
cristy3ed852e2009-09-05 21:47:34 +000037257ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37258if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037259 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037260else
37261 ac_cs_awk_cr=$ac_cr
37262fi
37263
cristyda16f162011-02-19 23:52:17 +000037264echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037265_ACEOF
37266
37267
37268{
37269 echo "cat >conf$$subs.awk <<_ACEOF" &&
37270 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37271 echo "_ACEOF"
37272} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37274ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037275ac_delim='%!_!# '
37276for ac_last_try in false false false false false :; do
37277 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037279
37280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37281 if test $ac_delim_n = $ac_delim_num; then
37282 break
37283 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037285 else
37286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37287 fi
37288done
37289rm -f conf$$subs.sh
37290
37291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037292cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037293_ACEOF
37294sed -n '
37295h
37296s/^/S["/; s/!.*/"]=/
37297p
37298g
37299s/^[^!]*!//
37300:repl
37301t repl
37302s/'"$ac_delim"'$//
37303t delim
37304:nl
37305h
cristycd4c5312009-11-22 01:19:08 +000037306s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037307t more1
37308s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37309p
37310n
37311b repl
37312:more1
37313s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37314p
37315g
37316s/.\{148\}//
37317t nl
37318:delim
37319h
cristycd4c5312009-11-22 01:19:08 +000037320s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037321t more2
37322s/["\\]/\\&/g; s/^/"/; s/$/"/
37323p
37324b
37325:more2
37326s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37327p
37328g
37329s/.\{148\}//
37330t delim
37331' <conf$$subs.awk | sed '
37332/^[^""]/{
37333 N
37334 s/\n//
37335}
37336' >>$CONFIG_STATUS || ac_write_fail=1
37337rm -f conf$$subs.awk
37338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37339_ACAWK
cristyda16f162011-02-19 23:52:17 +000037340cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037341 for (key in S) S_is_set[key] = 1
37342 FS = ""
37343
37344}
37345{
37346 line = $ 0
37347 nfields = split(line, field, "@")
37348 substed = 0
37349 len = length(field[1])
37350 for (i = 2; i < nfields; i++) {
37351 key = field[i]
37352 keylen = length(key)
37353 if (S_is_set[key]) {
37354 value = S[key]
37355 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37356 len += length(value) + length(field[++i])
37357 substed = 1
37358 } else
37359 len += 1 + keylen
37360 }
37361
37362 print line
37363}
37364
37365_ACAWK
37366_ACEOF
37367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37368if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37369 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37370else
37371 cat
cristyda16f162011-02-19 23:52:17 +000037372fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037373 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037374_ACEOF
37375
cristy98dddb52010-11-04 00:30:15 +000037376# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37377# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037378# trailing colons and then remove the whole line if VPATH becomes empty
37379# (actually we leave an empty line to preserve line numbers).
37380if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037381 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37382h
37383s///
37384s/^/:/
37385s/[ ]*$/:/
37386s/:\$(srcdir):/:/g
37387s/:\${srcdir}:/:/g
37388s/:@srcdir@:/:/g
37389s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037390s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037391x
37392s/\(=[ ]*\).*/\1/
37393G
37394s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037395s/^[^=]*=[ ]*$//
37396}'
37397fi
37398
37399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37400fi # test -n "$CONFIG_FILES"
37401
37402# Set up the scripts for CONFIG_HEADERS section.
37403# No need to generate them if there are no CONFIG_HEADERS.
37404# This happens for instance with `./config.status Makefile'.
37405if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037406cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037407BEGIN {
37408_ACEOF
37409
37410# Transform confdefs.h into an awk script `defines.awk', embedded as
37411# here-document in config.status, that substitutes the proper values into
37412# config.h.in to produce config.h.
37413
37414# Create a delimiter string that does not exist in confdefs.h, to ease
37415# handling of long lines.
37416ac_delim='%!_!# '
37417for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037418 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37419 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037420 break
37421 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037422 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037423 else
37424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37425 fi
37426done
37427
37428# For the awk script, D is an array of macro values keyed by name,
37429# likewise P contains macro parameters if any. Preserve backslash
37430# newline sequences.
37431
37432ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37433sed -n '
37434s/.\{148\}/&'"$ac_delim"'/g
37435t rset
37436:rset
37437s/^[ ]*#[ ]*define[ ][ ]*/ /
37438t def
37439d
37440:def
37441s/\\$//
37442t bsnl
37443s/["\\]/\\&/g
37444s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37445D["\1"]=" \3"/p
37446s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37447d
37448:bsnl
37449s/["\\]/\\&/g
37450s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37451D["\1"]=" \3\\\\\\n"\\/p
37452t cont
37453s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37454t cont
37455d
37456:cont
37457n
37458s/.\{148\}/&'"$ac_delim"'/g
37459t clear
37460:clear
37461s/\\$//
37462t bsnlc
37463s/["\\]/\\&/g; s/^/"/; s/$/"/p
37464d
37465:bsnlc
37466s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37467b cont
37468' <confdefs.h | sed '
37469s/'"$ac_delim"'/"\\\
37470"/g' >>$CONFIG_STATUS || ac_write_fail=1
37471
37472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37473 for (key in D) D_is_set[key] = 1
37474 FS = ""
37475}
37476/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37477 line = \$ 0
37478 split(line, arg, " ")
37479 if (arg[1] == "#") {
37480 defundef = arg[2]
37481 mac1 = arg[3]
37482 } else {
37483 defundef = substr(arg[1], 2)
37484 mac1 = arg[2]
37485 }
37486 split(mac1, mac2, "(") #)
37487 macro = mac2[1]
37488 prefix = substr(line, 1, index(line, defundef) - 1)
37489 if (D_is_set[macro]) {
37490 # Preserve the white space surrounding the "#".
37491 print prefix "define", macro P[macro] D[macro]
37492 next
37493 } else {
37494 # Replace #undef with comments. This is necessary, for example,
37495 # in the case of _POSIX_SOURCE, which is predefined and required
37496 # on some systems where configure will not decide to define it.
37497 if (defundef == "undef") {
37498 print "/*", prefix defundef, macro, "*/"
37499 next
37500 }
37501 }
37502}
37503{ print }
37504_ACAWK
37505_ACEOF
37506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037507 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037508fi # test -n "$CONFIG_HEADERS"
37509
37510
37511eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37512shift
37513for ac_tag
37514do
37515 case $ac_tag in
37516 :[FHLC]) ac_mode=$ac_tag; continue;;
37517 esac
37518 case $ac_mode$ac_tag in
37519 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037520 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037521 :[FH]-) ac_tag=-:-;;
37522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37523 esac
37524 ac_save_IFS=$IFS
37525 IFS=:
37526 set x $ac_tag
37527 IFS=$ac_save_IFS
37528 shift
37529 ac_file=$1
37530 shift
37531
37532 case $ac_mode in
37533 :L) ac_source=$1;;
37534 :[FH])
37535 ac_file_inputs=
37536 for ac_f
37537 do
37538 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037539 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037540 *) # Look for the file first in the build tree, then in the source tree
37541 # (if the path is not absolute). The absolute path cannot be DOS-style,
37542 # because $ac_f cannot contain `:'.
37543 test -f "$ac_f" ||
37544 case $ac_f in
37545 [\\/$]*) false;;
37546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37547 esac ||
cristy98dddb52010-11-04 00:30:15 +000037548 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037549 esac
37550 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037551 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037552 done
37553
37554 # Let's still pretend it is `configure' which instantiates (i.e., don't
37555 # use $as_me), people would be surprised to read:
37556 # /* config.h. Generated by config.status. */
37557 configure_input='Generated from '`
37558 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37559 `' by configure.'
37560 if test x"$ac_file" != x-; then
37561 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037563$as_echo "$as_me: creating $ac_file" >&6;}
37564 fi
37565 # Neutralize special characters interpreted by sed in replacement strings.
37566 case $configure_input in #(
37567 *\&* | *\|* | *\\* )
37568 ac_sed_conf_input=`$as_echo "$configure_input" |
37569 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37570 *) ac_sed_conf_input=$configure_input;;
37571 esac
37572
37573 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037574 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037576 esac
37577 ;;
37578 esac
37579
37580 ac_dir=`$as_dirname -- "$ac_file" ||
37581$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37582 X"$ac_file" : 'X\(//\)[^/]' \| \
37583 X"$ac_file" : 'X\(//\)$' \| \
37584 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37585$as_echo X"$ac_file" |
37586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37587 s//\1/
37588 q
37589 }
37590 /^X\(\/\/\)[^/].*/{
37591 s//\1/
37592 q
37593 }
37594 /^X\(\/\/\)$/{
37595 s//\1/
37596 q
37597 }
37598 /^X\(\/\).*/{
37599 s//\1/
37600 q
37601 }
37602 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037603 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037604 ac_builddir=.
37605
37606case "$ac_dir" in
37607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37608*)
37609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37610 # A ".." for each directory in $ac_dir_suffix.
37611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37612 case $ac_top_builddir_sub in
37613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37615 esac ;;
37616esac
37617ac_abs_top_builddir=$ac_pwd
37618ac_abs_builddir=$ac_pwd$ac_dir_suffix
37619# for backward compatibility:
37620ac_top_builddir=$ac_top_build_prefix
37621
37622case $srcdir in
37623 .) # We are building in place.
37624 ac_srcdir=.
37625 ac_top_srcdir=$ac_top_builddir_sub
37626 ac_abs_top_srcdir=$ac_pwd ;;
37627 [\\/]* | ?:[\\/]* ) # Absolute name.
37628 ac_srcdir=$srcdir$ac_dir_suffix;
37629 ac_top_srcdir=$srcdir
37630 ac_abs_top_srcdir=$srcdir ;;
37631 *) # Relative name.
37632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37633 ac_top_srcdir=$ac_top_build_prefix$srcdir
37634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37635esac
37636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37637
37638
37639 case $ac_mode in
37640 :F)
37641 #
37642 # CONFIG_FILE
37643 #
37644
37645 case $INSTALL in
37646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37647 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37648 esac
cristy73bd4a52010-10-05 11:24:23 +000037649 ac_MKDIR_P=$MKDIR_P
37650 case $MKDIR_P in
37651 [\\/$]* | ?:[\\/]* ) ;;
37652 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37653 esac
cristy3ed852e2009-09-05 21:47:34 +000037654_ACEOF
37655
37656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37657# If the template does not know about datarootdir, expand it.
37658# FIXME: This hack should be removed a few years after 2.60.
37659ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037660ac_sed_dataroot='
37661/datarootdir/ {
37662 p
37663 q
37664}
37665/@datadir@/p
37666/@docdir@/p
37667/@infodir@/p
37668/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037669/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037670case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37671*datarootdir*) ac_datarootdir_seen=yes;;
37672*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037674$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37675_ACEOF
37676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37677 ac_datarootdir_hack='
37678 s&@datadir@&$datadir&g
37679 s&@docdir@&$docdir&g
37680 s&@infodir@&$infodir&g
37681 s&@localedir@&$localedir&g
37682 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037683 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037684esac
37685_ACEOF
37686
37687# Neutralize VPATH when `$srcdir' = `.'.
37688# Shell code in configure.ac might set extrasub.
37689# FIXME: do we really want to maintain this feature?
37690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37691ac_sed_extra="$ac_vpsub
37692$extrasub
37693_ACEOF
37694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37695:t
37696/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37697s|@configure_input@|$ac_sed_conf_input|;t t
37698s&@top_builddir@&$ac_top_builddir_sub&;t t
37699s&@top_build_prefix@&$ac_top_build_prefix&;t t
37700s&@srcdir@&$ac_srcdir&;t t
37701s&@abs_srcdir@&$ac_abs_srcdir&;t t
37702s&@top_srcdir@&$ac_top_srcdir&;t t
37703s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37704s&@builddir@&$ac_builddir&;t t
37705s&@abs_builddir@&$ac_abs_builddir&;t t
37706s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37707s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037708s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037709$ac_datarootdir_hack
37710"
cristyda16f162011-02-19 23:52:17 +000037711eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37712 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037713
37714test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037715 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37717 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037719which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037720$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037721which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037722
cristyda16f162011-02-19 23:52:17 +000037723 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037724 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037725 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37726 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037727 esac \
cristy98dddb52010-11-04 00:30:15 +000037728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037729 ;;
37730 :H)
37731 #
37732 # CONFIG_HEADER
37733 #
37734 if test x"$ac_file" != x-; then
37735 {
37736 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037737 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37738 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037740 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037741 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037742$as_echo "$as_me: $ac_file is unchanged" >&6;}
37743 else
37744 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037745 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037747 fi
37748 else
37749 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037751 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037752 fi
cristy73bd4a52010-10-05 11:24:23 +000037753# Compute "$ac_file"'s index in $config_headers.
37754_am_arg="$ac_file"
37755_am_stamp_count=1
37756for _am_header in $config_headers :; do
37757 case $_am_header in
37758 $_am_arg | $_am_arg:* )
37759 break ;;
37760 * )
37761 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37762 esac
37763done
37764echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37765$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37766 X"$_am_arg" : 'X\(//\)[^/]' \| \
37767 X"$_am_arg" : 'X\(//\)$' \| \
37768 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37769$as_echo X"$_am_arg" |
37770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37771 s//\1/
37772 q
37773 }
37774 /^X\(\/\/\)[^/].*/{
37775 s//\1/
37776 q
37777 }
37778 /^X\(\/\/\)$/{
37779 s//\1/
37780 q
37781 }
37782 /^X\(\/\).*/{
37783 s//\1/
37784 q
37785 }
37786 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037787 ;;
37788
cristy8b350f62009-11-15 23:12:43 +000037789 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037790$as_echo "$as_me: executing $ac_file commands" >&6;}
37791 ;;
37792 esac
37793
37794
37795 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037796 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037797ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37798ac_prefix_conf_PKG=`echo MagickCore`
37799ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37800ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37801ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37802if test ".$ac_prefix_conf_INP" = "."; then
37803 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37804 case "$ac_file" in
37805 *.h) ac_prefix_conf_INP=$ac_file ;;
37806 *)
37807 esac
37808 test ".$ac_prefix_conf_INP" != "." && break
37809 done
37810fi
37811if test ".$ac_prefix_conf_INP" = "."; then
37812 case "$ac_prefix_conf_OUT" in
37813 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37814 ;;
37815 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37816 ;;
37817 *) ac_prefix_conf_INP=config.h
37818 ;;
37819 esac
37820fi
37821if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037822 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037823else
37824 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37825 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37826 fi fi
37827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37828$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37829 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037830 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37831 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37832 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37833 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37834 $as_echo "#endif/" >> conftest.prefix
37835 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37836 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37837 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037838 # now executing _script on _DEF input to create _OUT output file
37839 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37840 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37841 echo ' ' >>$tmp/pconfig.h
37842 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37843
37844 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37845 echo ' ' >>$tmp/pconfig.h
37846 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37847 echo "#endif" >>$tmp/pconfig.h
37848 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37850$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37851 else
37852 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37853$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37854 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37855 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37856 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37857$as_echo X"$ac_prefix_conf_OUT" |
37858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37859 s//\1/
37860 q
37861 }
37862 /^X\(\/\/\)[^/].*/{
37863 s//\1/
37864 q
37865 }
37866 /^X\(\/\/\)$/{
37867 s//\1/
37868 q
37869 }
37870 /^X\(\/\).*/{
37871 s//\1/
37872 q
37873 }
37874 s/.*/./; q'`
37875 as_dir="$ac_dir"; as_fn_mkdir_p
37876 rm -f "$ac_prefix_conf_OUT"
37877 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37878 fi
37879 cp conftest.prefix _configs.sed
37880 else
cristy98dddb52010-11-04 00:30:15 +000037881 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 +000037882 fi
37883 rm -f conftest.*
37884fi
37885 ;;
37886 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37887 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37888 # are listed without --file. Let's play safe and only enable the eval
37889 # if we detect the quoting.
37890 case $CONFIG_FILES in
37891 *\'*) eval set x "$CONFIG_FILES" ;;
37892 *) set x $CONFIG_FILES ;;
37893 esac
37894 shift
37895 for mf
37896 do
37897 # Strip MF so we end up with the name of the file.
37898 mf=`echo "$mf" | sed -e 's/:.*$//'`
37899 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037900 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037901 # some people rename them; so instead we look at the file content.
37902 # Grep'ing the first line is not enough: some people post-process
37903 # each Makefile.in and add a new line on top of each file to say so.
37904 # Grep'ing the whole file is not good either: AIX grep has a line
37905 # limit of 2048, but all sed's we know have understand at least 4000.
37906 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37907 dirpart=`$as_dirname -- "$mf" ||
37908$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37909 X"$mf" : 'X\(//\)[^/]' \| \
37910 X"$mf" : 'X\(//\)$' \| \
37911 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37912$as_echo X"$mf" |
37913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37914 s//\1/
37915 q
37916 }
37917 /^X\(\/\/\)[^/].*/{
37918 s//\1/
37919 q
37920 }
37921 /^X\(\/\/\)$/{
37922 s//\1/
37923 q
37924 }
37925 /^X\(\/\).*/{
37926 s//\1/
37927 q
37928 }
37929 s/.*/./; q'`
37930 else
37931 continue
37932 fi
37933 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037934 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037935 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37936 test -z "$DEPDIR" && continue
37937 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37938 test -z "am__include" && continue
37939 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037940 # Find all dependency output files, they are included files with
37941 # $(DEPDIR) in their names. We invoke sed twice because it is the
37942 # simplest approach to changing $(DEPDIR) to its actual value in the
37943 # expansion.
37944 for file in `sed -n "
37945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037947 # Make sure the directory exists.
37948 test -f "$dirpart/$file" && continue
37949 fdir=`$as_dirname -- "$file" ||
37950$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37951 X"$file" : 'X\(//\)[^/]' \| \
37952 X"$file" : 'X\(//\)$' \| \
37953 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37954$as_echo X"$file" |
37955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37956 s//\1/
37957 q
37958 }
37959 /^X\(\/\/\)[^/].*/{
37960 s//\1/
37961 q
37962 }
37963 /^X\(\/\/\)$/{
37964 s//\1/
37965 q
37966 }
37967 /^X\(\/\).*/{
37968 s//\1/
37969 q
37970 }
37971 s/.*/./; q'`
37972 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37973 # echo "creating $dirpart/$file"
37974 echo '# dummy' > "$dirpart/$file"
37975 done
37976 done
37977}
37978 ;;
37979 "libtool":C)
37980
37981 # See if we are running on zsh, and set the options which allow our
37982 # commands through without removal of \ escapes.
37983 if test -n "${ZSH_VERSION+set}" ; then
37984 setopt NO_GLOB_SUBST
37985 fi
37986
37987 cfgfile="${ofile}T"
37988 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37989 $RM "$cfgfile"
37990
37991 cat <<_LT_EOF >> "$cfgfile"
37992#! $SHELL
37993
37994# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37995# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37996# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37997# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37998#
37999# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038000# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38001# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038002# Written by Gordon Matzigkeit, 1996
38003#
38004# This file is part of GNU Libtool.
38005#
38006# GNU Libtool is free software; you can redistribute it and/or
38007# modify it under the terms of the GNU General Public License as
38008# published by the Free Software Foundation; either version 2 of
38009# the License, or (at your option) any later version.
38010#
38011# As a special exception to the GNU General Public License,
38012# if you distribute this file as part of a program or library that
38013# is built using GNU Libtool, you may include this file under the
38014# same distribution terms that you use for the rest of that program.
38015#
38016# GNU Libtool is distributed in the hope that it will be useful,
38017# but WITHOUT ANY WARRANTY; without even the implied warranty of
38018# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38019# GNU General Public License for more details.
38020#
38021# You should have received a copy of the GNU General Public License
38022# along with GNU Libtool; see the file COPYING. If not, a copy
38023# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38024# obtained by writing to the Free Software Foundation, Inc.,
38025# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38026
38027
38028# The names of the tagged configurations supported by this script.
38029available_tags="CXX "
38030
38031# ### BEGIN LIBTOOL CONFIG
38032
38033# A sed program that does not truncate output.
38034SED=$lt_SED
38035
38036# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38037Xsed="\$SED -e 1s/^X//"
38038
38039# A grep program that handles long lines.
38040GREP=$lt_GREP
38041
38042# An ERE matcher.
38043EGREP=$lt_EGREP
38044
38045# A literal string matcher.
38046FGREP=$lt_FGREP
38047
cristy0c60a692010-11-04 01:09:47 +000038048# Shell to use when invoking shell scripts.
38049SHELL=$lt_SHELL
38050
38051# An echo program that protects backslashes.
38052ECHO=$lt_ECHO
38053
cristy73bd4a52010-10-05 11:24:23 +000038054# Which release of libtool.m4 was used?
38055macro_version=$macro_version
38056macro_revision=$macro_revision
38057
38058# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038059AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038060
38061# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038062DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038063
38064# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038065OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038066
38067# Whether or not to build shared libraries.
38068build_libtool_libs=$enable_shared
38069
38070# Whether or not to build static libraries.
38071build_old_libs=$enable_static
38072
38073# What type of objects to build.
38074pic_mode=$pic_mode
38075
38076# Whether or not to optimize for fast installation.
38077fast_install=$enable_fast_install
38078
cristy99bd5232011-12-07 14:38:20 +000038079# The PATH separator for the build system.
38080PATH_SEPARATOR=$lt_PATH_SEPARATOR
38081
cristy73bd4a52010-10-05 11:24:23 +000038082# The host system.
38083host_alias=$host_alias
38084host=$host
38085host_os=$host_os
38086
38087# The build system.
38088build_alias=$build_alias
38089build=$build
38090build_os=$build_os
38091
38092# A BSD- or MS-compatible name lister.
38093NM=$lt_NM
38094
38095# Whether we need soft or hard links.
38096LN_S=$lt_LN_S
38097
38098# What is the maximum length of a command?
38099max_cmd_len=$max_cmd_len
38100
38101# Object file suffix (normally "o").
38102objext=$ac_objext
38103
38104# Executable file suffix (normally "").
38105exeext=$exeext
38106
38107# whether the shell understands "unset".
38108lt_unset=$lt_unset
38109
38110# turn spaces into newlines.
38111SP2NL=$lt_lt_SP2NL
38112
38113# turn newlines into spaces.
38114NL2SP=$lt_lt_NL2SP
38115
cristyda16f162011-02-19 23:52:17 +000038116# convert \$build file names to \$host format.
38117to_host_file_cmd=$lt_cv_to_host_file_cmd
38118
38119# convert \$build files to toolchain format.
38120to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38121
cristy73bd4a52010-10-05 11:24:23 +000038122# Method to check whether dependent libraries are shared objects.
38123deplibs_check_method=$lt_deplibs_check_method
38124
cristyda16f162011-02-19 23:52:17 +000038125# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038126file_magic_cmd=$lt_file_magic_cmd
38127
cristyda16f162011-02-19 23:52:17 +000038128# How to find potential files when deplibs_check_method = "file_magic".
38129file_magic_glob=$lt_file_magic_glob
38130
38131# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38132want_nocaseglob=$lt_want_nocaseglob
38133
38134# Command to associate shared and link libraries.
38135sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38136
cristy73bd4a52010-10-05 11:24:23 +000038137# The archiver.
38138AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038139
38140# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038141AR_FLAGS=$lt_AR_FLAGS
38142
cristyda16f162011-02-19 23:52:17 +000038143# How to feed a file listing to the archiver.
38144archiver_list_spec=$lt_archiver_list_spec
38145
cristy73bd4a52010-10-05 11:24:23 +000038146# A symbol stripping program.
38147STRIP=$lt_STRIP
38148
38149# Commands used to install an old-style archive.
38150RANLIB=$lt_RANLIB
38151old_postinstall_cmds=$lt_old_postinstall_cmds
38152old_postuninstall_cmds=$lt_old_postuninstall_cmds
38153
cristy0c60a692010-11-04 01:09:47 +000038154# Whether to use a lock for old archive extraction.
38155lock_old_archive_extraction=$lock_old_archive_extraction
38156
cristy73bd4a52010-10-05 11:24:23 +000038157# A C compiler.
38158LTCC=$lt_CC
38159
38160# LTCC compiler flags.
38161LTCFLAGS=$lt_CFLAGS
38162
38163# Take the output of nm and produce a listing of raw symbols and C names.
38164global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38165
38166# Transform the output of nm in a proper C declaration.
38167global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38168
38169# Transform the output of nm in a C name address pair.
38170global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38171
38172# Transform the output of nm in a C name address pair when lib prefix is needed.
38173global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38174
cristyda16f162011-02-19 23:52:17 +000038175# Specify filename containing input files for \$NM.
38176nm_file_list_spec=$lt_nm_file_list_spec
38177
38178# The root where to search for dependent libraries,and in which our libraries should be installed.
38179lt_sysroot=$lt_sysroot
38180
cristy73bd4a52010-10-05 11:24:23 +000038181# The name of the directory that contains temporary libtool files.
38182objdir=$objdir
38183
cristy73bd4a52010-10-05 11:24:23 +000038184# Used to examine libraries when file_magic_cmd begins with "file".
38185MAGIC_CMD=$MAGIC_CMD
38186
38187# Must we lock files when doing compilation?
38188need_locks=$lt_need_locks
38189
cristyda16f162011-02-19 23:52:17 +000038190# Manifest tool.
38191MANIFEST_TOOL=$lt_MANIFEST_TOOL
38192
cristy73bd4a52010-10-05 11:24:23 +000038193# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38194DSYMUTIL=$lt_DSYMUTIL
38195
38196# Tool to change global to local symbols on Mac OS X.
38197NMEDIT=$lt_NMEDIT
38198
38199# Tool to manipulate fat objects and archives on Mac OS X.
38200LIPO=$lt_LIPO
38201
38202# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38203OTOOL=$lt_OTOOL
38204
38205# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38206OTOOL64=$lt_OTOOL64
38207
38208# Old archive suffix (normally "a").
38209libext=$libext
38210
38211# Shared library suffix (normally ".so").
38212shrext_cmds=$lt_shrext_cmds
38213
38214# The commands to extract the exported symbol list from a shared archive.
38215extract_expsyms_cmds=$lt_extract_expsyms_cmds
38216
38217# Variables whose values should be saved in libtool wrapper scripts and
38218# restored at link time.
38219variables_saved_for_relink=$lt_variables_saved_for_relink
38220
38221# Do we need the "lib" prefix for modules?
38222need_lib_prefix=$need_lib_prefix
38223
38224# Do we need a version for libraries?
38225need_version=$need_version
38226
38227# Library versioning type.
38228version_type=$version_type
38229
38230# Shared library runtime path variable.
38231runpath_var=$runpath_var
38232
38233# Shared library path variable.
38234shlibpath_var=$shlibpath_var
38235
38236# Is shlibpath searched before the hard-coded library search path?
38237shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38238
38239# Format of library name prefix.
38240libname_spec=$lt_libname_spec
38241
38242# List of archive names. First name is the real one, the rest are links.
38243# The last name is the one that the linker finds with -lNAME
38244library_names_spec=$lt_library_names_spec
38245
38246# The coded name of the library, if different from the real name.
38247soname_spec=$lt_soname_spec
38248
cristy0c60a692010-11-04 01:09:47 +000038249# Permission mode override for installation of shared libraries.
38250install_override_mode=$lt_install_override_mode
38251
cristy73bd4a52010-10-05 11:24:23 +000038252# Command to use after installation of a shared archive.
38253postinstall_cmds=$lt_postinstall_cmds
38254
38255# Command to use after uninstallation of a shared archive.
38256postuninstall_cmds=$lt_postuninstall_cmds
38257
38258# Commands used to finish a libtool library installation in a directory.
38259finish_cmds=$lt_finish_cmds
38260
38261# As "finish_cmds", except a single script fragment to be evaled but
38262# not shown.
38263finish_eval=$lt_finish_eval
38264
38265# Whether we should hardcode library paths into libraries.
38266hardcode_into_libs=$hardcode_into_libs
38267
38268# Compile-time system search path for libraries.
38269sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38270
38271# Run-time system search path for libraries.
38272sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38273
38274# Whether dlopen is supported.
38275dlopen_support=$enable_dlopen
38276
38277# Whether dlopen of programs is supported.
38278dlopen_self=$enable_dlopen_self
38279
38280# Whether dlopen of statically linked programs is supported.
38281dlopen_self_static=$enable_dlopen_self_static
38282
38283# Commands to strip libraries.
38284old_striplib=$lt_old_striplib
38285striplib=$lt_striplib
38286
38287
38288# The linker used to build libraries.
38289LD=$lt_LD
38290
cristy0c60a692010-11-04 01:09:47 +000038291# How to create reloadable object files.
38292reload_flag=$lt_reload_flag
38293reload_cmds=$lt_reload_cmds
38294
cristy73bd4a52010-10-05 11:24:23 +000038295# Commands used to build an old-style archive.
38296old_archive_cmds=$lt_old_archive_cmds
38297
38298# A language specific compiler.
38299CC=$lt_compiler
38300
38301# Is the compiler the GNU compiler?
38302with_gcc=$GCC
38303
38304# Compiler flag to turn off builtin functions.
38305no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38306
cristy73bd4a52010-10-05 11:24:23 +000038307# Additional compiler flags for building library objects.
38308pic_flag=$lt_lt_prog_compiler_pic
38309
cristyda16f162011-02-19 23:52:17 +000038310# How to pass a linker flag through the compiler.
38311wl=$lt_lt_prog_compiler_wl
38312
cristy73bd4a52010-10-05 11:24:23 +000038313# Compiler flag to prevent dynamic linking.
38314link_static_flag=$lt_lt_prog_compiler_static
38315
38316# Does compiler simultaneously support -c and -o options?
38317compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38318
38319# Whether or not to add -lc for building shared libraries.
38320build_libtool_need_lc=$archive_cmds_need_lc
38321
38322# Whether or not to disallow shared libs when runtime libs are static.
38323allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38324
38325# Compiler flag to allow reflexive dlopens.
38326export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38327
38328# Compiler flag to generate shared objects directly from archives.
38329whole_archive_flag_spec=$lt_whole_archive_flag_spec
38330
38331# Whether the compiler copes with passing no objects directly.
38332compiler_needs_object=$lt_compiler_needs_object
38333
38334# Create an old-style archive from a shared archive.
38335old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38336
38337# Create a temporary old-style archive to link instead of a shared archive.
38338old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38339
38340# Commands used to build a shared archive.
38341archive_cmds=$lt_archive_cmds
38342archive_expsym_cmds=$lt_archive_expsym_cmds
38343
38344# Commands used to build a loadable module if different from building
38345# a shared archive.
38346module_cmds=$lt_module_cmds
38347module_expsym_cmds=$lt_module_expsym_cmds
38348
38349# Whether we are building with GNU ld or not.
38350with_gnu_ld=$lt_with_gnu_ld
38351
38352# Flag that allows shared libraries with undefined symbols to be built.
38353allow_undefined_flag=$lt_allow_undefined_flag
38354
38355# Flag that enforces no undefined symbols.
38356no_undefined_flag=$lt_no_undefined_flag
38357
38358# Flag to hardcode \$libdir into a binary during linking.
38359# This must work even if \$libdir does not exist
38360hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38361
cristy73bd4a52010-10-05 11:24:23 +000038362# Whether we need a single "-rpath" flag with a separated argument.
38363hardcode_libdir_separator=$lt_hardcode_libdir_separator
38364
38365# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38366# DIR into the resulting binary.
38367hardcode_direct=$hardcode_direct
38368
38369# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38370# DIR into the resulting binary and the resulting library dependency is
38371# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38372# library is relocated.
38373hardcode_direct_absolute=$hardcode_direct_absolute
38374
38375# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38376# into the resulting binary.
38377hardcode_minus_L=$hardcode_minus_L
38378
38379# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38380# into the resulting binary.
38381hardcode_shlibpath_var=$hardcode_shlibpath_var
38382
38383# Set to "yes" if building a shared library automatically hardcodes DIR
38384# into the library and all subsequent libraries and executables linked
38385# against it.
38386hardcode_automatic=$hardcode_automatic
38387
38388# Set to yes if linker adds runtime paths of dependent libraries
38389# to runtime path list.
38390inherit_rpath=$inherit_rpath
38391
38392# Whether libtool must link a program against all its dependency libraries.
38393link_all_deplibs=$link_all_deplibs
38394
cristy73bd4a52010-10-05 11:24:23 +000038395# Set to "yes" if exported symbols are required.
38396always_export_symbols=$always_export_symbols
38397
38398# The commands to list exported symbols.
38399export_symbols_cmds=$lt_export_symbols_cmds
38400
38401# Symbols that should not be listed in the preloaded symbols.
38402exclude_expsyms=$lt_exclude_expsyms
38403
38404# Symbols that must always be exported.
38405include_expsyms=$lt_include_expsyms
38406
38407# Commands necessary for linking programs (against libraries) with templates.
38408prelink_cmds=$lt_prelink_cmds
38409
cristyda16f162011-02-19 23:52:17 +000038410# Commands necessary for finishing linking programs.
38411postlink_cmds=$lt_postlink_cmds
38412
cristy73bd4a52010-10-05 11:24:23 +000038413# Specify filename containing input files.
38414file_list_spec=$lt_file_list_spec
38415
38416# How to hardcode a shared library path into an executable.
38417hardcode_action=$hardcode_action
38418
38419# The directories searched by this compiler when creating a shared library.
38420compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38421
38422# Dependencies to place before and after the objects being linked to
38423# create a shared library.
38424predep_objects=$lt_predep_objects
38425postdep_objects=$lt_postdep_objects
38426predeps=$lt_predeps
38427postdeps=$lt_postdeps
38428
38429# The library search path used internally by the compiler when linking
38430# a shared library.
38431compiler_lib_search_path=$lt_compiler_lib_search_path
38432
38433# ### END LIBTOOL CONFIG
38434
38435_LT_EOF
38436
38437 case $host_os in
38438 aix3*)
38439 cat <<\_LT_EOF >> "$cfgfile"
38440# AIX sometimes has problems with the GCC collect2 program. For some
38441# reason, if we set the COLLECT_NAMES environment variable, the problems
38442# vanish in a puff of smoke.
38443if test "X${COLLECT_NAMES+set}" != Xset; then
38444 COLLECT_NAMES=
38445 export COLLECT_NAMES
38446fi
38447_LT_EOF
38448 ;;
38449 esac
38450
38451
38452ltmain="$ac_aux_dir/ltmain.sh"
38453
38454
38455 # We use sed instead of cat because bash on DJGPP gets confused if
38456 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38457 # text mode, it properly converts lines to CR/LF. This bash problem
38458 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038459 sed '$q' "$ltmain" >> "$cfgfile" \
38460 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038461
cristyda16f162011-02-19 23:52:17 +000038462 if test x"$xsi_shell" = xyes; then
38463 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38464func_dirname ()\
38465{\
38466\ case ${1} in\
38467\ */*) func_dirname_result="${1%/*}${2}" ;;\
38468\ * ) func_dirname_result="${3}" ;;\
38469\ esac\
38470} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38471 && mv -f "$cfgfile.tmp" "$cfgfile" \
38472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38473test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038474
38475
cristyda16f162011-02-19 23:52:17 +000038476 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38477func_basename ()\
38478{\
38479\ func_basename_result="${1##*/}"\
38480} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38481 && mv -f "$cfgfile.tmp" "$cfgfile" \
38482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38483test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038484
38485
cristyda16f162011-02-19 23:52:17 +000038486 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38487func_dirname_and_basename ()\
38488{\
38489\ case ${1} in\
38490\ */*) func_dirname_result="${1%/*}${2}" ;;\
38491\ * ) func_dirname_result="${3}" ;;\
38492\ esac\
38493\ func_basename_result="${1##*/}"\
38494} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38495 && mv -f "$cfgfile.tmp" "$cfgfile" \
38496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38497test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038498
cristyda16f162011-02-19 23:52:17 +000038499
38500 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38501func_stripname ()\
38502{\
38503\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38504\ # positional parameters, so assign one to ordinary parameter first.\
38505\ func_stripname_result=${3}\
38506\ func_stripname_result=${func_stripname_result#"${1}"}\
38507\ func_stripname_result=${func_stripname_result%"${2}"}\
38508} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38509 && mv -f "$cfgfile.tmp" "$cfgfile" \
38510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38511test 0 -eq $? || _lt_function_replace_fail=:
38512
38513
38514 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38515func_split_long_opt ()\
38516{\
38517\ func_split_long_opt_name=${1%%=*}\
38518\ func_split_long_opt_arg=${1#*=}\
38519} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38520 && mv -f "$cfgfile.tmp" "$cfgfile" \
38521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38522test 0 -eq $? || _lt_function_replace_fail=:
38523
38524
38525 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38526func_split_short_opt ()\
38527{\
38528\ func_split_short_opt_arg=${1#??}\
38529\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38530} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38531 && mv -f "$cfgfile.tmp" "$cfgfile" \
38532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38533test 0 -eq $? || _lt_function_replace_fail=:
38534
38535
38536 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38537func_lo2o ()\
38538{\
38539\ case ${1} in\
38540\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38541\ *) func_lo2o_result=${1} ;;\
38542\ esac\
38543} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38544 && mv -f "$cfgfile.tmp" "$cfgfile" \
38545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38546test 0 -eq $? || _lt_function_replace_fail=:
38547
38548
38549 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38550func_xform ()\
38551{\
38552 func_xform_result=${1%.*}.lo\
38553} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38554 && mv -f "$cfgfile.tmp" "$cfgfile" \
38555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38556test 0 -eq $? || _lt_function_replace_fail=:
38557
38558
38559 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38560func_arith ()\
38561{\
38562 func_arith_result=$(( $* ))\
38563} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38564 && mv -f "$cfgfile.tmp" "$cfgfile" \
38565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38566test 0 -eq $? || _lt_function_replace_fail=:
38567
38568
38569 sed -e '/^func_len ()$/,/^} # func_len /c\
38570func_len ()\
38571{\
38572 func_len_result=${#1}\
38573} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38574 && mv -f "$cfgfile.tmp" "$cfgfile" \
38575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38576test 0 -eq $? || _lt_function_replace_fail=:
38577
38578fi
38579
38580if test x"$lt_shell_append" = xyes; then
38581 sed -e '/^func_append ()$/,/^} # func_append /c\
38582func_append ()\
38583{\
38584 eval "${1}+=\\${2}"\
38585} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38586 && mv -f "$cfgfile.tmp" "$cfgfile" \
38587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38588test 0 -eq $? || _lt_function_replace_fail=:
38589
38590
38591 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38592func_append_quoted ()\
38593{\
38594\ func_quote_for_eval "${2}"\
38595\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38596} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38597 && mv -f "$cfgfile.tmp" "$cfgfile" \
38598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38599test 0 -eq $? || _lt_function_replace_fail=:
38600
38601
38602 # Save a `func_append' function call where possible by direct use of '+='
38603 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38604 && mv -f "$cfgfile.tmp" "$cfgfile" \
38605 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38606 test 0 -eq $? || _lt_function_replace_fail=:
38607else
38608 # Save a `func_append' function call even when '+=' is not available
38609 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38610 && mv -f "$cfgfile.tmp" "$cfgfile" \
38611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38612 test 0 -eq $? || _lt_function_replace_fail=:
38613fi
38614
38615if test x"$_lt_function_replace_fail" = x":"; then
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38617$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38618fi
38619
38620
38621 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038622 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38623 chmod +x "$ofile"
38624
38625
38626 cat <<_LT_EOF >> "$ofile"
38627
38628# ### BEGIN LIBTOOL TAG CONFIG: CXX
38629
38630# The linker used to build libraries.
38631LD=$lt_LD_CXX
38632
cristy0c60a692010-11-04 01:09:47 +000038633# How to create reloadable object files.
38634reload_flag=$lt_reload_flag_CXX
38635reload_cmds=$lt_reload_cmds_CXX
38636
cristy73bd4a52010-10-05 11:24:23 +000038637# Commands used to build an old-style archive.
38638old_archive_cmds=$lt_old_archive_cmds_CXX
38639
38640# A language specific compiler.
38641CC=$lt_compiler_CXX
38642
38643# Is the compiler the GNU compiler?
38644with_gcc=$GCC_CXX
38645
38646# Compiler flag to turn off builtin functions.
38647no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38648
cristy73bd4a52010-10-05 11:24:23 +000038649# Additional compiler flags for building library objects.
38650pic_flag=$lt_lt_prog_compiler_pic_CXX
38651
cristyda16f162011-02-19 23:52:17 +000038652# How to pass a linker flag through the compiler.
38653wl=$lt_lt_prog_compiler_wl_CXX
38654
cristy73bd4a52010-10-05 11:24:23 +000038655# Compiler flag to prevent dynamic linking.
38656link_static_flag=$lt_lt_prog_compiler_static_CXX
38657
38658# Does compiler simultaneously support -c and -o options?
38659compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38660
38661# Whether or not to add -lc for building shared libraries.
38662build_libtool_need_lc=$archive_cmds_need_lc_CXX
38663
38664# Whether or not to disallow shared libs when runtime libs are static.
38665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38666
38667# Compiler flag to allow reflexive dlopens.
38668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38669
38670# Compiler flag to generate shared objects directly from archives.
38671whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38672
38673# Whether the compiler copes with passing no objects directly.
38674compiler_needs_object=$lt_compiler_needs_object_CXX
38675
38676# Create an old-style archive from a shared archive.
38677old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38678
38679# Create a temporary old-style archive to link instead of a shared archive.
38680old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38681
38682# Commands used to build a shared archive.
38683archive_cmds=$lt_archive_cmds_CXX
38684archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38685
38686# Commands used to build a loadable module if different from building
38687# a shared archive.
38688module_cmds=$lt_module_cmds_CXX
38689module_expsym_cmds=$lt_module_expsym_cmds_CXX
38690
38691# Whether we are building with GNU ld or not.
38692with_gnu_ld=$lt_with_gnu_ld_CXX
38693
38694# Flag that allows shared libraries with undefined symbols to be built.
38695allow_undefined_flag=$lt_allow_undefined_flag_CXX
38696
38697# Flag that enforces no undefined symbols.
38698no_undefined_flag=$lt_no_undefined_flag_CXX
38699
38700# Flag to hardcode \$libdir into a binary during linking.
38701# This must work even if \$libdir does not exist
38702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38703
cristy73bd4a52010-10-05 11:24:23 +000038704# Whether we need a single "-rpath" flag with a separated argument.
38705hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38706
38707# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38708# DIR into the resulting binary.
38709hardcode_direct=$hardcode_direct_CXX
38710
38711# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38712# DIR into the resulting binary and the resulting library dependency is
38713# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38714# library is relocated.
38715hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38716
38717# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38718# into the resulting binary.
38719hardcode_minus_L=$hardcode_minus_L_CXX
38720
38721# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38722# into the resulting binary.
38723hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38724
38725# Set to "yes" if building a shared library automatically hardcodes DIR
38726# into the library and all subsequent libraries and executables linked
38727# against it.
38728hardcode_automatic=$hardcode_automatic_CXX
38729
38730# Set to yes if linker adds runtime paths of dependent libraries
38731# to runtime path list.
38732inherit_rpath=$inherit_rpath_CXX
38733
38734# Whether libtool must link a program against all its dependency libraries.
38735link_all_deplibs=$link_all_deplibs_CXX
38736
cristy73bd4a52010-10-05 11:24:23 +000038737# Set to "yes" if exported symbols are required.
38738always_export_symbols=$always_export_symbols_CXX
38739
38740# The commands to list exported symbols.
38741export_symbols_cmds=$lt_export_symbols_cmds_CXX
38742
38743# Symbols that should not be listed in the preloaded symbols.
38744exclude_expsyms=$lt_exclude_expsyms_CXX
38745
38746# Symbols that must always be exported.
38747include_expsyms=$lt_include_expsyms_CXX
38748
38749# Commands necessary for linking programs (against libraries) with templates.
38750prelink_cmds=$lt_prelink_cmds_CXX
38751
cristyda16f162011-02-19 23:52:17 +000038752# Commands necessary for finishing linking programs.
38753postlink_cmds=$lt_postlink_cmds_CXX
38754
cristy73bd4a52010-10-05 11:24:23 +000038755# Specify filename containing input files.
38756file_list_spec=$lt_file_list_spec_CXX
38757
38758# How to hardcode a shared library path into an executable.
38759hardcode_action=$hardcode_action_CXX
38760
38761# The directories searched by this compiler when creating a shared library.
38762compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38763
38764# Dependencies to place before and after the objects being linked to
38765# create a shared library.
38766predep_objects=$lt_predep_objects_CXX
38767postdep_objects=$lt_postdep_objects_CXX
38768predeps=$lt_predeps_CXX
38769postdeps=$lt_postdeps_CXX
38770
38771# The library search path used internally by the compiler when linking
38772# a shared library.
38773compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38774
38775# ### END LIBTOOL TAG CONFIG: CXX
38776_LT_EOF
38777
38778 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038779 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038780 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038781 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038782 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38783 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38784
38785 esac
38786done # for ac_tag
38787
38788
cristy8b350f62009-11-15 23:12:43 +000038789as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038790_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038791ac_clean_files=$ac_clean_files_save
38792
38793test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038794 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038795
38796
38797# configure is writing to config.log, and then calls config.status.
38798# config.status does its own redirection, appending to config.log.
38799# Unfortunately, on DOS this fails, as config.log is still kept open
38800# by configure, so config.status won't be able to write to it; its
38801# output is simply discarded. So we exec the FD to /dev/null,
38802# effectively closing config.log, so it can be properly (re)opened and
38803# appended to by config.status. When coming back to configure, we
38804# need to make the FD available again.
38805if test "$no_create" != yes; then
38806 ac_cs_success=:
38807 ac_config_status_args=
38808 test "$silent" = yes &&
38809 ac_config_status_args="$ac_config_status_args --quiet"
38810 exec 5>/dev/null
38811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38812 exec 5>>config.log
38813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38814 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038815 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038816fi
38817if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038819$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38820fi
38821
38822
38823rm -f magick-version
38824
cristy430a7312010-01-21 20:44:04 +000038825result_dejavu_font_dir='none'
38826if test "${dejavu_font_dir}x" != 'x'; then
38827 result_dejavu_font_dir=$dejavu_font_dir
38828fi
38829
cristy3ed852e2009-09-05 21:47:34 +000038830result_ghostscript_font_dir='none'
38831if test "${ghostscript_font_dir}x" != 'x'; then
38832 result_ghostscript_font_dir=$ghostscript_font_dir
38833fi
38834
38835result_windows_font_dir='none'
38836if test "${windows_font_dir}x" != 'x'; then
38837 result_windows_font_dir=${windows_font_dir}
38838fi
38839
cristy09b53e12011-10-14 12:47:22 +000038840{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038841ImageMagick is configured as follows. Please verify that this configuration
38842matches your expectations.
38843
38844Host system type: $host
38845Build system type: $build
38846
38847 Option Value
38848-------------------------------------------------------------------------------
38849Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38850Static libraries --enable-static=$enable_static $libtool_build_static_libs
38851Module support --with-modules=$with_modules $with_modules
38852GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38853Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38854High Dynamic Range Imagery
38855 --enable-hdri=$enable_hdri $enable_hdri
38856
38857Delegate Configuration:
38858BZLIB --with-bzlib=$with_bzlib $have_bzlib
38859Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038860Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038861DJVU --with-djvu=$with_djvu $have_djvu
38862DPS --with-dps=$with_dps $have_dps
38863FFTW --with-fftw=$with_fftw $have_fftw
38864FlashPIX --with-fpx=$with_fpx $have_fpx
38865FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38866FreeType --with-freetype=$with_freetype $have_freetype
38867GhostPCL None $PCLDelegate ($PCLVersion)
38868GhostXPS None $XPSDelegate ($XPSVersion)
38869Ghostscript None $PSDelegate ($GSVersion)
38870Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38871Ghostscript lib --with-gslib=$with_gslib $have_gslib
38872Graphviz --with-gvc=$with_gvc $have_gvc
38873JBIG --with-jbig=$with_jbig $have_jbig
38874JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38875JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038876LCMS v1 --with-lcms=$with_lcms $have_lcms
38877LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038878LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038879LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038880Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38881OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038882PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038883PERL --with-perl=$with_perl $have_perl
38884PNG --with-png=$with_png $have_png
38885RSVG --with-rsvg=$with_rsvg $have_rsvg
38886TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038887WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038888Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38889WMF --with-wmf=$with_wmf $have_wmf
38890X11 --with-x=$with_x $have_x
38891XML --with-xml=$with_xml $have_xml
38892ZLIB --with-zlib=$with_zlib $have_zlib
38893
38894X11 Configuration:
38895 X_CFLAGS = $X_CFLAGS
38896 X_PRE_LIBS = $X_PRE_LIBS
38897 X_LIBS = $X_LIBS
38898 X_EXTRA_LIBS = $X_EXTRA_LIBS
38899
38900Options used to compile and link:
38901 PREFIX = $PREFIX_DIR
38902 EXEC-PREFIX = $EXEC_PREFIX_DIR
38903 VERSION = $PACKAGE_VERSION
38904 CC = $CC
38905 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038906 CPPFLAGS = $MAGICK_CPPFLAGS
38907 PCFLAGS = $MAGICK_PCFLAGS
38908 DEFS = $DEFS
38909 LDFLAGS = $LDFLAGS
38910 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38911 LIBS = $MAGICK_LIBS
38912 CXX = $CXX
38913 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038914 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038915" >&5
cristy09b53e12011-10-14 12:47:22 +000038916$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038917ImageMagick is configured as follows. Please verify that this configuration
38918matches your expectations.
38919
38920Host system type: $host
38921Build system type: $build
38922
38923 Option Value
38924-------------------------------------------------------------------------------
38925Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38926Static libraries --enable-static=$enable_static $libtool_build_static_libs
38927Module support --with-modules=$with_modules $with_modules
38928GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38929Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38930High Dynamic Range Imagery
38931 --enable-hdri=$enable_hdri $enable_hdri
38932
38933Delegate Configuration:
38934BZLIB --with-bzlib=$with_bzlib $have_bzlib
38935Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038936Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038937DJVU --with-djvu=$with_djvu $have_djvu
38938DPS --with-dps=$with_dps $have_dps
38939FFTW --with-fftw=$with_fftw $have_fftw
38940FlashPIX --with-fpx=$with_fpx $have_fpx
38941FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38942FreeType --with-freetype=$with_freetype $have_freetype
38943GhostPCL None $PCLDelegate ($PCLVersion)
38944GhostXPS None $XPSDelegate ($XPSVersion)
38945Ghostscript None $PSDelegate ($GSVersion)
38946Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38947Ghostscript lib --with-gslib=$with_gslib $have_gslib
38948Graphviz --with-gvc=$with_gvc $have_gvc
38949JBIG --with-jbig=$with_jbig $have_jbig
38950JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38951JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038952LCMS v1 --with-lcms=$with_lcms $have_lcms
38953LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038954LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038955LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038956Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38957OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038958PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038959PERL --with-perl=$with_perl $have_perl
38960PNG --with-png=$with_png $have_png
38961RSVG --with-rsvg=$with_rsvg $have_rsvg
38962TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038963WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038964Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38965WMF --with-wmf=$with_wmf $have_wmf
38966X11 --with-x=$with_x $have_x
38967XML --with-xml=$with_xml $have_xml
38968ZLIB --with-zlib=$with_zlib $have_zlib
38969
38970X11 Configuration:
38971 X_CFLAGS = $X_CFLAGS
38972 X_PRE_LIBS = $X_PRE_LIBS
38973 X_LIBS = $X_LIBS
38974 X_EXTRA_LIBS = $X_EXTRA_LIBS
38975
38976Options used to compile and link:
38977 PREFIX = $PREFIX_DIR
38978 EXEC-PREFIX = $EXEC_PREFIX_DIR
38979 VERSION = $PACKAGE_VERSION
38980 CC = $CC
38981 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038982 CPPFLAGS = $MAGICK_CPPFLAGS
38983 PCFLAGS = $MAGICK_PCFLAGS
38984 DEFS = $DEFS
38985 LDFLAGS = $LDFLAGS
38986 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38987 LIBS = $MAGICK_LIBS
38988 CXX = $CXX
38989 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038990 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038991" >&6;}